Ontology Version: 3.1.0

cacontology-legal-outcomes:SentencingOutcomeShape leaf node


URI

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

Label

Sentencing Outcome Shape

Description

Validation shape for sentencing outcome instances.

Targets (1)

  • cacontology-legal-outcomes:SentencingOutcome sh:targetClass

Property Constraints (5)

Focus nodes of this shape (cacontology-legal-outcomes:SentencingOutcome) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-legal-outcomes:appealStatus
sh:message Appeal status must be from the allowed list.
0 1 xsd:string
sh:in no_appeal, appeal_pending, appeal_denied, appeal_granted, sentence_modified, conviction_overturned
cacontology-legal-outcomes:jurisdiction
sh:message Sentencing outcome must specify jurisdiction from the allowed list.
1 1 xsd:string
sh:in federal, state, local, military, tribal, international
cacontology-legal-outcomes:sentenceDate
sh:message Sentencing outcome must specify sentence date.
1 1 xsd:dateTime
cacontology-legal-outcomes:sentenceDuration Duration of criminal sentence.
sh:message Sentence duration must be between 0 and 50 years.
0 1 xsd:decimal
sh:minInclusive 0.0
sh:maxInclusive 50.0
cacontology-legal-outcomes:sentenceType
sh:message Sentencing outcome must specify sentence type from the allowed list.
1 1 xsd:string
sh:in imprisonment, probation, suspended_sentence, community_service, fine, restitution, treatment_order, mixed_sentence

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: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-legal-outcomes: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-legal-outcomes:sentenceDuration ],
        [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "Sentencing outcome must specify sentence date."@en ;
            sh:minCount 1 ;
            sh:path cacontology-legal-outcomes: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-legal-outcomes: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-legal-outcomes:appealStatus ] ;
    sh:targetClass cacontology-legal-outcomes:SentencingOutcome .