Ontology Version: 3.0.0

cacontology-legal-outcomes:SentencingCrossReferenceShape leaf node


URI

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

Label

Sentencing Cross Reference Shape

Description

Validates cross-references between sentencing and related entities.

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:SentencingCrossReferenceShape a sh:NodeShape ;
    rdfs:label "Sentencing Cross Reference Shape"@en ;
    rdfs:comment "Validates cross-references between sentencing and related entities."@en ;
    sh:sparql [ sh:message "Sentencing outcome must result from at least one legal charge."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this a cacontology-legal-outcomes:SentencingOutcome .
                FILTER NOT EXISTS {
                    $this cacontology-legal-outcomes:resultsFromCharge ?charge .
                }
            }
        """ ] ;
    sh:targetClass cacontology-legal-outcomes:SentencingOutcome .