Ontology Version: 3.1.0

cacontology-production:ProductionLocationShape leaf node


URI

https://cacontology.projectvic.org/production#ProductionLocationShape

Label

Production Location Shape

Description

Validation shape for production location instances.

Targets (1)

Property Constraints (3)

Focus nodes of this shape (cacontology-production:ProductionLocation) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-production:accessControl
sh:message Access control must be from the allowed list.
0 1 xsd:string
sh:in open, restricted, controlled, secured, locked
cacontology-production:locationType
sh:message Production location must specify type from the allowed list.
1 1 xsd:string
sh:in residential, commercial, institutional, outdoor, vehicle, temporary, mobile
cacontology-production:privacyLevel
sh:message Production location must specify privacy level from the allowed list.
1 1 xsd:string
sh:in public, semi_private, private, highly_private, isolated

Implementation

@prefix cacontology-production: <https://cacontology.projectvic.org/production#> .
@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-production:ProductionLocationShape a sh:NodeShape ;
    rdfs:label "Production Location Shape"@en ;
    rdfs:comment "Validation shape for production location instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:in ( "open" "restricted" "controlled" "secured" "locked" ) ;
            sh:maxCount 1 ;
            sh:message "Access control must be from the allowed list."@en ;
            sh:minCount 0 ;
            sh:path cacontology-production:accessControl ],
        [ sh:datatype xsd:string ;
            sh:in ( "residential" "commercial" "institutional" "outdoor" "vehicle" "temporary" "mobile" ) ;
            sh:maxCount 1 ;
            sh:message "Production location must specify type from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-production:locationType ],
        [ sh:datatype xsd:string ;
            sh:in ( "public" "semi_private" "private" "highly_private" "isolated" ) ;
            sh:maxCount 1 ;
            sh:message "Production location must specify privacy level from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-production:privacyLevel ] ;
    sh:targetClass cacontology-production:ProductionLocation .