Ontology Version: 2.2.0

cacontology-sentencing:FelonyChargeShape leaf node


URI

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

Label

Felony Charge Shape

Description

Validation shape for felony charge 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:FelonyChargeShape a sh:NodeShape ;
    rdfs:label "Felony Charge Shape"@en ;
    rdfs:comment "Validation shape for felony charge instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:in ( "first_degree" "second_degree" "third_degree" "fourth_degree" "unclassified" "capital" ) ;
            sh:maxCount 1 ;
            sh:message "Felony charge must specify felony level from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-sentencing:felonyLevel ],
        [ sh:datatype xsd:boolean ;
            sh:maxCount 1 ;
            sh:message "Felony charge must specify if it is a violent crime."@en ;
            sh:minCount 1 ;
            sh:path cacontology-sentencing:violentCrime ] ;
    sh:targetClass cacontology-sentencing:FelonyCharge .