Skip to main content

SPARQL query visualizer

Project description

sparql-visualizer

sparql-visualizer is a program for visualizing queries in graph form.

Requirements

Before using the program, make sure that your environment is compatible by submitting requirements.txt to pip with:

pip3 install -r requirements.txt

Usage

Command line
python3 main.py (-a | [-gmrs]) [-e E] [-M dir] [-O dir] [-v] <FILES>

files either can be a set of file or directories containing *.rq

Arguments

Argument Long Value Description
-a --all - Alias using -g -m -r -s
-e E Change query extension from ".rq" to <E>
-g --graph - Render graph
-m --mcs - Calculate all MCS (maximum common induced subgraphs )
-M dir Modify output directory for MCS to <dir> (default: ./mcs_result )
-O dir Modify output directory for rendering to <dir> (default: query directory )
-r --relation - Render relation graph
-s --simple - Render simplified graph
-v --verbose - Verbose

Examples:

#Rendering graphs, simplified graphs, relation graphs and MCS
python3 main.py -g -m -r -s ./queries
python3 main.py -gmrs ./queries/*.rq
python3 main.py -a ./queries/*.rq
#Change default input extension
python3 main.py -a -e .txt ./queries ./otherqueries
python3 main.py -a ./queries/*.txt ./otherqueries/*.txt
#Change output directories
python3 main.py -a ./queries -M ./mcs -O ./render

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sparql_visualizer-1.0.2.tar.gz (107.3 kB view hashes)

Uploaded Source

Built Distribution

sparql_visualizer-1.0.2-py2.py3-none-any.whl (103.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page