Skip to content
Draft
2 changes: 1 addition & 1 deletion shacl12-sparql/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,7 @@ <h2>Annotation Properties</h2>
<tr>
<td><code>sh:annotationValue</code></td>
<td>
Constant <a>RDF terms</a> that shall be used as default values.
<span data-syntax-rule="annotationValue">Constant <a>RDF terms</a></span> that shall be used as default values.
</td>
</tr>
</table>
Expand Down
51 changes: 51 additions & 0 deletions shacl12-vocabularies/shacl-shacl.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -409,3 +409,54 @@ shsh:EntailmentShape
a sh:NodeShape ;
sh:targetObjectsOf sh:entailment ;
sh:nodeKind sh:IRI . # entailment-nodeKind

shsh:SPARQLExecutableShape
a sh:NodeShape ;
sh:targetClass sh:SPARQLExecutable ;
sh:targetSubjectsOf sh:prefixes ;
sh:property [
sh:path sh:prefixes ;
sh:nodeKind sh:BlankNodeOrIRI ; # prefixes-nodeKind
] .

shsh:SPARQLAskExecutableShape
a sh:NodeShape ;
sh:targetSubjectsOf sh:ask , sh:resultAnnotation ;
sh:property [
sh:path sh:ask ;
sh:minCount 1 ; # ask-count
sh:maxCount 1 ; # ask-count
sh:datatype xsd:string ; # ask-datatype
] .

shsh:SPARQLSelectExecutableShape
a sh:NodeShape ;
sh:targetSubjectsOf sh:select , sh:resultAnnotation ;
sh:property [
sh:path sh:select ;
sh:minCount 1 ; # SPARQLConstraint-select-count
sh:maxCount 1 ; # SPARQLConstraint-select-count
sh:datatype xsd:string ; # SPARQLConstraint-select-datatype
] .

shsh:ResultAnnotationShape
a sh:NodeShape ;
sh:targetObjectsOf sh:resultAnnotation ; # sparql-constraints-annotations
sh:nodeKind sh:BlankNodeOrIRI ; # resultAnnotation-nodeKind
sh:property
[
sh:path sh:annotationProperty ; # annotationProperty
sh:minCount 1 ;
sh:maxCount 1 ;
sh:nodeKind sh:IRI ;
] ,
[
sh:path sh:annotationVarName ; # annotationVarName
sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:nodeKind sh:Literal ;
] ,
[
sh:path sh:annotationValue ; # annotationValue
sh:nodeKind sh:IRI ;
] .