Ontology Version: 3.1.0

cacontology-platforms:SocialMediaPlatformShape leaf node


URI

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

Label

Social Media Platform Shape

Description

Validation shape for social media platform instances.

Targets (1)

Property Constraints (4)

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

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-platforms:platformType The type or category of the platform (e.g., 'social media', 'messaging', 'file hosting').
sh:message Platform type must be from the allowed list.
0 1 xsd:string
sh:in social_media, photo_sharing, video_sharing, microblogging, professional_networking
cacontology-platforms:primaryUserBase The primary demographic of platform users (e.g., 'adults', 'teens', 'children', 'all ages').
sh:message Primary user base must be from the allowed list.
0 1 xsd:string
sh:in adults, teens, children, all_ages, professionals
cacontology-platforms:requiresRegistration Whether the platform requires user registration to access services.
sh:message Registration requirement must be a boolean value.
0 1 xsd:boolean
uco-core:name
sh:message Social media platform 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:SocialMediaPlatformShape a sh:NodeShape ;
    rdfs:label "Social Media Platform Shape"@en ;
    rdfs:comment "Validation shape for social media platform instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:maxLength 100 ;
            sh:message "Social media platform must have a name (2-100 characters)."@en ;
            sh:minCount 1 ;
            sh:minLength 2 ;
            sh:path uco-core:name ],
        [ sh:datatype xsd:boolean ;
            sh:maxCount 1 ;
            sh:message "Registration requirement must be a boolean value."@en ;
            sh:minCount 0 ;
            sh:path cacontology-platforms:requiresRegistration ],
        [ sh:datatype xsd:string ;
            sh:in ( "social_media" "photo_sharing" "video_sharing" "microblogging" "professional_networking" ) ;
            sh:maxCount 1 ;
            sh:message "Platform type must be from the allowed list."@en ;
            sh:minCount 0 ;
            sh:path cacontology-platforms:platformType ],
        [ sh:datatype xsd:string ;
            sh:in ( "adults" "teens" "children" "all_ages" "professionals" ) ;
            sh:maxCount 1 ;
            sh:message "Primary user base must be from the allowed list."@en ;
            sh:minCount 0 ;
            sh:path cacontology-platforms:primaryUserBase ] ;
    sh:targetClass cacontology-platforms:SocialMediaPlatform .