Ontology Version: 2.2.0

cacontology-sentencing:ImprisonmentSentenceShape leaf node


URI

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

Label

Imprisonment Sentence Shape

Description

Validation shape for imprisonment sentence instances.

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:ImprisonmentSentenceShape a sh:NodeShape ;
    rdfs:label "Imprisonment Sentence Shape"@en ;
    rdfs:comment "Validation shape for imprisonment sentence instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:in ( "federal_prison" "state_prison" "county_jail" "minimum_security" "medium_security" "maximum_security" "supermax" ) ;
            sh:maxCount 1 ;
            sh:message "Imprisonment sentence must specify facility type from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-sentencing:facilityType ],
        [ sh:datatype xsd:boolean ;
            sh:maxCount 1 ;
            sh:message "Imprisonment sentence must specify parole eligibility."@en ;
            sh:minCount 1 ;
            sh:path cacontology-sentencing:paroleEligibility ],
        [ sh:datatype xsd:decimal ;
            sh:maxCount 1 ;
            sh:maxInclusive 50.0 ;
            sh:message "Minimum time served must be between 0 and 50 years."@en ;
            sh:minCount 0 ;
            sh:minInclusive 0.0 ;
            sh:path cacontology-sentencing:minimumServed ] ;
    sh:targetClass cacontology-sentencing:ImprisonmentSentence .