https://cacontology.projectvic.org/physical-evidence/shapes#EvidenceTemporalShape
Validates gUFO temporal constraints for physical evidence.
@prefix cacontology-physical-shapes: <https://cacontology.projectvic.org/physical-evidence/shapes#> .
@prefix cacontology-physical1: <https://cacontology.projectvic.org/physical-evidence#> .
@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:EvidenceTemporalShape a sh:NodeShape ;
rdfs:label "Evidence Temporal Shape"@en ;
rdfs:comment "Validates gUFO temporal constraints for physical evidence."@en ;
sh:property [ sh:datatype xsd:dateTimeStamp ;
sh:maxCount 1 ;
sh:message "Evidence may have begin point timestamp."@en ;
sh:path cacontology-physical1:hasEvidenceBeginPoint ],
[ sh:datatype xsd:dateTimeStamp ;
sh:maxCount 1 ;
sh:message "Evidence may have end point timestamp."@en ;
sh:path cacontology-physical1:hasEvidenceEndPoint ] ;
sh:sparql [ sh:message "Evidence end must be after begin when both are specified (gUFO temporal constraint)."@en ;
sh:select """
SELECT $this
WHERE {
$this cacontology-physical:hasEvidenceBeginPoint ?start ;
cacontology-physical:hasEvidenceEndPoint ?end .
FILTER (?end <= ?start)
}
""" ] ;
sh:targetClass cacontology-physical1:PhysicalEvidence .