https://cacontology.projectvic.org/training#CertificationValidationShape
Validates that certifications have certifying bodies.
@prefix cacontology-training: <https://cacontology.projectvic.org/training#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-training:CertificationValidationShape a sh:NodeShape ;
rdfs:label "Certification Validation Shape"@en ;
rdfs:comment "Validates that certifications have certifying bodies."@en ;
sh:sparql [ sh:message "Professional certification should have certifying body."@en ;
sh:select """
SELECT $this
WHERE {
$this a cacontology-training:ProfessionalCertification .
FILTER NOT EXISTS {
$this cacontology-training:certifiedBy ?body .
?body a cacontology-training:CertificationBody .
}
}
""" ] ;
sh:targetClass cacontology-training:ProfessionalCertification .