Skip to main content

shacl2cypher for Python

Compile SHACL shapes into named, read-only Cypher queries, and validate Neo4j 5 or LadybugDB graphs from Python.

import shacl2cypher

compilation = shacl2cypher.compile(["shapes/person.ttl"], dialect="neo4j", node_key="id")
compilation.write("out")

with shacl2cypher.Ladybug("graph.lbug") as db:
    report = db.validate(["shapes/person.ttl"], node_key="id")
    print(report.render("table"))
    raise SystemExit(report.exit_code("violation"))

Manifest and report dicts use the same camelCase keys as manifest.json and --format json. See the project README for the mapping rules and the s2c: annotation vocabulary.

Metadata

Release files for shacl2cypher 0.3.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 shacl2cypher 0.3.0
File Size Uploaded
shacl2cypher-0.3.0.tar.gz 212.7 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for shacl2cypher 0.3.0
File Interpreter ABI Platform
shacl2cypher-0.3.0-cp39-abi3-manylinux_2_28_x86_64.whl CPython 3.9 abi3 Linux glibc 2.28+ x86-64 Details
shacl2cypher-0.3.0-cp39-abi3-manylinux_2_28_aarch64.whl CPython 3.9 abi3 Linux glibc 2.28+ ARM64 Details
shacl2cypher-0.3.0-cp39-abi3-macosx_13_0_arm64.whl CPython 3.9 abi3 macOS 13.0+ ARM64 Details

Total release size: 41.1 MB

Release files / shacl2cypher-0.3.0.tar.gz

Download URL shacl2cypher-0.3.0.tar.gz
Size 212.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d53ba6d7898a25dd641b2e6246f5861b4c72900d702a563357617f7de26ac6d8
BLAKE2b-256 checksum
How to use checksums
1ec3c6138670caf5b0e9df6817110d3ce36acec2a738bf5fb2016af25a32167b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release files / shacl2cypher-0.3.0-cp39-abi3-manylinux_2_28_x86_64.whl

Download URL shacl2cypher-0.3.0-cp39-abi3-manylinux_2_28_x86_64.whl
Size 15.8 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
2e84e4770926d589931b746800afc90491a334b05cbc806fdbd68af24a405478
BLAKE2b-256 checksum
How to use checksums
edb57bceb5720bcffd2113d4b0caec9853cc7985bbaf09f89b1de90265ce3221
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release files / shacl2cypher-0.3.0-cp39-abi3-manylinux_2_28_aarch64.whl

Download URL shacl2cypher-0.3.0-cp39-abi3-manylinux_2_28_aarch64.whl
Size 14.7 MB
Tags CPython 3.9 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
30e3c640127e1371d52fd207060eec5e83d7918fbbabe2064f21f234c33d00f4
BLAKE2b-256 checksum
How to use checksums
bafafbc23df34c1da60ea1f1b93ab6680d893205b09372b2b1c61f2b667ab40f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release files / shacl2cypher-0.3.0-cp39-abi3-macosx_13_0_arm64.whl

Download URL shacl2cypher-0.3.0-cp39-abi3-macosx_13_0_arm64.whl
Size 10.3 MB
Tags CPython 3.9 abi3 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
e6c01b16b551e89942c065fc62686b97b935d95e4147df7b851b64388b4afe09
BLAKE2b-256 checksum
How to use checksums
52bce70f704fdf0f997a5c6e29a5e50c6b1ffb2ecc70d5cc7eaf7b0e8ca52af5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

4 release files

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