Summary
pySHACL currently triggers deprecation warnings with modern RDFLib versions because internal code still uses Dataset APIs that RDFLib deprecated in 7.3.0.
Root Cause
RDFLib/rdflib#3264 deprecated the following things:
Dataset.contexts
Dataset.default_context
Dataset.identifier
This was first included in https://github.com/RDFLib/rdflib/releases/tag/7.3.0 according to https://rdflib.readthedocs.io/en/latest/changelog.
Change Request
- Change
rdflib dependency in pyproject.toml to at least 7.3.0
Dataset.contexts -> Dataset.graphs
Dataset.default_context -> Dataset.default_graph
Open points:
Dataset.identifier (deprecated)
I did not check what all gets actually used, but only had myself some warnings in a "private" project.
Summary
pySHACL currently triggers deprecation warnings with modern RDFLib versions because internal code still uses Dataset APIs that RDFLib deprecated in 7.3.0.
Root Cause
RDFLib/rdflib#3264 deprecated the following things:
Dataset.contextsDataset.default_contextDataset.identifierThis was first included in https://github.com/RDFLib/rdflib/releases/tag/7.3.0 according to https://rdflib.readthedocs.io/en/latest/changelog.
Change Request
rdflibdependency inpyproject.tomlto at least7.3.0Dataset.contexts->Dataset.graphsDataset.default_context->Dataset.default_graphOpen points:
Dataset.identifier(deprecated)I did not check what all gets actually used, but only had myself some warnings in a "private" project.