Ontology Version: 3.0.0

cacontology-legal-outcomes:RestitutionValidationShape leaf node


URI

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

Label

Restitution Validation Shape

Description

Validates restitution order consistency.

Implementation

@prefix cacontology-legal-outcomes: <https://cacontology.projectvic.org/legal-outcomes#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-legal-outcomes: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-legal-outcomes:restitutionAmount ?amount ;
                      cacontology-legal-outcomes:victimCount ?victims .
                FILTER (?amount > (?victims * 100000))
            }
        """ ] ;
    sh:targetClass cacontology-legal-outcomes:RestitutionOrder .