https://cacontology.projectvic.org/legal-outcomes#ProbationSentenceShape
Validation shape for probation sentence instances.
Focus nodes of this shape (cacontology-legal-outcomes:ProbationSentence) can have the following properties:
| PROPERTY | DESCRIPTION | MIN | MAX | VALUE TYPE | OTHER CONSTRAINTS |
|---|---|---|---|---|---|
cacontology-legal-outcomes:probationConditions |
sh:message Probation sentence must have between 1 and 50 conditions. |
1 | 1 | xsd:nonNegativeInteger |
sh:minInclusive
1
sh:maxInclusive
50
|
cacontology-legal-outcomes:reportingFrequency |
sh:message Probation sentence must specify reporting frequency from the allowed list. |
1 | 1 | xsd:string |
sh:in
monthly, bi_weekly, weekly, daily, as_directed, none
|
cacontology-legal-outcomes:supervisionLevel |
sh:message Probation sentence must specify supervision level from the allowed list. |
1 | 1 | xsd:string |
sh:in
unsupervised, administrative, standard, intensive, electronic_monitoring, residential
|
@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:ProbationSentenceShape a sh:NodeShape ;
rdfs:label "Probation Sentence Shape"@en ;
rdfs:comment "Validation shape for probation sentence instances."@en ;
sh:property [ sh:datatype xsd:nonNegativeInteger ;
sh:maxCount 1 ;
sh:maxInclusive 50 ;
sh:message "Probation sentence must have between 1 and 50 conditions."@en ;
sh:minCount 1 ;
sh:minInclusive 1 ;
sh:path cacontology-legal-outcomes:probationConditions ],
[ sh:datatype xsd:string ;
sh:in ( "unsupervised" "administrative" "standard" "intensive" "electronic_monitoring" "residential" ) ;
sh:maxCount 1 ;
sh:message "Probation sentence must specify supervision level from the allowed list."@en ;
sh:minCount 1 ;
sh:path cacontology-legal-outcomes:supervisionLevel ],
[ sh:datatype xsd:string ;
sh:in ( "monthly" "bi_weekly" "weekly" "daily" "as_directed" "none" ) ;
sh:maxCount 1 ;
sh:message "Probation sentence must specify reporting frequency from the allowed list."@en ;
sh:minCount 1 ;
sh:path cacontology-legal-outcomes:reportingFrequency ] ;
sh:targetClass cacontology-legal-outcomes:ProbationSentence .