[RDFLib](https://rdflib.readthedocs.io/en/stable/index.html) is a [[Python]] library for working with [[RDF]].
The library also contains both in-memory and persistent [[graph]] back-ends for storing RDF information and numerous convenience functions for declaring graph [[namespace|namespaces]], and lodging [[SPARQL]] queries.
The core class in RDFLib is [Graph](https://rdflib.readthedocs.io/en/latest/apidocs/rdflib.html#rdflib.graph.Graph) which is a Python dictionary used to store collections of RDF [[subject-predicate-object triples|triples]] in memory.
RDFLib provides mechanisms for managing namespaces. In particular, there is a [Namespace](https://rdflib.readthedocs.io/en/latest/apidocs/rdflib.html#rdflib.namespace.Namespace) class which takes (as its only argument) the Base URI of the namespace (e.g., [[schema.org]]).
Finally Literals are strings or other content.