Ontology Version: 2.2.0

cacontology-training:CertificationValidationShape leaf node


URI

https://cacontology.projectvic.org/training#CertificationValidationShape

Label

Certification Validation Shape

Description

Validates that certifications have certifying bodies.

Shape Properties

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

Implementation

@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 .