Ontology Version: 3.1.0

cacontology-specialized:OfficerWellnessProgramShape leaf node


URI

https://cacontology.projectvic.org/specialized-units#OfficerWellnessProgramShape

Label

Officer Wellness Program Shape

Description

Validation shape for officer wellness program instances.

Property Constraints (2)

Focus nodes of this shape (cacontology-specialized:OfficerWellnessProgram) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
rdfs:label
sh:message Officer wellness program must have a label (5-100 characters).
1 1 xsd:string
sh:minLength 5
sh:maxLength 100
uco-core:description
sh:message Program description should be 10-1000 characters when provided.
0 1 xsd:string
sh:minLength 10
sh:maxLength 1000

Implementation

@prefix cacontology-specialized: <https://cacontology.projectvic.org/specialized-units#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix uco-core: <https://ontology.unifiedcyberontology.org/uco/core/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-specialized:OfficerWellnessProgramShape a sh:NodeShape ;
    rdfs:label "Officer Wellness Program Shape"@en ;
    rdfs:comment "Validation shape for officer wellness program instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:maxLength 100 ;
            sh:message "Officer wellness program must have a label (5-100 characters)."@en ;
            sh:minCount 1 ;
            sh:minLength 5 ;
            sh:path rdfs:label ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:maxLength 1000 ;
            sh:message "Program description should be 10-1000 characters when provided."@en ;
            sh:minCount 0 ;
            sh:minLength 10 ;
            sh:path uco-core:description ] ;
    sh:targetClass cacontology-specialized:OfficerWellnessProgram .