Ontology Version: 2.2.0

cacontology-undercover:PlanApprovalValidationShape leaf node


URI

https://cacontology.projectvic.org/undercover#PlanApprovalValidationShape

Label

Plan Approval Validation Shape

Description

Validates operation plan approval requirements.

Implementation

@prefix cacontology-undercover: <https://cacontology.projectvic.org/undercover#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-undercover:PlanApprovalValidationShape a sh:NodeShape ;
    rdfs:label "Plan Approval Validation Shape"@en ;
    rdfs:comment "Validates operation plan approval requirements."@en ;
    sh:sparql [ sh:message "High-risk operations require higher approval levels."@en ;
            sh:select """
            SELECT $this
            WHERE {
                ?operation cacontology-undercover:followsPlan $this ;
                          cacontology-undercover:riskLevel ?risk .
                $this cacontology-undercover:approvalLevel ?approval .
                FILTER (?risk IN ("high", "extreme", "critical") && ?approval IN ("supervisor", "unit_commander"))
            }
        """ ] ;
    sh:targetClass cacontology-undercover:OperationPlan .