Ontology Version: 2.2.0

cacontology-impact:VictimImpactAssessmentShape leaf node


URI

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

Label

Victim Impact Assessment Shape

Description

Validation shape for victim impact assessment instances.

Shape Properties

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

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-impact:VictimImpactAssessment
cacontology-impact:assessmentDate 1 1 xsd:dateTime
0 1 xsd:decimal
cacontology-impact:assessmentType 1 1 xsd:string
1 1 xsd:string
cacontology-impact:severityLevel 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:VictimImpactAssessmentShape a sh:NodeShape ;
    rdfs:label "Victim Impact Assessment Shape"@en ;
    rdfs:comment "Validation shape for victim impact assessment instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:in ( "initial" "comprehensive" "follow_up" "specialized" "court_ordered" "therapeutic" "forensic" ) ;
            sh:maxCount 1 ;
            sh:message "Victim impact assessment must specify assessment type from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-impact:assessmentType ],
        [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "Victim impact assessment must specify assessment date."@en ;
            sh:minCount 1 ;
            sh:path cacontology-impact:assessmentDate ],
        [ sh:datatype xsd:string ;
            sh:in ( "licensed_psychologist" "licensed_social_worker" "psychiatrist" "trauma_specialist" "forensic_interviewer" "victim_advocate" "clinical_therapist" ) ;
            sh:maxCount 1 ;
            sh:message "Victim impact assessment must specify assessor credentials from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-impact:assessorCredentials ],
        [ sh:datatype xsd:decimal ;
            sh:maxCount 1 ;
            sh:maxInclusive 8.0 ;
            sh:message "Assessment duration must be between 0.5 and 8 hours."@en ;
            sh:minCount 0 ;
            sh:minInclusive 0.5 ;
            sh:path cacontology-impact:assessmentDuration ],
        [ sh:datatype xsd:string ;
            sh:in ( "minimal" "mild" "moderate" "severe" "extreme" "catastrophic" ) ;
            sh:maxCount 1 ;
            sh:message "Victim impact assessment must specify severity level from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-impact:severityLevel ] ;
    sh:targetClass cacontology-impact:VictimImpactAssessment .