Ontology Version: 2.2.0

cacontology-registry:VictimInformationShape leaf node


URI

https://cacontology.projectvic.org/sex-offender-registry#VictimInformationShape

Label

Victim Information Shape

Description

Validation shape for victim information instances.

Shape Properties

Instances of cacontology-registry:VictimInformation can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-registry:VictimInformation
cacontology-registry:victimAge 0 1 xsd:integer
cacontology-registry:victimCount 0 1 xsd:integer
cacontology-registry:victimRelationship 0 1 xsd:string

Implementation

@prefix cacontology-registry: <https://cacontology.projectvic.org/sex-offender-registry#> .
@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-registry:VictimInformationShape a sh:NodeShape ;
    rdfs:label "Victim Information Shape"@en ;
    rdfs:comment "Validation shape for victim information instances."@en ;
    sh:property [ sh:datatype xsd:integer ;
            sh:maxCount 1 ;
            sh:maxInclusive 25 ;
            sh:message "Victim age must be between 0 and 25 when specified."@en ;
            sh:minCount 0 ;
            sh:minInclusive 0 ;
            sh:path cacontology-registry:victimAge ],
        [ sh:datatype xsd:integer ;
            sh:maxCount 1 ;
            sh:message "Victim count must be at least 1 when specified."@en ;
            sh:minCount 0 ;
            sh:minInclusive 1 ;
            sh:path cacontology-registry:victimCount ],
        [ sh:datatype xsd:string ;
            sh:in ( "stranger" "acquaintance" "family_member" "authority_figure" "romantic_partner" "unknown" ) ;
            sh:maxCount 1 ;
            sh:message "Victim relationship must be from the allowed list."@en ;
            sh:minCount 0 ;
            sh:path cacontology-registry:victimRelationship ] ;
    sh:targetClass cacontology-registry:VictimInformation .