https://cacontology.projectvic.org/detection#DetectionPhaseSequenceShape
Validates proper sequencing of detection phases.
Instances of cac-core:Phase can have the following properties:
@prefix cac-core: <https://cacontology.projectvic.org/core#> .
@prefix cacontology-detection: <https://cacontology.projectvic.org/detection#> .
@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-detection:DetectionPhaseSequenceShape a sh:NodeShape ;
rdfs:label "Detection Phase Sequence Shape"@en ;
rdfs:comment "Validates proper sequencing of detection phases."@en ;
sh:sparql [ sh:message "Detection phases must follow logical workflow sequence"@en ;
sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/detection#"^^xsd:anyURI ;
sh:prefix "cacontology-detection" ] ] ;
sh:select """
PREFIX cacontology-detection: <https://cacontology.projectvic.org/detection#>
SELECT ?this
WHERE {
?this a cacontology-detection:ManualReviewPhase ;
cacontology-detection:hasPhaseBeginPoint ?manualStart .
?initialPhase a cacontology-detection:InitialDetectionPhase ;
cacontology-detection:hasPhaseEndPoint ?initialEnd .
FILTER (?manualStart < ?initialEnd)
}
""" ] ;
sh:targetClass cac-core:Phase .