Ontology Version: 3.1.0

cacontology-tactical:PostOperationReportShape leaf node


URI

https://cacontology.projectvic.org/tactical#PostOperationReportShape

Label

Post Operation Report Shape

Description

Validation shape for post operation report instances.

Targets (1)

  • cacontology-tactical:PostOperationReport sh:targetClass

Property Constraints (4)

Focus nodes of this shape (cacontology-tactical:PostOperationReport) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-tactical:objectivesAchieved
sh:message Post operation report must specify if objectives were achieved.
1 1 xsd:boolean
cacontology-tactical:recommendationsCount
sh:message Number of recommendations must be between 0 and 50.
0 1 xsd:nonNegativeInteger
sh:minInclusive 0
sh:maxInclusive 50
cacontology-tactical:reportDate
sh:message Post operation report must specify report date.
1 1 xsd:dateTime
cacontology-tactical:reportType
sh:message Post operation report must specify report type from the allowed list.
1 1 xsd:string
sh:in after_action_report, incident_report, use_of_force_report, injury_report, equipment_report, lessons_learned

Implementation

@prefix cacontology-tactical: <https://cacontology.projectvic.org/tactical#> .
@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-tactical:PostOperationReportShape a sh:NodeShape ;
    rdfs:label "Post Operation Report Shape"@en ;
    rdfs:comment "Validation shape for post operation report instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:in ( "after_action_report" "incident_report" "use_of_force_report" "injury_report" "equipment_report" "lessons_learned" ) ;
            sh:maxCount 1 ;
            sh:message "Post operation report must specify report type from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-tactical:reportType ],
        [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "Post operation report must specify report date."@en ;
            sh:minCount 1 ;
            sh:path cacontology-tactical:reportDate ],
        [ sh:datatype xsd:boolean ;
            sh:maxCount 1 ;
            sh:message "Post operation report must specify if objectives were achieved."@en ;
            sh:minCount 1 ;
            sh:path cacontology-tactical:objectivesAchieved ],
        [ sh:datatype xsd:nonNegativeInteger ;
            sh:maxCount 1 ;
            sh:maxInclusive 50 ;
            sh:message "Number of recommendations must be between 0 and 50."@en ;
            sh:minCount 0 ;
            sh:minInclusive 0 ;
            sh:path cacontology-tactical:recommendationsCount ] ;
    sh:targetClass cacontology-tactical:PostOperationReport .