https://cacontology.projectvic.org/stranger-abduction#RecoveryTimingShape
Validates victim recovery timing consistency.
@prefix cacontology-stranger: <https://cacontology.projectvic.org/stranger-abduction#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-stranger:RecoveryTimingShape a sh:NodeShape ;
rdfs:label "Recovery Timing Shape"@en ;
rdfs:comment "Validates victim recovery timing consistency."@en ;
sh:sparql [ sh:message "Recovery time should be after abduction time."@en ;
sh:select """
SELECT $this
WHERE {
?abduction cacontology-stranger:resultsInRecovery $this ;
cacontology-stranger:abductionTime ?abductionTime .
$this cacontology-stranger:recoveryTime ?recoveryTime .
FILTER (?recoveryTime <= ?abductionTime)
}
""" ] ;
sh:targetClass cacontology-stranger:VictimRecovery .