https://cacontology.projectvic.org/training#CertificationStatusValidationShape
Validates certification status consistency.
Instances of cacontology-training:ProfessionalCertification can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| cacontology-training:ProfessionalCertification | ||||
| cacontology-training:certificationStatus | 1 | 1 |
xsd:string
|
|
| cacontology-training:certificationValidityPeriod | 0 | 1 |
xsd:decimal
|
|
| 1 | 1 |
xsd:string
|
||
@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 .