Skip to content

Commit

Permalink
Merge pull request #316 from w3c/remove-json-ld
Browse files Browse the repository at this point in the history
Removed JSON-LD text (closes #313)
  • Loading branch information
Marcos Caceres committed Feb 17, 2015
2 parents 11424c5 + 9a7f626 commit 697207e
Showing 1 changed file with 0 additions and 82 deletions.
82 changes: 0 additions & 82 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2209,88 +2209,6 @@ <h3>
</section>
</section>
</section>
<section id="json-ld-extensions" class="appendix">
<h3>
JSON-LD extensions to the manifest
</h3>
<p>
The mechanisms defined by the [[JSON-LD]] specification can be used as
an alternative mechanism for extending the manifest.
</p>
<p>
In the following example, for instance, elements from both the Dublin
Core Metadata Set [[DC-TERMS]], the Friend of a Friend [[FOAF]]
vocabulary, and the <a href=
"https://github.com/edumbill/doap/wiki">Description of a Project
(DOAP)</a> vocabulary are used to provide additional information in the
manifest:
</p>
<pre class="example hightlight json" title="JSON-LD extensions">
{
"@context": {
"@vocab": "http://www.w3.org/TR/appmanifest/",
"foaf": "http://xmlns.com/foaf/0.1/",
"dct": "http://purl.org/dc/terms/",
"doap": "http://usefulinc.com/ns/doap#"
},
"name": "Super Racer 2000",
"dct:creator": "http://example.com",
"dct:abstract": "A Super Racer Game!",
"doap:maintainer": {
"foaf:name": "Joe"
},
"icons": [{
"src": "icon/lowres",
"sizes": "64x64",
"type": "image/webp"
}, {
"src": "icon/hd_small",
"sizes": "64x64"
}, {
"src": "icon/hd_hi",
"sizes": "128x128"
}],
"start_url": "/start.html",
"display": "fullscreen",
"orientation": "landscape"
}
</pre>
<p>
Non JSON-LD implementations can simply ignore the additional JSON-LD
specific metadata such as <code>@context</code> and the extension
properties <code>dct:creator</code>, <code>dct:abstract</code> and
<code>doap:maintainer</code>.
</p>
<p>
For implementations that do process the manifest as JSON-LD, the
manifest's own property names are interpreted relative to the base URI
"<code>http://www.w3.org/TR/appmanifest/</code>".
</p>
<p>
After processing the example above, a JSON-LD implementation would
yield the following normalized output:
</p>
<pre class="example highlight">
_:c14n0 &lt;http://www.w3.org/TR/appmanifest/sizes&gt; "64x64" .
_:c14n0 &lt;http://www.w3.org/TR/appmanifest/src&gt; "icon/hd_small" .
_:c14n1 &lt;http://purl.org/dc/terms/abstract&gt; "A Super Racer Game!" .
_:c14n1 &lt;http://purl.org/dc/terms/creator&gt; "http://example.com" .
_:c14n1 &lt;http://usefulinc.com/ns/doap#maintainer&gt; _:c14n4 .
_:c14n1 &lt;http://www.w3.org/TR/appmanifest/display&gt; "fullscreen" .
_:c14n1 &lt;http://www.w3.org/TR/appmanifest/icons&gt; _:c14n0 .
_:c14n1 &lt;http://www.w3.org/TR/appmanifest/icons&gt; _:c14n2 .
_:c14n1 &lt;http://www.w3.org/TR/appmanifest/icons&gt; _:c14n3 .
_:c14n1 &lt;http://www.w3.org/TR/appmanifest/name&gt; "Super Racer 2000" .
_:c14n1 &lt;http://www.w3.org/TR/appmanifest/orientation&gt; "landscape" .
_:c14n1 &lt;http://www.w3.org/TR/appmanifest/start_url&gt; "/start.html" .
_:c14n2 &lt;http://www.w3.org/TR/appmanifest/sizes&gt; "64x64" .
_:c14n2 &lt;http://www.w3.org/TR/appmanifest/src&gt; "icon/lowres" .
_:c14n2 &lt;http://www.w3.org/TR/appmanifest/type&gt; "image/webp" .
_:c14n3 &lt;http://www.w3.org/TR/appmanifest/sizes&gt; "128x128" .
_:c14n3 &lt;http://www.w3.org/TR/appmanifest/src&gt; "icon/hd_hi" .
_:c14n4 &lt;http://xmlns.com/foaf/0.1/name&gt; "Joe" .
</pre>
</section>
<section class="appendix">
<h2>
Relationship to HTML's <code>link</code> and <code>meta</code> elements
Expand Down

0 comments on commit 697207e

Please sign in to comment.