Ontology Version: 2.2.0

cacontology-training:TrainingDeliveryValidationShape leaf node


URI

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

Label

Training Delivery Validation Shape

Description

Validates that training programs have delivery mechanisms.

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:TrainingDeliveryValidationShape a sh:NodeShape ;
    rdfs:label "Training Delivery Validation Shape"@en ;
    rdfs:comment "Validates that training programs have delivery mechanisms."@en ;
    sh:sparql [ sh:message "International training should have assigned trainers."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this a cacontology-training:InternationalTraining .
                FILTER NOT EXISTS {
                    $this cacontology-training:deliveredBy ?trainer .
                    ?trainer a cacontology-training:InternationalTrainer .
                }
            }
        """ ] ;
    sh:targetClass cacontology-training:InternationalTraining .