Ontology Version: 3.1.0

cacontology-impact:ResilienceFactorShape leaf node


URI

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

Label

Resilience Factor Shape

Description

Validation shape for resilience factor instances.

Targets (1)

  • cacontology-impact:ResilienceFactor sh:targetClass

Property Constraints (3)

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

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-impact:factorStrength
sh:message Resilience factor must specify factor strength from the allowed list.
1 1 xsd:string
sh:in weak, moderate, strong, very_strong, exceptional
cacontology-impact:factorType
sh:message Resilience factor must specify factor type from the allowed list.
1 1 xsd:string
sh:in individual, family, social, community, cultural, spiritual, environmental, protective
cacontology-impact:protectiveValue
sh:message Protective value must be between 0.0 and 1.0.
0 1 xsd:decimal
sh:minInclusive 0.0
sh:maxInclusive 1.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:ResilienceFactorShape a sh:NodeShape ;
    rdfs:label "Resilience Factor Shape"@en ;
    rdfs:comment "Validation shape for resilience factor instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:in ( "individual" "family" "social" "community" "cultural" "spiritual" "environmental" "protective" ) ;
            sh:maxCount 1 ;
            sh:message "Resilience factor must specify factor type from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-impact:factorType ],
        [ sh:datatype xsd:string ;
            sh:in ( "weak" "moderate" "strong" "very_strong" "exceptional" ) ;
            sh:maxCount 1 ;
            sh:message "Resilience factor must specify factor strength from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-impact:factorStrength ],
        [ sh:datatype xsd:decimal ;
            sh:maxCount 1 ;
            sh:maxInclusive 1.0 ;
            sh:message "Protective value must be between 0.0 and 1.0."@en ;
            sh:minCount 0 ;
            sh:minInclusive 0.0 ;
            sh:path cacontology-impact:protectiveValue ] ;
    sh:targetClass cacontology-impact:ResilienceFactor .