rdflib-shim is a compatibility layer that smooths over breaking changes between rdflib 5 and 6, allowing code written for rdflib 5 to work with rdflib 6 without modification. Version 1.0.3 (latest) requires Python >=3.7. The library is maintained but low-churn (last release 2022).
pip install rdflib-shimNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Import the shim first, then use rdflib as usual with rdflib 6.
Always put `import rdflib_shim` as the very first import in your module.
For new code, consider writing directly against rdflib 6 APIs and skip the shim.
Add `import rdflib_shim` before `import rdflib` to restore the old behavior.
Use `from rdflib.term import *` or import the shim first.
Either use `from rdflib.term import BNode` or install/import rdflib-shim.