[data-shapes] Feature: implicit targets of SPARQL-based constraints (#530)

fkleedorfer has just created a new issue for https://github.com/w3c/data-shapes:

== Feature: implicit targets of SPARQL-based constraints ==
(Apologies if this has been addressed)

SPARQL-based constraints can take a long time to evaluate if the query is complex and there are many targets. Usually, evaluating the query without pre-binding `?this` is much faster.

It would make things easier if SHACL allowed a sparql based constraint to interpret the binding for `?this` in each solution as the focus node for the validation result.

One way to achieve this would be to add a shape property, say, `sh:allowSparqlQueryTargets (true|false)`, which would cause the engine to evaluate the query once without pre-binding `?this`, requiring that ?this be projected, and using ?this as the focus node for the validation result

Please view or discuss this issue at https://github.com/w3c/data-shapes/issues/530 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 27 August 2025 06:36:11 UTC