Skip to content

Commit

Permalink
Add notes about JSON-LD and a stub @context (#62)
Browse files Browse the repository at this point in the history
* Add notes about JSON-LD and a stub @context

* Wrap line
  • Loading branch information
zimeon authored and ahankinson committed Sep 5, 2018
1 parent 53b8d0b commit f990902
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
7 changes: 7 additions & 0 deletions context.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"@context": {
"@version": 1.1,
"id": "@id",
"type": "@type"
}
}
20 changes: 20 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@
"J. Kunze"
],
date: "9 November 2009"
},
"JSON-LD-1.1": {
title: "JSON-LD 1.1: A JSON-based Serialization for Linked Data",
href: "https://json-ld.org/spec/latest/json-ld/",
authors: [
"Manu Sporny", "Dave Longley", "Gregg Kellogg", "Markus Lanthaler", "Niklas Lindström"
],
date: "7 June 2018"
}
}
};
Expand Down Expand Up @@ -251,6 +259,18 @@ <h2>Versions Directories</h2>
<section id="inventory">
<h2>OCFL Object Inventory</h2>

<p>
An OCFL Object Inventory MUST follow the [[!JSON]] structure described in this section and MUST be named
<code>inventory.jsonld</code>. Furthermore, inventory files MUST conform to [[!JSON-LD-1.1]], MUST include
the JSON-LD <code>@context</code> value
<a href="context.jsonld"><code>https://ocfl.io/context.jsonld</code></a>.
</p>
<blockquote class="informative">
Non-normative note: The use of JSON-LD for inventory files means that they can be generated from and interpreted
as RDF, and provides some self-documentation. The fixed JSON structure means that they can also be generated and
read without requiring RDF and JSON-LD support.
</blockquote>

<section id="inventory-structure">
<h2>Basic Structure</h2>
</section>
Expand Down

0 comments on commit f990902

Please sign in to comment.