Skip to content

Feature: implicit targets of SPARQL-based constraints #530

@fkleedorfer

Description

@fkleedorfer

(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

Metadata

Metadata

Assignees

No one assigned

    Labels

    SPARQLFor SHACL 1.2 SPARQL extensions spec

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions