Ontology Version: 2.11.0

cacontology-registry:AddressVerificationCrossReferenceShape leaf node


URI

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

Label

Address Verification Cross Reference Shape

Description

Validates that registered offenders have current address information.

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:AddressVerificationCrossReferenceShape a sh:NodeShape ;
    rdfs:label "Address Verification Cross Reference Shape"@en ;
    rdfs:comment "Validates that registered offenders have current address information."@en ;
    sh:sparql [ sh:message "Registered sex offender must have at least one registered address."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this a cacontology-registry:RegisteredSexOffender .
                FILTER NOT EXISTS {
                    $this cacontology-registry:residesAt ?address .
                    ?address a cacontology-registry:RegisteredAddress .
                }
            }
        """ ] ;
    sh:targetClass cacontology-registry:RegisteredSexOffender .