rdflib stores based on pyoxigraph. Version 0.5.0 requires Python >=3.8, upgrades pyoxigraph to 0.5, adds JSON-LD support, and improves SPARQL query behavior. Development is active on GitHub.
pip install oxrdflibNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create an rdflib Graph backed by Oxigraph in-memory store. Parse and query RDF.
Use OxigraphStore() for both in-memory and on-disk. To persist data, specify a path: OxigraphStore(path='/path/to/db').
Use 'ox-turtle' instead of 'ox-ttl', 'ox-n-triples' instead of 'ox-nt', etc.
Re-bind namespaces after reloading a store, or store prefix mappings separately.
Review oxrdflib's GitHub issues and test your usage; consider using raw pyoxigraph for advanced features.
pip install oxrdflib
Update oxrdflib to the latest version: pip install --upgrade oxrdflib
Use graph.query() instead of store.query(). See quickstart example.