Skip to content

Commit

Permalink
clarify examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum committed Oct 16, 2023
1 parent 28e0852 commit f210f2f
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,14 @@ There are **built-in groups** and **project specific groups**:
> **Note**
> The example file
>[project_data/F18E/OAPs_original/resource_XwwqVvWgSmuHRobQubg9uQ.json](project_data/F18E/OAPs_original/resource_XwwqVvWgSmuHRobQubg9uQ.json)
> shows that the resource `http://rdfh.ch/0102/XwwqVvWgSmuHRobQubg9uQ` has the rights
> is an OAP that grants the following rights to the resource `http://rdfh.ch/0102/XwwqVvWgSmuHRobQubg9uQ`:
>
> - Project admins have change rights.
> - The creator has deletion rights.
> - Project members have view rights.
> - All others (logged-in or logged-out users) have restricted view rights.
>
> The string representation of this scope would be:
> `CR knora-admin:ProjectAdmin|D knora-admin:Creator|M knora-admin:ProjectMember|RV knora-admin:UnknownUser,knora-admin:KnownUser`.

Expand All @@ -125,8 +132,11 @@ DOAPs are always project-related, but more specifically, they are:
> The example file [project_data/F18E/DOAPs_original.json](project_data/F18E/DOAPs_original.json)
> encodes the following information:
>
> - If a `ProjectAdmin` creates a resource, the resource gets the permissions `CR knora-admin:ProjectAdmin|D knora-admin:Creator,knora-admin:ProjectMember|V knora-admin:KnownUser,knora-admin:UnknownUser`.
> - If a `ProjectMember` creates a resource, the resource gets the same permissions.
> - If a `ProjectAdmin` creates a resource, the resource's OAP would grant
> - change rights to `ProjectAdmin`
> - deletion rights to `Creator` and `ProjectMember`
> - view rights to `KnownUser` and `UnknownUser`
> - If a `ProjectMember` creates a resource, the resources OAP would grant the same permissions to the same user groups.

### Precedence rule
Expand Down

0 comments on commit f210f2f

Please sign in to comment.