Skip to content

Commit f6c84c1

Browse files
committed
Merge branch 'master' of github.com:ResearchObject/bagit-ro-ex1
2 parents 121d5c9 + 98a91c4 commit f6c84c1

File tree

3 files changed

+47
-2
lines changed

3 files changed

+47
-2
lines changed

README.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ its content.
6565
A [BagIt serialization](https://tools.ietf.org/html/draft-kunze-bagit-11#section-4)
6666
is typically a tar- or zip-file which contains the base folder.
6767
BagIt archives include at the root a subdirectory for the base folder of the
68-
bag, e.g. the ZIP file would contain `example1/bagit.txt`.g
68+
bag, e.g. the ZIP file would contain `example1/bagit.txt`.
6969

7070
The [payload](https://tools.ietf.org/html/draft-kunze-bagit-11#section-2.1.2)
7171
of a bag is the files within a directory that
@@ -242,7 +242,16 @@ The `bag-info.txt` format supports some
242242
[basic bag-level metadata](https://tools.ietf.org/html/draft-kunze-bagit-11#section-2.2.2), e.g.
243243
`Bagging-Date`, `Contact-Phone` and `Organization-Address`. While some of these
244244
might seem archaic, "other arbitrary metadata elements may also be present.",
245-
allowing extensions.
245+
allowing extensions.
246+
247+
Research Object BagIt archives SHOULD specify the bagit-ro [BagIt profile](https://github.com/ruebot/bagit-profiles):
248+
249+
```
250+
BagIt-Profile-Identifier: https://rawgit.com/ResearchObject/bagit-ro-ex1/master/profile.json
251+
```
252+
253+
**FIXME:** Permanent URI for the bagit-ro profile
254+
246255

247256
The BagIt specification has no requirements for such alternative elements
248257
(e.g. they are not [RFC 2822](https://tools.ietf.org/html/rfc2822) headers),

example1/bag-info.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
BagIt-Profile-Identifier: https://rawgit.com/ResearchObject/bagit-ro-ex1/master/profile.json
12
Source-Organization: Example inc.
23
Organization-Address: 1 Example Way
34
Example City

profile.json

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"BagIt-Profile-Info":{
3+
"BagIt-Profile-Identifier":"https://rawgit.com/ResearchObject/bagit-ro-ex1/master/profile.json",
4+
"Source-Organization":"researchobject.org",
5+
"Contact-Name":"Stian Soiland-Reyes",
6+
"Contact-Email":"soiland-reyes@cs.manchester.ac.uk",
7+
"External-Description":"BagIt profile for Research Objects. See https://github.com/ResearchObject/bagit-ro-ex1",
8+
"Version":"0.1.20150728"
9+
},
10+
"Bag-Info": {
11+
"Bag-Size": {
12+
"required":true
13+
},
14+
"Payload-Oxum":{
15+
"required":true
16+
}
17+
},
18+
"Manifests-Required":[
19+
"md5", "sha1"
20+
],
21+
"Allow-Fetch.txt": true,
22+
"Serialization": "required",
23+
"Accept-Serialization":[
24+
"application/zip"
25+
],
26+
"Tag-Manifests-Required":[
27+
"md5", "sha1"
28+
],
29+
"Tag-Files-Required":[
30+
".ro/manifest.json"
31+
],
32+
"Accept-BagIt-Version":[
33+
"0.97"
34+
]
35+
}

0 commit comments

Comments
 (0)