A proof-of-concept integration of LadybugDB and RDFlib.
Based on previus work by Paco Nathan and Prashanth Rao: https://github.com/DerwenAI/kuzu-rdflib
The library module for this demo is in graph.py where an RDFlib
"Store" plugin has been adapted to manage its RDF triples within a
Ladybug graph database.
For details about these libraries, see:
- RDF support in Ladybug https://docs.ladybugdb.com/rdf-graphs/
- RDFlib https://rdflib.readthedocs.io/
- pySHACL https://github.com/RDFLib/pySHACL
- SHACL https://www.w3.org/TR/shacl/
git clone https://github.com/LadybugDB/ladybug-rdflib.git
cd ladybug-rdflib
uv venv
source .venv/bin/activate
uv syncFirst, initialize the example RDF data from the uni.ttl file:
uv run prep.pyThen run the demo.py script to perform an example SPARQL query
and SHACL validation:
uv run demo.py