Warning:
This wiki has been archived and is now read-only.
User:Rcygania2/SPARQL Requirement
From RDF Data Shapes Working Group
Some more draft proposed requirement for SHACL.
Expressing advanced constraints in SPARQL
The language shall allow the expression of advanced constraints by embedding SPARQL queries (or suitable parts of SPARQL queries, such as “WHERE clauses”). Where appropriate, a variable such as ?this
may be substituted with a context node when evaluating the constraint.
Defining constraint macros based on parameterized SPARQL
Some constraint expressed as SPARQL queries may recur many times with only slight modifications. The language shall allow the encapsulation of such recurring patterns in a parameterizable form. The effective SPARQL query for an instantiation of the macro would be obtained by substituting macro parameters into a SPARQL query template.