Ontology Version: 2.2.0

cacontology-registry:PhysicalDescriptionShape leaf node


URI

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

Label

Physical Description Shape

Description

Validation shape for physical description instances.

Shape Properties

Instances of cacontology-registry:PhysicalDescription can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-registry:PhysicalDescription
cacontology-registry:eyeColor 0 1 xsd:string
cacontology-registry:hairColor 0 1 xsd:string
cacontology-registry:height 0 1 xsd:string
cacontology-registry:race 0 1 xsd:string
cacontology-registry:weight 0 1 xsd:string

Implementation

@prefix cacontology-registry: <https://cacontology.projectvic.org/sex-offender-registry#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@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:PhysicalDescriptionShape a sh:NodeShape ;
    rdfs:label "Physical Description Shape"@en ;
    rdfs:comment "Validation shape for physical description instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:message "Height must be in format X'XX\" or XXX cm when specified."@en ;
            sh:minCount 0 ;
            sh:path cacontology-registry:height ;
            sh:pattern "^[0-9]'[0-9]{1,2}\"$|^[0-9]{2,3} cm$" ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:message "Weight must be in format XXX lbs or XXX kg when specified."@en ;
            sh:minCount 0 ;
            sh:path cacontology-registry:weight ;
            sh:pattern "^[0-9]{2,3} lbs$|^[0-9]{2,3} kg$" ],
        [ sh:datatype xsd:string ;
            sh:in ( "brown" "blue" "green" "hazel" "gray" "black" "unknown" ) ;
            sh:maxCount 1 ;
            sh:message "Eye color must be from the allowed list."@en ;
            sh:minCount 0 ;
            sh:path cacontology-registry:eyeColor ],
        [ sh:datatype xsd:string ;
            sh:in ( "black" "brown" "blonde" "red" "gray" "white" "bald" "unknown" ) ;
            sh:maxCount 1 ;
            sh:message "Hair color must be from the allowed list."@en ;
            sh:minCount 0 ;
            sh:path cacontology-registry:hairColor ],
        [ sh:datatype xsd:string ;
            sh:in ( "white" "black" "hispanic" "asian" "native_american" "pacific_islander" "other" "unknown" ) ;
            sh:maxCount 1 ;
            sh:message "Race must be from the allowed list."@en ;
            sh:minCount 0 ;
            sh:path cacontology-registry:race ] ;
    sh:targetClass cacontology-registry:PhysicalDescription .