https://cacontology.projectvic.org/physical/shapes#ForensicRoleTemporalShape
Validates gUFO temporal constraints for forensic roles.
Focus nodes of this shape (cac-core:Role) can have the following properties:
| PROPERTY | DESCRIPTION | MIN | MAX | VALUE TYPE | OTHER CONSTRAINTS |
|---|---|---|---|---|---|
| cacontology-physical:hasRoleBeginPoint | Temporal begin point for forensic roles (gUFO temporal property). sh:message Forensic role may have begin point timestamp. |
0 | 1 | xsd:dateTimeStamp | |
| cacontology-physical:hasRoleEndPoint | Temporal end point for forensic roles (gUFO temporal property). sh:message Forensic role may have end point timestamp. |
0 | 1 | xsd:dateTimeStamp |
@prefix cac-core: <https://cacontology.projectvic.org/core#> .
@prefix cacontology-physical: <https://cacontology.projectvic.org/physical#> .
@prefix cacontology-physical-shapes: <https://cacontology.projectvic.org/physical/shapes#> .
@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-physical-shapes:ForensicRoleTemporalShape a sh:NodeShape ;
rdfs:label "Forensic Role Temporal Shape"@en ;
rdfs:comment "Validates gUFO temporal constraints for forensic roles."@en ;
sh:property [ sh:datatype xsd:dateTimeStamp ;
sh:maxCount 1 ;
sh:message "Forensic role may have begin point timestamp."@en ;
sh:path cacontology-physical:hasRoleBeginPoint ],
[ sh:datatype xsd:dateTimeStamp ;
sh:maxCount 1 ;
sh:message "Forensic role may have end point timestamp."@en ;
sh:path cacontology-physical:hasRoleEndPoint ] ;
sh:sparql [ sh:message "Role end must be after begin when both are specified."@en ;
sh:select """
SELECT $this
WHERE {
$this cacontology-physical:hasRoleBeginPoint ?start ;
cacontology-physical:hasRoleEndPoint ?end .
FILTER (?end <= ?start)
}
""" ] ;
sh:targetClass cac-core:Role .