https://cacontology.projectvic.org/prevention#EducationalResourceShape
Validation shape for educational resource instances.
Focus nodes of this shape (cacontology-prevention:EducationalResource) can have the following properties:
| PROPERTY | DESCRIPTION | MIN | MAX | VALUE TYPE | OTHER CONSTRAINTS |
|---|---|---|---|---|---|
| cacontology-prevention:languageAvailability | Languages in which resource is available. sh:message Language availability should be 2-50 characters (up to 20 languages). |
0 | 20 | xsd:string |
sh:minLength
2
sh:maxLength
50
|
| cacontology-prevention:targetAudience | Target audience for educational resource. sh:message Target audience must be from the allowed list. |
0 | 1 | xsd:string |
sh:in
children, parents, educators, healthcare_providers, community_members, professionals, general_public
|
uco-core:description |
sh:message Educational resource description should be 10-1000 characters when specified. |
0 | 1 | xsd:string |
sh:minLength
10
sh:maxLength
1000
|
uco-core:name |
sh:message Educational resource must have a name (5-200 characters). |
1 | 1 | xsd:string |
sh:minLength
5
sh:maxLength
200
|
@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:EducationalResourceShape a sh:NodeShape ;
rdfs:label "Educational Resource Shape"@en ;
rdfs:comment "Validation shape for educational resource instances."@en ;
sh:property [ sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:maxLength 200 ;
sh:message "Educational resource must have a name (5-200 characters)."@en ;
sh:minCount 1 ;
sh:minLength 5 ;
sh:path uco-core:name ],
[ sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:maxLength 1000 ;
sh:message "Educational resource description should be 10-1000 characters when specified."@en ;
sh:minCount 0 ;
sh:minLength 10 ;
sh:path uco-core:description ],
[ sh:datatype xsd:string ;
sh:maxCount 20 ;
sh:maxLength 50 ;
sh:message "Language availability should be 2-50 characters (up to 20 languages)."@en ;
sh:minCount 0 ;
sh:minLength 2 ;
sh:path cacontology-prevention:languageAvailability ],
[ sh:datatype xsd:string ;
sh:in ( "children" "parents" "educators" "healthcare_providers" "community_members" "professionals" "general_public" ) ;
sh:maxCount 1 ;
sh:message "Target audience must be from the allowed list."@en ;
sh:minCount 0 ;
sh:path cacontology-prevention:targetAudience ] ;
sh:targetClass cacontology-prevention:EducationalResource .