https://cacontology.projectvic.org/victim-impact#RecoveryProcessShape
Validation shape for recovery process instances.
Instances of cacontology-impact:RecoveryProcess can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| cacontology-impact:RecoveryProcess | ||||
| 0 | 1 |
xsd:nonNegativeInteger
|
||
| 1 | 1 |
xsd:string
|
||
| cacontology-impact:recoveryStage | 1 | 1 |
xsd:string
|
|
| 0 | 1 |
xsd:decimal
|
||
@prefix cacontology-impact: <https://cacontology.projectvic.org/victim-impact#> .
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-impact:RecoveryProcessShape a sh:NodeShape ;
rdfs:label "Recovery Process Shape"@en ;
rdfs:comment "Validation shape for recovery process instances."@en ;
sh:property [ sh:datatype xsd:string ;
sh:in ( "crisis" "stabilization" "processing" "integration" "growth" "maintenance" "relapse_prevention" ) ;
sh:maxCount 1 ;
sh:message "Recovery process must specify recovery stage from the allowed list."@en ;
sh:minCount 1 ;
sh:path cacontology-impact:recoveryStage ],
[ sh:datatype xsd:string ;
sh:in ( "declining" "stable" "slow_progress" "steady_progress" "rapid_progress" "complete_recovery" ) ;
sh:maxCount 1 ;
sh:message "Recovery process must specify recovery progress from the allowed list."@en ;
sh:minCount 1 ;
sh:path cacontology-impact:recoveryProgress ],
[ sh:datatype xsd:decimal ;
sh:maxCount 1 ;
sh:maxInclusive 10.0 ;
sh:message "Time in recovery must be between 0 and 10 years."@en ;
sh:minCount 0 ;
sh:minInclusive 0.0 ;
sh:path cacontology-impact:timeInRecovery ],
[ sh:datatype xsd:nonNegativeInteger ;
sh:maxCount 1 ;
sh:maxInclusive 20 ;
sh:message "Recovery milestones must be between 0 and 20."@en ;
sh:minCount 0 ;
sh:minInclusive 0 ;
sh:path cacontology-impact:recoveryMilestones ] ;
sh:targetClass cacontology-impact:RecoveryProcess .