# RDFLib/rdflib

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

Repository: https://github.com/RDFLib/rdflib
Canonical: https://ross.abutalabs.com/products/rdflib
Homepage: https://rdflib.readthedocs.org
Language: Python
License: BSD-3-Clause
License Family: permissive
Topics: rdflib, semantic-web, linked-data, python, pypi, ntriples, rdf-xml, json-ld, turtle, turtle-rdf, rdf, n3, nquads, serializer, parser, namespace, graph, uri, python-library, sparql
Last push: 2026-08-26T05:43:01+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 58, longevity 100
- inputs: {"age_days": 5325, "days_push": 7, "days_rel": 201, "gap_med": 52.0, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2499, forks 603 (observed 2026-08-28T04:06:56.851017+00:00)

## What it is
RDFLib is a pure Python library for working with RDF (Resource Description Framework), providing parsers and serializers for formats like RDF/XML, Turtle, N-Triples, N-Quads, and JSON-LD. It includes a Graph interface with pluggable store backends and a full SPARQL 1.1 query and update implementation.

## Use cases
- parse and serialize RDF data in Turtle, RDF/XML, JSON-LD, or N-Triples
- run SPARQL queries against RDF graphs in Python
- build and manipulate RDF graphs programmatically
- query remote SPARQL endpoints
- convert linked data between RDF serialization formats
- work with ontologies and semantic web data
- store RDF triples in memory or on disk

## When to choose
- you need to parse, serialize, or query RDF in Python
- you want a pure-Python solution with no native dependencies
- you need SPARQL 1.1 query and update support
- you're building semantic web, linked data, or knowledge graph tooling

## When to avoid
- you need extremely high-performance triple stores at scale (consider a dedicated graph database)
- you want a standalone RDF database server rather than an embedded library
- you need SHACL validation or OWL reasoning (use the companion pySHACL or OWL-RL packages)

## Facets
- artifact type: library
- maturity: stable
- function: parser, serialization, search-engine, developer-tools
- domain: databases, developer-tools
- platform: python, cross-platform
- tags: rdf, sparql, turtle, -ld, ntriples, nquads, rdf-xml, graph, linked-data, semantic-web, ontology, natural-language-processing

## Member repositories
- RDFLib/rdflib (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:56.851017+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:26:58.047189+00:00, confidence not recorded.
  - readme: https://github.com/RDFLib/rdflib (fetched 2026-08-28T04:06:56.851017+00:00, sha 4e5b8bdceb90)
  - registry_pypi: https://pypi.org/pypi/rdflib/json (fetched 2026-08-29T10:10:02.131563+00:00, sha 6fd0063d7b9c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
