Ontology Version: 3.1.0

cacontology-legal-outcomes:SentencingGuidelinesShape leaf node


URI

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

Label

Sentencing Guidelines Shape

Description

Validation shape for sentencing guidelines instances.

Targets (1)

  • cacontology-legal-outcomes:SentencingGuidelines sh:targetClass

Property Constraints (4)

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

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-legal-outcomes:adjustmentPoints
sh:message Adjustment points must be between -10 and 20.
0 1 xsd:integer
sh:minInclusive -10
sh:maxInclusive 20
cacontology-legal-outcomes:baseOffenseLevel
sh:message Base offense level must be between 1 and 43.
1 1 xsd:nonNegativeInteger
sh:minInclusive 1
sh:maxInclusive 43
cacontology-legal-outcomes:criminalHistoryCategory
sh:message Criminal history category must be from I to VI.
1 1 xsd:string
sh:in I, II, III, IV, V, VI
cacontology-legal-outcomes:guidelineSystem
sh:message Sentencing guidelines must specify guideline system from the allowed list.
1 1 xsd:string
sh:in federal_guidelines, state_guidelines, advisory_guidelines, mandatory_minimums, judicial_discretion

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:SentencingGuidelinesShape a sh:NodeShape ;
    rdfs:label "Sentencing Guidelines Shape"@en ;
    rdfs:comment "Validation shape for sentencing guidelines instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:in ( "federal_guidelines" "state_guidelines" "advisory_guidelines" "mandatory_minimums" "judicial_discretion" ) ;
            sh:maxCount 1 ;
            sh:message "Sentencing guidelines must specify guideline system from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-legal-outcomes:guidelineSystem ],
        [ sh:datatype xsd:nonNegativeInteger ;
            sh:maxCount 1 ;
            sh:maxInclusive 43 ;
            sh:message "Base offense level must be between 1 and 43."@en ;
            sh:minCount 1 ;
            sh:minInclusive 1 ;
            sh:path cacontology-legal-outcomes:baseOffenseLevel ],
        [ sh:datatype xsd:string ;
            sh:in ( "I" "II" "III" "IV" "V" "VI" ) ;
            sh:maxCount 1 ;
            sh:message "Criminal history category must be from I to VI."@en ;
            sh:minCount 1 ;
            sh:path cacontology-legal-outcomes:criminalHistoryCategory ],
        [ sh:datatype xsd:integer ;
            sh:maxCount 1 ;
            sh:maxInclusive 20 ;
            sh:message "Adjustment points must be between -10 and 20."@en ;
            sh:minCount 0 ;
            sh:minInclusive -10 ;
            sh:path cacontology-legal-outcomes:adjustmentPoints ] ;
    sh:targetClass cacontology-legal-outcomes:SentencingGuidelines .