https://cacontology.projectvic.org/legal-outcomes#FelonyChargeShape
Validation shape for felony charge instances.
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 |
@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 .