Ontology Version: 3.1.0

cacontology-legal-outcomes:ConvictionRecordShape leaf node


URI

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

Label

Conviction Record Shape

Description

Validation shape for conviction record instances.

Targets (1)

Property Constraints (4)

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

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-legal-outcomes:chargeCount The total number of criminal charges associated with a ConvictionRecord or LegalProceeding (aggregate total, not the ordinal of a single count). Constrained on ConvictionRecord by ConvictionRecordShape (minInclusive 1, maxInclusive 100). Distinct from countNumber, which is the ordinal count number within a charging instrument. NOTE: some existing example graphs historically used chargeCount on individual CriminalCharge nodes as an ordinal; that usage SHOULD migrate to countNumber in a follow-up (this declaration does not rewrite those examples).
sh:message Conviction record must have between 1 and 100 charges.
1 1 xsd:nonNegativeInteger
sh:minInclusive 1
sh:maxInclusive 100
cacontology-legal-outcomes:convictionDate Date and time when the conviction was entered (verdict, acceptance of plea, or equivalent disposition). Required by ConvictionRecordShape as xsd:dateTime.
sh:message Conviction record must specify conviction date.
1 1 xsd:dateTime
cacontology-legal-outcomes:convictionType How the conviction was obtained. Allowed values (ConvictionRecordShape): jury_verdict, bench_trial, plea_agreement, default_judgment, summary_conviction.
sh:message Conviction record must specify conviction type from the allowed list.
1 1 xsd:string
sh:in jury_verdict, bench_trial, plea_agreement, default_judgment, summary_conviction
cacontology-legal-outcomes:priorConvictions Number of prior criminal convictions associated with the subject of this ConvictionRecord (aggregate count for history context; 0–50 per ConvictionRecordShape). Use non-graphic, structured counts only.
sh:message Prior convictions must be between 0 and 50.
0 1 xsd:nonNegativeInteger
sh:minInclusive 0
sh:maxInclusive 50

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:ConvictionRecordShape a sh:NodeShape ;
    rdfs:label "Conviction Record Shape"@en ;
    rdfs:comment "Validation shape for conviction record instances."@en ;
    sh:property [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "Conviction record must specify conviction date."@en ;
            sh:minCount 1 ;
            sh:path cacontology-legal-outcomes:convictionDate ],
        [ sh:datatype xsd:string ;
            sh:in ( "jury_verdict" "bench_trial" "plea_agreement" "default_judgment" "summary_conviction" ) ;
            sh:maxCount 1 ;
            sh:message "Conviction record must specify conviction type from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-legal-outcomes:convictionType ],
        [ sh:datatype xsd:nonNegativeInteger ;
            sh:maxCount 1 ;
            sh:maxInclusive 100 ;
            sh:message "Conviction record must have between 1 and 100 charges."@en ;
            sh:minCount 1 ;
            sh:minInclusive 1 ;
            sh:path cacontology-legal-outcomes:chargeCount ],
        [ sh:datatype xsd:nonNegativeInteger ;
            sh:maxCount 1 ;
            sh:maxInclusive 50 ;
            sh:message "Prior convictions must be between 0 and 50."@en ;
            sh:minCount 0 ;
            sh:minInclusive 0 ;
            sh:path cacontology-legal-outcomes:priorConvictions ] ;
    sh:targetClass cacontology-legal-outcomes:ConvictionRecord .