https://cacontology.projectvic.org/sex-offender-registry#VictimInformationShape
Validation shape for victim information instances.
Focus nodes of this shape (cacontology-registry:VictimInformation) can have the following properties:
| PROPERTY | DESCRIPTION | MIN | MAX | VALUE TYPE | OTHER CONSTRAINTS |
|---|---|---|---|---|---|
| cacontology-registry:victimAge | Age of victim at time of offense. sh:message Victim age must be between 0 and 25 when specified. |
0 | 1 | xsd:integer |
sh:minInclusive
0
sh:maxInclusive
25
|
| cacontology-registry:victimCount | Number of victims involved in offense. sh:message Victim count must be at least 1 when specified. |
0 | 1 | xsd:integer |
sh:minInclusive
1
|
| cacontology-registry:victimRelationship | Relationship between offender and victim (stranger, known, family). sh:message Victim relationship must be from the allowed list. |
0 | 1 | xsd:string |
sh:in
stranger, acquaintance, family_member, authority_figure, romantic_partner, unknown
|
@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 .