https://cacontology.projectvic.org/platforms#GamePlatformShape
Validation shape for game platform instances.
Instances of cacontology-platforms:GamePlatform can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| cacontology-platforms:GamePlatform | ||||
| cacontology-platforms:contactInitiationMethod | 0 | 1 |
xsd:string
|
|
| cacontology-platforms:guestAccountsAllowed | 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:GamePlatformShape a sh:NodeShape ;
rdfs:label "Game Platform Shape"@en ;
rdfs:comment "Validation shape for game platform instances."@en ;
sh:property [ sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:maxLength 100 ;
sh:message "Game 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 "Guest accounts allowance must be a boolean value."@en ;
sh:minCount 0 ;
sh:path cacontology-platforms:guestAccountsAllowed ],
[ sh:datatype xsd:string ;
sh:in ( "friend_request" "direct_message" "public_chat" "game_invite" "voice_chat" ) ;
sh:maxCount 1 ;
sh:message "Contact initiation method must be from the allowed list."@en ;
sh:minCount 0 ;
sh:path cacontology-platforms:contactInitiationMethod ] ;
sh:targetClass cacontology-platforms:GamePlatform .