Ontology Version: 2.2.0

cacontology-detection:DetectionPhaseSequenceShape leaf node


URI

https://cacontology.projectvic.org/detection#DetectionPhaseSequenceShape

Label

Detection Phase Sequence Shape

Description

Validates proper sequencing of detection phases.

Target Classes (1)

Implementation

@prefix cacontology-detection: <https://cacontology.projectvic.org/detection#> .
@prefix gufo: <http://purl.org/nemo/gufo#> .
@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 gufo:Phase .