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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sparql_visualizer-1.0.2.tar.gz.
File metadata
- Download URL: sparql_visualizer-1.0.2.tar.gz
- Upload date:
- Size: 107.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3568b8a5c40e736b9254850baf06e5e3d78146b0d227940c0935a89470a37995
|
|
| MD5 |
3e0595867bb1d7828a7ff2c814a082e4
|
|
| BLAKE2b-256 |
3f4f6790116c9ba52b957665b388531ca96312425f8f5b466d7382e9d35d67ef
|
File details
Details for the file sparql_visualizer-1.0.2-py2.py3-none-any.whl.
File metadata
- Download URL: sparql_visualizer-1.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 103.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03af5ace72eaba2524532e86081fbc256503f87b14a93257e83814c07ef804b6
|
|
| MD5 |
1a22b80813c8184113cb2d4ab29ab8fd
|
|
| BLAKE2b-256 |
64490fc89ee094d3912a012672a1a6700bf08d0d5583c791c21ce16e5fd4c4a7
|