skillfed

rdflib

RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.

rdflib Permissive license BSD-3-Clause Active 2,493 v7.6.0 released

Install

rdflib on PyPI

pip

pip install rdflib

uv

uv add rdflib

poetry

poetry add rdflib

Package 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

License :: OSI Approved :: BSD LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules

About rdflib

from the package's own PyPI description — quoted content, verbatim

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
RDF parsing and serializationSPARQL query enginesemantic web Python libraryRDF graph manipulationlinked data processingturtle N3 JSON-LD parserRDF store backend

Similar packages