Ontology Version: 3.1.0

cacontology-registry:OffenderProfileShape leaf node


URI

https://cacontology.projectvic.org/sex-offender-registry#OffenderProfileShape

Label

Offender Profile Shape

Description

Validation shape for offender profile instances.

Targets (1)

Property Constraints (2)

Focus nodes of this shape (cacontology-registry:OffenderProfile) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-registry:lastUpdate Date of last update to registration information.
sh:message Profile may specify last update time.
0 1 xsd:dateTime
uco-core:createdTime
sh:message Profile must specify creation time.
1 1 xsd:dateTime

Implementation

@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-core: <https://ontology.unifiedcyberontology.org/uco/core/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-registry:OffenderProfileShape a sh:NodeShape ;
    rdfs:label "Offender Profile Shape"@en ;
    rdfs:comment "Validation shape for offender profile instances."@en ;
    sh:property [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "Profile must specify creation time."@en ;
            sh:minCount 1 ;
            sh:path uco-core:createdTime ],
        [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "Profile may specify last update time."@en ;
            sh:minCount 0 ;
            sh:path cacontology-registry:lastUpdate ] ;
    sh:targetClass cacontology-registry:OffenderProfile .