https://cacontology.projectvic.org/prevention#PreventionProgramShape
Validation shape for prevention program instances.
Focus nodes of this shape (cacontology-prevention:PreventionProgram) can have the following properties:
| PROPERTY | DESCRIPTION | MIN | MAX | VALUE TYPE | OTHER CONSTRAINTS |
|---|---|---|---|---|---|
| cacontology-prevention:participantCount | Number of participants in prevention program. sh:message Participant count must be between 1 and 1000000 when specified. |
0 | 1 | xsd:nonNegativeInteger |
sh:minInclusive
1
sh:maxInclusive
1000000
|
| cacontology-prevention:programDuration | Duration of prevention program in months. sh:message Program duration must be between 0.5 and 120 months. |
0 | 1 | xsd:decimal |
sh:minInclusive
0.5
sh:maxInclusive
120.0
|
uco-core:endTime |
sh:message Prevention program may specify end time. |
0 | 1 | xsd:dateTime | |
uco-core:name |
sh:message Prevention program must have a name (5-200 characters). |
1 | 1 | xsd:string |
sh:minLength
5
sh:maxLength
200
|
uco-core:startTime |
sh:message Prevention program must specify start time. |
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 .