https://cacontology.projectvic.org/legal-outcomes#ImprisonmentSentenceShape
Validation shape for imprisonment sentence instances.
Focus nodes of this shape (cacontology-legal-outcomes:ImprisonmentSentence) can have the following properties:
| PROPERTY | DESCRIPTION | MIN | MAX | VALUE TYPE | OTHER CONSTRAINTS |
|---|---|---|---|---|---|
cacontology-legal-outcomes:facilityType |
sh:message Imprisonment sentence must specify facility type from the allowed list. |
1 | 1 | xsd:string |
sh:in
federal_prison, state_prison, county_jail, minimum_security, medium_security, maximum_security, supermax
|
cacontology-legal-outcomes:minimumServed |
sh:message Minimum time served must be between 0 and 50 years. |
0 | 1 | xsd:decimal |
sh:minInclusive
0.0
sh:maxInclusive
50.0
|
cacontology-legal-outcomes:paroleEligibility |
sh:message Imprisonment sentence must specify parole eligibility. |
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:ImprisonmentSentenceShape a sh:NodeShape ;
rdfs:label "Imprisonment Sentence Shape"@en ;
rdfs:comment "Validation shape for imprisonment sentence instances."@en ;
sh:property [ sh:datatype xsd:string ;
sh:in ( "federal_prison" "state_prison" "county_jail" "minimum_security" "medium_security" "maximum_security" "supermax" ) ;
sh:maxCount 1 ;
sh:message "Imprisonment sentence must specify facility type from the allowed list."@en ;
sh:minCount 1 ;
sh:path cacontology-legal-outcomes:facilityType ],
[ sh:datatype xsd:boolean ;
sh:maxCount 1 ;
sh:message "Imprisonment sentence must specify parole eligibility."@en ;
sh:minCount 1 ;
sh:path cacontology-legal-outcomes:paroleEligibility ],
[ sh:datatype xsd:decimal ;
sh:maxCount 1 ;
sh:maxInclusive 50.0 ;
sh:message "Minimum time served must be between 0 and 50 years."@en ;
sh:minCount 0 ;
sh:minInclusive 0.0 ;
sh:path cacontology-legal-outcomes:minimumServed ] ;
sh:targetClass cacontology-legal-outcomes:ImprisonmentSentence .