https://cacontology.projectvic.org/sex-offender-registry#RegistrationRecordShape
Validation shape for registration record instances.
Instances of cacontology-registry:RegistrationRecord can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| cacontology-registry:RegistrationRecord | ||||
| cacontology-registry:expirationDate | 0 | 1 |
xsd:date
|
|
| cacontology-registry:lifetimeRegistration | 1 | 1 |
xsd:boolean
|
|
| cacontology-registry:registrationDate | 1 | 1 |
xsd:date
|
|
| cacontology-registry:registrationNumber | 1 | 1 |
xsd:string
|
|
| cacontology-registry:tier | 1 | 1 |
xsd:integer
|
|
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-registry:RegistrationRecordShape a sh:NodeShape ;
rdfs:label "Registration Record Shape"@en ;
rdfs:comment "Validation shape for registration record instances."@en ;
sh:property [ sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:maxLength 50 ;
sh:message "Registration record must have a registration number (5-50 characters)."@en ;
sh:minCount 1 ;
sh:minLength 5 ;
sh:path cacontology-registry:registrationNumber ],
[ sh:datatype xsd:date ;
sh:maxCount 1 ;
sh:message "Registration record must specify registration date."@en ;
sh:minCount 1 ;
sh:path cacontology-registry:registrationDate ],
[ sh:datatype xsd:date ;
sh:maxCount 1 ;
sh:message "Registration record may specify expiration date."@en ;
sh:minCount 0 ;
sh:path cacontology-registry:expirationDate ],
[ sh:datatype xsd:integer ;
sh:maxCount 1 ;
sh:maxInclusive 3 ;
sh:message "Registration tier must be 1, 2, or 3."@en ;
sh:minCount 1 ;
sh:minInclusive 1 ;
sh:path cacontology-registry:tier ],
[ sh:datatype xsd:boolean ;
sh:maxCount 1 ;
sh:message "Registration record must specify if lifetime registration is required."@en ;
sh:minCount 1 ;
sh:path cacontology-registry:lifetimeRegistration ] ;
sh:targetClass cacontology-registry:RegistrationRecord .