-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Background
With PR #4, we no longer need to have a pid mapping file for packages whose resource maps encode the file path. If this change is made, we should consider making any additional changes to the package export format now.
Proposals
-
Depreciate the pid-mapping.txt file in the exported bags.
This can be done for packages with file paths in the resource map however, for older packages thepid-mapping.txt
file is probably still required. -
Relocate
oai-ore.txt
insidedata/
By relocating the file in thedata/
directory, we no longer have to declare it as a tag file (which doesn't actually break the bagit spec). Other system that may ingest our bags won't have to worry about parsing the additional tag file if we do this.
I've outlined two possible formats for a V2 export format. I'm leaning towards the second suggestion because it has a more clear distinction as to which files are relevant to the data package.
Consider a package named Frog Counts
that is exported in the proposed V2 format.
Option 1
- The root directory of the package is not placed in
data/
(see Option 2) - The ORE is at the
data/
root
<base directory>/
├── bagit.txt
├── bag-info.txt
├── manifest-<algorithm>.txt
└── data
├── oai-ore.txt
├── data-file-1.csv
├── data-file-2.csv
├── data-file-3.hdf
└── metadata-file-1.xml
Option 2
- The data package is placed in a folder within
data/
- The ORE document is placed within
data/
<base directory>/
├── bagit.txt
├── bag-info.txt
├── manifest-<algorithm>.txt
└── data/
├── oai-ore.txt
└── Frog Counts/
├── data-file-1.csv
├── data-file-2.csv
├── data-file-3.hdf
└── metadata-file-1.xml
Scope of Changes
Changes will have to made to software project in the DataONE ecosystem that handle exporting and importing. These include
- GMN
- Metacat
I'd like to gather questions, comments, and concerns in this issue. Feel free to reply below.
People interested in this probably include @mbjones, @datadavev, @taojing2002, @amoeba, @csjx