Skip to main content

Python reference implementation of SHACL2SPARQL

Project description

Latest Release License: MIT

Python Versions Package Format Package Status Package Version

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.1.0.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

SHACL2SPARQLpy-1.1.0-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file SHACL2SPARQLpy-1.1.0.tar.gz.

File metadata

  • Download URL: SHACL2SPARQLpy-1.1.0.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for SHACL2SPARQLpy-1.1.0.tar.gz
Algorithm Hash digest
SHA256 0fa0813e9db56a2c5b896f655012a5f7eb376a5cbf23192a13014c3b11d4d066
MD5 61c4b1c8f54a79fbc87238b72365a816
BLAKE2b-256 3575c2dc44090b69fb7f035e07970009f0e5279757abd3925b07426d90d80a8c

See more details on using hashes here.

File details

Details for the file SHACL2SPARQLpy-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for SHACL2SPARQLpy-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1cbaae1c2a4881f6ba92ecd0734ed7f35916182d2c9ed1de82c95036297794e
MD5 f166f6c04a8406396752d71bd61a95e5
BLAKE2b-256 7b2fee1d21266c38d49c076a88c4a8f36fea7206ceb1805ca819629f2029360d

See more details on using hashes here.

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