Ontology Version: 2.2.0

cacontology-prevention:CommunityOutreachCoordinationValidationShape leaf node


URI

https://cacontology.projectvic.org/prevention#CommunityOutreachCoordinationValidationShape

Label

Community Outreach Coordination Validation Shape

Description

Validates that community outreach has coordinators.

Shape Properties

Instances of cacontology-prevention:CommunityOutreach can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

Implementation

@prefix cacontology-prevention: <https://cacontology.projectvic.org/prevention#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-prevention:CommunityOutreachCoordinationValidationShape a sh:NodeShape ;
    rdfs:label "Community Outreach Coordination Validation Shape"@en ;
    rdfs:comment "Validates that community outreach has coordinators."@en ;
    sh:sparql [ sh:message "Community outreach should have assigned coordinators."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this a cacontology-prevention:CommunityOutreach .
                FILTER NOT EXISTS {
                    $this cacontology-prevention:coordinatedBy ?coordinator .
                    ?coordinator a cacontology-prevention:SafetyCoordinator .
                }
            }
        """ ] ;
    sh:targetClass cacontology-prevention:CommunityOutreach .