diff --git a/README.md b/README.md index c570a48..b2dc813 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ its content. A [BagIt serialization](https://tools.ietf.org/html/draft-kunze-bagit-11#section-4) is typically a tar- or zip-file which contains the base folder. BagIt archives include at the root a subdirectory for the base folder of the -bag, e.g. the ZIP file would contain `example1/bagit.txt`.g +bag, e.g. the ZIP file would contain `example1/bagit.txt`. The [payload](https://tools.ietf.org/html/draft-kunze-bagit-11#section-2.1.2) of a bag is the files within a directory that @@ -242,7 +242,16 @@ The `bag-info.txt` format supports some [basic bag-level metadata](https://tools.ietf.org/html/draft-kunze-bagit-11#section-2.2.2), e.g. `Bagging-Date`, `Contact-Phone` and `Organization-Address`. While some of these might seem archaic, "other arbitrary metadata elements may also be present.", -allowing extensions. +allowing extensions. + +Research Object BagIt archives SHOULD specify the bagit-ro [BagIt profile](https://github.com/ruebot/bagit-profiles): + +``` + BagIt-Profile-Identifier: https://rawgit.com/ResearchObject/bagit-ro-ex1/master/profile.json +``` + +**FIXME:** Permanent URI for the bagit-ro profile + The BagIt specification has no requirements for such alternative elements (e.g. they are not [RFC 2822](https://tools.ietf.org/html/rfc2822) headers), diff --git a/example1/bag-info.txt b/example1/bag-info.txt index a0ac2f0..bdea8f5 100644 --- a/example1/bag-info.txt +++ b/example1/bag-info.txt @@ -1,3 +1,4 @@ +BagIt-Profile-Identifier: https://rawgit.com/ResearchObject/bagit-ro-ex1/master/profile.json Source-Organization: Example inc. Organization-Address: 1 Example Way Example City diff --git a/profile.json b/profile.json new file mode 100644 index 0000000..6bc5137 --- /dev/null +++ b/profile.json @@ -0,0 +1,35 @@ +{ + "BagIt-Profile-Info":{ + "BagIt-Profile-Identifier":"https://rawgit.com/ResearchObject/bagit-ro-ex1/master/profile.json", + "Source-Organization":"researchobject.org", + "Contact-Name":"Stian Soiland-Reyes", + "Contact-Email":"soiland-reyes@cs.manchester.ac.uk", + "External-Description":"BagIt profile for Research Objects. See https://github.com/ResearchObject/bagit-ro-ex1", + "Version":"0.1.20150728" + }, + "Bag-Info": { + "Bag-Size": { + "required":true + }, + "Payload-Oxum":{ + "required":true + } + }, + "Manifests-Required":[ + "md5", "sha1" + ], + "Allow-Fetch.txt": true, + "Serialization": "required", + "Accept-Serialization":[ + "application/zip" + ], + "Tag-Manifests-Required":[ + "md5", "sha1" + ], + "Tag-Files-Required":[ + ".ro/manifest.json" + ], + "Accept-BagIt-Version":[ + "0.97" + ] +}