Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
208 changes: 115 additions & 93 deletions shacl12-vocabularies/shacl.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -1011,26 +1011,6 @@ sh:node
rdfs:isDefinedBy sh: .


sh:NodeByExpressionConstraintComponent
a sh:ConstraintComponent ;
rdfs:label "Node by expression constraint component"@en ;
rdfs:comment "A constraint component that can be used to verify that all value nodes conform to the node shape(s) produced by the given node expression."@en ;
sh:parameter sh:NodeByExpressionConstraintComponent-nodeByExpression ;
rdfs:isDefinedBy sh: .

sh:NodeByExpressionConstraintComponent-nodeByExpression
a sh:Parameter ;
sh:path sh:nodeByExpression ;
rdfs:isDefinedBy sh: .

sh:nodeByExpression
a rdf:Property ;
rdfs:label "node by expression"@en ;
rdfs:comment "Links a shape to node expressions, indicating the node shape(s) that all value nodes must conform to."@en ;
# rdfs:range sh:NodeShape ; (node expression)
rdfs:isDefinedBy sh: .


sh:NodeKindConstraintComponent
a sh:ConstraintComponent ;
rdfs:label "Node-kind constraint component"@en ;
Expand Down Expand Up @@ -1335,32 +1315,54 @@ sh:xone

# Node Expressions ------------------------------------------------------------

sh:NodeExpression
sh:NodeExpressionFunction
a rdfs:Class ;
rdfs:label "Node expression"@en ;
rdfs:comment "The base class of node expression functions."@en ;
rdfs:subClassOf rdfs:Resource ;
rdfs:label "Node expression function"@en ;
rdfs:comment "The base (meta) class of node expression functions."@en ;
rdfs:subClassOf rdfs:Class ;
rdfs:isDefinedBy sh: .

sh:NamedParameterExpression
sh:NamedParameterExpressionFunction
a rdfs:Class ;
rdfs:label "Named parameter expression"@en ;
rdfs:label "Named parameter expression function"@en ;
rdfs:comment "The base class of node expression functions that take named parameters."@en ;
rdfs:subClassOf sh:NodeExpression ;
rdfs:subClassOf sh:NodeExpressionFunction ;
rdfs:subClassOf sh:Parameterizable ;
rdfs:isDefinedBy sh: .

sh:keyParameter
a rdf:Property ;
rdfs:label "key parameter"@en ;
rdfs:comment "Set to true for the parameter of a named parameter expression function that uniquely identifies it."@en ;
rdfs:domain sh:Parameter ;
rdfs:range xsd:boolean ;
rdfs:isDefinedBy sh: .

sh:ListParameterExpressionFunction
a rdfs:Class ;
rdfs:label "List parameter expression function"@en ;
rdfs:comment "The base class of node expression functions that take a list of parameters."@en ;
rdfs:subClassOf sh:NodeExpressionFunction ;
rdfs:isDefinedBy sh: .

sh:NodeExpression
a rdfs:Class ;
rdfs:label "Node expression"@en ;
rdfs:comment "The base class of node expression (instances)."@en ;
rdfs:subClassOf rdfs:Resource ;
rdfs:isDefinedBy sh: .

sh:NamedParameterExpression
a rdfs:Class ;
rdfs:label "Named parameter expression"@en ;
rdfs:comment "The base class of node expressions (instances) that take named parameters."@en ;
rdfs:subClassOf sh:NodeExpression ;
rdfs:isDefinedBy sh: .

sh:ListParameterExpression
a rdfs:Class ;
rdfs:label "List parameter expression"@en ;
rdfs:comment "The base class of node expression functions that take a list of parameters."@en ;
rdfs:comment "The base class of node expressions (instances) that take a list of parameters."@en ;
rdfs:subClassOf sh:NodeExpression ;
rdfs:isDefinedBy sh: .

Expand Down Expand Up @@ -1505,7 +1507,7 @@ sh:SPARQLConstraint
# SPARQL-based Node Expressions -----------------------------------------------

sh:SelectExpression
a rdfs:Class ;
a sh:NamedParameterExpressionFunction ;
rdfs:label "Select expression"@en ;
rdfs:comment "The class of node expressions based on SPARQL SELECT queries."@en ;
rdfs:subClassOf sh:NamedParameterExpression ;
Expand All @@ -1532,7 +1534,7 @@ sh:SelectExpression-prefixes
rdfs:isDefinedBy sh: .

sh:SPARQLExprExpression
a rdfs:Class ;
a sh:NamedParameterExpressionFunction ;
rdfs:label "SPARQL expr expression"@en ;
rdfs:comment "The class of node expressions based on SPARQL expressions (sh:sparqlExpr)."@en ;
rdfs:subClassOf sh:NamedParameterExpression ;
Expand Down Expand Up @@ -1567,6 +1569,88 @@ sh:sparqlExpr
rdfs:isDefinedBy sh: .


# SPARQL-based Result Annotations ---------------------------------------------

sh:resultAnnotation
a rdf:Property ;
rdfs:label "result annotation"@en ;
rdfs:comment "Links a SPARQL validator with zero or more sh:ResultAnnotation instances, defining how to derive additional result properties based on the variables of the SELECT query."@en ;
rdfs:domain sh:SPARQLSelectValidator ;
rdfs:range sh:ResultAnnotation ;
rdfs:isDefinedBy sh: .

sh:ResultAnnotation
a rdfs:Class ;
rdfs:label "Result annotation"@en ;
rdfs:comment "A class of result annotations, which define the rules to derive the values of a given annotation property as extra values for a validation result."@en ;
rdfs:subClassOf rdfs:Resource ;
rdfs:isDefinedBy sh: .

sh:annotationProperty
a rdf:Property ;
rdfs:label "annotation property"@en ;
rdfs:comment "The annotation property that shall be set."@en ;
rdfs:domain sh:ResultAnnotation ;
rdfs:range rdf:Property ;
rdfs:isDefinedBy sh: .

sh:annotationValue
a rdf:Property ;
rdfs:label "annotation value"@en ;
rdfs:comment "The (default) values of the annotation property."@en ;
rdfs:domain sh:ResultAnnotation ;
rdfs:isDefinedBy sh: .

sh:annotationVarName
a rdf:Property ;
rdfs:label "annotation variable name"@en ;
rdfs:comment "The name of the SPARQL variable from the SELECT clause that shall be used for the values."@en ;
rdfs:domain sh:ResultAnnotation ;
rdfs:range xsd:string ;
rdfs:isDefinedBy sh: .


# Constraints based on Node Expressions ---------------------------------------

sh:ExpressionConstraintComponent
a sh:ConstraintComponent ;
rdfs:label "Expression constraint component"@en ;
rdfs:comment "A constraint component that can be used to verify that a given node expression produces true for all value nodes."@en ;
sh:parameter sh:ExpressionConstraintComponent-expression ;
rdfs:isDefinedBy sh: .

sh:ExpressionConstraintComponent-expression
a sh:Parameter ;
sh:path sh:expression ;
rdfs:isDefinedBy sh: .

sh:expression
a rdf:Property ;
rdfs:label "expression"@en ;
rdfs:comment "The node expression that must return true for the value nodes."@en ;
rdfs:isDefinedBy sh: .


sh:NodeByExpressionConstraintComponent
a sh:ConstraintComponent ;
rdfs:label "Node by expression constraint component"@en ;
rdfs:comment "A constraint component that can be used to verify that all value nodes conform to the node shape(s) produced by the given node expression."@en ;
sh:parameter sh:NodeByExpressionConstraintComponent-nodeByExpression ;
rdfs:isDefinedBy sh: .

sh:NodeByExpressionConstraintComponent-nodeByExpression
a sh:Parameter ;
sh:path sh:nodeByExpression ;
rdfs:isDefinedBy sh: .

sh:nodeByExpression
a rdf:Property ;
rdfs:label "node by expression"@en ;
rdfs:comment "Links a shape to node expressions, indicating the node shape(s) that all value nodes must conform to."@en ;
# rdfs:range sh:NodeShape ; (node expression)
rdfs:isDefinedBy sh: .


# Non-validating constraint properties ----------------------------------------

sh:defaultValue
Expand Down Expand Up @@ -1616,7 +1700,7 @@ sh:PropertyGroup


# -----------------------------------------------------------------------------
# SHACL ADVANCED FEATURES -----------------------------------------------------
# SHACL ADVANCED FEATURES (will likely be marked deprecated with 1.2)
# -----------------------------------------------------------------------------


Expand Down Expand Up @@ -1690,47 +1774,6 @@ sh:SPARQLFunction
rdfs:subClassOf sh:SPARQLSelectExecutable ;
rdfs:isDefinedBy sh: .


# Result Annotations ----------------------------------------------------------

sh:resultAnnotation
a rdf:Property ;
rdfs:label "result annotation"@en ;
rdfs:comment "Links a SPARQL validator with zero or more sh:ResultAnnotation instances, defining how to derive additional result properties based on the variables of the SELECT query."@en ;
rdfs:domain sh:SPARQLSelectValidator ;
rdfs:range sh:ResultAnnotation ;
rdfs:isDefinedBy sh: .

sh:ResultAnnotation
a rdfs:Class ;
rdfs:label "Result annotation"@en ;
rdfs:comment "A class of result annotations, which define the rules to derive the values of a given annotation property as extra values for a validation result."@en ;
rdfs:subClassOf rdfs:Resource ;
rdfs:isDefinedBy sh: .

sh:annotationProperty
a rdf:Property ;
rdfs:label "annotation property"@en ;
rdfs:comment "The annotation property that shall be set."@en ;
rdfs:domain sh:ResultAnnotation ;
rdfs:range rdf:Property ;
rdfs:isDefinedBy sh: .

sh:annotationValue
a rdf:Property ;
rdfs:label "annotation value"@en ;
rdfs:comment "The (default) values of the annotation property."@en ;
rdfs:domain sh:ResultAnnotation ;
rdfs:isDefinedBy sh: .

sh:annotationVarName
a rdf:Property ;
rdfs:label "annotation variable name"@en ;
rdfs:comment "The name of the SPARQL variable from the SELECT clause that shall be used for the values."@en ;
rdfs:domain sh:ResultAnnotation ;
rdfs:range xsd:string ;
rdfs:isDefinedBy sh: .


# Node Expressions ------------------------------------------------------------

Expand All @@ -1750,27 +1793,6 @@ sh:union
rdfs:comment "Deprecated with SHACL 1.2: replaced by shnex:union."@en .


# Expression Constraints ------------------------------------------------------

sh:ExpressionConstraintComponent
a sh:ConstraintComponent ;
rdfs:label "Expression constraint component"@en ;
rdfs:comment "A constraint component that can be used to verify that a given node expression produces true for all value nodes."@en ;
sh:parameter sh:ExpressionConstraintComponent-expression ;
rdfs:isDefinedBy sh: .

sh:ExpressionConstraintComponent-expression
a sh:Parameter ;
sh:path sh:expression ;
rdfs:isDefinedBy sh: .

sh:expression
a rdf:Property ;
rdfs:label "expression"@en ;
rdfs:comment "The node expression that must return true for the value nodes."@en ;
rdfs:isDefinedBy sh: .


# Rules -----------------------------------------------------------------------

sh:Rule
Expand Down
Loading