Ontology Version: 3.1.0

cacontology-custodial:ResidentialProximityAccessShape leaf node


URI

https://cacontology.projectvic.org/custodial#ResidentialProximityAccessShape

Label

Residential Proximity Access Shape

Description

Validation shape for residential proximity access instances.

Targets (1)

  • cacontology-custodial:ResidentialProximityAccess sh:targetClass

Property Constraints (2)

Focus nodes of this shape (cacontology-custodial:ResidentialProximityAccess) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-custodial:buildingType
sh:message Building type must be from the allowed list.
0 1 xsd:string
sh:in apartment_building, condominium, townhouse, single_family, duplex, mobile_home, dormitory
cacontology-custodial:proximityType
sh:message Proximity access must specify proximity type from the allowed list.
1 1 xsd:string
sh:in same_floor, same_building, adjacent_building, same_complex, same_street, same_block

Implementation

@prefix cacontology-custodial: <https://cacontology.projectvic.org/custodial#> .
@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-custodial:ResidentialProximityAccessShape a sh:NodeShape ;
    rdfs:label "Residential Proximity Access Shape"@en ;
    rdfs:comment "Validation shape for residential proximity access instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:in ( "same_floor" "same_building" "adjacent_building" "same_complex" "same_street" "same_block" ) ;
            sh:maxCount 1 ;
            sh:message "Proximity access must specify proximity type from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-custodial:proximityType ],
        [ sh:datatype xsd:string ;
            sh:in ( "apartment_building" "condominium" "townhouse" "single_family" "duplex" "mobile_home" "dormitory" ) ;
            sh:maxCount 1 ;
            sh:message "Building type must be from the allowed list."@en ;
            sh:minCount 0 ;
            sh:path cacontology-custodial:buildingType ] ;
    sh:targetClass cacontology-custodial:ResidentialProximityAccess .