https://cacontology.projectvic.org/prevention#PreventionProgramDeliveryValidationShape
Validates that prevention programs have delivery specialists.
@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:PreventionProgramDeliveryValidationShape a sh:NodeShape ;
rdfs:label "Prevention Program Delivery Validation Shape"@en ;
rdfs:comment "Validates that prevention programs have delivery specialists."@en ;
sh:sparql [ sh:message "Prevention program should have assigned specialists."@en ;
sh:select """
SELECT $this
WHERE {
$this a cacontology-prevention:PreventionProgram .
FILTER NOT EXISTS {
$this cacontology-prevention:deliveredBy ?specialist .
?specialist a cacontology-prevention:PreventionSpecialist .
}
}
""" ] ;
sh:targetClass cacontology-prevention:PreventionProgram .