https://cacontology.projectvic.org/platforms#SocialMediaPlatformShape
Validation shape for social media platform instances.
Instances of cacontology-platforms:SocialMediaPlatform can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| cacontology-platforms:SocialMediaPlatform | ||||
| cacontology-platforms:platformType | 0 | 1 |
xsd:string
|
|
| cacontology-platforms:primaryUserBase | 0 | 1 |
xsd:string
|
|
| cacontology-platforms:requiresRegistration | 0 | 1 |
xsd:boolean
|
|
| 1 | 1 |
xsd:string
|
||
@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 .