Ontology Version: 3.1.0

cacontology-street:VictimStreetResponseShape leaf node


URI

https://cacontology.projectvic.org/street#VictimStreetResponseShape

Label

Victim Street Response Shape

Description

Validation shape for victim street response instances.

Targets (1)

Property Constraints (1)

Focus nodes of this shape (cacontology-street:VictimStreetResponse) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-street:responseType Type of victim response (acceptance, rejection, resistance, compliance).
sh:message Response type must be acceptance, rejection, resistance, or compliance.
0 1 xsd:string
sh:in acceptance, rejection, resistance, compliance

Implementation

@prefix cacontology-street: <https://cacontology.projectvic.org/street#> .
@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-street:VictimStreetResponseShape a sh:NodeShape ;
    rdfs:label "Victim Street Response Shape"@en ;
    rdfs:comment "Validation shape for victim street response instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:in ( "acceptance" "rejection" "resistance" "compliance" ) ;
            sh:maxCount 1 ;
            sh:message "Response type must be acceptance, rejection, resistance, or compliance."@en ;
            sh:minCount 0 ;
            sh:path cacontology-street:responseType ] ;
    sh:targetClass cacontology-street:VictimStreetResponse .