Ontology Version: 2.2.0

cacontology-multi:SharingDateValidationShape leaf node


URI

https://cacontology.projectvic.org/multi-jurisdiction#SharingDateValidationShape

Label

Sharing Date Validation Shape

Description

Validates information sharing date consistency.

Shape Properties

Instances of cacontology-multi:InformationSharing can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

Implementation

@prefix cacontology-multi: <https://cacontology.projectvic.org/multi-jurisdiction#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-multi:SharingDateValidationShape a sh:NodeShape ;
    rdfs:label "Sharing Date Validation Shape"@en ;
    rdfs:comment "Validates information sharing date consistency."@en ;
    sh:sparql [ sh:message "Information sharing date should not be in the future."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-multi:sharingDate ?date .
                FILTER (?date > NOW())
            }
        """ ] ;
    sh:targetClass cacontology-multi:InformationSharing .