skillfed

rdflib-jsonld

rdflib extension adding JSON-LD parser and serializer

rdflib-jsonld v0.6.2 336.0K downloads/30d#7,470 on PyPI291
Permissive license BSD Abandoned released

What it is and what it does

This package extends rdflib with JSON-LD format support, allowing you to parse JSON-LD documents into RDF graphs and serialize RDF graphs back to JSON-LD output. It works as an automatically registered plugin that integrates with rdflib's standard parse and serialize methods.

However, this package is archived and deprecated. As of rdflib 6.0.1 (released 2021-09-17), JSON-LD handling has been integrated directly into rdflib itself, making this plugin obsolete. The maintainers have explicitly marked 0.6.2 as a final release and encourage all users to migrate to rdflib 6.0.1 or later. The only exception is if you are constrained to Python 3.6 or earlier, in which case you would need to use release 0.5.0 of this plugin with rdflib 5.0.0.

Use it for:

  • Parse JSON-LD documents into RDF graphs for semantic web processing on legacy rdflib versions
  • Serialize RDF graphs to JSON-LD format for linked data applications on Python 3.6 environments
  • Maintain compatibility with codebases locked to Python 3.6 and rdflib 5.0.0

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides JSON-LD parsing and serialization for RDFLib graphs, converting between JSON-LD formatted documents and RDF graph representations.

No. This package is archived and abandoned. The maintainers explicitly recommend migrating to rdflib 6.0.1 or later, where JSON-LD support is now built-in. Install this only if forced to remain on Python 3.6 or earlier with rdflib 5.0.0; otherwise, upgrade to current rdflib and remove this dependency.

Install

rdflib-jsonld on PyPI

pip

pip install rdflib-jsonld

uv

uv add rdflib-jsonld

poetry

poetry add rdflib-jsonld

Installing rdflib-jsonld

Before you install

Installation is straightforward with low friction, but the package is abandoned as of 0.6.2 (released 2021-09-18). The maintainers explicitly recommend migrating to rdflib 6.0.1 or later, where JSON-LD handling is now integrated directly.

License in practice

BSD license is permissive, imposing minimal restrictions on use and modification.

Quickstart

pip install rdflib-jsonld

from rdflib import Graph
g = Graph().parse(data=testrdf, format='n3')
print(g.serialize(format='json-ld', indent=4))

This package is archived; rdflib 6.0.1+ has integrated JSON-LD support and is recommended instead.

Verify before relying

  • Whether rdflib 6.0.1+ is available for your Python version and whether migrating is feasible
  • Whether the integrated JSON-LD support in rdflib 6.0.1+ covers all use cases previously handled by this plugin

Package facts

License BSD (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 1 — rdflib
Maintenance abandoned — 1,791 days since the last release
Last repo commit
First released
Downloads 335,953/month — #7,470 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: rdflib_jsonld-0.6.2-py2.py3-none-any.whl

License :: OSI Approved :: BSD LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules

Tags

json-ld rdf parsingrdflib json-ld serializersemantic web json formatrdf graph json conversionlinked data json parsingrdflib plugin json-ld
archivedsemantic-webrdf

More Python Modules packages