fix: restore the 6.1.1 default bound namespaces by aucampia · Pull Request #2313 · RDFLib/rdflib (original) (raw)
Summary of changes
The namespaces bound by default by rdflib.graph.Graph
and rdflib.namespace.NamespaceManager
was reduced in version 6.2.0 of RDFLib, however, this also would cause code that worked with 6.1.1 to break, so this constituted a breaking change. This change restores the previous behaviour, binding the same namespaces as was bound in 6.1.1.
To bind a reduced set of namespaces, the bind_namespaces
parameter of rdflib.graph.Graph
or rdflib.namespace.NamespaceManager
can be used.
Checklist
- Checked that there aren't other open pull requests for
the same change. - Added tests for any changes that have a runtime impact.
- Checked that all tests and type checking passes.
- Considered granting push permissions to the PR branch,
so maintainers can fix minor issues and keep your PR up to date.