Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Jena 2.11.2
-
None
Description
When processing a SPARQL Update operation that uses WITH, the processing engine crates a wrapper dataset DatasetGraphAltDefaultGraph that catches access to the default graph and directs it to the alternative graph.
This can block optimization of the graph pattern because DatasetGraphAltDefaultGraph masks the true storage layer and will use the default query pattern executor (OpExecutor and StageGeneratorGeneric).
This is not too serious now that the generic process does some optimization but it can be improved by modifying the WHERE clause to wrap it in a GRAPH <URI>
{...}using ElementGraph and not using a wrapper dataset. The pattern matching proceeds to the underlying storage engine as normal.