https://cacontology.projectvic.org/undercover#PlanApprovalValidationShape
Validates operation plan approval requirements.
@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 .