https://cacontology.projectvic.org/training#CurriculumModuleValidationShape
Validates that curricula include training modules.
Instances of cacontology-training:TrainingCurriculum can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|---|
@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:CurriculumModuleValidationShape a sh:NodeShape ;
rdfs:label "Curriculum Module Validation Shape"@en ;
rdfs:comment "Validates that curricula include training modules."@en ;
sh:sparql [ sh:message "Training curriculum should include training modules."@en ;
sh:select """
SELECT $this
WHERE {
$this a cacontology-training:TrainingCurriculum .
FILTER NOT EXISTS {
?module cacontology-training:includedInCurriculum $this .
?module a cacontology-training:TrainingModule .
}
}
""" ] ;
sh:targetClass cacontology-training:TrainingCurriculum .