Ontology Version: 2.2.0

cacontology-taskforce:CertificationValidityShape leaf node


URI

https://cacontology.projectvic.org/taskforce#CertificationValidityShape

Label

Certification Validity Shape

Description

Validates certification date consistency.

Implementation

@prefix cacontology-taskforce: <https://cacontology.projectvic.org/taskforce#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-taskforce:CertificationValidityShape a sh:NodeShape ;
    rdfs:label "Certification Validity Shape"@en ;
    rdfs:comment "Validates certification date consistency."@en ;
    sh:sparql [ sh:message "Certification date must be before expiration date."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-taskforce:certificationDate ?cert ;
                      cacontology-taskforce:expirationDate ?exp .
                FILTER (?cert >= ?exp)
            }
        """ ] ;
    sh:targetClass cacontology-taskforce:Certification .