https://cacontology.projectvic.org/training#CertificationStatusValidationShape
Validates certification status consistency.
@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:CertificationStatusValidationShape a sh:NodeShape ;
rdfs:label "Certification Status Validation Shape"@en ;
rdfs:comment "Validates certification status consistency."@en ;
sh:sparql [ sh:message "Expired certifications should not have active status."@en ;
sh:select """
SELECT $this
WHERE {
$this cacontology-training:certificationStatus "active" ;
uco-core:endTime ?endTime .
FILTER (?endTime < NOW())
}
""" ] ;
sh:targetClass cacontology-training:ProfessionalCertification .