Ontology Version: 2.2.0

cacontology-undercover:SafetyProtocolShape leaf node


URI

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

Label

Safety Protocol Shape

Description

Validation shape for safety protocol instances.

Implementation

@prefix cacontology-undercover: <https://cacontology.projectvic.org/undercover#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@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-undercover:SafetyProtocolShape a sh:NodeShape ;
    rdfs:label "Safety Protocol Shape"@en ;
    rdfs:comment "Validation shape for safety protocol instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:in ( "emergency_extraction" "panic_signal" "check_in_schedule" "backup_team" "medical_standby" "communication_protocol" ) ;
            sh:maxCount 1 ;
            sh:message "Safety protocol must specify protocol type from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-undercover:protocolType ],
        [ sh:datatype xsd:string ;
            sh:in ( "officer_request" "missed_check_in" "threat_detected" "operation_compromise" "medical_emergency" "automatic_trigger" ) ;
            sh:maxCount 1 ;
            sh:message "Safety protocol must specify activation trigger from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-undercover:activationTrigger ],
        [ sh:datatype xsd:decimal ;
            sh:maxCount 1 ;
            sh:maxInclusive 60.0 ;
            sh:message "Safety protocol response time must be between 1 and 60 minutes."@en ;
            sh:minCount 1 ;
            sh:minInclusive 1.0 ;
            sh:path cacontology-undercover:responseTime ] ;
    sh:targetClass cacontology-undercover:SafetyProtocol .