Ontology Version: 2.2.0

cacontology-street:TemporalValidationShape leaf node


URI

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

Label

Temporal Validation Shape

Description

Validates temporal consistency in street contacts.

Shape Properties

Instances of cacontology-street:InitialStreetContact can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-street:InitialStreetContact
cacontology-street:approachMethod 0 1 xsd:string
cacontology-street:contactDuration 0 1 xsd:decimal
cacontology-street:initialContactLocation 0 1 xsd:string

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 .