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

Remove type:Version, change inventory type to URI #279

Merged
merged 1 commit into from
Dec 1, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 6 additions & 16 deletions draft/spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,9 @@ <h2>Basic Structure</h2>
</dd>
<dt><code>type</code></dt>
<dd>
A type for the inventory JSON object. This MUST have the value <code>Object</code>.
A type for the inventory JSON object that also serves to document the OCFL specification version
that the inventory complies with. This MUST be the URI of the inventory section of the
specification, <code>https://ocfl.io/1.0/spec/#inventory</code>.
</dd>
<dt><code>digestAlgorithm</code></dt>
<dd>
Expand Down Expand Up @@ -568,12 +570,6 @@ <h2>Version</h2>
A JSON object to describe one <a>OCFL Version</a>, which MUST include the following keys:
</p>
<dl>
<dt>
<code>type</code>
</dt>
<dd>
A type for the version JSON object. This MUST have the value <code>Version</code>.
</dd>
<dt>
<code>created</code>
</dt>
Expand Down Expand Up @@ -858,15 +854,14 @@ <h2>Minimal OCFL Object</h2>
"manifest": {
"7545b8...f67": [ "v1/content/file.txt" ]
},
"type": "Object",
"type": "https://ocfl.io/1.0/spec/#inventory",
"versions": {
"v1": {
"created": "2018-10-02T12:00:00Z",
"message": "One file",
"state": {
"7545b8...f67": [ "file.txt" ]
},
"type": "Version",
"user": {
"address": "alice@example.org",
"name": "Alice"
Expand Down Expand Up @@ -943,7 +938,7 @@ <h2>Versioned OCFL Object</h2>
"cf83e1...a3e": [ "v1/content/empty.txt" ],
"ffccf6...62e": [ "v1/content/image.tiff" ]
},
"type": "Object",
"type": "https://ocfl.io/1.0/spec/#inventory",
"versions": {
"v1": {
"created": "2018-01-01T01:01:01Z",
Expand All @@ -953,7 +948,6 @@ <h2>Versioned OCFL Object</h2>
"cf83e1...a3e": [ "empty.txt" ],
"ffccf6...62e": [ "image.tiff" ]
},
"type": "Version",
"user": {
"address": "alice@example.com",
"name": "Alice"
Expand All @@ -966,7 +960,6 @@ <h2>Versioned OCFL Object</h2>
"4d27c8...b53": [ "foo/bar.xml" ],
"cf83e1...a3e": [ "empty.txt", "empty2.txt" ]
},
"type": "Version",
"user": {
"address": "bob@example.com",
"name": "Bob"
Expand All @@ -980,7 +973,6 @@ <h2>Versioned OCFL Object</h2>
"cf83e1...a3e": [ "empty2.txt" ],
"ffccf6...62e": [ "image.tiff" ]
},
"type": "Version",
"user": {
"address": "cecilia@example.com",
"name": "Cecilia"
Expand Down Expand Up @@ -1085,7 +1077,7 @@ <h2>BagIt in an OCFL Object</h2>
"921d36...877": [ "v2/content/myfirstbag/data/27614-h/images/q173.png" ],
"b8bdf1...927": [ "v2/content/myfirstbag/data/27614-h/images/q173.txt" ]
},
"type": "Object",
"type": "https://ocfl.io/1.0/spec/#inventory",
"versions": {
"v1": {
"created": "2018-10-09T11:20:29.209164Z",
Expand All @@ -1096,7 +1088,6 @@ <h2>BagIt in an OCFL Object</h2>
"d66d80...8bd": [ "myfirstbag/data/27613-h/images/q172.txt" ],
"f15428...83f": [ "myfirstbag/manifest-md5.txt" ]
},
"type": "Version",
"user": {
"address": "someone@example.org",
"name": "Some One"
Expand All @@ -1113,7 +1104,6 @@ <h2>BagIt in an OCFL Object</h2>
"921d36...877": [ "myfirstbag/data/27614-h/images/q173.png" ],
"b8bdf1...927": [ "myfirstbag/data/27614-h/images/q173.txt" ]
},
"type": "Version",
"user": {
"address": "somebody-else@example.org",
"name": "Somebody Else"
Expand Down