Ontology Version: 2.2.0

cacontology-sentencing:SentencingGuidelinesShape leaf node


URI

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

Label

Sentencing Guidelines Shape

Description

Validation shape for sentencing guidelines 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: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-sentencing: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-sentencing: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-sentencing: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-sentencing:adjustmentPoints ] ;
    sh:targetClass cacontology-sentencing:SentencingGuidelines .