https://cacontology.projectvic.org/sentencing#RestitutionValidationShape
Validates restitution order consistency.
@prefix cacontology-sentencing: <https://cacontology.projectvic.org/sentencing#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-sentencing:RestitutionValidationShape a sh:NodeShape ;
rdfs:label "Restitution Validation Shape"@en ;
rdfs:comment "Validates restitution order consistency."@en ;
sh:sparql [ sh:message "Restitution amount should be reasonable for victim count."@en ;
sh:select """
SELECT $this
WHERE {
$this cacontology-sentencing:restitutionAmount ?amount ;
cacontology-sentencing:victimCount ?victims .
FILTER (?amount > (?victims * 100000))
}
""" ] ;
sh:targetClass cacontology-sentencing:RestitutionOrder .