https://cacontology.projectvic.org/prevention#ProgramDurationValidationShape
Validates program duration consistency.
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#> .
cacontology-prevention:ProgramDurationValidationShape a sh:NodeShape ;
rdfs:label "Program Duration Validation Shape"@en ;
rdfs:comment "Validates program duration consistency."@en ;
sh:sparql [ sh:message "Long-term prevention programs should have appropriate participant counts."@en ;
sh:select """
SELECT $this
WHERE {
$this cacontology-prevention:programDuration ?duration ;
cacontology-prevention:participantCount ?count .
FILTER (?duration > 24.0 && ?count < 10)
}
""" ] ;
sh:targetClass cacontology-prevention:PreventionProgram .