Ontology Version: 2.2.0

cacontology-production:ExtendedOperationValidationShape leaf node


URI

https://cacontology.projectvic.org/production#ExtendedOperationValidationShape

Label

Extended Operation Validation Shape

Description

Validates extended production operation consistency.

Implementation

@prefix cacontology-production: <https://cacontology.projectvic.org/production#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-production:ExtendedOperationValidationShape a sh:NodeShape ;
    rdfs:label "Extended Operation Validation Shape"@en ;
    rdfs:comment "Validates extended production operation consistency."@en ;
    sh:sparql [ sh:message "Extended operation duration should be consistent with total sessions."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-production:operationDuration ?duration ;
                      cacontology-production:totalSessions ?sessions .
                FILTER (?sessions > (?duration * 10))
            }
        """ ] ;
    sh:targetClass cacontology-production:ExtendedProductionOperation .