https://cacontology.projectvic.org/sex-offender-registry#RegisteredAddressShape
Validation shape for registered address instances.
Instances of cacontology-registry:RegisteredAddress can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|---|
@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 .