Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Case: I want to mark entities within the crate as read-only or edit-only #168

Open
marcolarosa opened this issue Sep 6, 2021 · 1 comment
Labels
use-case A (potential) use-case for ROLite creation, consumption or integration

Comments

@marcolarosa
Copy link
Contributor

As a tools developer I want to be able to write snippets into an ro-crate file and indicate to third party tools that they should treat those snippets in a particular way. For example, if I have a tif image and a tool to create a jpeg image from it, the tool would create two files entries in the crate file (one for each of the tif and jpeg files) and a create action that documents that the jpeg was created from the tif image.

When I load that crate into a tool like describo I want to be able to indicate to describo that each of those entries is read-only or edit-only. If read-only, describo should show the entity but not allow edits of the data or deletion of the entity. If edit-only describo should allow edits to the data but not allow deletion.

Ideally, this would be a simple property on the entity itself:

@graph: [
  {
    @type: File,
    name: whatever.jpg,
    readOnly: true
  }
]

This example would tell describo to show the entity but not allow changes to the data (including changing links to / from it) and to not allow it to be deleted.

or

@graph: [
  {
    @type: File,
    name: whatever.jpg,
    editOnly: true
  }
]

This example would tell describo to show the entity an allow changes to the data (including changing links to / from it) but not allow it to be deleted.

@marcolarosa marcolarosa added the use-case A (potential) use-case for ROLite creation, consumption or integration label Sep 6, 2021
@ebremer
Copy link
Contributor

ebremer commented Sep 7, 2021

Perhaps using: https://www.w3.org/wiki/WebAccessControl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
use-case A (potential) use-case for ROLite creation, consumption or integration
Projects
None yet
Development

No branches or pull requests

2 participants