Ontology Version: 2.11.0

cacontology-registry:RecidivismPostRegistrationBusinessRule leaf node


URI

https://cacontology.projectvic.org/sex-offender-registry#RecidivismPostRegistrationBusinessRule

Label

Recidivism Post-Registration Business Rule

Description

Business rule: a recidivist sex offender SHOULD have at least one postRegistrationEvent linked to post-registration abuse/CSAM incidents.

Implementation

@prefix cacontology-registry: <https://cacontology.projectvic.org/sex-offender-registry#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-registry:RecidivismPostRegistrationBusinessRule a sh:NodeShape ;
    rdfs:label "Recidivism Post-Registration Business Rule"@en ;
    rdfs:comment "Business rule: a recidivist sex offender SHOULD have at least one postRegistrationEvent linked to post-registration abuse/CSAM incidents."@en ;
    sh:sparql [ sh:message "Recidivist sex offenders should have at least one postRegistrationEvent representing post-registration abuse or CSAM incidents."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this a cacontology-registry:RecidivistSexOffender .
                FILTER NOT EXISTS {
                    $this cacontology-registry:postRegistrationEvent ?event .
                }
            }
        """ ] ;
    sh:targetClass cacontology-registry:RecidivistSexOffender .