Skip to content

Commit

Permalink
Remove type:Version, change inventory type to URI (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
zimeon authored and ahankinson committed Dec 1, 2018
1 parent 5fda2d7 commit b6844d1
Showing 1 changed file with 6 additions and 16 deletions.
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 @@ -875,15 +871,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 @@ -960,7 +955,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 @@ -970,7 +965,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 @@ -983,7 +977,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 @@ -997,7 +990,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 @@ -1102,7 +1094,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 @@ -1113,7 +1105,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 @@ -1130,7 +1121,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

0 comments on commit b6844d1

Please sign in to comment.