我是否可以使用RDFox版本3设置仅访问知识图的视图?(不进行编辑)
我想要创建不同的用户角色和控制谁可以看到/编辑什么,直到三层。
发布于 2020-05-27 15:01:12
是的,使用访问控制功能,您可以为用户分配角色和授予权限,例如,您可以将用户权限限制为仅查看。
例如,可以使用角色命令和 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 这导致了用户的只读特权。
https://stackoverflow.com/questions/62045646
复制相似问题