How to model access groups?
Heres a little use case on access groups for resources. I'm not sure whether it makes sense to model the access group as agentRelationShip or as an group agent:
# Example:
# Anna is allowed to do bank transactions:
# – Anna is in the group of contributors that is allowed for cash transactions (custodians-cash)
# – Solawi transfers custody of wallet to custodians-cash
'@context':
- https://git.io/vf-examples-jsonld-context
- wd: https://www.wikidata.org/wiki/
solawi: https://solawi.example/
anna: http://anna.example/
'@id': https://lab.allmende.io/yova/bachelor/-/raw/master/diagrams/process%20level/examples/solawi-access-groups.yaml
'@graph':
- '@id': solawi:bae0b84f-d84c-4d1d-afd0-c88f16b4c421 #custodians-cash
'@type': AgentRelationshipRole
roleLabel: is custodian for cash
inverseRoleLabel: cash is in custody of
- '@id': solawi:4f496033-f366-484d-99a0-14992320fb76
'@type': AgentRelationship
subject: anna:
relationship: solawi:bae0b84f-d84c-4d1d-afd0-c88f16b4c421 #custodians-cash
object: solawi:
- '@id': solawi:8e837319-2f5b-4b69-9d45-155688bd5c21
'@type': EconomicEvent
action: transfer-custody
provider: solawi:
receiver: solawi:groups/custodians-cash
resourceClassifiedAs: wd:Q131740 # wallet
hasBeginning: 2021-03-01T08:00:00-1:00
hasEnd: 2022-02-28T17:00:00-1:00
It seems that vf:name
is missing for vf:RelationshipRole
to model the grop name (custodians-cash
in this case)
related to #138.