Ontology Version: 3.1.0

cacontology-prevention:StudentEducationShape leaf node


URI

https://cacontology.projectvic.org/prevention#StudentEducationShape

Label

Student Education Shape

Description

Validation shape for student education instances.

Targets (1)

Property Constraints (1)

Focus nodes of this shape (cacontology-prevention:StudentEducation) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-prevention:ageGroup Target age group for safety education.
sh:message Student education must specify appropriate age group.
1 1 xsd:string
sh:in elementary, middle_school, high_school

Implementation

@prefix cacontology-prevention: <https://cacontology.projectvic.org/prevention#> .
@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-prevention:StudentEducationShape a sh:NodeShape ;
    rdfs:label "Student Education Shape"@en ;
    rdfs:comment "Validation shape for student education instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:in ( "elementary" "middle_school" "high_school" ) ;
            sh:maxCount 1 ;
            sh:message "Student education must specify appropriate age group."@en ;
            sh:minCount 1 ;
            sh:path cacontology-prevention:ageGroup ] ;
    sh:targetClass cacontology-prevention:StudentEducation .