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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for sparql_visualizer-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03af5ace72eaba2524532e86081fbc256503f87b14a93257e83814c07ef804b6 |
|
MD5 | 1a22b80813c8184113cb2d4ab29ab8fd |
|
BLAKE2b-256 | 64490fc89ee094d3912a012672a1a6700bf08d0d5583c791c21ce16e5fd4c4a7 |