RDFLib is a pure Python package for working with RDF. It contains:
Parsers & Serializers
for RDF/XML, N3, NTriples, N-Quads, Turtle, TriX, JSON-LD, HexTuples, RDFa and Microdata
persistent, on-disk stores, using databases such as BerkeleyDB
remote SPARQL endpoints
to a single graph
or to multiple Named Graphs within a dataset
SPARQL 1.1 implementation
both Queries and Updates are supported
If you have never used RDFLib, the following will help get you started:
If you are familiar with RDF and are looking for details on how RDFLib handles it, these are for you:
The nitty-gritty details of everything.
The rdflib source code is hosted on GitHub at https://github.com/RDFLib/rdflib where you can lodge Issues and create Pull Requests to help improve this community project!
The RDFlib organisation on GitHub at https://github.com/RDFLib maintains this package and a number of other RDF and RDFlib-related packaged that you might also find useful.
Further help & Contact¶
If you would like more help with using rdflib, rather than developing it, please post a question on StackOverflow using
[rdflib]. A list of existing
[rdflib] tagged questions is kept there at:
You might also like to join rdflib’s dev mailing list: https://groups.google.com/group/rdflib-dev