Ontology Version: 3.1.0

cacontology-registry:ConvictingOffenseShape leaf node


URI

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

Label

Convicting Offense Shape

Description

Validation shape for convicting offense instances.

Targets (1)

Property Constraints (3)

Focus nodes of this shape (cacontology-registry:ConvictingOffense) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-registry:convictionDate Date of conviction for sexual offense.
sh:message Offense must specify conviction date.
1 1 xsd:date
cacontology-registry:offenseDescription Description of the sexual offense.
sh:message Offense must have a description (10-1000 characters).
1 1 xsd:string
sh:minLength 10
sh:maxLength 1000
cacontology-registry:sentenceLength Length of sentence imposed for offense.
sh:message Sentence length should be 1-100 characters when specified.
0 1 xsd:string
sh:minLength 1
sh:maxLength 100

Implementation

@prefix cacontology-registry: <https://cacontology.projectvic.org/sex-offender-registry#> .
@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:ConvictingOffenseShape a sh:NodeShape ;
    rdfs:label "Convicting Offense Shape"@en ;
    rdfs:comment "Validation shape for convicting offense instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:maxLength 1000 ;
            sh:message "Offense must have a description (10-1000 characters)."@en ;
            sh:minCount 1 ;
            sh:minLength 10 ;
            sh:path cacontology-registry:offenseDescription ],
        [ sh:datatype xsd:date ;
            sh:maxCount 1 ;
            sh:message "Offense must specify conviction date."@en ;
            sh:minCount 1 ;
            sh:path cacontology-registry:convictionDate ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:maxLength 100 ;
            sh:message "Sentence length should be 1-100 characters when specified."@en ;
            sh:minCount 0 ;
            sh:minLength 1 ;
            sh:path cacontology-registry:sentenceLength ] ;
    sh:targetClass cacontology-registry:ConvictingOffense .