Ontology Version: 2.2.0

cacontology-impact:PsychologicalHarmShape leaf node


URI

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

Label

Psychological Harm Shape

Description

Validation shape for psychological harm instances.

Shape Properties

Instances of cacontology-impact:PsychologicalHarm can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-impact:PsychologicalHarm
cacontology-impact:duration 0 1 xsd:decimal
1 1 xsd:string
0 1 xsd:string
cacontology-impact:severity 1 1 xsd:string

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:PsychologicalHarmShape a sh:NodeShape ;
    rdfs:label "Psychological Harm Shape"@en ;
    rdfs:comment "Validation shape for psychological harm instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:in ( "trauma" "anxiety" "depression" "ptsd" "complex_trauma" "behavioral_changes" "emotional_dysregulation" "attachment_disruption" ) ;
            sh:maxCount 1 ;
            sh:message "Psychological harm must specify harm type from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-impact:harmType ],
        [ sh:datatype xsd:string ;
            sh:in ( "mild" "moderate" "severe" "extreme" "debilitating" "life_threatening" ) ;
            sh:maxCount 1 ;
            sh:message "Psychological harm must specify severity from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-impact:severity ],
        [ sh:datatype xsd:string ;
            sh:in ( "immediate" "delayed" "gradual" "episodic" "chronic" "progressive" ) ;
            sh:maxCount 1 ;
            sh:message "Onset timing must be from the allowed list."@en ;
            sh:minCount 0 ;
            sh:path cacontology-impact:onsetTiming ],
        [ sh:datatype xsd:decimal ;
            sh:maxCount 1 ;
            sh:maxInclusive 20.0 ;
            sh:message "Harm duration must be between 0 and 20 years."@en ;
            sh:minCount 0 ;
            sh:minInclusive 0.0 ;
            sh:path cacontology-impact:duration ] ;
    sh:targetClass cacontology-impact:PsychologicalHarm .