Ontology Version: 2.2.0

cacontology-specialized:SeasonalTimingValidationShape leaf node


URI

https://cacontology.projectvic.org/specialized-units#SeasonalTimingValidationShape

Label

Seasonal Timing Validation Shape

Description

Validates seasonal operation timing consistency.

Implementation

@prefix cacontology-specialized: <https://cacontology.projectvic.org/specialized-units#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-specialized:SeasonalTimingValidationShape a sh:NodeShape ;
    rdfs:label "Seasonal Timing Validation Shape"@en ;
    rdfs:comment "Validates seasonal operation timing consistency."@en ;
    sh:sparql [ sh:message "Seasonal operations should have consistent season and month specifications."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-specialized:operationSeason "spring_break" ;
                      cacontology-specialized:operationMonths ?months .
                FILTER (!REGEX(?months, "March|April|May", "i"))
            }
        """ ] ;
    sh:targetClass cacontology-specialized:SeasonalOperationsUnit .