https://cacontology.projectvic.org/sex-offender-registry#OffenderRegistrationCrossReferenceShape
Validates that registered offenders have required registration records.
Instances of cacontology-registry:RegisteredSexOffender can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| cacontology-registry:RegisteredSexOffender | ||||
| cacontology-registry:dateOfBirth | 1 | 1 |
xsd:date
|
|
| cacontology-registry:fullName | 1 | 1 |
xsd:string
|
|
| cacontology-registry:registeredIn | 1 |
cacontology-registry:SexOffenderRegistry
|
||
| cacontology-registry:sex | 1 | 1 |
xsd:string
|
|
| cacontology-registry:socialSecurityNumber | 0 | 1 |
xsd:string
|
|
| uco-identity:Person | ||||
| cacontology-enterprises:participatesInCoercion |
cacontology-enterprises:SelfHarmCoercion
|
|||
| cacontology-enterprises:participatesInRecruitment |
cacontology-enterprises:ContentBasedRecruitment
|
|||
@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#> .
cacontology-registry:OffenderRegistrationCrossReferenceShape a sh:NodeShape ;
rdfs:label "Offender Registration Cross Reference Shape"@en ;
rdfs:comment "Validates that registered offenders have required registration records."@en ;
sh:sparql [ sh:message "Registered sex offender must have at least one registration record."@en ;
sh:select """
SELECT $this
WHERE {
$this a cacontology-registry:RegisteredSexOffender .
FILTER NOT EXISTS {
$this cacontology-registry:hasRegistrationRecord ?record .
?record a cacontology-registry:RegistrationRecord .
}
}
""" ] ;
sh:targetClass cacontology-registry:RegisteredSexOffender .