Ontology Version: 2.2.0

cacontology-specialized:SeasonalOperationsUnitShape leaf node


URI

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

Label

Seasonal Operations Unit Shape

Description

Validation shape for seasonal operations unit instances.

Implementation

@prefix cacontology-specialized: <https://cacontology.projectvic.org/specialized-units#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-specialized:SeasonalOperationsUnitShape a sh:NodeShape ;
    rdfs:label "Seasonal Operations Unit Shape"@en ;
    rdfs:comment "Validation shape for seasonal operations unit instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:in ( "spring_break" "summer" "school_year_end" "winter_break" "back_to_school" ) ;
            sh:maxCount 1 ;
            sh:message "Operation season must be from the allowed list."@en ;
            sh:minCount 0 ;
            sh:path cacontology-specialized:operationSeason ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:message "Operation months must be in format 'Month-Month' (e.g., 'March-May')."@en ;
            sh:minCount 0 ;
            sh:path cacontology-specialized:operationMonths ;
            sh:pattern "^[A-Za-z]+-[A-Za-z]+$" ],
        [ sh:datatype xsd:decimal ;
            sh:maxCount 1 ;
            sh:maxInclusive 1.0 ;
            sh:message "Seasonal effectiveness must be between 0.0 and 1.0."@en ;
            sh:minCount 0 ;
            sh:minInclusive 0.0 ;
            sh:path cacontology-specialized:seasonalEffectiveness ] ;
    sh:targetClass cacontology-specialized:SeasonalOperationsUnit .