Skip to content

Installing RDFLib for TTL JSON serializations

Ethan Gruber edited this page Sep 18, 2025 · 2 revisions

The first iteration of the framework used XSLT to transform the canonical RDF/XML data into the alternative serializations of Turtle and JSON-LD. This resulted in inconsistencies and errors. As a result, the transformation process has been migrated into the Orbeon execute-processor that calls the Python RDFLib library and its associated JSON-LD plugin in order to transform RDF/XML into a stable and standardized pattern.

These transformations require Python and the libraries can be installed by pip.

sudo apt-get install python3 python3-rdflib

If you are using a different distro that uses pip, then use pip to install RDFLib

sudo pip install rdflib

Following the completion of these steps, the TTL and JSON-LD serializations will be available. The JSON-LD libraries may be a separate installation in pip or other package managers, but they are integrated into the Canonical python3-rdflib.

Clone this wiki locally