Ontology Version: 3.1.0

cacontology-undercover:OperationTerminationShape leaf node


URI

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

Label

Operation Termination Shape

Description

Validation shape for operation termination instances.

Targets (1)

  • cacontology-undercover:OperationTermination sh:targetClass

Property Constraints (5)

Focus nodes of this shape (cacontology-undercover:OperationTermination) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-undercover:evidenceSecured
sh:message Operation termination must specify if evidence is secured.
1 1 xsd:boolean
cacontology-undercover:identityRetirement
sh:message Operation termination must specify if identity is retired.
1 1 xsd:boolean
cacontology-undercover:terminationDate
sh:message Operation termination must specify termination date.
1 1 xsd:dateTime
cacontology-undercover:terminationReason
sh:message Operation termination must specify termination reason from the allowed list.
1 1 xsd:string
sh:in objective_achieved, evidence_sufficient, operation_compromised, safety_concern, legal_issue, resource_constraint, time_limit
cacontology-undercover:terminationType
sh:message Operation termination must specify termination type from the allowed list.
1 1 xsd:string
sh:in planned, emergency, gradual, immediate, phased, suspended

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:OperationTerminationShape a sh:NodeShape ;
    rdfs:label "Operation Termination Shape"@en ;
    rdfs:comment "Validation shape for operation termination instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:in ( "objective_achieved" "evidence_sufficient" "operation_compromised" "safety_concern" "legal_issue" "resource_constraint" "time_limit" ) ;
            sh:maxCount 1 ;
            sh:message "Operation termination must specify termination reason from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-undercover:terminationReason ],
        [ sh:datatype xsd:string ;
            sh:in ( "planned" "emergency" "gradual" "immediate" "phased" "suspended" ) ;
            sh:maxCount 1 ;
            sh:message "Operation termination must specify termination type from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-undercover:terminationType ],
        [ sh:datatype xsd:boolean ;
            sh:maxCount 1 ;
            sh:message "Operation termination must specify if evidence is secured."@en ;
            sh:minCount 1 ;
            sh:path cacontology-undercover:evidenceSecured ],
        [ sh:datatype xsd:boolean ;
            sh:maxCount 1 ;
            sh:message "Operation termination must specify if identity is retired."@en ;
            sh:minCount 1 ;
            sh:path cacontology-undercover:identityRetirement ],
        [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "Operation termination must specify termination date."@en ;
            sh:minCount 1 ;
            sh:path cacontology-undercover:terminationDate ] ;
    sh:targetClass cacontology-undercover:OperationTermination .