Ontology Version: 3.1.0

cacontology-impact:RecoveryProcessShape leaf node


URI

https://cacontology.projectvic.org/victim-impact#RecoveryProcessShape

Label

Recovery Process Shape

Description

Validation shape for recovery process instances.

Targets (1)

Property Constraints (4)

Focus nodes of this shape (cacontology-impact:RecoveryProcess) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-impact:recoveryMilestones
sh:message Recovery milestones must be between 0 and 20.
0 1 xsd:nonNegativeInteger
sh:minInclusive 0
sh:maxInclusive 20
cacontology-impact:recoveryProgress
sh:message Recovery process must specify recovery progress from the allowed list.
1 1 xsd:string
sh:in declining, stable, slow_progress, steady_progress, rapid_progress, complete_recovery
cacontology-impact:recoveryStage Current stage of recovery (initial, progress, maintenance, relapse).
sh:message Recovery process must specify recovery stage from the allowed list.
1 1 xsd:string
sh:in crisis, stabilization, processing, integration, growth, maintenance, relapse_prevention
cacontology-impact:timeInRecovery
sh:message Time in recovery must be between 0 and 10 years.
0 1 xsd:decimal
sh:minInclusive 0.0
sh:maxInclusive 10.0

Implementation

@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 .