Ontology Version: 3.1.0

cacontology-platforms:UserScaleClassificationShape leaf node


URI

https://cacontology.projectvic.org/platforms#UserScaleClassificationShape

Label

User Scale Classification Shape

Description

Validation shape for user scale classification instances.

Property Constraints (2)

Focus nodes of this shape (cacontology-platforms:UserScaleClassification) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-platforms:millionPlusUsers
sh:message Million plus users indicator must be a boolean value.
0 1 xsd:boolean
cacontology-platforms:platformScale
sh:message Platform scale must be from the allowed list.
1 1 xsd:string
sh:in small, medium, large, massive

Implementation

@prefix cacontology-platforms: <https://cacontology.projectvic.org/platforms#> .
@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-platforms:UserScaleClassificationShape a sh:NodeShape ;
    rdfs:label "User Scale Classification Shape"@en ;
    rdfs:comment "Validation shape for user scale classification instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:in ( "small" "medium" "large" "massive" ) ;
            sh:maxCount 1 ;
            sh:message "Platform scale must be from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-platforms:platformScale ],
        [ sh:datatype xsd:boolean ;
            sh:maxCount 1 ;
            sh:message "Million plus users indicator must be a boolean value."@en ;
            sh:minCount 0 ;
            sh:path cacontology-platforms:millionPlusUsers ] ;
    sh:targetClass cacontology-platforms:UserScaleClassification .