Ontology Version: 3.1.0

cacontology-street:TemporalValidationShape leaf node


URI

https://cacontology.projectvic.org/street#TemporalValidationShape

Label

Temporal Validation Shape

Description

Validates temporal consistency in street contacts.

Targets (1)

Implementation

@prefix cacontology-street: <https://cacontology.projectvic.org/street#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-street:TemporalValidationShape a sh:NodeShape ;
    rdfs:label "Temporal Validation Shape"@en ;
    rdfs:comment "Validates temporal consistency in street contacts."@en ;
    sh:sparql [ sh:message "Contact duration should be reasonable (less than 24 hours)."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this a cacontology-street:InitialStreetContact ;
                      cacontology-street:contactDuration ?duration .
                FILTER (?duration >= 1440.0)
            }
        """ ] ;
    sh:targetClass cacontology-street:InitialStreetContact .