https://cacontology.projectvic.org/training#CertificationValidationShape
Validates that certifications have certifying bodies.
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: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 .