【问题标题】:RDFox access viewRDFox 访问视图
【发布时间】:2020-05-27 14:31:43
【问题描述】:

我可以使用 RDFox 版本 3 设置对知识图的仅查看访问权限吗? (无编辑)

我想创建不同的用户角色并控制谁可以查看/编辑什么,直到三级。

【问题讨论】:

标签: sparql datalog rdfox


【解决方案1】:

是的,使用访问控制功能,您可以为用户分配角色和授予权限,例如,您可以将用户权限限制为仅查看。

例如,您可以使用 role 命令和 create 子命令来创建新用户:

role create user1
Enter the password for the new role:
Confirm the password:    
A new role was created with name "user1".    
role create group   
Enter the password for the new role:    
Confirm the password:    
A new role was created with name "group”.    

然后你可以授予权限,例如:

> grant privileges read,write,grant >datastores|* to user1    
The privileges 'read,write,grant' over resource specifier ">datastores|*" were granted to the role "user1" (if not already present).    

或者您可以撤销权限,例如:

> revoke privileges write,grant >datastores|* from user1    
The privileges 'write,grant' over resource specifier ">datastores|*" were revoked from the role "user1" (if they were present).

如果您随后使用 show 子命令,您可以查看用户拥有的 角色 和权限:

> role show user1

'user1' has the following directly assigned privileges:

  Resource specifier |  Allowed access types   

  >datastores|*      |  read                   

这导致用户拥有只读权限。

【讨论】:

  • 我想docs 的链接就足够了,但无论如何这是一个很好的简洁答案。如果可能的话,也许你们还可以使用那些更具体的用例示例来扩展文档?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2013-10-24
  • 1970-01-01
  • 2015-04-07
  • 2015-06-21
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多