Python reference implementation of SHACL2SPARQL
Project description
SHACL2SPARQLpy
SHACL2SPARQLpy is a Python-based reference implementation of SHACL2SPARQL.
First, install the required dependencies:
python3 -m pip install -r requirements.txt
Assuming you have a SPARQL endpoint running under http://localhost:14000/sparql, you can execute the tool with the following command:
python3 main.py -d path/to/your/shacl/shapes http://localhost:14000/sparql /path/where/to/store/output
Note
The reference implementation was used in the WWW '21 paper of Trav-SHACL. It is not a fully functional Python version of SHACL2SPARQL. For example, it assumes that all shapes have a target definition. It merely served to make SHACL2SPARQL and Trav-SHACL comparable by getting rid of the performance difference in Python and Java.
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
SHACL2SPARQLpy-1.3.0.tar.gz
(20.2 kB
view hashes)
Built Distribution
Close
Hashes for SHACL2SPARQLpy-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7773256b34e3009e2fadc07590390803d119c2d3b8a322d6020da9b8236f9412 |
|
MD5 | 9c3fbc0fd613ea9ace3ac7da9733db14 |
|
BLAKE2b-256 | bbd46f0f329f6680d1822929a32b6f5cd94f1ca21359ec4e38bf499f9d4f37d2 |