https://cacontology.projectvic.org/prevention#PreventionProgramShape
Validation shape for prevention program instances.
Instances of cacontology-prevention:PreventionProgram can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| cacontology-prevention:PreventionProgram | ||||
| cacontology-prevention:participantCount | 0 | 1 |
xsd:nonNegativeInteger
|
|
| cacontology-prevention:programDuration | 0 | 1 |
xsd:decimal
|
|
| 0 | 1 |
xsd:dateTime
|
||
| 1 | 1 |
xsd:string
|
||
| 1 | 1 |
xsd:dateTime
|
||
@prefix cacontology-prevention: <https://cacontology.projectvic.org/prevention#> .
@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:PreventionProgramShape a sh:NodeShape ;
rdfs:label "Prevention Program Shape"@en ;
rdfs:comment "Validation shape for prevention program instances."@en ;
sh:property [ sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:maxLength 200 ;
sh:message "Prevention program must have a name (5-200 characters)."@en ;
sh:minCount 1 ;
sh:minLength 5 ;
sh:path uco-core:name ],
[ sh:datatype xsd:dateTime ;
sh:maxCount 1 ;
sh:message "Prevention program must specify start time."@en ;
sh:minCount 1 ;
sh:path uco-core:startTime ],
[ sh:datatype xsd:dateTime ;
sh:maxCount 1 ;
sh:message "Prevention program may specify end time."@en ;
sh:minCount 0 ;
sh:path uco-core:endTime ],
[ sh:datatype xsd:decimal ;
sh:maxCount 1 ;
sh:maxInclusive 120.0 ;
sh:message "Program duration must be between 0.5 and 120 months."@en ;
sh:minCount 0 ;
sh:minInclusive 0.5 ;
sh:path cacontology-prevention:programDuration ],
[ sh:datatype xsd:nonNegativeInteger ;
sh:maxCount 1 ;
sh:maxInclusive 1000000 ;
sh:message "Participant count must be between 1 and 1000000 when specified."@en ;
sh:minCount 0 ;
sh:minInclusive 1 ;
sh:path cacontology-prevention:participantCount ] ;
sh:targetClass cacontology-prevention:PreventionProgram .