https://cacontology.projectvic.org/platforms#AccountSuspensionActionShape
Validation shape for account suspension action instances.
Focus nodes of this shape (cacontology-platforms:AccountSuspensionAction) can have the following properties:
| PROPERTY | DESCRIPTION | MIN | MAX | VALUE TYPE | OTHER CONSTRAINTS |
|---|---|---|---|---|---|
| cacontology-platforms:suspensionDuration | Duration of account suspension (in days, or 'permanent'). sh:message Suspension duration must be between 1 and 3650 days. |
0 | 1 | xsd:integer |
sh:minInclusive
1
sh:maxInclusive
3650
|
| cacontology-platforms:suspensionReason | The reason for account suspension or termination. sh:message Suspension reason must be from the allowed list. |
0 | 1 | xsd:string |
sh:in
policy_violation, illegal_content, harassment, spam, underage_user, terms_violation
|
uco-core:startTime |
sh:message Account suspension action must specify start time. |
1 | 1 | xsd:dateTime |
@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:AccountSuspensionActionShape a sh:NodeShape ;
rdfs:label "Account Suspension Action Shape"@en ;
rdfs:comment "Validation shape for account suspension action instances."@en ;
sh:property [ sh:datatype xsd:dateTime ;
sh:maxCount 1 ;
sh:message "Account suspension action must specify start time."@en ;
sh:minCount 1 ;
sh:path uco-core:startTime ],
[ sh:datatype xsd:string ;
sh:in ( "policy_violation" "illegal_content" "harassment" "spam" "underage_user" "terms_violation" ) ;
sh:maxCount 1 ;
sh:message "Suspension reason must be from the allowed list."@en ;
sh:minCount 0 ;
sh:path cacontology-platforms:suspensionReason ],
[ sh:datatype xsd:integer ;
sh:maxCount 1 ;
sh:maxInclusive 3650 ;
sh:message "Suspension duration must be between 1 and 3650 days."@en ;
sh:minCount 0 ;
sh:minInclusive 1 ;
sh:path cacontology-platforms:suspensionDuration ] ;
sh:targetClass cacontology-platforms:AccountSuspensionAction .