Ontology Version: 2.3.0

cacontology-registry:RegisteredAddressShape leaf node


URI

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

Label

Registered Address Shape

Description

Validation shape for registered address instances.

Shape Properties

Instances of cacontology-registry:RegisteredAddress can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

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#> .
@prefix uco-location: <https://ontology.unifiedcyberontology.org/uco/location/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-registry:RegisteredAddressShape a sh:NodeShape ;
    rdfs:label "Registered Address Shape"@en ;
    rdfs:comment "Validation shape for registered address instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:maxLength 200 ;
            sh:message "Address must have a street (5-200 characters)."@en ;
            sh:minCount 1 ;
            sh:minLength 5 ;
            sh:path uco-location:street ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:maxLength 100 ;
            sh:message "Address must have a city (2-100 characters)."@en ;
            sh:minCount 1 ;
            sh:minLength 2 ;
            sh:path uco-location:city ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:maxLength 50 ;
            sh:message "Address must have a state (2-50 characters)."@en ;
            sh:minCount 1 ;
            sh:minLength 2 ;
            sh:path uco-location:state ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:message "Postal code must be in format XXXXX or XXXXX-XXXX."@en ;
            sh:minCount 1 ;
            sh:path uco-location:postalCode ;
            sh:pattern "^[0-9]{5}(-[0-9]{4})?$" ] ;
    sh:targetClass cacontology-registry:RegisteredAddress .