Big updates - #324
Merged
Merged
Conversation
…fault_context to default_graph to adapt to new RDFLib changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Compatibility with Oxigraph stores.
PySHACL can now validate a graph that is loaded into a PyOxigraph
pyoxigraph.Storeinstance.New
DataGraphgraph abstraction layer that wraps RDFLibGraph/Datasetand, when installed,pyoxigraph.Store.Validation and SHACL Rules expansion can use an Oxigraph-backed data graph for faster SPARQL execution.
Install with the new optional extra:
pip install pyshacl[oxigraph].Pass a
pyoxigraph.Storedirectly tovalidate()orshacl_rules().SHACL Functions and SHACL-JS Functions now register and execute on both RDFLib and Oxigraph SPARQL engines.
SPARQL constraints can invoke SHACL Functions as SPARQL extension functions when using an Oxigraph-backed data graph.
Python 3.13 support in the test matrix.
pyduktape2dependency is now version-split for Python 3.13+.Dropped
rdflib.ConjunctiveGraphsupport throughout the codebase.rdflib.Dataset; barerdflib.Graphremain supported for single-graph use.Adapted to RDFLib 7.3+ API changes:
default_contexthas been replaced withdefault_graph, andcontexts()replaced withgraphs().default_contextandDataset.identifier#316Updated minimum dependency versions:
rdflib[html]>=7.3.0,<8.0owlrl>=7.6.1,<8validate_each()now returns a dict keyed by input index (int) instead of by source identifier.Internal validation and rules expansion now operate on the
DataGraphwrapper rather than raw RDFLib graph objects.SPARQL prefix resolution for shapes graphs stored in a
Datasetnow readssh:declareblocks from the default graph.DASH conformance checking now enumerates named graphs with
Dataset.graphs()instead of the deprecatedcontexts()API.OWL
owl:importsover HTTP no longer leaves closedHTTPResponseobjects that trigger finalizer errors during garbage collection.Removed
rdflib.ConjunctiveGraphas a data graph, shapes graph, or ontology graph input type.