https://cacontology.projectvic.org/physical-evidence/shapes#EvidenceLifecycleTimingShape
Validates temporal sequence consistency in evidence lifecycle.
@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#> .
cacontology-physical-shapes:EvidenceLifecycleTimingShape a sh:NodeShape ;
rdfs:label "Evidence Lifecycle Timing Shape"@en ;
rdfs:comment "Validates temporal sequence consistency in evidence lifecycle."@en ;
sh:sparql [ sh:message "Evidence seizure date should be before analysis date when both are specified."@en ;
sh:select """
SELECT $this
WHERE {
$this cacontology-physical:seizureDate ?seizureDate ;
cacontology-physical:seizedDuring ?search .
?analyst cacontology-physical:analyzedBy ?this ;
cacontology-physical:hasRoleBeginPoint ?analysisDate .
FILTER (?seizureDate > ?analysisDate)
}
""" ] ;
sh:targetClass cacontology-physical1:PhysicalEvidence .