Skip to main content

Tests Latest Release Docker Image License: GPL v3

Python Versions Package Format Package Status Package Version

Publication Data Experiment Scripts

Logo

We present Trav-SHACL, a SHACL engine capable of planning the traversal and execution of a shape schema in a way that invalid entities are detected early and needless validations are minimized. Trav-SHACL reorders the shapes in a shape schema for efficient validation and rewrites target and constraint queries for fast detection of invalid entities. The shape schema is validated against an RDF graph accessible via a SPARQL endpoint.

Trav-SHACL Architecture Fig. 1: The Trav-SHACL Architecture (from [1])

Fig. 1 shows the architecture of Trav-SHACL. Trav-SHACL receives a SHACL shape schema S and an RDF graph G. The output of Trav-SHACL are the entities of G that satisfy the shapes in S. The inter-shape planner uses graph metrics computed over the dependency graph of the shape schema. It orders the shapes in S in a way that invalid entities are identified as soon as possible. The intra-shape planner and execution optimizes the target and constraint queries at the time the shape schema is traversed. So-far (in)validated entities are considered to filter out entities linked to these entities; query rewriting decisions (e.g., pushing filters, partitioning of non-selective queries, and query reordering) are made based on invalid entities' cardinalities and query selectivity. The rewritten queries are executed against SPARQL endpoints. The answers of the target and constraint queries as well as the truth value assignments are exchanged during query rewriting and interleaved execution. They are utilized — in a bottom-up fashion — for constraint rule grounding and saturation. The intra-shape planner and execution component runs until a fixed-point in the truth value assignments is reached.

If you want to know more, check out the documentation. The documentation also lists the current features and limitations.

How to run Trav-SHACL?

You can use Trav-SHACL as a Python3 library or a Web-based service using Docker. The documentation includes detailed examples for both scenarios.

WWW 2021 Evaluation

Trav-SHACL is presented in [1]. If you want to reproduce the results reported in our WWW '21 paper, checkout the eval-www2021 branch.

License

Trav-SHACL is licensed under GPL-3.0.

Publications

  1. Mónica Figuera, Philipp D. Rohde, Maria-Esther Vidal. Trav-SHACL: Efficiently Validating Networks of SHACL Constraints. In Proceedings of the Web Conference 2021 (WWW '21), April 19-23, 2021, Ljubljana, Slovenia. https://doi.org/10.1145/3442381.3449877, Experiment Scripts, Preprint

Metadata

Release files for TravSHACL 1.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TravSHACL 1.11.0
File Size Uploaded Provenance Actions
travshacl-1.11.0.tar.gz 57.0 kB Without provenance Details for travshacl-1.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for TravSHACL 1.11.0
File Interpreter ABI Platform Actions
travshacl-1.11.0-py3-none-any.whl Python 3 none any Details for travshacl-1.11.0-py3-none-any.whl

Total release size: 116.9 kB

Release files / travshacl-1.11.0.tar.gz

Download URL travshacl-1.11.0.tar.gz
Size 57.0 kB
Tags Source
SHA-256 checksum
How to use checksums
628f1b2c430a960f5997c20137699ef1f3b1cee5f3f0f94ff3dc74ebed4beb57
BLAKE2b-256 checksum
How to use checksums
15a206f6a01c635dc5f30e36bb5d4664f2515e9bba308c9bbbacfcfe0155f8c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / travshacl-1.11.0-py3-none-any.whl

Download URL travshacl-1.11.0-py3-none-any.whl
Size 60.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db07e9144fad258cdaad3e699af42cd52cb516bf3a9fe388bb4d30f970be530c
BLAKE2b-256 checksum
How to use checksums
f461fbf9039bf4f8d828560577b53027cb332e9d7c97e50f293115ea5dd9fab8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for TravSHACL 1.11.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page