https://cacontology.projectvic.org/physical/shapes#EvidencePhaseTemporalShape
Validates gUFO temporal constraints for evidence phases.
Instances of cac-core:Phase can have the following properties:
@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:EvidencePhaseTemporalShape a sh:NodeShape ;
rdfs:label "Evidence Phase Temporal Shape"@en ;
rdfs:comment "Validates gUFO temporal constraints for evidence phases."@en ;
sh:property [ sh:datatype xsd:dateTimeStamp ;
sh:maxCount 1 ;
sh:message "Evidence phase may have begin point timestamp."@en ;
sh:path cacontology-physical:hasPhaseBeginPoint ],
[ sh:datatype xsd:dateTimeStamp ;
sh:maxCount 1 ;
sh:message "Evidence phase may have end point timestamp."@en ;
sh:path cacontology-physical:hasPhaseEndPoint ] ;
sh:sparql [ sh:message "Phase end must be after begin when both are specified."@en ;
sh:select """
SELECT $this
WHERE {
$this cacontology-physical:hasPhaseBeginPoint ?start ;
cacontology-physical:hasPhaseEndPoint ?end .
FILTER (?end <= ?start)
}
""" ] ;
sh:targetClass cac-core:Phase .