Ontology Version: 3.1.0

cacontology-legal-outcomes:FelonyChargeShape leaf node


URI

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

Label

Felony Charge Shape

Description

Validation shape for felony charge instances.

Targets (1)

  • cacontology-legal-outcomes:FelonyCharge sh:targetClass

Property Constraints (2)

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

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-legal-outcomes:felonyLevel
sh:message Felony charge must specify felony level from the allowed list.
1 1 xsd:string
sh:in first_degree, second_degree, third_degree, fourth_degree, unclassified, capital
cacontology-legal-outcomes:violentCrime
sh:message Felony charge must specify if it is a violent crime.
1 1 xsd:boolean

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: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-legal-outcomes: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-legal-outcomes:violentCrime ] ;
    sh:targetClass cacontology-legal-outcomes:FelonyCharge .