rdflib
RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.
Install
rdflib on PyPI
pip
pip install rdflibuv
uv add rdflibpoetry
poetry add rdflibPackage facts
| License | BSD-3-Clause (permissive) |
| Python support | supports the current Python release (>=3.8.1) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — isodate, pyparsing |
| Maintenance | actively maintained — 181 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: rdflib-7.6.0-py3-none-any.whl
About rdflib
from the package's own PyPI description — quoted content, verbatim
docs/_static/RDFlib.png (image)
RDFLib
Build Status (image) Documentation Status (image) Coveralls branch (image)
GitHub stars (image) Downloads (image) PyPI (image) PyPI (image) DOI (image)
[![Contribute with...
Read as markdown · JSON record · Source repository · Homepage · Docs
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
RDFLib is a pure Python library for parsing, querying, and serializing RDF data in multiple formats (RDF/XML, Turtle, N-Triples, JSON-LD, and others), with built-in SPARQL 1.1 support and pluggable storage backends.
Low friction installation with only two lightweight runtime dependencies (isodate, pyparsing). Active maintenance with recent releases; last commit 2026-08-12 and 181 days since the 7.6.0 release indicate steady development.
BSD-3-Clause permissive license allows commercial and private use with minimal restrictions; attribution and license inclusion required in distributions.
Usage
pip install rdflib
from rdflib import Graph, URIRef, Literal
from rdflib.namespace import FOAF, XSD
g = Graph()
g.add((URIRef("http://example.com/person/nick"), FOAF.givenName, Literal("Nick", datatype=XSD.string)))
print(g.serialize(format="turtle"))
Requires Python 3.8.1 or later; optional features (Berkeley DB store, networkx, lxml) require additional dependencies installed via extras.
Verdict: RDFLib is a mature, actively maintained library with no known vulnerabilities, low install friction, and permissive licensing. It is well-suited for production use in semantic web and linked data applications. The 7.6.0 release is stable and supports current Python versions (3.8–3.14).
Needs verification
- Performance characteristics and scalability limits for large RDF graphs or complex SPARQL queries
- Maturity and stability of the GraphDB Client integration introduced in 7.6.0
- Community adoption and ecosystem support for the RDFLib family of packages
Similar packages
permissive · top 1,000 on PyPI
cssselectpermissive · top 1,000 on PyPI
ipykernelpermissive · top 1,000 on PyPI
truststorepermissive · top 1,000 on PyPI
aiohttppermissive · top 100 on PyPI
deepdiffpermissive · top 1,000 on PyPI
py-key-value-aiopermissive · top 1,000 on PyPI
defusedxmlpermissive · top 1,000 on PyPI
xmltodictpermissive · top 1,000 on PyPI
poetrypermissive · top 1,000 on PyPI