Ontology Version: 3.1.0

cacontology-platforms:MessagingServiceShape leaf node


URI

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

Label

Messaging Service Shape

Description

Validation shape for messaging service instances.

Targets (1)

Property Constraints (4)

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

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-platforms:allowsAnonymousChat Whether platform allows anonymous chat without account creation.
sh:message Anonymous chat allowance must be a boolean value.
0 1 xsd:boolean
cacontology-platforms:conversationLogging Whether anonymous conversations are logged and stored.
sh:message Conversation logging must be a boolean value.
0 1 xsd:boolean
cacontology-platforms:encryptionLevel The level of encryption used by the service (e.g., 'none', 'in-transit', 'end-to-end').
sh:message Encryption level must be from the allowed list.
0 1 xsd:string
sh:in none, in-transit, end-to-end, partial
uco-core:name
sh:message Messaging service must have a name (2-100 characters).
1 1 xsd:string
sh:minLength 2
sh:maxLength 100

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 uco-core: <https://ontology.unifiedcyberontology.org/uco/core/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-platforms:MessagingServiceShape a sh:NodeShape ;
    rdfs:label "Messaging Service Shape"@en ;
    rdfs:comment "Validation shape for messaging service instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:maxLength 100 ;
            sh:message "Messaging service must have a name (2-100 characters)."@en ;
            sh:minCount 1 ;
            sh:minLength 2 ;
            sh:path uco-core:name ],
        [ sh:datatype xsd:string ;
            sh:in ( "none" "in-transit" "end-to-end" "partial" ) ;
            sh:maxCount 1 ;
            sh:message "Encryption level must be from the allowed list."@en ;
            sh:minCount 0 ;
            sh:path cacontology-platforms:encryptionLevel ],
        [ sh:datatype xsd:boolean ;
            sh:maxCount 1 ;
            sh:message "Anonymous chat allowance must be a boolean value."@en ;
            sh:minCount 0 ;
            sh:path cacontology-platforms:allowsAnonymousChat ],
        [ sh:datatype xsd:boolean ;
            sh:maxCount 1 ;
            sh:message "Conversation logging must be a boolean value."@en ;
            sh:minCount 0 ;
            sh:path cacontology-platforms:conversationLogging ] ;
    sh:targetClass cacontology-platforms:MessagingService .