Ontology Version: 2.2.0

cacontology-specialized:WellnessProgramCrossReferenceShape leaf node


URI

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

Label

Wellness Program Cross Reference Shape

Description

Validates cross-references for officer wellness programs.

Shape Properties

Instances of cacontology-specialized:OfficerWellnessProgram can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

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#> .
cacontology-specialized:WellnessProgramCrossReferenceShape a sh:NodeShape ;
    rdfs:label "Wellness Program Cross Reference Shape"@en ;
    rdfs:comment "Validates cross-references for officer wellness programs."@en ;
    sh:sparql [ sh:message "Officer wellness program should have associated wellness checks or support activities."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this a cacontology-specialized:OfficerWellnessProgram .
                FILTER NOT EXISTS {
                    { ?check a cacontology-specialized:WellnessCheck } UNION
                    { ?support a cacontology-specialized:MentalHealthSupport } UNION
                    { ?therapy a cacontology-specialized:TherapyDog }
                }
            }
        """ ] ;
    sh:targetClass cacontology-specialized:OfficerWellnessProgram .