RDFlib

RDFLib, is a volunteer-run GitHub organization that maintains is a collection of Python tools for working with RDF data, principally the rdflib package.

rdflib package

The main tool is the rdflib package which contains most of the things you need to work with RDF, including:

Many 3rd party packages support additional Stores, parsers etc. via a plugins interface, e.g. HTD scalable, read-only storage.

Other RDFLib packages

The other RDFLib repositories are shown in logos or green relating to rdflib’s internal modules in blue:

Please see the list of all packages here:

Documentation

The main source of RDFLib documentation is online at https://rdflib.readthedocs.io. That contains pages handwritten by RDFLib contributors and also auto-generated pages from the rdflib code.

RDFLib’s code repository, https://github.com/rdflib/rdflib/, also contains some intro documentation in its README page, which is replicated to RDFLib’s PyPI page, https://pypi.org/project/rdflib/.

RDFLib also contains a set of documented examples in the example/ folder within the code repository.

Releases

7.1.3 is the current release (Jan, 2025) and a major release of a version 8 is expected in the first half of 2025.

some major historical releases of RDFLib are:

Release Date Note
8.x Current main branch, unstable release. Due for a major v8 release in July - Spet. 2025
7.1.4 26 Mar 2025 Minor updates on 7.0.0 including deterministic serialisation, improved type hinting etc.
7.0.0 02 Aug 2023 A major release with relatively slight breaking changes, new features and bug fixes
6.0.0 20 Jul 2021 The next major update with lots of auto-update PRs from dependabot etc
5.0.0 18 Apr 2020 The first update in many years. Very compatible with 4.2.2
4.2.2 30 Jan 2017 A stable release used widely for many years
1.1.1 12 Nov 2002 First release!

See the CHANGELOG in the code repository for full details.

Contributing

RDFLib survives and grows via user contributions! Please consider lodging Pull Requests here:

You can also raise issues here:

Support & Contacts

For general “how do I…” queries, please use https://stackoverflow.com and tag your question with rdflib. Existing questions:

If you want to contact the RDFLib maintainers, please do so via: