--- a/spec/latest/json-ld-syntax/index.html Tue Mar 12 20:19:53 2013 +0100
+++ b/spec/latest/json-ld-syntax/index.html Wed Mar 13 17:08:51 2013 +0100
@@ -3003,299 +3003,298 @@
</section>
<section class="appendix informative">
-<h2>Relationship to Other Linked Data Formats</h2>
-
-<p>The JSON-LD examples below demonstrate how JSON-LD can be used to
- express semantic data marked up in other linked data formats such as Turtle,
- RDFa, Microformats, and Microdata. These sections are merely provided as
- evidence that JSON-LD is very flexible in what it can express across different
- <tref>Linked Data</tref> approaches.</p>
-
-<section>
- <h3>Turtle</h3>
-
- <p>The following are examples of converting RDF expressed in Turtle [[TURTLE-TR]]
- into JSON-LD.</p>
-
-<section>
-<h4>Prefix definitions</h4>
-<p>The JSON-LD context has direct equivalents for the Turtle
- <code>@prefix</code> declaration:</p>
-
-<pre class="example" data-transform="updateExample"
- title="A set of statements serialized in Turtle">
-<!--
-@prefix foaf: <http://xmlns.com/foaf/0.1/> .
-
-<http://manu.sporny.org/i/public> a foaf:Person;
- foaf:name "Manu Sporny";
- foaf:homepage <http://manu.sporny.org/> .
--->
-</pre>
-
-<pre class="example" data-transform="updateExample"
- title="The same set of statements serialized in JSON-LD">
-<!--
-{
- "@context":
- {
- "foaf": "http://xmlns.com/foaf/0.1/"
- },
- "@id": "http://manu.sporny.org/i/public",
- "@type": "foaf:Person",
- "foaf:name": "Manu Sporny",
- "foaf:homepage": { "@id": "http://manu.sporny.org/" }
-}
--->
-</pre>
-
-</section>
-
-<section>
-<h4>Embedding</h4>
-<p>Both Turtle and JSON-LD allow embedding, although Turtle only allows embedding of
- <tref title="blank node">blank nodes</tref>.</p>
-</section>
-
-<pre class="example" data-transform="updateExample"
- title="Embedding in Turtle">
-<!--
-@prefix foaf: <http://xmlns.com/foaf/0.1/> .
-
-<http://manu.sporny.org/i/public>
- a foaf:Person;
- foaf:name "Manu Sporny";
- foaf:knows [ a foaf:Person; foaf:name "Gregg Kellogg" ] .
--->
-</pre>
-
-<pre class="example" data-transform="updateExample"
- title="Same embedding example in JSON-LD">
-<!--
-{
- "@context":
- {
- "foaf": "http://xmlns.com/foaf/0.1/"
- },
- "@id": "http://manu.sporny.org/i/public",
- "@type": "foaf:Person",
- "foaf:name": "Manu Sporny",
- "foaf:knows":
- {
- "@type": "foaf:Person",
- "foaf:name": "Gregg Kellogg"
- }
-}
--->
-</pre>
-<section>
-<h4>Lists</h4>
-<p>Both JSON-LD and Turtle can represent sequential lists of values.</p>
-
-<pre class="example" data-transform="updateExample"
- title="A list of values in Turtle">
-<!--
-@prefix foaf: <http://xmlns.com/foaf/0.1/> .
-
-<http://example.org/people#joebob> a foaf:Person;
- foaf:name "Joe Bob";
- foaf:nick ( "joe" "bob" "jaybee" ) .
--->
-</pre>
-
-<pre class="example" data-transform="updateExample"
- title="Same example with a list of values in JSON-LD">
-<!--
-{
- "@context":
- {
- "foaf": "http://xmlns.com/foaf/0.1/"
- },
- "@id": "http://example.org/people#joebob",
- "@type": "foaf:Person",
- "foaf:name": "Joe Bob",
- "foaf:nick":
- {
- "@list": [ "joe", "bob", "jaybee" ]
- }
-}
--->
-</pre>
-</section>
-
-</section>
-
-<section>
-<h3>RDFa</h3>
-
-<p>The following example describes three people with their respective names and
- homepages in RDFa [[RDFA-CORE]].</p>
-
-<pre class="example" data-transform="updateExample"
- title="RDFa fragment that describes three people">
-<!--
-<div ****prefix="foaf: http://xmlns.com/foaf/0.1/"****>
- <ul>
- <li ****typeof="foaf:Person"****>
- <a ****rel="foaf:homepage" href="http://example.com/bob/" property="foaf:name"****>Bob</a>
- </li>
- <li ****typeof="foaf:Person"****>
- <a ****rel="foaf:homepage" href="http://example.com/eve/" property="foaf:name"****>Eve</a>
- </li>
- <li ****typeof="foaf:Person"****>
- <a ****rel="foaf:homepage" href="http://example.com/manu/" property="foaf:name"****>Manu</a>
- </li>
- </ul>
-</div>
--->
-</pre>
-
-<p>An example JSON-LD implementation using a single <tref>context</tref> is
- described below.</p>
-
-<pre class="example" data-transform="updateExample"
- title="Same description in JSON-LD (context shared among node objects)">
-<!--
-{
- "@context":
- {
- "foaf": "http://xmlns.com/foaf/0.1/"
- },
- "@graph":
- [
+ <h2>Relationship to Other Linked Data Formats</h2>
+
+ <p>The JSON-LD examples below demonstrate how JSON-LD can be used to
+ express semantic data marked up in other linked data formats such as Turtle,
+ RDFa, Microformats, and Microdata. These sections are merely provided as
+ evidence that JSON-LD is very flexible in what it can express across different
+ <tref>Linked Data</tref> approaches.</p>
+
+ <section>
+ <h3>Turtle</h3>
+
+ <p>The following are examples of converting RDF expressed in Turtle [[TURTLE-TR]]
+ into JSON-LD.</p>
+
+ <section>
+ <h4>Prefix definitions</h4>
+
+ <p>The JSON-LD context has direct equivalents for the Turtle
+ <code>@prefix</code> declaration:</p>
+
+ <pre class="example" data-transform="updateExample"
+ title="A set of statements serialized in Turtle">
+ <!--
+ @prefix foaf: <http://xmlns.com/foaf/0.1/> .
+
+ <http://manu.sporny.org/i/public> a foaf:Person;
+ foaf:name "Manu Sporny";
+ foaf:homepage <http://manu.sporny.org/> .
+ -->
+ </pre>
+
+ <pre class="example" data-transform="updateExample"
+ title="The same set of statements serialized in JSON-LD">
+ <!--
+ {
+ "@context":
+ {
+ "foaf": "http://xmlns.com/foaf/0.1/"
+ },
+ "@id": "http://manu.sporny.org/i/public",
+ "@type": "foaf:Person",
+ "foaf:name": "Manu Sporny",
+ "foaf:homepage": { "@id": "http://manu.sporny.org/" }
+ }
+ -->
+ </pre>
+ </section>
+
+ <section>
+ <h4>Embedding</h4>
+
+ <p>Both Turtle and JSON-LD allow embedding, although Turtle only allows embedding of
+ <tref title="blank node">blank nodes</tref>.</p>
+
+ <pre class="example" data-transform="updateExample"
+ title="Embedding in Turtle">
+ <!--
+ @prefix foaf: <http://xmlns.com/foaf/0.1/> .
+
+ <http://manu.sporny.org/i/public>
+ a foaf:Person;
+ foaf:name "Manu Sporny";
+ foaf:knows [ a foaf:Person; foaf:name "Gregg Kellogg" ] .
+ -->
+ </pre>
+
+ <pre class="example" data-transform="updateExample"
+ title="Same embedding example in JSON-LD">
+ <!--
+ {
+ "@context":
+ {
+ "foaf": "http://xmlns.com/foaf/0.1/"
+ },
+ "@id": "http://manu.sporny.org/i/public",
+ "@type": "foaf:Person",
+ "foaf:name": "Manu Sporny",
+ "foaf:knows":
+ {
+ "@type": "foaf:Person",
+ "foaf:name": "Gregg Kellogg"
+ }
+ }
+ -->
+ </pre>
+ </section>
+
+ <section>
+ <h4>Lists</h4>
+ <p>Both JSON-LD and Turtle can represent sequential lists of values.</p>
+
+ <pre class="example" data-transform="updateExample"
+ title="A list of values in Turtle">
+ <!--
+ @prefix foaf: <http://xmlns.com/foaf/0.1/> .
+
+ <http://example.org/people#joebob> a foaf:Person;
+ foaf:name "Joe Bob";
+ foaf:nick ( "joe" "bob" "jaybee" ) .
+ -->
+ </pre>
+
+ <pre class="example" data-transform="updateExample"
+ title="Same example with a list of values in JSON-LD">
+ <!--
+ {
+ "@context":
+ {
+ "foaf": "http://xmlns.com/foaf/0.1/"
+ },
+ "@id": "http://example.org/people#joebob",
+ "@type": "foaf:Person",
+ "foaf:name": "Joe Bob",
+ "foaf:nick":
+ {
+ "@list": [ "joe", "bob", "jaybee" ]
+ }
+ }
+ -->
+ </pre>
+ </section>
+ </section>
+
+ <section>
+ <h3>RDFa</h3>
+
+ <p>The following example describes three people with their respective names and
+ homepages in RDFa [[RDFA-CORE]].</p>
+
+ <pre class="example" data-transform="updateExample"
+ title="RDFa fragment that describes three people">
+ <!--
+ <div ****prefix="foaf: http://xmlns.com/foaf/0.1/"****>
+ <ul>
+ <li ****typeof="foaf:Person"****>
+ <a ****rel="foaf:homepage" href="http://example.com/bob/" property="foaf:name"****>Bob</a>
+ </li>
+ <li ****typeof="foaf:Person"****>
+ <a ****rel="foaf:homepage" href="http://example.com/eve/" property="foaf:name"****>Eve</a>
+ </li>
+ <li ****typeof="foaf:Person"****>
+ <a ****rel="foaf:homepage" href="http://example.com/manu/" property="foaf:name"****>Manu</a>
+ </li>
+ </ul>
+ </div>
+ -->
+ </pre>
+
+ <p>An example JSON-LD implementation using a single <tref>context</tref> is
+ described below.</p>
+
+ <pre class="example" data-transform="updateExample"
+ title="Same description in JSON-LD (context shared among node objects)">
+ <!--
{
- "@type": "foaf:Person",
- "foaf:homepage": "http://example.com/bob/",
- "foaf:name": "Bob"
- },
- {
- "@type": "foaf:Person",
- "foaf:homepage": "http://example.com/eve/",
- "foaf:name": "Eve"
- },
- {
- "@type": "foaf:Person",
- "foaf:homepage": "http://example.com/manu/",
- "foaf:name": "Manu"
+ "@context":
+ {
+ "foaf": "http://xmlns.com/foaf/0.1/"
+ },
+ "@graph":
+ [
+ {
+ "@type": "foaf:Person",
+ "foaf:homepage": "http://example.com/bob/",
+ "foaf:name": "Bob"
+ },
+ {
+ "@type": "foaf:Person",
+ "foaf:homepage": "http://example.com/eve/",
+ "foaf:name": "Eve"
+ },
+ {
+ "@type": "foaf:Person",
+ "foaf:homepage": "http://example.com/manu/",
+ "foaf:name": "Manu"
+ }
+ ]
}
- ]
-}
--->
-</pre>
-
-</section>
-
-<section>
-<h3>Microformats</h3>
-
-<p>The following example uses a simple Microformats hCard example to express
- how Microformats [[MICROFORMATS]] are represented in JSON-LD.</p>
-
-<pre class="example" data-transform="updateExample"
- title="HTML fragment with a simple Microformats hCard">
-<!--
-<div class="vcard">
- <a class="url fn" href="http://tantek.com/">Tantek Çelik</a>
-</div>
--->
-</pre>
-
-<p>The representation of the hCard expresses the Microformat terms in the
- <tref>context</tref> and uses them directly for the <code>url</code> and <code>fn</code>
- properties. Also note that the Microformat to JSON-LD processor has
- generated the proper URL type for <code>http://tantek.com/</code>.</p>
-
-<pre class="example" data-transform="updateExample"
- title="Same hCard representation in JSON-LD">
-<!--
-{
- "@context":
- {
- "vcard": "http://microformats.org/profile/hcard#vcard",
- "url":
+ -->
+ </pre>
+ </section>
+
+ <section>
+ <h3>Microformats</h3>
+
+ <p>The following example uses a simple Microformats hCard example to express
+ how Microformats [[MICROFORMATS]] are represented in JSON-LD.</p>
+
+ <pre class="example" data-transform="updateExample"
+ title="HTML fragment with a simple Microformats hCard">
+ <!--
+ <div class="vcard">
+ <a class="url fn" href="http://tantek.com/">Tantek Çelik</a>
+ </div>
+ -->
+ </pre>
+
+ <p>The representation of the hCard expresses the Microformat terms in the
+ <tref>context</tref> and uses them directly for the <code>url</code> and <code>fn</code>
+ properties. Also note that the Microformat to JSON-LD processor has
+ generated the proper URL type for <code>http://tantek.com/</code>.</p>
+
+ <pre class="example" data-transform="updateExample"
+ title="Same hCard representation in JSON-LD">
+ <!--
{
- "@id": "http://microformats.org/profile/hcard#url",
- "@type": "@id"
- },
- "fn": "http://microformats.org/profile/hcard#fn"
- },
- "@type": "vcard",
- "url": "http://tantek.com/",
- "fn": "Tantek Çelik"
-}
--->
-</pre>
-
-</section>
-
-<section>
-<h3>Microdata</h3>
-
-<p>The HTML Microdata [[MICRODATA]] example below expresses book information as
- a Microdata Work item.</p>
-
-<pre class="example" data-transform="updateExample"
- title="HTML fragments that describes a book using microdata">
-<!--
-<dl itemscope
- itemtype="http://purl.org/vocab/frbr/core#Work"
- itemid="http://purl.oreilly.com/works/45U8QJGZSQKDH8N">
- <dt>Title</dt>
- <dd><cite itemprop="http://purl.org/dc/terms/title">Just a Geek</cite></dd>
- <dt>By</dt>
- <dd><span itemprop="http://purl.org/dc/terms/creator">Wil Wheaton</span></dd>
- <dt>Format</dt>
- <dd itemprop="http://purl.org/vocab/frbr/core#realization"
- itemscope
- itemtype="http://purl.org/vocab/frbr/core#Expression"
- itemid="http://purl.oreilly.com/products/9780596007683.BOOK">
- <link itemprop="http://purl.org/dc/terms/type" href="http://purl.oreilly.com/product-types/BOOK">
- Print
- </dd>
- <dd itemprop="http://purl.org/vocab/frbr/core#realization"
- itemscope
- itemtype="http://purl.org/vocab/frbr/core#Expression"
- itemid="http://purl.oreilly.com/products/9780596802189.EBOOK">
- <link itemprop="http://purl.org/dc/terms/type" href="http://purl.oreilly.com/product-types/EBOOK">
- Ebook
- </dd>
-</dl>
--->
-</pre>
-
-<p>Note that the JSON-LD representation of the Microdata information stays
- true to the desires of the Microdata community to avoid contexts and
- instead refer to items by their full <tref>IRI</tref>.</p>
-
-<pre class="example" data-transform="updateExample"
- title="Same book description in JSON-LD (avoiding contexts)">
-<!--
-[
- {
- "@id": "http://purl.oreilly.com/works/45U8QJGZSQKDH8N",
- "@type": "http://purl.org/vocab/frbr/core#Work",
- "http://purl.org/dc/terms/title": "Just a Geek",
- "http://purl.org/dc/terms/creator": "Whil Wheaton",
- "http://purl.org/vocab/frbr/core#realization":
+ "@context":
+ {
+ "vcard": "http://microformats.org/profile/hcard#vcard",
+ "url":
+ {
+ "@id": "http://microformats.org/profile/hcard#url",
+ "@type": "@id"
+ },
+ "fn": "http://microformats.org/profile/hcard#fn"
+ },
+ "@type": "vcard",
+ "url": "http://tantek.com/",
+ "fn": "Tantek Çelik"
+ }
+ -->
+ </pre>
+ </section>
+
+ <section>
+ <h3>Microdata</h3>
+
+ <p>The HTML Microdata [[MICRODATA]] example below expresses book information as
+ a Microdata Work item.</p>
+
+ <pre class="example" data-transform="updateExample"
+ title="HTML fragments that describes a book using microdata">
+ <!--
+ <dl itemscope
+ itemtype="http://purl.org/vocab/frbr/core#Work"
+ itemid="http://purl.oreilly.com/works/45U8QJGZSQKDH8N">
+ <dt>Title</dt>
+ <dd><cite itemprop="http://purl.org/dc/terms/title">Just a Geek</cite></dd>
+ <dt>By</dt>
+ <dd><span itemprop="http://purl.org/dc/terms/creator">Wil Wheaton</span></dd>
+ <dt>Format</dt>
+ <dd itemprop="http://purl.org/vocab/frbr/core#realization"
+ itemscope
+ itemtype="http://purl.org/vocab/frbr/core#Expression"
+ itemid="http://purl.oreilly.com/products/9780596007683.BOOK">
+ <link itemprop="http://purl.org/dc/terms/type" href="http://purl.oreilly.com/product-types/BOOK">
+ Print
+ </dd>
+ <dd itemprop="http://purl.org/vocab/frbr/core#realization"
+ itemscope
+ itemtype="http://purl.org/vocab/frbr/core#Expression"
+ itemid="http://purl.oreilly.com/products/9780596802189.EBOOK">
+ <link itemprop="http://purl.org/dc/terms/type" href="http://purl.oreilly.com/product-types/EBOOK">
+ Ebook
+ </dd>
+ </dl>
+ -->
+ </pre>
+
+ <p>Note that the JSON-LD representation of the Microdata information stays
+ true to the desires of the Microdata community to avoid contexts and
+ instead refer to items by their full <tref>IRI</tref>.</p>
+
+ <pre class="example" data-transform="updateExample"
+ title="Same book description in JSON-LD (avoiding contexts)">
+ <!--
[
- "http://purl.oreilly.com/products/9780596007683.BOOK",
- "http://purl.oreilly.com/products/9780596802189.EBOOK"
+ {
+ "@id": "http://purl.oreilly.com/works/45U8QJGZSQKDH8N",
+ "@type": "http://purl.org/vocab/frbr/core#Work",
+ "http://purl.org/dc/terms/title": "Just a Geek",
+ "http://purl.org/dc/terms/creator": "Whil Wheaton",
+ "http://purl.org/vocab/frbr/core#realization":
+ [
+ "http://purl.oreilly.com/products/9780596007683.BOOK",
+ "http://purl.oreilly.com/products/9780596802189.EBOOK"
+ ]
+ },
+ {
+ "@id": "http://purl.oreilly.com/products/9780596007683.BOOK",
+ "@type": "http://purl.org/vocab/frbr/core#Expression",
+ "http://purl.org/dc/terms/type": "http://purl.oreilly.com/product-types/BOOK"
+ },
+ {
+ "@id": "http://purl.oreilly.com/products/9780596802189.EBOOK",
+ "@type": "http://purl.org/vocab/frbr/core#Expression",
+ "http://purl.org/dc/terms/type": "http://purl.oreilly.com/product-types/EBOOK"
+ }
]
- },
- {
- "@id": "http://purl.oreilly.com/products/9780596007683.BOOK",
- "@type": "http://purl.org/vocab/frbr/core#Expression",
- "http://purl.org/dc/terms/type": "http://purl.oreilly.com/product-types/BOOK"
- },
- {
- "@id": "http://purl.oreilly.com/products/9780596802189.EBOOK",
- "@type": "http://purl.org/vocab/frbr/core#Expression",
- "http://purl.org/dc/terms/type": "http://purl.oreilly.com/product-types/EBOOK"
- }
-]
--->
-</pre>
-</section>
+ -->
+ </pre>
+ </section>
</section>
<section class="appendix normative">
@@ -3396,8 +3395,7 @@
<p>Fragment identifiers used with <a href="#application-ld-json">application/ld+json</a>
are treated as in RDF syntaxes, as per
<cite><a href="http://www.w3.org/TR/rdf11-concepts/#section-fragID">RDF 1.1 Concepts and Abstract Syntax</a></cite>
- [[RDF-CONCEPTS]].
-</p>
+ [[RDF-CONCEPTS]].</p>
</section>
<section class="appendix informative">