Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

rdflib-turbo

PyPI Tests and wheels

Companion turbo projects: pyshacl-turbo, rdflib-turbo and owlrl-turbo.

Functional alpha of a native RDF dataset runtime for Python, built on Oxigraph and exact-term compatibility work extracted from pyshacl-turbo.

pip install rdflib-turbo==0.1.0a2
from rdflib_turbo import Dataset

# The data stays native between parsing, querying and owlrl-turbo inference.
data = Dataset().parse(data='<urn:alice> <urn:name> "Alice" .')
for row in data.query('SELECT ?name WHERE { <urn:alice> <urn:name> ?name }'):
    print(row.name)
print(data.serialize(format="nquads"))

The alpha provides native parsing and serialization, SELECT/ASK/CONSTRUCT/DESCRIBE, exact literal spellings and datatype identity, named graphs, independent copies, and explicit RDFLib conversion. Query results are RDFLib Result objects; returned terms are Python RDFLib objects. Native operations release Python's GIL. A lock covers each complete native read or write. Parsing and inference commit only on success. Parsing separate documents gives blank nodes separate scopes.

Supported format names: turtle, nt, nquads, trig, xml, n3, json-ld. Input is UTF-8 text, bytes or a local path; source URLs and file objects are not implemented. Default-graph querying is standard; request default_union=True for a union view. Graph-only serializers reject named-graph data rather than discarding contexts.

This is not a complete drop-in RDFLib replacement. It uses the rdflib_turbo namespace and a deliberately small Dataset API. Graph/Store plugins, SPARQL Update, initial bindings, persistent storage, namespace extraction from parsed documents, custom functions and remote SERVICE execution are not provided. RDFLib conversions copy data and explicitly preserve caller blank-node identifiers. Query results are eagerly materialized. No performance or complete-conformance claim is made.

Inference and SHACL

from owlrl_turbo import expand
from pyshacl_turbo import validate

expanded = expand(data, inference="rdfs")
# pyshacl-turbo currently requires this explicit copying conversion.
conforms, report, text = validate(expanded.to_rdflib(), shacl_graph="shapes.ttl")

owlrl-turbo shares this native dataset runtime. pyshacl-turbo integration currently uses RDFLib conversion; no shared native SHACL handle is claimed. See the runtime ADR and source provenance.

Requires Python 3.11+. Source builds require Rust 1.98.0. Both project code and extracted inference code are MIT OR Apache-2.0; vendored sources retain licenses. Copyright 2026 DataRoad Inc, Delaware, USA, trading as Legra.

Development

Use make dev and make check. The initial alpha is published only by the verified GitHub Actions workflow; see release instructions.

uv venv
uv pip install maturin pytest ruff
uv run maturin develop --release
uv run pytest
cargo fmt --check
cargo clippy -- -D warnings

CI requires 100% measured Python package line and branch coverage. This does not measure Rust coverage, full API compatibility or standards conformance.

Metadata

Release files for rdflib-turbo 0.1.0a2

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

Source distribution (sdist)

Source distribution for rdflib-turbo 0.1.0a2
File Size Uploaded
rdflib_turbo-0.1.0a2.tar.gz 218.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for rdflib-turbo 0.1.0a2
File
rdflib_turbo-0.1.0a2-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details
rdflib_turbo-0.1.0a2-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details
rdflib_turbo-0.1.0a2-cp311-abi3-manylinux_2_28_aarch64.whl CPython 3.11 abi3 Linux glibc 2.28+ ARM64 Details
rdflib_turbo-0.1.0a2-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details
rdflib_turbo-0.1.0a2-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details

Total release size: 12.6 MB

Release files / rdflib_turbo-0.1.0a2.tar.gz

Download URL rdflib_turbo-0.1.0a2.tar.gz
Size 218.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1fa2b817d4beaf2262ecde01ba29cfa35fee60b18c95c997a41a0a9f0ae31b72
BLAKE2b-256 checksum
How to use checksums
c788aaa9c8a2fbbc718bdcada0bcce4ca317aab42898d3caf13b1a7fc1b6f1bb
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 Oct 16, 2026.

Transparency log

Release files / rdflib_turbo-0.1.0a2-cp311-abi3-win_amd64.whl

Download URL rdflib_turbo-0.1.0a2-cp311-abi3-win_amd64.whl
Size 2.3 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
0bf52ed92c02c4f6a894190aa5aae5ce969b6f0969019a7527737a92421420b7
BLAKE2b-256 checksum
How to use checksums
7ed8da44f62270fd4e1e787e931a54a7db226ffacaeee19ee6b1912a087aa2da
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 Oct 16, 2026.

Transparency log

Release files / rdflib_turbo-0.1.0a2-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL rdflib_turbo-0.1.0a2-cp311-abi3-manylinux_2_28_x86_64.whl
Size 2.6 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
2ab0f05498bae160776bad6d4b2e12686861d101257574baa301b83ad732f3ca
BLAKE2b-256 checksum
How to use checksums
504478ad57beee19a7e406ff2e66eae7ddae2b9936351469507c6f25a5a0e96c
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 Oct 16, 2026.

Transparency log

Release files / rdflib_turbo-0.1.0a2-cp311-abi3-manylinux_2_28_aarch64.whl

Download URL rdflib_turbo-0.1.0a2-cp311-abi3-manylinux_2_28_aarch64.whl
Size 2.6 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
37dcac6448441a00f43cb324c661c1239c171e762b768a94fe8ff0ded87e4c2c
BLAKE2b-256 checksum
How to use checksums
2b3b70395e490db2d54cd90413ec1bdcc982e569a39ce526362929910868fdb5
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 Oct 16, 2026.

Transparency log

Release files / rdflib_turbo-0.1.0a2-cp311-abi3-macosx_11_0_arm64.whl

Download URL rdflib_turbo-0.1.0a2-cp311-abi3-macosx_11_0_arm64.whl
Size 2.3 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a9d617f523d765c4573f3a7c493b1303a65214d0efea07aa004671802543f0d5
BLAKE2b-256 checksum
How to use checksums
387b1e93982368c0b3d4006c755baa6220538e0a44a1eb47a2bb798ab425fe66
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 Oct 16, 2026.

Transparency log

Release files / rdflib_turbo-0.1.0a2-cp311-abi3-macosx_10_12_x86_64.whl

Download URL rdflib_turbo-0.1.0a2-cp311-abi3-macosx_10_12_x86_64.whl
Size 2.5 MB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
5db163b8f05e02a190ae1ae178acb9d18dac300fec6c9ce940e367739faca1c5
BLAKE2b-256 checksum
How to use checksums
59d37f9fd3d0288b8f5f9a7f932211de097e37fbc502e1a908abd33b926833cf
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 Oct 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0a2 This release

6 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