Ontology Version: 3.1.0

cacontology-legal-outcomes:RestitutionOrderShape leaf node


URI

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

Label

Restitution Order Shape

Description

Validation shape for restitution order instances.

Targets (1)

  • cacontology-legal-outcomes:RestitutionOrder sh:targetClass

Property Constraints (4)

Focus nodes of this shape (cacontology-legal-outcomes:RestitutionOrder) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-legal-outcomes:paymentSchedule
sh:message Restitution order must specify payment schedule from the allowed list.
1 1 xsd:string
sh:in lump_sum, monthly_payments, quarterly_payments, annual_payments, income_based, deferred
cacontology-legal-outcomes:paymentStatus
sh:message Payment status must be from the allowed list.
0 1 xsd:string
sh:in pending, current, delinquent, completed, defaulted, modified
cacontology-legal-outcomes:restitutionAmount
sh:message Restitution amount must be between $1 and $10,000,000.
1 1 xsd:decimal
sh:minInclusive 1.0
sh:maxInclusive 10000000.0
cacontology-legal-outcomes:victimCount
sh:message Restitution order must specify victim count between 1 and 1000.
1 1 xsd:nonNegativeInteger
sh:minInclusive 1
sh:maxInclusive 1000

Implementation

@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:RestitutionOrderShape a sh:NodeShape ;
    rdfs:label "Restitution Order Shape"@en ;
    rdfs:comment "Validation shape for restitution order instances."@en ;
    sh:property [ sh:datatype xsd:decimal ;
            sh:maxCount 1 ;
            sh:maxInclusive 10000000.0 ;
            sh:message "Restitution amount must be between $1 and $10,000,000."@en ;
            sh:minCount 1 ;
            sh:minInclusive 1.0 ;
            sh:path cacontology-legal-outcomes:restitutionAmount ],
        [ sh:datatype xsd:string ;
            sh:in ( "lump_sum" "monthly_payments" "quarterly_payments" "annual_payments" "income_based" "deferred" ) ;
            sh:maxCount 1 ;
            sh:message "Restitution order must specify payment schedule from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-legal-outcomes:paymentSchedule ],
        [ sh:datatype xsd:nonNegativeInteger ;
            sh:maxCount 1 ;
            sh:maxInclusive 1000 ;
            sh:message "Restitution order must specify victim count between 1 and 1000."@en ;
            sh:minCount 1 ;
            sh:minInclusive 1 ;
            sh:path cacontology-legal-outcomes:victimCount ],
        [ sh:datatype xsd:string ;
            sh:in ( "pending" "current" "delinquent" "completed" "defaulted" "modified" ) ;
            sh:maxCount 1 ;
            sh:message "Payment status must be from the allowed list."@en ;
            sh:minCount 0 ;
            sh:path cacontology-legal-outcomes:paymentStatus ] ;
    sh:targetClass cacontology-legal-outcomes:RestitutionOrder .