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: Use With BD-Bag #78

Open
ThomasThelen opened this issue Apr 30, 2020 · 1 comment
Open

Use Case: Use With BD-Bag #78

ThomasThelen opened this issue Apr 30, 2020 · 1 comment
Labels
use-case A (potential) use-case for ROLite creation, consumption or integration

Comments

@ThomasThelen
Copy link
Member

As a person creating and using crates, I want to use BD-Bag's fetch.txt so that I can efficiently transport Crates that are linked to external data.

There are of course a few different ways to achieve the goal above without using BD-Bag (for example this). I did some exploratory work on seeing what it would take for BD-Bag to support RO-Crate. I'll summarize them in this issue for anyone else that finds it useful. Note that I left out references to the optional RO-Crate files. Also note that this isn't an actual use case of mine.

BD-Bag RO-Crate Format

Base BagIt

Before anything can be set in stone, one of the different BagIt formats should be accepted (see #13). That issue is about achieving harmony between BagIt and RO-Crate, which ultimately boils down to where the RO-Crate Root is defined.

BD-Bag Additions

BD-Bag adds fetch.txt to the bag root.

RO-Crate Additions

Implicit though the Base BagIt integration

Final Structure

This ultimately comes down to what the outcome of #13 is with the addition of fetch.txt.

BD-Bag tooling

Profile

BD-Bag extends support for other standards via BagIt profiles. The first step is creating a new profile for RO-Crate. I've mostly done this here. Note that I chose to make the data/ directory the Crate Root. The reason for this is purely because the bd-bag library places it there.

The main area of interest is

   "Tag-Files-Required":[
     "data/ro-crate-metadata.jsonld"
   ],

BD-Bag Library

I'm not entirely sure what the capabilities are, but it looks like it should be able to parse the canonical metadata file defined in the profile (ro-crate-metadata.jsonld in our case) and create the fetch.txt from it. It should also be able to validate them and presumably work in the GUI.

@ThomasThelen ThomasThelen added the use-case A (potential) use-case for ROLite creation, consumption or integration label Apr 30, 2020
@stain
Copy link
Contributor

stain commented Nov 1, 2023

https://www.researchobject.org/ro-crate/1.1/appendix/implementation-notes.html#adding-ro-crate-to-bagit specifies how to use RO-Crate in BagIt.

I've raised bagit-profiles/bagit-profiles-specification#36 as Tag-Files-Required can't address data/ files from a bagit profile, so you would need Payload-Files-Required instead (See bagit-profiles/bagit-profiles-specification#42 )

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