| single |

# RDFLib
[Build Status]
[Documentation Status]
[Coveralls branch]
[GitHub stars]
[Downloads]
[PyPI]
[PyPI]
[DOI]
[Contribute with Gitpod]
[Gitter]
[Matrix]
RDFLib is a pure Python package for working with [RDF]. RDFLib contains
most things you need to work with RDF, including:
* parsers and serializers for RDF/XML, N3, NTriples, N-Quads, Turtle, TriX,
Trig, JSON-LD and even HexTuples
* a Graph interface which can be backed by any one of a number of Store
implementations
* Store implementations for in-memory, persistent on disk (Berkeley DB) and
remote SPARQL endpoints
* additional Stores can be supplied via plugins
* a SPARQL 1.1 implementation - supporting SPARQL 1.1 Queries and Update
statements
* SPARQL function extension mechanisms
## RDFlib Family of packages
The RDFlib community maintains many RDF-related Python code repositories
with different purposes. For example:
* [rdflib] - the RDFLib core
* [sparqlwrapper] - a simple Python wrapper around a SPARQL service to
remotely execute your queries
* [pyLODE] - An OWL ontology documentation tool using Python and
templating, based on LODE.
* [pyrdfa3] - RDFa 1.1 distiller/parser library: can extract RDFa 1.1/1.0
from (X)HTML, SVG, or XML in general.
* [pymicrodata] - A module to extract RDF from an HTML5 page annotated with
microdata.
* [pySHACL] - A pure Python module which allows for the validation of RDF
graphs against SHACL graphs.
* [OWL-RL] - A simple implementation of the OWL2 RL Profile which expands
the graph with all possible triples that OWL RL defines.
Please see the list for all packages/repositories here:
*
Help with maintenance of all of the RDFLib family of packages is always
welcome and appreciated.
## Versions & Releases
* `main` branch in this repository is the current unstable release -
version 8 alpha
* `7.6.0` GraphDB Client, and many improvements and fixes. See changelog
for details
* `7.5.0` RDF4J Store integration, RDF4J Client, and other improvements.
See changelog for details
* `7.4.0` a few small fixes, add test matrix for active python versions,
and move v7 documentation to MkDocs
* `7.3.0` many fixes and usability improvements, particularly for the
Dataset class. See changelog for details
* `7.2.1` tiny clean up release, relaxes Python version requirement
* `7.2.0` general fixes and usability improvements, see changelog for
details
* `7.1.4` tidy-up release, possibly last 7.x release
* `7.1.3` current stable release, small improvements to 7.1.1
* `7.1.2` previously deleted release
* `7.1.1` previous stable release
* see
* `7.0.0` previous stable release, supports Python 3.8.1+ only.
* see [Releases]
* `6.x.y` supports Python 3.7+ only. Many improvements over 5.0.0
* see [Releases]
* `5.x.y` supports Python 2.7 and 3.4+ and is [mostly backwards compatible
with 4.2.2].
See for the release details.
## Documentation
See for our documentation built from the
code. Note that there are `latest`, `stable` and versioned builds, such as
`5.0.0`, matching releases.
## Installation
The stable release of RDFLib may be installed with Python's package
management tool *pip*:
$ pip install rdflib
Some features of RDFLib require optional dependencies which may be
installed using *pip* extras:
|