Ontology Version: 2.2.0

cacontology-undercover:CollectionDateValidationShape leaf node


URI

https://cacontology.projectvic.org/undercover#CollectionDateValidationShape

Label

Collection Date Validation Shape

Description

Validates evidence collection date consistency.

Shape Properties

Instances of cacontology-undercover:UndercoverEvidence can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

Implementation

@prefix cacontology-undercover: <https://cacontology.projectvic.org/undercover#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-undercover:CollectionDateValidationShape a sh:NodeShape ;
    rdfs:label "Collection Date Validation Shape"@en ;
    rdfs:comment "Validates evidence collection date consistency."@en ;
    sh:sparql [ sh:message "Evidence collection date should not be in the future."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-undercover:collectionDate ?date .
                FILTER (?date > NOW())
            }
        """ ] ;
    sh:targetClass cacontology-undercover:UndercoverEvidence .