Ontology Version: 3.0.0

cacontology-legal-outcomes:ImprisonmentSentenceShape leaf node


URI

https://cacontology.projectvic.org/legal-outcomes#ImprisonmentSentenceShape

Label

Imprisonment Sentence Shape

Description

Validation shape for imprisonment sentence instances.

Implementation

@prefix cacontology-legal-outcomes: <https://cacontology.projectvic.org/legal-outcomes#> .
@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-legal-outcomes: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-legal-outcomes:facilityType ],
        [ sh:datatype xsd:boolean ;
            sh:maxCount 1 ;
            sh:message "Imprisonment sentence must specify parole eligibility."@en ;
            sh:minCount 1 ;
            sh:path cacontology-legal-outcomes: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-legal-outcomes:minimumServed ] ;
    sh:targetClass cacontology-legal-outcomes:ImprisonmentSentence .