https://cacontology.projectvic.org/multi-jurisdiction#RoleTemporalShape
Validates gUFO temporal constraints for coordination roles.
Focus nodes of this shape (cac-core:Role) can have the following properties:
| PROPERTY | DESCRIPTION | MIN | MAX | VALUE TYPE | OTHER CONSTRAINTS |
|---|---|---|---|---|---|
| cacontology-multi:hasRoleBeginPoint | Temporal begin point for coordination role. sh:message Coordination role may have begin point timestamp. |
0 | 1 | xsd:dateTimeStamp | |
| cacontology-multi:hasRoleEndPoint | Temporal end point for coordination role. sh:message Coordination role may have end point timestamp. |
0 | 1 | xsd:dateTimeStamp |
@prefix cac-core: <https://cacontology.projectvic.org/core#> .
@prefix cacontology-multi: <https://cacontology.projectvic.org/multi-jurisdiction#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-multi:RoleTemporalShape a sh:NodeShape ;
rdfs:label "Role Temporal Shape"@en ;
rdfs:comment "Validates gUFO temporal constraints for coordination roles."@en ;
sh:property [ sh:datatype xsd:dateTimeStamp ;
sh:maxCount 1 ;
sh:message "Coordination role may have begin point timestamp."@en ;
sh:path cacontology-multi:hasRoleBeginPoint ],
[ sh:datatype xsd:dateTimeStamp ;
sh:maxCount 1 ;
sh:message "Coordination role may have end point timestamp."@en ;
sh:path cacontology-multi:hasRoleEndPoint ] ;
sh:sparql [ sh:message "Role end must be after begin when both are specified."@en ;
sh:select """
SELECT $this
WHERE {
$this cacontology-multi:hasRoleBeginPoint ?start ;
cacontology-multi:hasRoleEndPoint ?end .
FILTER (?end <= ?start)
}
""" ] ;
sh:targetClass cac-core:Role .