https://cacontology.projectvic.org/sex-offender-registry#RegistrationRecordShape
Validation shape for registration record instances.
Focus nodes of this shape (cacontology-registry:RegistrationRecord) can have the following properties:
| PROPERTY | DESCRIPTION | MIN | MAX | VALUE TYPE | OTHER CONSTRAINTS |
|---|---|---|---|---|---|
| cacontology-registry:expirationDate | Date when registration requirement expires (if applicable). sh:message Registration record may specify expiration date. |
0 | 1 | xsd:date | |
| cacontology-registry:lifetimeRegistration | Whether registration is required for life. sh:message Registration record must specify if lifetime registration is required. |
1 | 1 | xsd:boolean | |
| cacontology-registry:registrationDate | Date when sex offender registration was first required. sh:message Registration record must specify registration date. |
1 | 1 | xsd:date | |
| cacontology-registry:registrationNumber | Unique identifier assigned to sex offender registration. sh:message Registration record must have a registration number (5-50 characters). |
1 | 1 | xsd:string |
sh:minLength
5
sh:maxLength
50
|
| cacontology-registry:tier | Risk tier classification (Tier I, II, III). sh:message Registration tier must be 1, 2, or 3. |
1 | 1 | xsd:integer |
sh:minInclusive
1
sh:maxInclusive
3
|
@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 .