Ontology Version: 2.2.0

cacontology-sentencing:SentencingOutcomeShape leaf node


URI

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

Label

Sentencing Outcome Shape

Description

Validation shape for sentencing outcome 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:SentencingOutcomeShape a sh:NodeShape ;
    rdfs:label "Sentencing Outcome Shape"@en ;
    rdfs:comment "Validation shape for sentencing outcome instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:in ( "imprisonment" "probation" "suspended_sentence" "community_service" "fine" "restitution" "treatment_order" "mixed_sentence" ) ;
            sh:maxCount 1 ;
            sh:message "Sentencing outcome must specify sentence type from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-sentencing:sentenceType ],
        [ sh:datatype xsd:decimal ;
            sh:maxCount 1 ;
            sh:maxInclusive 50.0 ;
            sh:message "Sentence duration must be between 0 and 50 years."@en ;
            sh:minCount 0 ;
            sh:minInclusive 0.0 ;
            sh:path cacontology-sentencing:sentenceDuration ],
        [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "Sentencing outcome must specify sentence date."@en ;
            sh:minCount 1 ;
            sh:path cacontology-sentencing:sentenceDate ],
        [ sh:datatype xsd:string ;
            sh:in ( "federal" "state" "local" "military" "tribal" "international" ) ;
            sh:maxCount 1 ;
            sh:message "Sentencing outcome must specify jurisdiction from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-sentencing:jurisdiction ],
        [ sh:datatype xsd:string ;
            sh:in ( "no_appeal" "appeal_pending" "appeal_denied" "appeal_granted" "sentence_modified" "conviction_overturned" ) ;
            sh:maxCount 1 ;
            sh:message "Appeal status must be from the allowed list."@en ;
            sh:minCount 0 ;
            sh:path cacontology-sentencing:appealStatus ] ;
    sh:targetClass cacontology-sentencing:SentencingOutcome .