Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

rdflib-turbo

Latest version: v0.2.0a44

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
PyPI package Publisher: jgeluk
1 Stars
0 Forks
44 Versions
25.8K Downloads
Rust Repo language

Scan summary

rdflib-turbo was last scanned on 28 Nov 2026 at version 0.2.0a44. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 44 versions; the latest was published on 28 Nov 2026.
  • Findings: No rules fired in version 0.2.0a44.
  • Downloads: 25,759 downloads.

Versions

44 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.0a44 LATEST 28 Nov 2026 No rules fired
0.2.0a43 18 Nov 2026 No rules fired
0.2.0a42 18 Nov 2026 No rules fired
0.2.0a41 18 Nov 2026 Not shown
0.2.0a40 16 Nov 2026 Not shown

No rules fired in 0.2.0a44

Findings

Findings for v0.2.0a44. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.2.0a44; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

rdflib-turbo

PyPI Tests and wheels Python line coverage Python branch coverage Rust line coverage Rust region coverage Rust function coverage

Performance

Shared dataset pipeline

35.8× faster with RDFS and 11.8× faster with OWL-RL on this 10,000-node synthetic fixture, using less peak memory. The Turbo trio shares one native dataset through parsing, inference and public SHACL validation.

Pipeline Python trio (s) Turbo trio (s) Speedup Python peak (MiB) Turbo peak (MiB)
Parse → RDFS → SHACL 15.889 0.444 35.8× 139.7 126.7
Parse → OWL-RL → SHACL 11.104 0.940 11.8× 151.2 123.4

Complete scoped and generalized closures, report graphs and report text matched. Peak memory was 9.3% lower for RDFS and 18.4% lower for OWL-RL.

Measured 3 November 2026 on Apple M3 Max / macOS arm64, CPython 3.13.16, uv 0.13.5. Originals: RDFLib 7.6.0 / OWL-RL 7.6.2 / pySHACL 0.40.2, without optional native adapters. Turbo: published rdflib-turbo 0.2.0a33 / owlrl-turbo 0.2.0a1, with pyshacl-turbo code from #137, tested at 9be3f03. That facade wheel was an unpublished build, not the public 0.8.0 release.

Medians use five alternating fresh-process pairs after an untimed warmup; peak RSS uses seven separate cold processes per arm. Times include data parsing, inference and public validation/report construction; imports and SHAPES preparation are outside timing. Memory includes the whole process and retained results, before correctness encoding. These finite fixture results do not establish universal speedups or full drop-in parity. See all samples, output fingerprints and exact artifact identities and the pipeline harness.

Matched public Graph pipeline

Parse → OWL-RL → SHACL: about 11× in this measured synthetic run. Both arms use public Graph APIs, expand into the same source Graph and validate in place. The Turbo trio keeps one RDF dataset in memory throughout; a separate non-timed ownership regression checks the actual shared route without adding spies to timed children.

1,000-literal case Python trio (ms) Turbo trio (ms) Time ratio Python peak (MiB) Turbo peak (MiB)
Literal reflexivity 285.2 25.5 11.2× 88.0 86.1
Literal typing 362.7 31.5 11.5× 100.5 98.8

Measured 31 October 2026, macOS 27.0.1 (arm64), CPython 3.13.16, native uv 0.13.5: original registry wheels of rdflib-turbo 0.2.0a23 / owlrl-turbo 0.2.0a1 / pyshacl-turbo 0.7.1, versus RDFLib 7.6.0 / OWL-RL 7.6.2 / pySHACL 0.40.1. These are medians of five fresh children per arm after a separate warmup. The total includes Graph construction/parsing, OWL-RL closure construction/expansion and public validation/report construction; imports, fixture text and SHAPES preparation are outside. Complete scoped/generalized facts, literal metadata, report/text, namespace/effect/flag gates passed for rdflib.NORMALIZE_LITERALS=True. The separate NORMALIZE_LITERALS=False check differs in a global-setting side effect and has no performance ratio.

Peak RSS is absolute whole-process memory captured before correctness encoding; it includes imports, setup and retained results. This single-host result is not a universal speed or memory claim. See the portable numeric provenance and method/locked replay. From a pyshacl-turbo checkout, use a fresh output directory:

uv run --no-project --python 3.13.16 python -I -B benchmarks/matched_graph_driver.py \
    --cohort benchmarks/matched-graph-releases.json --roles baseline --widths 1000 \
    --repeats 5 --output benchmark-artifacts/matched-graph-readme
Historical measurements and provenance

N-Triples serialization: 4.4–4.9× faster than RDFLib on 100,000 synthetic triples. The candidate measured on 23 October 2026 at c196691 serializes directly from the selected native graph and returns UTF-8 bytes without a Python Unicode copy. It preserves RDFLib's URI rejection and caught-transaction behavior; the corrected implementation is measured below.

Output RDFLib 7.6.0 (ms) Published turbo 0.2.0a14 (ms) Candidate c196691 (ms) RDFLib peak (MB) Published peak (MB) Candidate peak (MB)
str 484.21 651.83 110.14 339.09 294.45 290.59
UTF-8 bytes 505.74 680.75 104.21 301.22 262.56 257.28

Measured on macOS ARM64 with CPython 3.13.16 on 23 October 2026: medians of six rotated cold processes per case, using the published baseline wheel and an independently audited release build of the candidate. Timings cover serialization only; whole-process peak RSS includes imports, input construction and retained output, measured before correctness parsing (decimal MB). Complete exact-term and blank-node-ID comparisons cover small/default/named/blank-graph controls; the 100,000-triple cases use a matching streaming count/hash witness, which is probabilistic rather than a complete row comparison. A separate 1,024-triple Unicode test reduced Python-traced UTF-8 peak allocations from 177,730 to 48,461 bytes, using the same cold child in both projects; that excludes native allocations. These are synthetic NT-only measurements, not end-to-end or universal speedup claims. The shared host's one-minute load ranged from 16.05 to 25.26 and large-case CPU variation from 1.3% to 12.6%; absolute timings reflect that load. See results and provenance and reproduction instructions.

Compare RDFLib + OWL-RL + pySHACL with rdflib-turbo, owlrl-turbo and pyshacl-turbo used together. The Turbo pipeline keeps one native dataset through parsing, in-place inference and SHACL validation.

End-to-end measurements for 1,000 synthetic nodes:

Platform Inference Python trio (ms) Turbo trio (ms) Python peak (MiB) Turbo peak (MiB)
Linux x86-64 RDFS 522.5 47.6 47.15 68.66
Linux x86-64 OWL-RL 801.3 56.4 48.69 69.29
macOS ARM64 RDFS 702.8 80.7 55.38 59.94
macOS ARM64 OWL-RL 1,028.5 72.5 55.91 60.42

Turbo uses more memory in these runs: 8–46% higher whole-process peak RSS. Ordinary RDF inference closures and complete SHACL report graphs match. Generalized RDF statements and report text differ, so these timings are not a full-output speedup claim or a claim of complete drop-in parity.

Measured in CI on 21 October 2026, using source-built wheels and Python 3.13: rdflib-turbo 0.2.0a7, owlrl-turbo 0.1.0a3, pyshacl-turbo 0.6.0 versus rdflib 7.6.0, owlrl 7.6.2, pyshacl 0.40.1. Times are medians of seven samples after warmup and include data parsing, shape compilation, inference, validation and full report construction. Shapes are parsed before timing. Memory is the median peak RSS of three fresh processes, including the interpreter, imports and retained output. Shared CI hosts and small synthetic cases do not establish universal speedups or large-dataset capacity.

See the complete Linux measurements, macOS measurements and continuously recorded benchmark history for all samples, source identities, dependency locks and other dataset sizes.

Overview

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

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

uv add rdflib-turbo==0.2.0a23
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 native format names: turtle, nt, nquads, trig, xml, n3, json-ld. Store accepts UTF-8 text, bytes or a local path; its source URL and file-object inputs are not implemented. Graph and Dataset use RDFLib input-source handling. Dataset queries use the default graph unless default_union=True is selected. Low-level Store serializers reject graph-only formats with named-graph data; Graph and Dataset retain their RDFLib format semantics.

This is not a complete drop-in RDFLib replacement. It uses the rdflib_turbo namespace. Dataset and Graph provide inference/SHACL integration over the native Store, which also supplies persistence, SPARQL Update and explicit transactions. Dataset and StoreDataset name the same RDFLib Dataset facade. Arbitrary RDFLib storage plugins, initial query bindings, 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. Performance results apply to their recorded versions and workloads; complete conformance is not claimed.

RDFLib Graph and dataset facades

Import Graph and Dataset explicitly from rdflib_turbo; importing rdflib continues to select the original RDFLib classes.

API Data owner and intended use
Dataset RDFLib Dataset facade over one native Store, with inference/SHACL adapters
Store Native memory or persistent storage, SPARQL Update and scoped transactions
Graph RDFLib Graph facade over one native Store graph
StoreDataset Another name for the same Dataset class
from rdflib import Literal, URIRef
from rdflib_turbo import Graph, StoreDataset

alice, name = URIRef("urn:alice"), URIRef("urn:name")
graph = Graph()
graph.add((alice, name, Literal("Alice")))
assert list(graph.objects(alice, name)) == [Literal("Alice")]
assert graph.query('ASK { <urn:alice> <urn:name> "Alice" }').askAnswer

dataset = StoreDataset()
dataset.default_graph.add((alice, name, Literal("default")))
named = dataset.graph(URIRef("urn:people"))
with dataset.transaction() as pending:
    pending.graph(URIRef("urn:people")).add((alice, name, Literal("Alice")))
    assert len(named) == 0              # Other views see committed state
assert list(named.objects(alice, name)) == [Literal("Alice")]

These facades reuse RDFLib terms, namespace management, serializers and graph utility algorithms. Statements, pattern matching, counts and SPARQL remain in native storage; no reference Memory graph or Python SPARQL evaluator runs. Committed Graph and Dataset iteration reads bounded native batches. Union statements and their lazy context iterators share one pinned snapshot. Explicit transaction iteration retains its pending-state reader; query results and serialization can still materialize larger results.

StoreDataset graph views share their native backend and namespace bindings. Queries use the default graph unless StoreDataset(default_union=True) is selected; a named Graph query uses its own graph as the query's default graph. Dataset-level queries can address named graphs with GRAPH. Graph(store=store, identifier=...) and StoreDataset(store=store) also accept an existing native Store, including a persistent Store. Namespace bindings are facade metadata and are not persisted.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases rdflib-turbo

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229