Ontology Version: 2.2.0

cacontology-sentencing:ProbationSentenceShape leaf node


URI

https://cacontology.projectvic.org/sentencing#ProbationSentenceShape

Label

Probation Sentence Shape

Description

Validation shape for probation sentence instances.

Shape Properties

Instances of cacontology-sentencing:ProbationSentence can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-sentencing:CriminalSentence
cacontology-sentencing:concurrentWith 0 cacontology-sentencing:CriminalSentence
cacontology-sentencing:sentenceConcurrency 0 1 xsd:string

Implementation

@prefix cacontology-sentencing: <https://cacontology.projectvic.org/sentencing#> .
@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-sentencing:ProbationSentenceShape a sh:NodeShape ;
    rdfs:label "Probation Sentence Shape"@en ;
    rdfs:comment "Validation shape for probation sentence instances."@en ;
    sh:property [ sh:datatype xsd:nonNegativeInteger ;
            sh:maxCount 1 ;
            sh:maxInclusive 50 ;
            sh:message "Probation sentence must have between 1 and 50 conditions."@en ;
            sh:minCount 1 ;
            sh:minInclusive 1 ;
            sh:path cacontology-sentencing:probationConditions ],
        [ sh:datatype xsd:string ;
            sh:in ( "unsupervised" "administrative" "standard" "intensive" "electronic_monitoring" "residential" ) ;
            sh:maxCount 1 ;
            sh:message "Probation sentence must specify supervision level from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-sentencing:supervisionLevel ],
        [ sh:datatype xsd:string ;
            sh:in ( "monthly" "bi_weekly" "weekly" "daily" "as_directed" "none" ) ;
            sh:maxCount 1 ;
            sh:message "Probation sentence must specify reporting frequency from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-sentencing:reportingFrequency ] ;
    sh:targetClass cacontology-sentencing:ProbationSentence .