https://cacontology.projectvic.org/sex-offender-registry#RegisteredAddressShape
Validation shape for registered address instances.
Focus nodes of this shape (cacontology-registry:RegisteredAddress) can have the following properties:
| PROPERTY | DESCRIPTION | MIN | MAX | VALUE TYPE | OTHER CONSTRAINTS |
|---|---|---|---|---|---|
uco-location:city |
sh:message Address must have a city (2-100 characters). |
1 | 1 | xsd:string |
sh:minLength
2
sh:maxLength
100
|
uco-location:postalCode |
sh:message Postal code must be in format XXXXX or XXXXX-XXXX. |
1 | 1 | xsd:string |
sh:pattern
^[0-9]{5}(-[0-9]{4})?$
|
uco-location:state |
sh:message Address must have a state (2-50 characters). |
1 | 1 | xsd:string |
sh:minLength
2
sh:maxLength
50
|
uco-location:street |
sh:message Address must have a street (5-200 characters). |
1 | 1 | xsd:string |
sh:minLength
5
sh:maxLength
200
|
@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 .