https://cacontology.projectvic.org/prevention#ChildSafetyEducationShape
Validation shape for child safety education instances.
Instances of cacontology-prevention:ChildSafetyEducation can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| cacontology-prevention:ChildSafetyEducation | ||||
| cacontology-prevention:ageGroup | 0 | 1 |
xsd:string
|
|
| 1 | 1 |
xsd:string
|
||
| 1 | 1 |
xsd:dateTime
|
||
@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 uco-core: <https://ontology.unifiedcyberontology.org/uco/core/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-prevention:ChildSafetyEducationShape a sh:NodeShape ;
rdfs:label "Child Safety Education Shape"@en ;
rdfs:comment "Validation shape for child safety education instances."@en ;
sh:property [ sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:maxLength 200 ;
sh:message "Child safety education must have a name (5-200 characters)."@en ;
sh:minCount 1 ;
sh:minLength 5 ;
sh:path uco-core:name ],
[ sh:datatype xsd:string ;
sh:in ( "preschool" "elementary" "middle_school" "high_school" "young_adult" "all_ages" ) ;
sh:maxCount 1 ;
sh:message "Age group must be from the allowed list."@en ;
sh:minCount 0 ;
sh:path cacontology-prevention:ageGroup ],
[ sh:datatype xsd:dateTime ;
sh:maxCount 1 ;
sh:message "Child safety education must specify start time."@en ;
sh:minCount 1 ;
sh:path uco-core:startTime ] ;
sh:targetClass cacontology-prevention:ChildSafetyEducation .