Ontology Version: 2.2.0

cacontology-training:TemporalValidationShape leaf node


URI

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

Label

Temporal Validation Shape

Description

Validates temporal consistency for training programs.

Shape Properties

Instances of cacontology-training:InternationalTraining can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-training:InternationalTraining
cacontology-training:completionRate 0 1 xsd:decimal
cacontology-training:participationRate 0 1 xsd:decimal
cacontology-training:trainingDuration 0 1 xsd:decimal
cacontology-training:trainingLanguage 0 10 xsd:string
cacontology-training:trainingReachCount 0 1 xsd:nonNegativeInteger
0 1 xsd:dateTime
1 1 xsd:string
1 1 xsd:dateTime

Implementation

@prefix cacontology-training: <https://cacontology.projectvic.org/training#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-training:TemporalValidationShape a sh:NodeShape ;
    rdfs:label "Temporal Validation Shape"@en ;
    rdfs:comment "Validates temporal consistency for training programs."@en ;
    sh:sparql [ sh:message "Start time must be before end time when both are specified."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this uco-core:startTime ?start ;
                      uco-core:endTime ?end .
                FILTER (?start >= ?end)
            }
        """ ] ;
    sh:targetClass cacontology-training:InternationalTraining .