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

Uploaded Source

Built Distribution

SHACL2SPARQLpy-1.2.0-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: SHACL2SPARQLpy-1.2.0.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for SHACL2SPARQLpy-1.2.0.tar.gz
Algorithm Hash digest
SHA256 f56af70b09e969d520b98815a886b47f16817b82305a5aa7f1fcb241c0cf3d96
MD5 06a6aaab95badabeec109a041c1a49c8
BLAKE2b-256 8ef38ee429d90d8718e276c238ae1435becf3f83393c5f78334509efd40bd995

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for SHACL2SPARQLpy-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 187459f7c07cba6cc43bfd17e5ae3aba2b06cb45c105cd0a5bfb263793fbb809
MD5 1200c19729fe5860779057d6b097bfb7
BLAKE2b-256 583994a660b76e25ec5628c5091c8d5489c43b457f2af45c19a02a803fb900da

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