--- a/spec/ED/20110615/diff-20110507.html Wed Jun 15 10:27:43 2011 -0700
+++ b/spec/ED/20110615/diff-20110507.html Wed Jun 15 12:55:40 2011 -0700
@@ -1,13 +1,16 @@
-<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>
-<html lang="en" dir="ltr">
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
+<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>JSON-LD - Linked Data Expression in JSON</title>
-<meta http-equiv="content-type" content="text/html; charset=UTF-8">
-<!--
+<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+
+<!--
=== NOTA BENE ===
For the three scripts below, if your spec resides on dev.w3 you can check them
out in the same tree and use relative links so that they'll work offline,
- -->
+ -->
+
<style>
@@ -477,7 +480,11 @@
pre.sh_sourceCode .sh_paren { color: red; }
pre.sh_sourceCode .sh_attribute { color: #006400; }
-</style><link href="http://www.w3.org/StyleSheets/TR/w3c-unofficial" rel="stylesheet" type="text/css" charset="utf-8"><style type='text/css'>
+</style><style type="text/css">ol.algorithm { counter-reset:numsection; list-style-type: none; }
+ol.algorithm li { margin: 0.5em 0; }
+ol.algorithm li:before { font-weight: bold; counter-increment: numsection; content: counters(numsection, ".") ") "; }
+
+</style><link href="http://www.w3.org/StyleSheets/TR/w3c-unofficial" rel="stylesheet" type="text/css" charset="utf-8" /><style type='text/css'>
.diff-old-a {
font-size: smaller;
color: red;
@@ -497,6 +504,8 @@
:focus { border: thin red solid}
</style>
</head>
+
+
<body style="display: inherit; ">
<div class="head">
<p>
@@ -522,14 +531,13 @@
<h2 id="unofficial-draft-15-june-2011">
Unofficial
Draft
-<del class="diff-old">30
+<del class="diff-old">07
May
-2010
</del>
<ins class="diff-chg">15
June
+</ins>
2011
-</ins>
</h2>
<dl>
<dt>
@@ -582,6 +590,23 @@
</a>
</dd>
</dl>
+<p>
+This
+document
+is
+also
+available
+in
+this
+non-normative
+format:
+<a href="diff-20110507.html">
+diff
+to
+previous
+version
+</a>.
+</p>
<p class="copyright">
This
document
@@ -597,7 +622,7 @@
License
</a>.
</p>
-<hr>
+<hr />
</div>
<div id="abstract" class="introductory section">
<h2>
@@ -677,12 +702,7 @@
serialization
and
messaging
-<del class="diff-old">replacement
-for
-SOAP.
-</del>
-<ins class="diff-chg">format.
-</ins>
+format.
In
an
attempt
@@ -691,10 +711,7 @@
the
representation
of
-<del class="diff-old">Link
-</del>
-<ins class="diff-chg">Linked
-</ins>
+Linked
Data
in
JSON,
@@ -766,7 +783,7 @@
organisation.
</p>
<p>
-<ins class="diff-chg">This
+This
document
is
an
@@ -774,7 +791,7 @@
work
in
progress.
-</ins></p>
+</p>
</div>
<div id="toc" class="section">
<h2 class="introductory">
@@ -788,10 +805,14 @@
<span class="secno">
1.
</span>
-<ins class="diff-new">Introduction
-</ins></a><ul class="toc"><li class="tocline"><a href="#how-to-read-this-document" class="tocxref"><span class="secno"><ins class="diff-new">
+Introduction
+</a>
+<ul class="toc">
+<li class="tocline">
+<a href="#how-to-read-this-document" class="tocxref">
+<span class="secno">
1.1
-</ins></span>
+</span>
How
to
Read
@@ -802,15 +823,9 @@
<li class="tocline">
<a href="#contributing" class="tocxref">
<span class="secno">
-<del class="diff-old">2.
-</del>
-<ins class="diff-chg">1.2
-</ins>
+1.2
</span>
-<del class="diff-old">Introduction
-</del>
-<ins class="diff-chg">Contributing
-</ins>
+Contributing
</a>
</li>
</ul>
@@ -818,40 +833,26 @@
<li class="tocline">
<a href="#design-goals-and-rationale" class="tocxref">
<span class="secno">
-<del class="diff-old">3.
-</del>
-<ins class="diff-chg">2.
-</ins>
+2.
</span>
Design
Goals
-<ins class="diff-new">and
+and
Rationale
-</ins>
</a>
<ul class="toc">
<li class="tocline">
<a href="#goals" class="tocxref">
<span class="secno">
-<del class="diff-old">4.
-</del>
-<ins class="diff-chg">2.1
-</ins>
+2.1
</span>
-<del class="diff-old">Design
-Rationale
-</del>
-<ins class="diff-chg">Goals
-</ins>
+Goals
</a>
</li>
<li class="tocline">
<a href="#map-terms-to-iris" class="tocxref">
<span class="secno">
-<del class="diff-old">4.1
-</del>
-<ins class="diff-chg">2.2
-</ins>
+2.2
</span>
Map
Terms
@@ -862,35 +863,28 @@
<li class="tocline">
<a href="#the-json-ld-context" class="tocxref">
<span class="secno">
-<del class="diff-old">4.2
-</del>
-<ins class="diff-chg">2.3
-</ins>
+2.3
</span>
The
-<del class="diff-old">Default
-</del>
-<ins class="diff-chg">JSON-LD
-</ins>
+JSON-LD
Context
</a>
</li>
<li class="tocline">
<a href="#unambiguous-identifiers-for-json" class="tocxref">
<span class="secno">
-<ins class="diff-new">2.4
-</ins></span><ins class="diff-new">
+2.4
+</span>
Unambiguous
Identifiers
for
JSON
-</ins></a></li><li class="tocline">
+</a>
+</li>
+<li class="tocline">
<a href="#mashing-up-vocabularies" class="tocxref">
<span class="secno">
-<del class="diff-old">4.3
-</del>
-<ins class="diff-chg">2.5
-</ins>
+2.5
</span>
Mashing
Up
@@ -900,17 +894,12 @@
<li class="tocline">
<a href="#an-example-of-a-context" class="tocxref">
<span class="secno">
-<del class="diff-old">4.4
-</del>
-<ins class="diff-chg">2.6
-</ins>
+2.6
</span>
An
Example
of
a
-<del class="diff-old">Default
-</del>
Context
</a>
</li>
@@ -919,10 +908,7 @@
<li class="tocline">
<a href="#markup-examples" class="tocxref">
<span class="secno">
-<del class="diff-old">4.5
-</del>
-<ins class="diff-chg">3.
-</ins>
+3.
</span>
Markup
Examples
@@ -931,10 +917,7 @@
<li class="tocline">
<a href="#rdfa" class="tocxref">
<span class="secno">
-<del class="diff-old">4.5.1
-</del>
-<ins class="diff-chg">3.1
-</ins>
+3.1
</span>
RDFa
</a>
@@ -942,10 +925,7 @@
<li class="tocline">
<a href="#microformats" class="tocxref">
<span class="secno">
-<del class="diff-old">4.5.2
-</del>
-<ins class="diff-chg">3.2
-</ins>
+3.2
</span>
Microformats
</a>
@@ -953,10 +933,7 @@
<li class="tocline">
<a href="#microdata" class="tocxref">
<span class="secno">
-<del class="diff-old">4.5.3
-</del>
-<ins class="diff-chg">3.3
-</ins>
+3.3
</span>
Microdata
</a>
@@ -964,6 +941,12 @@
</ul>
</li>
<li class="tocline">
+<del class="diff-old">4.
+The
+JSON-LD
+Processing
+Algorithm
+</del>
<a href="#markup-of-rdf-concepts" class="tocxref">
<span class="secno">
<del class="diff-old">5.
@@ -1103,23 +1086,19 @@
<li class="tocline">
<a href="#advanced-features" class="tocxref">
<span class="secno">
-<del class="diff-old">5.10
+<del class="diff-old">6.
</del>
<ins class="diff-chg">5.
</ins>
</span>
-<del class="diff-old">Escape
-Character
-</del>
-<ins class="diff-chg">Advanced
+Advanced
Features
-</ins>
</a>
<ul class="toc">
<li class="tocline">
<a href="#automatic-typing" class="tocxref">
<span class="secno">
-<del class="diff-old">5.11
+<del class="diff-old">6.1
</del>
<ins class="diff-chg">5.1
</ins>
@@ -1131,11 +1110,15 @@
<li class="tocline">
<a href="#type-coercion" class="tocxref">
<span class="secno">
-<ins class="diff-new">5.2
-</ins></span><ins class="diff-new">
+<del class="diff-old">6.2
+</del>
+<ins class="diff-chg">5.2
+</ins>
+</span>
Type
Coercion
-</ins></a></li>
+</a>
+</li>
</ul>
</li>
<li class="tocline">
@@ -1181,77 +1164,151 @@
</ins></span><ins class="diff-chg">
IRI
Processing
-</ins></a></li></ul></li><li class="tocline"><a href="#sequence" class="tocxref"><span class="secno"><ins class="diff-chg">
+</ins></a></li></ul></li><li class="tocline"><a href="#sequence" class="tocxref">
+<span class="secno">
7.
-</ins></span><ins class="diff-chg">
-Sequence
-</ins></a></li><li class="tocline"><a href="#best-practices" class="tocxref"><span class="secno"><ins class="diff-chg">
+</span>
+<ins class="diff-new">Sequence
+</ins></a></li><li class="tocline"><a href="#best-practices" class="tocxref"><span class="secno"><ins class="diff-new">
8.
-</ins></span><ins class="diff-chg">
+</ins></span>
Best
Practices
-</ins></a><ul class="toc"><li class="tocline"><a href="#javascript" class="tocxref"><span class="secno"><ins class="diff-chg">
-8.1
-</ins></span><ins class="diff-chg">
+</a>
+<ul class="toc">
+<li class="tocline">
+<a href="#javascript" class="tocxref">
+<span class="secno">
+<del class="diff-old">7.1
+</del>
+<ins class="diff-chg">8.1
+</ins>
+</span>
JavaScript
-</ins></a></li><li class="tocline"><a href="#schema-less-databases" class="tocxref"><span class="secno"><ins class="diff-chg">
-8.2
-</ins></span><ins class="diff-chg">
+</a>
+</li>
+<li class="tocline">
+<a href="#schema-less-databases" class="tocxref">
+<span class="secno">
+<del class="diff-old">7.2
+</del>
+<ins class="diff-chg">8.2
+</ins>
+</span>
Schema-less
Databases
-</ins></a></li></ul></li><li class="tocline"><a href="#advanced-concepts" class="tocxref"><span class="secno"><ins class="diff-chg">
-9.
-</ins></span><ins class="diff-chg">
+</a>
+</li>
+</ul>
+</li>
+<li class="tocline">
+<a href="#advanced-concepts" class="tocxref">
+<span class="secno">
+<del class="diff-old">8.
+</del>
+<ins class="diff-chg">9.
+</ins>
+</span>
Advanced
Concepts
-</ins></a><ul class="toc"><li class="tocline"><a href="#vocabulary-profiles" class="tocxref"><span class="secno"><ins class="diff-chg">
-9.1
-</ins></span><ins class="diff-chg">
+</a>
+<ul class="toc">
+<li class="tocline">
+<a href="#vocabulary-profiles" class="tocxref">
+<span class="secno">
+<del class="diff-old">8.1
+</del>
+<ins class="diff-chg">9.1
+</ins>
+</span>
Vocabulary
Profiles
-</ins></a></li><li class="tocline"><a href="#disjoint-graphs" class="tocxref"><span class="secno"><ins class="diff-chg">
-9.2
-</ins></span><ins class="diff-chg">
+</a>
+</li>
+<li class="tocline">
+<a href="#disjoint-graphs" class="tocxref">
+<span class="secno">
+<del class="diff-old">8.2
+</del>
+<ins class="diff-chg">9.2
+</ins>
+</span>
Disjoint
Graphs
-</ins></a></li><li class="tocline"><a href="#the-json-ld-api" class="tocxref"><span class="secno"><ins class="diff-chg">
-9.3
-</ins></span><ins class="diff-chg">
+</a>
+</li>
+<li class="tocline">
+<a href="#the-json-ld-api" class="tocxref">
+<span class="secno">
+<del class="diff-old">8.3
+</del>
+<ins class="diff-chg">9.3
+</ins>
+</span>
The
JSON-LD
API
-</ins></a><ul class="toc"><li class="tocline"><a href="#methods" class="tocxref"><span class="secno"><ins class="diff-chg">
-9.3.1
-</ins></span><ins class="diff-chg">
+</a>
+<ul class="toc">
+<li class="tocline">
+<a href="#methods" class="tocxref">
+<span class="secno">
+<del class="diff-old">8.3.1
+</del>
+<ins class="diff-chg">9.3.1
+</ins>
+</span>
Methods
-</ins></a></li><li class="tocline"><a href="#methods-1" class="tocxref"><span class="secno"><ins class="diff-chg">
-9.3.2
-</ins></span><ins class="diff-chg">
+</a>
+</li>
+<li class="tocline">
+<a href="#methods-1" class="tocxref">
+<span class="secno">
+<del class="diff-old">8.3.2
+</del>
+<ins class="diff-chg">9.3.2
+</ins>
+</span>
Methods
-</ins></a></li><li class="tocline"><a href="#methods-2" class="tocxref"><span class="secno"><ins class="diff-chg">
-9.3.3
-</ins></span><ins class="diff-chg">
+</a>
+</li>
+<li class="tocline">
+<a href="#methods-2" class="tocxref">
+<span class="secno">
+<del class="diff-old">8.3.3
+</del>
+<ins class="diff-chg">9.3.3
+</ins>
+</span>
Methods
-</ins></a></li></ul></li></ul></li><li class="tocline"><a href="#the-default-context" class="tocxref">
+</a>
+</li>
+</ul>
+</li>
+</ul>
+</li>
+<li class="tocline">
+<a href="#the-default-context" class="tocxref">
<span class="secno">
A.
</span>
-<ins class="diff-new">The
+The
Default
Context
-</ins></a></li><li class="tocline"><a href="#acknowledgements" class="tocxref"><span class="secno"><ins class="diff-new">
+</a>
+</li>
+<li class="tocline">
+<a href="#acknowledgements" class="tocxref">
+<span class="secno">
B.
-</ins></span>
+</span>
Acknowledgements
</a>
</li>
<li class="tocline">
<a href="#references" class="tocxref">
<span class="secno">
-<del class="diff-old">B.
-</del>
-<ins class="diff-chg">C.
-</ins>
+C.
</span>
References
</a>
@@ -1259,10 +1316,7 @@
<li class="tocline">
<a href="#normative-references" class="tocxref">
<span class="secno">
-<del class="diff-old">B.1
-</del>
-<ins class="diff-chg">C.1
-</ins>
+C.1
</span>
Normative
references
@@ -1271,10 +1325,7 @@
<li class="tocline">
<a href="#informative-references" class="tocxref">
<span class="secno">
-<del class="diff-old">B.2
-</del>
-<ins class="diff-chg">C.2
-</ins>
+C.2
</span>
Informative
references
@@ -1289,8 +1340,9 @@
<span class="secno">
1.
</span>
-<ins class="diff-new">Introduction
-</ins></h2><p><ins class="diff-new">
+Introduction
+</h2>
+<p>
JSON-LD
is
designed
@@ -1476,16 +1528,18 @@
order
to
operate.
-</ins></p><p><ins class="diff-new">
-JSON,
+</p>
+<p>
+<ins class="diff-new">JSON,
as
specified
in
[
</ins><cite><a class="bibref" rel="biblioentry" href="#bib-RFC4627"><ins class="diff-new">
RFC4627
-</ins></a></cite><ins class="diff-new">
-],
+</ins></a>
+</cite>
+<ins class="diff-new">],
is
a
simple
@@ -1552,9 +1606,13 @@
data
in
JSON.
-</ins></p><div id="how-to-read-this-document" class="section"><h3><span class="secno"><ins class="diff-new">
+</ins>
+</p>
+<div id="how-to-read-this-document" class="section">
+<h3>
+<span class="secno">
1.1
-</ins></span>
+</span>
How
to
Read
@@ -1588,9 +1646,7 @@
</p>
<ul>
<li>
-<del class="diff-old">Developers
-</del>
-<ins class="diff-chg">Web
+Web
developers
that
want
@@ -1604,10 +1660,10 @@
syntax
for
JSON-LD.
-</ins></li><li><ins class="diff-chg">
+</li>
+<li>
Software
developers
-</ins>
that
want
to
@@ -1627,24 +1683,15 @@
JSON.
</li>
<li>
-<del class="diff-old">Developers
-</del>
-<ins class="diff-chg">Software
+Software
developers
-</ins>
that
want
to
-<del class="diff-old">understand
-the
-encoding
-possibilities.
-</del>
-<ins class="diff-chg">write
+write
processors
for
JSON-LD.
-</ins>
</li>
</ul>
<p>
@@ -1669,35 +1716,31 @@
RFC4627
</a>
</cite>
-<ins class="diff-new">]
-and
-RDF
+]
+and
+<ins class="diff-new">RDF
as
described
in
+</ins>
[
-</ins><cite><a class="bibref" rel="biblioentry" href="#bib-RDF-CONCEPTS"><ins class="diff-new">
+<cite>
+<a class="bibref" rel="biblioentry" href="#bib-RDF-CONCEPTS">
RDF-CONCEPTS
-</ins></a></cite>
+</a>
+</cite>
].
</p>
</div>
<div id="contributing" class="section">
<h3>
<span class="secno">
-<ins class="diff-chg">1.2
-</ins></span><ins class="diff-chg">
+1.2
+</span>
Contributing
-</ins></h3>
+</h3>
<p>
-<del class="diff-old">This
-document
-is
-an
-experimental
-work
-</del>
-<ins class="diff-chg">There
+There
are
a
number
@@ -1707,20 +1750,16 @@
one
may
participate
-</ins>
-in
-<del class="diff-old">progress.
-</del>
-<ins class="diff-chg">the
+in
+the
development
of
this
specification:
-</ins>
</p>
<ul>
<li>
-<ins class="diff-new">All
+All
comments
and
discussion
@@ -1731,9 +1770,11 @@
public
mailing
list:
-</ins><a href="http://lists.w3.org/Archives/Public/public-linked-json/"><ins class="diff-new">
+<a href="http://lists.w3.org/Archives/Public/public-linked-json/">
public-linked-json@w3.org
-</ins></a></li><li><ins class="diff-new">
+</a>
+</li>
+<li>
Specification
bugs
and
@@ -1743,13 +1784,16 @@
reported
in
the
-</ins><a href="https://github.com/json-ld/json-ld.org/issues"><ins class="diff-new">
+<a href="https://github.com/json-ld/json-ld.org/issues">
issue
tracker
-</ins></a>.</li><li><a href="https://github.com/json-ld/json-ld.org/tree/master/spec"><ins class="diff-new">
+</a>.
+</li>
+<li>
+<a href="https://github.com/json-ld/json-ld.org/tree/master/spec">
Source
code
-</ins></a><ins class="diff-new">
+</a>
for
the
specification
@@ -1758,11 +1802,12 @@
found
on
Github.
-</ins></li><li><ins class="diff-new">
+</li>
+<li>
The
-</ins><a href="http://webchat.freenode.net/?channels=#json-ld"><ins class="diff-new">
+<a href="http://webchat.freenode.net/?channels=#json-ld">
#json-ld
-</ins></a><ins class="diff-new">
+</a>
IRC
channel
is
@@ -1772,7 +1817,8 @@
discussion
on
irc.freenode.net.
-</ins></li></ul>
+</li>
+</ul>
</div>
</div>
<div id="design-goals-and-rationale" class="section">
@@ -1780,21 +1826,13 @@
<span class="secno">
2.
</span>
-<del class="diff-old">Introduction
-</del>
-<ins class="diff-chg">Design
+Design
Goals
and
Rationale
-</ins>
</h2>
-<del class="diff-old">Need
-to
-write
-introduction...
-</del>
<p>
-<ins class="diff-chg">The
+The
following
section
outlines
@@ -1808,18 +1846,12 @@
JSON-LD
markup
language.
-</ins>
</p>
<div id="goals" class="section">
<h3>
<span class="secno">
-<del class="diff-old">3.
-</del>
-<ins class="diff-chg">2.1
-</ins>
+2.1
</span>
-<del class="diff-old">Design
-</del>
Goals
</h3>
<p>
@@ -1905,30 +1937,17 @@
human
readable.
</dd>
-<del class="diff-old">4.
-Design
-Rationale
-The
-following
-section
-outlines
-the
-rationale
-behind
-</del>
<dt>
-<ins class="diff-chg">Zero
+Zero
Edits,
most
of
-</ins>
-the
-<ins class="diff-new">time
-</ins></dt><dd>
-JSON-LD
-<del class="diff-old">markup
-</del>
-<ins class="diff-chg">provides
+the
+time
+</dt>
+<dd>
+JSON-LD
+provides
a
mechanism
that
@@ -2029,12 +2048,12 @@
complexity
to
the
-</ins>
language.
</dd>
<dt>
-<ins class="diff-chg">Streaming
-</ins></dt><dd><ins class="diff-chg">
+Streaming
+</dt>
+<dd>
The
format
supports
@@ -2043,14 +2062,13 @@
and
stream-based
processing.
-</ins></dd></dl></div>
+</dd>
+</dl>
+</div>
<div id="map-terms-to-iris" class="section">
<h3>
<span class="secno">
-<del class="diff-old">4.1
-</del>
-<ins class="diff-chg">2.2
-</ins>
+2.2
</span>
Map
Terms
@@ -2159,10 +2177,7 @@
very
small
design
-<del class="diff-old">criterial
-</del>
-<ins class="diff-chg">criteria
-</ins>
+criteria
that
can
ensure
@@ -2205,40 +2220,26 @@
this
section:
</p>
-<del class="diff-old">{"a" : "Person",
- "name" : "Manu Sporny",
-"homepage"
-:
-"http://manu.sporny.org/"}
-</del>
-<pre class="example">{
-<ins class="diff-chg"> "a": "Person",
+<pre class="example">
+{
+ "a": "Person",
"name": "Manu Sporny",
"homepage": "http://manu.sporny.org/"
"avatar": "http://twitter.com/account/profile_image/manusporny"
}
-</ins>
</pre>
</div>
<div id="the-json-ld-context" class="section">
<h3>
<span class="secno">
-<del class="diff-old">4.2
-</del>
-<ins class="diff-chg">2.3
-</ins>
+2.3
</span>
The
-<del class="diff-old">Default
-</del>
-<ins class="diff-chg">JSON-LD
-</ins>
+JSON-LD
Context
</h3>
<p>
A
-<del class="diff-old">default
-</del>
context
is
used
@@ -2250,31 +2251,14 @@
developers
to
use
-<del class="diff-old">keywords
-as
-</del>
aliases
for
<del class="diff-old">IRIs.
-So,
-for
-instance,
-the
-keyword
-name
-above
-could
-refer
-to
-the
</del>
<a class="tref internalDFN" title="IRI" href="#dfn-iri">
-IRI
-<del class="diff-old">http://xmlns.com/foaf/0.1/name
-.
-</del>
-</a>
-<ins class="diff-chg">s.
+<ins class="diff-chg">IRI
+</ins></a><ins class="diff-chg">
+s.
</ins>
The
semantic
@@ -2440,10 +2424,7 @@
in
that
vocabulary.
-<del class="diff-old">Paste
-</del>
-<ins class="diff-chg">Join
-</ins>
+Join
the
two
items
@@ -2456,26 +2437,25 @@
identifier
for
a
-<ins class="diff-new">vocabulary
-</ins>
+vocabulary
term.
-<ins class="diff-new">The
+The
Compact
URI
Expression,
or
short-form,
is
-</ins><code><ins class="diff-new">
+<code>
foaf:name
-</ins></code><ins class="diff-new">
+</code>
and
the
expanded-form
is
-</ins><code><ins class="diff-new">
+<code>
http://xmlns.com/foaf/0.1/name
-</ins></code>.<ins class="diff-new">
+</code>.
This
vocabulary
term
@@ -2491,7 +2471,6 @@
a
person's
name.
-</ins>
</p>
<p>
Developers,
@@ -2569,57 +2548,34 @@
unambiguous.
</p>
<p>
-<del class="diff-old">Non-prefixed
-terms
-should
-have
-term
-mappings
-declared
-in
-the
-default
-</del>
-<ins class="diff-chg">The
-</ins>
+The
context
-<del class="diff-old">so
-</del>
-<ins class="diff-chg">provides
+provides
a
collection
of
vocabulary
terms
-</ins>
-that
-<del class="diff-old">they
-may
-</del>
-<ins class="diff-chg">can
-</ins>
-be
-<del class="diff-old">expanded
-later.
-</del>
-<ins class="diff-chg">used
+that
+can
+be
+used
for
a
JSON
object.
-</ins>
</p>
</div>
<div id="unambiguous-identifiers-for-json" class="section">
<h3>
<span class="secno">
-<ins class="diff-new">2.4
-</ins></span><ins class="diff-new">
+2.4
+</span>
Unambiguous
Identifiers
for
JSON
-</ins></h3>
+</h3>
<p>
If
a
@@ -2638,16 +2594,9 @@
homepage
</strong>,
are
-<del class="diff-old">pre-defined
-</del>
-<ins class="diff-chg">defined
-</ins>
-in
-<del class="diff-old">the
-default
-</del>
-<ins class="diff-chg">a
-</ins>
+defined
+in
+a
context,
and
that
@@ -2675,44 +2624,14 @@
like
this:
</p>
-<del class="diff-old">",
- "" : "Manu Sporny",
-"
-http://xmlns.com/foaf/0.1/homepage
-"
-:
-"
-<
-http://manu.sporny.org
->
-"}
-</del>
-<pre class="example">{
-<ins class="diff-chg"> "<span class="diff">http://www.w3.org/1999/02/22-rdf-syntax-ns#type</span>": "<span class="diff">http://xmlns.com/foaf/0.1/Person</span>",
+<pre class="example">
+{
+ "<span class="diff">http://www.w3.org/1999/02/22-rdf-syntax-ns#type</span>": "<span class="diff">http://xmlns.com/foaf/0.1/Person</span>",
"<span class="diff">http://xmlns.com/foaf/0.1/name</span>": "Manu Sporny",
"<span class="diff">http://xmlns.com/foaf/0.1/homepage</span>": "http://manu.sporny.org"
"<span class="diff">http://rdfs.org/sioc/ns#avatar</span>": "http://twitter.com/account/profile_image/manusporny"
}
-</ins>
</pre>
-<del class="diff-old">In
-order
-to
-differentiate
-between
-plain
-text
-and
-IRIs,
-the
-<
-and
->
-are
-used
-around
-IRIs.
-</del>
<p>
Doing
this
@@ -2754,10 +2673,7 @@
<div id="mashing-up-vocabularies" class="section">
<h3>
<span class="secno">
-<del class="diff-old">4.3
-</del>
-<ins class="diff-chg">2.5
-</ins>
+2.5
</span>
Mashing
Up
@@ -2803,7 +2719,7 @@
</p>
<ul>
<li>
-<ins class="diff-new">RDF
+RDF
-
for
describing
@@ -2814,7 +2730,8 @@
the
semantic
web.
-</ins></li><li><ins class="diff-new">
+</li>
+<li>
RDFS
-
for
@@ -2824,7 +2741,8 @@
labels
and
comments.
-</ins></li><li>
+</li>
+<li>
XSD
-
for
@@ -2912,57 +2830,33 @@
</li>
</ul>
<p>
-<del class="diff-old">A
-JSON-LD
-Web
-Service
-could
-define
-</del>
-<ins class="diff-chg">Since
-</ins>
+Since
these
-<del class="diff-old">as
-prefix
-es
-</del>
-<ins class="diff-chg">vocabularies
+vocabularies
are
very
popular,
they
are
pre-defined
-</ins>
-in
-<del class="diff-old">their
-</del>
-<ins class="diff-chg">something
+in
+something
called
the
-</ins><a class="tref internalDFN" title="default_context" href="#dfn-default_context-1">
+<a class="tref internalDFN" title="default_context" href="#dfn-default_context-1">
default
context
-<del class="diff-old">beside
-the
-terms
-</del>
</a>,
-<ins class="diff-chg">which
+which
is
a
set
of
vocabulary
prefixes
-</ins>
that
are
-<del class="diff-old">already
-defined.
-Using
-</del>
-<ins class="diff-chg">pre-loaded
+pre-loaded
in
all
JSON-LD
@@ -2971,70 +2865,43 @@
contents
of
the
-</ins><a class="tref internalDFN" title="default_context" href="#dfn-default_context-1"><ins class="diff-chg">
+<a class="tref internalDFN" title="default_context" href="#dfn-default_context-1">
default
context
-</ins></a><ins class="diff-chg">
+</a>
are
provided
later
in
-</ins>
this
-<del class="diff-old">feature,
-</del>
-<ins class="diff-chg">document.
+document.
Using
the
-</ins><a class="tref internalDFN" title="default_context" href="#dfn-default_context-1"><ins class="diff-chg">
+<a class="tref internalDFN" title="default_context" href="#dfn-default_context-1">
default
context
-</ins></a><ins class="diff-chg">
+</a>
allows
-</ins>
developers
-<del class="diff-old">could
-also
-do
-markup
-</del>
-<ins class="diff-chg">to
+to
express
data
unambiguously,
-</ins>
like
-<del class="diff-old">this:
-</del>
-<ins class="diff-chg">so:
-</ins>
-</p>
-<del class="diff-old">",
- "" : "Manu Sporny",
- ",
-"sioc:avatar"
-:
-"<http://twitter.com/account/profile_image/manusporny>"
-</del>
-<pre class="example">{
-<ins class="diff-chg"> "<span class="diff">rdf:type</span>": "<span class="diff">foaf:Person</span>",
+so:
+</p>
+<pre class="example">
+{
+ "<span class="diff">rdf:type</span>": "<span class="diff">foaf:Person</span>",
"<span class="diff">foaf:name</span>": "Manu Sporny",
"<span class="diff">foaf:homepage</span>": "http://manu.sporny.org/",
"<span class="diff">sioc:avatar</span>": "http://twitter.com/account/profile_image/manusporny"
-</ins>
}
</pre>
<p>
Developers
-<del class="diff-old">could
-</del>
-<ins class="diff-chg">can
-</ins>
+can
also
-<del class="diff-old">be
-allowed
-to
-</del>
specify
their
own
@@ -3044,48 +2911,37 @@
modifying
the
<del class="diff-old">default
-context,
</del>
<a class="tref internalDFN" title="active_context" href="#dfn-active_context">
<ins class="diff-chg">active
+</ins>
context
-</ins></a><ins class="diff-chg">
+</a>
in-line
using
the
-</ins><code><ins class="diff-chg">
+<code>
@context
-</ins></code><ins class="diff-chg">
+</code>
keyword,
-</ins>
like
so:
</p>
-<del class="diff-old">{"a" : "Context",
- "myvocab" : "http://example.org/myvocab#"}
- },
- {"a" : "foaf:Person",
- "foaf:name" : "Manu Sporny",
- "foaf:homepage" : "<http://manu.sporny.org/>",
- "sioc:avatar" : "<http://twitter.com/account/profile_image/manusporny>",
- "myvocab:credits" : 500}
-]
-</del>
-<pre class="example">{
+<pre class="example">
+{
<span class="diff">"@context": { "myvocab": "http://example.org/myvocab#" }</span>,
-<ins class="diff-chg"> "a": "foaf:Person",
+ "a": "foaf:Person",
"foaf:name": "Manu Sporny",
"foaf:homepage": "http://manu.sporny.org/",
"sioc:avatar": "http://twitter.com/account/profile_image/manusporny"<span class="diff">,
"myvocab:personality": "friendly"</span>
}
-</ins>
</pre>
<p>
-<ins class="diff-new">The
-</ins><code><ins class="diff-new">
+The
+<code>
@context
-</ins></code><ins class="diff-new">
+</code>
keyword
is
used
@@ -3117,25 +2973,27 @@
interpreted
as
a
-</ins><a class="tref internalDFN" title="IRI" href="#dfn-iri"><ins class="diff-new">
-IRI
-</ins></a>.<ins class="diff-new">
+<del class="diff-old">IRI.
+</del>
+<a class="tref internalDFN" title="IRI" href="#dfn-iri">
+<ins class="diff-chg">IRI
+</ins></a>.
In
the
example
above,
the
-</ins><code><ins class="diff-new">
+<code>
myvocab
-</ins></code><ins class="diff-new">
+</code>
string
is
replaced
with
"
-</ins><code><ins class="diff-new">
+<code>
http://example.org/myvocab#
-</ins></code><ins class="diff-new">
+</code>
"
when
it
@@ -3146,19 +3004,20 @@
example
above,
"
-</ins><code><ins class="diff-new">
+<code>
myvocab:personality
-</ins></code><ins class="diff-new">
+</code>
"
would
expand
to
"
-</ins><code><ins class="diff-new">
+<code>
http://example.org/myvocab#personality
-</ins></code><ins class="diff-new">
+</code>
".
-</ins></p><p>
+</p>
+<p>
This
mechanism
is
@@ -3166,18 +3025,11 @@
short-hand
for
RDF,
-<ins class="diff-new">called
+called
a
CURIE,
-</ins>
-and
-<del class="diff-old">if
-defined,
-will
-give
-</del>
-<ins class="diff-chg">provides
-</ins>
+and
+provides
developers
an
unambiguous
@@ -3196,25 +3048,16 @@
<div id="an-example-of-a-context" class="section">
<h3>
<span class="secno">
-<del class="diff-old">4.4
-</del>
-<ins class="diff-chg">2.6
-</ins>
+2.6
</span>
An
Example
of
a
-<del class="diff-old">Default
-</del>
Context
</h3>
<p>
-<del class="diff-old">To
-be
-clear,
-</del>
-<ins class="diff-chg">JSON-LD
+JSON-LD
strives
to
ensure
@@ -3224,9 +3067,8 @@
have
to
change
-</ins>
-the
-<ins class="diff-new">JSON
+the
+JSON
that
is
going
@@ -3239,33 +3081,26 @@
Web
applications.
A
-</ins>
JSON-LD
aware
Web
Service
-<del class="diff-old">could
-</del>
<em class="rfc2119" title="may">
-<ins class="diff-chg">may
-</ins></em>
+may
+</em>
define
a
-<ins class="diff-new">known
+known
context.
For
example,
the
following
-</ins><a class="tref internalDFN" title="default_context" href="#dfn-default_context-1">
+<a class="tref internalDFN" title="default_context" href="#dfn-default_context-1">
default
context
-<del class="diff-old">like
-the
-following:
-</del>
-</a>
-<ins class="diff-chg">could
+</a>
+could
apply
to
all
@@ -3278,25 +3113,10 @@
only
JSON
data:
-</ins>
-</p>
-<del class="diff-old">{"a" : "Context",
- "__vocab__" : "http://example.org/default-vocab#",
- "xsd" : "http://www.w3.org/2001/XMLSchema#",
- "dc" : "http://purl.org/dc/terms/",
- "foaf" : "http://xmlns.com/foaf/0.1/",
- "sioc" : "http://rdfs.org/sioc/ns#",
- "cc" : "http://creativecommons.org/ns#",
- "geo" : "http://www.w3.org/2003/01/geo/wgs84_pos#",
- "vcard" : "http://www.w3.org/2006/vcard/ns#",
- "cal" : "http://www.w3.org/2002/12/cal/ical#",
- "doap" : "http://usefulinc.com/ns/doap#",
- "Person" : "http://xmlns.com/foaf/0.1/Person",
- "name" : "http://xmlns.com/foaf/0.1/name",
- "homepage" : "http://xmlns.com/foaf/0.1/homepage"
-</del>
-<pre class="example">{
-<ins class="diff-chg"> "@context":
+</p>
+<pre class="example">
+{
+ "@context":
{
"@vocab": "http://example.org/default-vocab#",
"@base": "http://example.org/baseurl/",
@@ -3314,30 +3134,25 @@
"homepage": "http://xmlns.com/foaf/0.1/homepage"
"@coerce":
{
- "xsd:anyURI": ["rdf:type", "rdf:rest", "foaf:homepage", "foaf:member"],
+<del class="diff-old"> "xsd:anyURI": ["foaf:homepage", "foaf:member"],
+</del>
+<ins class="diff-chg"> "xsd:anyURI": ["rdf:type", "rdf:rest", "foaf:homepage", "foaf:member"],
+</ins>
"xsd:integer": "foaf:age"
}
}
-</ins>
}
</pre>
<p>
The
-<del class="diff-old">__vocab__
-prefix
-</del>
<code>
-<ins class="diff-chg">@vocab
-</ins></code><ins class="diff-chg">
+@vocab
+</code>
string
-</ins>
is
a
special
-<del class="diff-old">prefix
-</del>
-<ins class="diff-chg">keyword
-</ins>
+keyword
that
states
that
@@ -3357,11 +3172,9 @@
appended
to
the
-<del class="diff-old">__vocab__
-</del>
<code>
-<ins class="diff-chg">@vocab
-</ins></code>
+@vocab
+</code>
IRI.
This
is
@@ -3381,10 +3194,10 @@
times.
</p>
<p>
-<ins class="diff-new">The
-</ins><code><ins class="diff-new">
+The
+<code>
@base
-</ins></code><ins class="diff-new">
+</code>
string
is
a
@@ -3396,9 +3209,9 @@
any
relative
IRI
-</ins><em class="rfc2119" title="must"><ins class="diff-new">
+<em class="rfc2119" title="must">
must
-</ins></em><ins class="diff-new">
+</em>
be
appended
to
@@ -3406,20 +3219,25 @@
string
specified
by
-</ins><code><ins class="diff-new">
+<code>
@base
-</ins></code>.</p><p><ins class="diff-new">
+</code>.
+</p>
+<p>
The
-</ins><code><ins class="diff-new">
+<code>
@coerce
-</ins></code><ins class="diff-new">
+</code>
keyword
is
used
to
specify
type
-coercion
+<del class="diff-old">coersion
+</del>
+<ins class="diff-chg">coercion
+</ins>
rules
for
the
@@ -3450,13 +3268,16 @@
be
coerced.
Type
-coercion
+<del class="diff-old">coersion
+</del>
+<ins class="diff-chg">coercion
+</ins>
for
the
key
-</ins><code><ins class="diff-new">
+<code>
xsd:anyURI
-</ins></code><ins class="diff-new">
+</code>
asserts
that
all
@@ -3470,9 +3291,9 @@
an
IRI,
including
-</ins><code><ins class="diff-new">
+<code>
@base
-</ins></code><ins class="diff-new">
+</code>
processing
for
relative
@@ -3484,34 +3305,27 @@
compact
URI
Expressions
-such
+<del class="diff-old">like
+</del>
+<ins class="diff-chg">such
as
-</ins><code><ins class="diff-new">
+</ins>
+<code>
foaf:homepage
-</ins></code>.</p></div>
+</code>.
+</p>
+</div>
</div>
<div id="markup-examples" class="section">
<h2>
<span class="secno">
-<del class="diff-old">4.5
-</del>
-<ins class="diff-chg">3.
-</ins>
+3.
</span>
Markup
Examples
-<del class="diff-old">Write
-some
-introductory
-stuff
-about
-the
-Markup
-Examples.
-</del>
</h2>
<p>
-<ins class="diff-chg">The
+The
JSON-LD
markup
examples
@@ -3559,33 +3373,16 @@
Linked
Data
approaches.
-</ins>
</p>
<div id="rdfa" class="section">
<h3>
<span class="secno">
-<del class="diff-old">4.5.1
-</del>
-<ins class="diff-chg">3.1
-</ins>
+3.1
</span>
RDFa
-<del class="diff-old">>
- <ul>
- <li >
- <a >Bob</a>
- </li>
- <li >
- <a >Eve</a>
- </li>
- <li >
- <a >Manu</a>
- </li>
- </ul>
-</del>
</h3>
<p>
-<ins class="diff-chg">The
+The
following
example
describes
@@ -3597,8 +3394,9 @@
names
and
homepages.
-</ins></p><pre class="example"><div <span class="diff">prefix="foaf: http://xmlns.com/foaf/0.1/"</span>>
-<ins class="diff-chg">
+</p>
+<pre class="example">
+<div <span class="diff">prefix="foaf: http://xmlns.com/foaf/0.1/"</span>>
<ul>
<li <span class="diff">typeof="foaf:Person"</span>>
<a <span class="diff">rel="foaf:homepage" href="http://example.com/bob/" property="foaf:name" </span>>Bob</a>
@@ -3610,13 +3408,10 @@
<a <span class="diff">rel="foaf:homepage" href="http://example.com/manu/" property="foaf:name" </span>>Manu</a>
</li>
</ul>
-</ins>
</div>
</pre>
<p>
-<del class="diff-old">Representation:
-</del>
-<ins class="diff-chg">An
+An
example
JSON-LD
implementation
@@ -3639,34 +3434,10 @@
is
not
repeated.
-</ins>
-</p>
-<del class="diff-old">{{
- "a" : "Context",
- "foaf" : "http://xmlns.com/foaf/0.1/"
- },
- {
- "@" : "_:bnode1",
- "a" : "foaf:Person",
- "foaf:homepage" : "<http://example.com/bob/>",
- "foaf:name" : "Bob"
- },
+</p>
+<pre class="example">
+[
{
- "@" : "_:bnode2",
- "a" : "foaf:Person",
- "foaf:homepage" : "<http://example.com/eve/>",
- "foaf:name" : "Eve"
- },
- {
- "@" : "_:bnode2",
- "a" : "foaf:Person",
- "foaf:homepage" : "<http://example.com/manu/>",
- "foaf:name" : "Manu"
- }
-}
-</del>
-<pre class="example">[
-<ins class="diff-chg"> {
"@": "_:bnode1",
"a": "foaf:Person",
"foaf:homepage": "http://example.com/bob/",
@@ -3685,24 +3456,17 @@
"foaf:name": "Manu"
}
]
-</ins>
</pre>
</div>
<div id="microformats" class="section">
<h3>
<span class="secno">
-<del class="diff-old">4.5.2
-</del>
-<ins class="diff-chg">3.2
-</ins>
+3.2
</span>
Microformats
-<del class="diff-old"><div class="vcard">
- <a class="url fn" href="http://tantek.com/">Tantek Çelik</a>
-</del>
</h3>
<p>
-<ins class="diff-chg">The
+The
following
example
uses
@@ -3720,16 +3484,14 @@
represented
in
JSON-LD.
-</ins></p><pre class="example"><div class="vcard">
-<ins class="diff-chg">
- <a class="url fn" href="http://tantek.com/">Tantek �elik</a>
-</ins>
+</p>
+<pre class="example">
+<div class="vcard">
+ <a class="url fn" href="http://tantek.com/">Tantek Çelik</a>
</div>
</pre>
<p>
-<del class="diff-old">Representation:
-</del>
-<ins class="diff-chg">The
+The
representation
of
the
@@ -3747,13 +3509,13 @@
directly
for
the
-</ins><code><ins class="diff-chg">
+<code>
url
-</ins></code><ins class="diff-chg">
-and
-</ins><code><ins class="diff-chg">
+</code>
+and
+<code>
fn
-</ins></code><ins class="diff-chg">
+</code>
properties.
Also
note
@@ -3770,25 +3532,13 @@
URL
type
for
-</ins><code><ins class="diff-chg">
+<code>
http://tantek.com
-</ins></code>.
-</p>
-<del class="diff-old">{{
- "a" : "Context",
- "vcard" : "http://microformats.org/profile/hcard#vcard"
- "url" : "http://microformats.org/profile/hcard#url"
- "fn" : "http://microformats.org/profile/hcard#fn"
- },
- {
- "@" : "_:bnode1",
- "a" : "vcard",
- "url" : "<http://tantek.com/>",
- "fn" : "Tantek Çelik"
- }
-</del>
-<pre class="example">{
-<ins class="diff-chg"> "@context":
+</code>.
+</p>
+<pre class="example">
+{
+ "@context":
{
"vcard": "http://microformats.org/profile/hcard#vcard",
"url": "http://microformats.org/profile/hcard#url",
@@ -3798,21 +3548,33 @@
"@": "_:bnode1",
"a": "vcard",
"url": "http://tantek.com/",
- "fn": "Tantek �elik"
-</ins>
+ "fn": "Tantek Çelik"
}
</pre>
</div>
<div id="microdata" class="section">
<h3>
<span class="secno">
-<del class="diff-old">4.5.3
-</del>
-<ins class="diff-chg">3.3
-</ins>
+3.3
</span>
Microdata
-<del class="diff-old"><dl itemscope
+</h3>
+<p>
+The
+Microdata
+example
+below
+expresses
+book
+information
+as
+a
+Microdata
+Work
+item.
+</p>
+<pre class="example">
+<dl itemscope
itemtype="http://purl.org/vocab/frbr/core#Work"
itemid="http://purl.oreilly.com/works/45U8QJGZSQKDH8N">
<dt>Title</dt>
@@ -3834,51 +3596,10 @@
<link itemprop="http://purl.org/dc/terms/type" href="http://purl.oreilly.com/product-types/EBOOK">
Ebook
</dd>
-</del>
-</h3>
-<p>
-<ins class="diff-chg">The
-Microdata
-example
-below
-expresses
-book
-information
-as
-a
-Microdata
-Work
-item.
-</ins></p><pre class="example"><dl itemscope
-<ins class="diff-chg">
- 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>
-</ins>
</dl>
</pre>
<p>
-<del class="diff-old">Representation:
-</del>
-<ins class="diff-chg">Note
+Note
that
the
JSON-LD
@@ -3908,35 +3629,10 @@
their
full
IRI.
-</ins>
-</p>
-<del class="diff-old">{{
- "a" : "Context",
- "__vocab__" : "http://www.w3.org/1999/xhtml/microdata#",
- "frbr" : "http://purl.org/vocab/frbr/core#",
- "dc" : "http://purl.org/dc/terms/"
- },
- {
- "a" : "frbr:Work",
- "@" : "<http://purl.oreilly.com/works/45U8QJGZSQKDH8N>",
- "dc:title" : "Just a Geek",
- "dc:creator" : "Whil Wheaton",
- "frbr:realization" : ["<http://purl.oreilly.com/products/9780596007683.BOOK>", "<http://purl.oreilly.com/products/9780596802189.EBOOK>"]
- },
- {
- "a" : "frbr:Expression",
- "@" : "<http://purl.oreilly.com/products/9780596007683.BOOK>",
- "dc:type" : "http://purl.oreilly.com/product-types/BOOK"
- },
- {
- "a" : "frbr:Expression",
- "@" : "<http://purl.oreilly.com/products/9780596802189.EBOOK>",
- "dc:type" : "<http://purl.oreilly.com/product-types/EBOOK>"
- }
-}
-</del>
-<pre class="example">[
-<ins class="diff-chg"> {
+</p>
+<pre class="example">
+[
+ {
"@": "http://purl.oreilly.com/works/45U8QJGZSQKDH8N",
"a": "http://purl.org/vocab/frbr/core#Work",
"http://purl.org/dc/terms/title": "Just a Geek",
@@ -3955,10 +3651,1147 @@
"http://purl.org/dc/terms/type": "http://purl.oreilly.com/product-types/EBOOK"
}
]
-</ins>
</pre>
</div>
</div>
+<del class="diff-old">4.
+The
+JSON-LD
+Processing
+Algorithm
+The
+processing
+algorithm
+described
+in
+this
+section
+is
+provided
+in
+order
+to
+demonstrate
+how
+one
+might
+implement
+a
+JSON-LD
+processor.
+Conformant
+implementations
+are
+only
+required
+to
+produce
+the
+same
+type
+and
+number
+of
+triples
+during
+the
+output
+process
+and
+are
+not
+required
+to
+implement
+the
+algorithm
+exactly
+as
+described.
+The
+Processing
+Algorithm
+is
+a
+work
+in
+progress,
+there
+are
+still
+major
+bugs
+in
+the
+algorithm
+and
+it's
+difficult
+to
+follow.
+It's
+provided
+only
+to
+very
+early
+implementers
+to
+give
+them
+an
+idea
+of
+how
+to
+implement
+a
+processor.
+Processing
+Algorithm
+Terms
+default
+context
+-
+a
+context
+that
+is
+specified
+to
+the
+JSON-LD
+processing
+algorithm
+before
+processing
+begins.
+default
+graph
+-
+the
+destination
+graph
+for
+all
+triples
+generated
+by
+JSON-LD
+markup.
+active
+subject
+-
+the
+currently
+active
+subject
+that
+the
+processor
+should
+use
+when
+generating
+triples.
+inherited
+subject
+-
+a
+subject
+that
+was
+detected
+at
+a
+higher
+level
+of
+processing
+to
+be
+used
+to
+generate
+a
+triple
+once
+a
+current
+subject
+is
+discovered
+or
+generated.
+active
+property
+-
+the
+currently
+active
+property
+that
+the
+processor
+should
+use
+when
+generating
+triples.
+inherited
+property
+-
+a
+property
+that
+was
+detected
+at
+a
+higher
+level
+of
+processing
+to
+be
+used
+to
+generate
+a
+triple
+once
+a
+current
+subject
+is
+discovered
+or
+generated.
+active
+object
+-
+the
+currently
+active
+object
+that
+the
+processor
+should
+use
+when
+generating
+triples.
+active
+context
+-
+a
+context
+that
+is
+used
+to
+resolve
+CURIEs
+while
+the
+processing
+algorithm
+is
+running.
+The
+active
+context
+is
+the
+top-most
+item
+on
+the
+active
+context
+stack.
+local
+context
+-
+a
+context
+that
+is
+specified
+at
+the
+JSON
+associative-array
+level,
+specified
+via
+the
+@context
+keyword.
+list
+of
+incomplete
+triples
+-
+A
+list
+of
+triples
+that
+have
+yet
+to
+have
+their
+subject
+set.
+list
+of
+unprocessed
+items
+-
+A
+list
+of
+objects
+that
+cannot
+be
+processed
+until
+a
+local
+context
+is
+detected
+or
+the
+end
+of
+the
+current
+associative-array
+is
+detected.
+processor
+state
+-
+the
+processor
+state,
+which
+includes
+the
+active
+context
+stack,
+current
+subject
+,
+current
+property
+,
+list
+of
+incomplete
+triples
+,
+and
+the
+list
+of
+unprocessed
+items
+.
+Processing
+Tokens
+and
+Keywords
+@context
+-
+Used
+to
+set
+the
+active
+context.
+@base
+-
+Used
+to
+set
+the
+base
+IRI
+for
+all
+object
+IRIs
+affected
+by
+the
+active
+context.
+@vocab
+-
+Used
+to
+set
+the
+base
+IRI
+for
+all
+property
+IRIs
+affected
+by
+the
+active
+context.
+@coerce
+-
+Used
+to
+specify
+type
+coercion
+rules.
+@literal
+-
+Used
+to
+specify
+a
+literal
+value.
+@iri
+-
+Used
+to
+specify
+an
+IRI
+value.
+@language
+-
+Used
+to
+specify
+the
+language
+for
+a
+literal.
+@datatype
+-
+Used
+to
+specify
+the
+datatype
+for
+a
+literal.
+:
+-
+The
+separator
+for
+CURIEs
+when
+used
+in
+JSON
+keys
+or
+JSON
+values.
+@
+-
+Sets
+the
+active
+subjects.
+a
+-
+Used
+to
+set
+the
+rdf:type
+of
+the
+active
+subjects.
+The
+algorithm
+below
+is
+designed
+for
+streaming
+(SAX-based)
+implementations.
+Implementers
+will
+find
+that
+non-streaming
+(document-based)
+implementations
+will
+be
+much
+easier
+to
+implement
+as
+full
+access
+to
+the
+JSON
+object
+model
+eliminates
+some
+of
+the
+steps
+that
+are
+necessary
+for
+streaming
+implementations.
+A
+conforming
+JSON-LD
+processor
+must
+implement
+a
+processing
+algorithm
+that
+results
+in
+the
+same
+default
+graph
+that
+the
+following
+algorithm
+generates:
+Push
+the
+default
+context
+onto
+the
+active
+context
+stack.
+If
+an
+associative
+array
+is
+detected,
+create
+a
+new
+processor
+state
+.
+Copy
+the
+current
+context
+stack
+to
+the
+newly
+created
+processor
+state
+.
+Push
+the
+active
+context
+onto
+the
+newly
+created
+processor
+state
+'s
+active
+context
+stack.
+For
+each
+key-value
+pair
+in
+the
+associative
+array,
+using
+the
+newly
+created
+processor
+state
+do
+the
+following:
+If
+a
+@context
+keyword
+is
+found,
+the
+processor
+merges
+each
+key-value
+pair
+in
+the
+local
+context
+into
+the
+active
+context
+,
+overwriting
+any
+duplicate
+values
+in
+the
+active
+context
+.
+If
+the
+@coerce
+key
+is
+found,
+the
+processor
+merges
+each
+key-value
+pair
+in
+the
+local
+context
+'s
+@coerce
+mapping
+into
+the
+active
+context
+'s
+@coerce
+mapping,
+overwriting
+any
+duplicate
+values
+in
+the
+active
+context
+'s
+@coerce
+mapping.
+Process
+each
+object
+in
+the
+list
+of
+unprocessed
+items
+,
+starting
+at
+Step
+2.2
+.
+If
+the
+local
+context
+has
+not
+been
+detected,
+the
+current
+key-value
+pair
+is
+placed
+into
+the
+list
+of
+unprocessed
+items
+and
+processing
+proceeds
+to
+the
+next
+key-value
+pair.
+Otherwise,
+if
+the
+local
+context
+is
+known
+perform
+the
+following
+steps:
+If
+a
+@
+key
+is
+found,
+the
+processor
+sets
+the
+active
+subject
+to
+the
+value
+after
+Object
+Processing
+has
+been
+performed.
+If
+the
+inherited
+subject
+and
+inherited
+property
+values
+are
+specified,
+generate
+a
+triple
+using
+the
+inherited
+subject
+for
+the
+subject,
+the
+inherited
+property
+for
+the
+property,
+and
+the
+active
+subject
+for
+the
+object.
+If
+there
+are
+any
+triples
+in
+the
+list
+of
+incomplete
+triples
+,
+complete
+each
+triple
+using
+the
+active
+subject
+as
+the
+subject
+for
+each
+triple.
+If
+an
+a
+key
+is
+found,
+set
+the
+active
+property
+to
+http://www.w3.org/1999/02/22-rdf-syntax-ns#type
+.
+If
+a
+key
+that
+is
+not
+@context
+,
+@
+,
+or
+a
+,
+set
+the
+active
+property
+by
+performing
+Property
+Processing
+on
+the
+key.
+If
+the
+value
+is
+not
+an
+array,
+set
+the
+active
+object
+by
+performing
+Object
+Processing
+on
+the
+value.
+Generate
+a
+triple
+representing
+the
+active
+subject
+,
+the
+active
+property
+and
+the
+active
+object
+.
+If
+the
+value
+is
+an
+associative
+array,
+then
+process
+the
+value
+starting
+at
+Step
+2
+.
+If
+the
+value
+is
+a
+regular
+array,
+then
+process
+the
+value
+starting
+at
+Step
+3
+ensuring
+that
+the
+active
+subject
+and
+the
+active
+property
+are
+copied
+to
+a
+newly
+created
+processor
+state
+.
+If
+the
+end
+of
+the
+associative
+array
+is
+detected,
+and
+a
+active
+subject
+was
+not
+discovered,
+then:
+Generate
+a
+blank
+node
+identifier
+and
+set
+it
+as
+the
+active
+subject
+.
+Complete
+any
+previously
+incomplete
+triples
+by
+running
+all
+substeps
+of
+Step
+2.2.1
+.
+If
+the
+end
+of
+the
+associative
+array
+is
+detected,
+and
+a
+local
+context
+was
+not
+discovered,
+then
+assume
+that
+the
+active
+context
+is
+unmodified
+and
+run
+all
+substeps
+of
+Step
+2.2
+on
+the
+list
+of
+unprocessed
+items
+.
+If
+a
+regular
+array
+is
+detected,
+process
+each
+value
+in
+the
+array
+by
+doing
+the
+following:
+If
+the
+value
+is
+an
+associative
+array,
+processes
+per
+Step
+2
+,
+ensuring
+to
+set
+the
+inherited
+subject
+to
+the
+active
+subject
+and
+the
+inherited
+property
+to
+the
+active
+property
+in
+the
+newly
+created
+processor
+state
+.
+If
+the
+value
+is
+not
+an
+array,
+set
+the
+active
+object
+by
+performing
+Object
+Processing
+on
+the
+value.
+Generate
+a
+triple
+representing
+the
+active
+subject
+,
+the
+active
+property
+and
+the
+active
+object
+and
+place
+it
+into
+the
+default
+graph
+.
+If
+the
+value
+is
+a
+regular
+array,
+should
+we
+support
+RDF
+List/Sequence
+Processing?
+If
+the
+value
+is
+a
+regular
+array,
+should
+we
+support
+RDF
+List/Sequence
+generation
+of
+triples?
+For
+example,
+would
+implementing
+this
+be
+worth
+the
+more
+complex
+processing
+rules:
+"ex:orderedItems"
+:
+[["one",
+"two",
+"three"]]
+</del>
<div id="markup-of-rdf-concepts" class="section">
<h2>
<span class="secno">
@@ -3972,18 +4805,12 @@
RDF
Concepts
</h2>
-<del class="diff-old">Need
-</del>
<p>
-<ins class="diff-chg">JSON-LD
+JSON-LD
is
designed
-</ins>
-to
-<del class="diff-old">write
-introduction
-</del>
-<ins class="diff-chg">ensure
+to
+ensure
that
most
Linked
@@ -3999,9 +4826,8 @@
that
is
simple
-</ins>
-to
-<ins class="diff-new">understand
+to
+understand
and
author
by
@@ -4024,11 +4850,8 @@
a
context.
Since
-</ins>
RDF
-<del class="diff-old">Concepts
-</del>
-<ins class="diff-chg">is
+is
also
an
important
@@ -4051,9 +4874,8 @@
this
specification.
This
-</ins>
section
-<ins class="diff-new">details
+details
how
each
RDF
@@ -4063,7 +4885,6 @@
expressed
in
JSON-LD.
-</ins>
</p>
<div id="iris" class="section">
<h3>
@@ -4075,13 +4896,8 @@
</span>
IRIs
</h3>
-<del class="diff-old">{
-...
- "foaf:homepage" : "",
-...
-</del>
<p>
-<ins class="diff-chg">Expressing
+Expressing
IRIs
are
fundamental
@@ -4111,7 +4927,9 @@
ways
in
JSON-LD.
-</ins></p><ol><li><ins class="diff-chg">
+</p>
+<ol>
+<li>
In
general,
an
@@ -4137,9 +4955,9 @@
processing
keys
in
-</ins><code><ins class="diff-chg">
+<code>
@context
-</ins></code><ins class="diff-chg">
+</code>
and
when
dealing
@@ -4149,41 +4967,12 @@
start
with
the
-</ins><code><ins class="diff-chg">
-@
-</ins></code><ins class="diff-chg">
-character.
-</ins></li><li><ins class="diff-chg">
-An
-IRI
-is
-generated
-for
-the
-value
-specified
-using
-</ins><code><ins class="diff-chg">
+<code>
@
-</ins></code>,<ins class="diff-chg">
-if
-it
-is
-a
-string.
-</ins></li><li><ins class="diff-chg">
-An
-IRI
-is
-generated
-for
-the
-value
-specified
-using
-</ins><code><ins class="diff-chg">
-a
-</ins></code>.</li><li><ins class="diff-chg">
+</code>
+character.
+</li>
+<li>
An
IRI
is
@@ -4193,12 +4982,46 @@
value
specified
using
-the
-</ins><code><ins class="diff-chg">
+<code>
+@
+</code>,
+if
+it
+is
+a
+string.
+</li>
+<li>
+An
+IRI
+is
+generated
+for
+the
+value
+specified
+using
+<code>
+a
+</code>.
+</li>
+<li>
+An
+IRI
+is
+generated
+for
+the
+value
+specified
+using
+the
+<code>
@iri
-</ins></code><ins class="diff-chg">
+</code>
keyword.
-</ins></li><li><ins class="diff-chg">
+</li>
+<li>
An
IRI
is
@@ -4206,22 +5029,24 @@
when
there
are
-</ins><code><ins class="diff-chg">
+<code>
@coerce
-</ins></code><ins class="diff-chg">
+</code>
rules
in
effect
for
-</ins><code><ins class="diff-chg">
+<code>
xsd:anyURI
-</ins></code><ins class="diff-chg">
+</code>
for
a
particular
vocabulary
term.
-</ins></li></ol><p><ins class="diff-chg">
+</li>
+</ol>
+<p>
An
example
of
@@ -4233,24 +5058,27 @@
outside
of
a
-</ins><code><ins class="diff-chg">
+<code>
@context
-</ins></code>:</p><pre class="example">{
-<ins class="diff-chg">
+</code>:
+</p>
+<pre class="example">
+{
...
"<span class="diff">http://xmlns.com/foaf/0.1/name</span>": "Manu Sporny",
...
}
-</ins></pre><p><ins class="diff-chg">
+</pre>
+<p>
In
the
example
above,
the
key
-</ins><code><ins class="diff-chg">
+<code>
http://xmlns.com/foaf/0.1/name
-</ins></code><ins class="diff-chg">
+</code>
is
interpreted
as
@@ -4264,8 +5092,9 @@
as
a
string..
-</ins></p><p><ins class="diff-chg">
-Term
+</p>
+<p>
+<ins class="diff-new">Term
expansion
occurs
for
@@ -4277,17 +5106,17 @@
defined
within
the
-</ins><a class="tref internalDFN" title="active_context" href="#dfn-active_context"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="active_context" href="#dfn-active_context"><ins class="diff-new">
active
context
-</ins></a>:</p><pre class="example">{
-<ins class="diff-chg">
+</ins></a>:</p><pre class="example"><ins class="diff-new">
+{
"<span class="diff">@context</span>": {"<span class="diff">name</span>": "<span class="diff">http://xmlns.com/foaf/0.1/name</span>"},
...
"<span class="diff">name</span>": "Manu Sporny",
...
}
-</ins></pre><p><ins class="diff-chg">
+</ins></pre><p>
CURIE
expansion
also
@@ -4296,15 +5125,18 @@
keys
in
JSON-LD:
-</ins></p><pre class="example">{
-<ins class="diff-chg">
+</p>
+<pre class="example">
+{
...
"<span class="diff">foaf:name</span>": "Manu Sporny",
...
}
-</ins></pre><p><code><ins class="diff-chg">
+</pre>
+<p>
+<code>
foaf:name
-</ins></code><ins class="diff-chg">
+</code>
above
will
automatically
@@ -4313,9 +5145,11 @@
to
the
IRI
-</ins><code><ins class="diff-chg">
+<code>
http://xmlns.com/foaf/0.1/name
-</ins></code>.</p><p><ins class="diff-chg">
+</code>.
+</p>
+<p>
An
IRI
is
@@ -4330,17 +5164,19 @@
key
using
the
-</ins><code><ins class="diff-chg">
+<code>
@iri
-</ins></code><ins class="diff-chg">
+</code>
keyword:
-</ins></p><pre class="example">{
-<ins class="diff-chg">
+</p>
+<pre class="example">
+{
...
"foaf:homepage": { "<span class="diff">@iri</span>": "http://manu.sporny.org" }
...
}
-</ins></pre><p><ins class="diff-chg">
+</pre>
+<p>
If
type
coercion
@@ -4349,9 +5185,9 @@
specified
in
the
-</ins><code><ins class="diff-chg">
+<code>
@context
-</ins></code><ins class="diff-chg">
+</code>
for
a
particular
@@ -4361,8 +5197,9 @@
IRI
is
generated:
-</ins></p><pre class="example">{<span class="diff">
-<ins class="diff-chg">
+</p>
+<pre class="example">
+{<span class="diff">
"@context":
{
"@coerce":
@@ -4373,7 +5210,6 @@
...
"foaf:homepage": "http://manu.sporny.org",
...
-</ins>
}
</pre>
</div>
@@ -4389,21 +5225,16 @@
the
Subject
</h3>
-<del class="diff-old">{
-...
- "",
-...
-</del>
<p>
-<ins class="diff-chg">A
+A
subject
is
declared
using
the
-</ins><code><ins class="diff-chg">
+<code>
@
-</ins></code><ins class="diff-chg">
+</code>
key.
The
subject
@@ -4432,16 +5263,16 @@
as
a
triple.
-</ins></p><pre class="example">{
-<ins class="diff-chg">
+</p>
+<pre class="example">
+{
...
"<span class="diff">@</span>": "<span class="diff">http://example.org/people#joebob</span>",
...
-</ins>
}
</pre>
<p>
-<ins class="diff-new">The
+The
example
above
would
@@ -4451,9 +5282,10 @@
to
the
IRI
-</ins><code><ins class="diff-new">
+<code>
http://example.org/people#joebob
-</ins></code>.</p>
+</code>.
+</p>
</div>
<div id="specifying-the-type" class="section">
<h3>
@@ -4467,13 +5299,8 @@
the
Type
</h3>
-<del class="diff-old">{
-...
- "",
-...
-</del>
<p>
-<ins class="diff-chg">The
+The
type
of
a
@@ -4484,9 +5311,9 @@
specified
using
the
-</ins><code><ins class="diff-chg">
-a
-</ins></code><ins class="diff-chg">
+<code>
+a
+</code>
key.
Specifying
the
@@ -4504,17 +5331,17 @@
(subject,
type,
type-url).
-</ins></p><pre class="example">{
-<ins class="diff-chg">
+</p>
+<pre class="example">
+{
...
"@": "http://example.org/people#joebob",
"<span class="diff">a</span>": "<span class="diff">http://xmlns.com/foaf/0.1/Person</span>",
...
-</ins>
}
</pre>
<p>
-<ins class="diff-new">The
+The
example
above
would
@@ -4525,12 +5352,13 @@
(in
N-Triples
notation):
-</ins></p><pre class="example"><http://example.org/people#joebob>
-<ins class="diff-new">
+</p>
+<pre class="example">
+<http://example.org/people#joebob>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://xmlns.com/foaf/0.1/Person>
.
-</ins></pre>
+</pre>
</div>
<div id="plain-literals" class="section">
<h3>
@@ -4543,22 +5371,20 @@
Plain
Literals
</h3>
-<del class="diff-old">{
-...
- "foaf:name" : "",
-...
-</del>
<p>
-<ins class="diff-chg">Regular
+Regular
text
strings
are
called
-a
+<del class="diff-old">"plain
+literals"
+</del>
+<ins class="diff-chg">a
</ins><dfn title="plain_literal" id="dfn-plain_literal"><ins class="diff-chg">
plain
literal
-</ins></dfn><ins class="diff-chg">
+</ins></dfn>
in
RDF
and
@@ -4569,12 +5395,12 @@
regular
JSON
strings.
-</ins></p><pre class="example">{
-<ins class="diff-chg">
+</p>
+<pre class="example">
+{
...
"foaf:name": "<span class="diff">Mark Birbeck</span>",
...
-</ins>
}
</pre>
</div>
@@ -4592,22 +5418,20 @@
Plain
Literals
</h3>
-<del class="diff-old">{
-...
- "foaf:name" : "",
-...
-</del>
<p>
-<ins class="diff-chg">JSON-LD
+JSON-LD
makes
an
assumption
that
-</ins><a class="tref internalDFN" title="plain_literal" href="#dfn-plain_literal"><ins class="diff-chg">
+<a class="tref internalDFN" title="plain_literal" href="#dfn-plain_literal">
plain
-literal
+<del class="diff-old">literals
+</del>
+<ins class="diff-chg">literal
</ins></a><ins class="diff-chg">
s
+</ins>
with
associated
language
@@ -4639,39 +5463,39 @@
a
specified
language.
-</ins></p><pre class="example">{
-<ins class="diff-chg">
+</p>
+<pre class="example">
+{
...
"foaf:name": <span class="diff">
{
- "@literal": "花澄",
+ "@literal": "花澄",
"@language": "ja"
}</span>
...
-</ins>
}
</pre>
<p>
-<ins class="diff-new">The
+The
example
above
would
generate
a
-</ins><a class="tref internalDFN" title="plain_literal" href="#dfn-plain_literal"><ins class="diff-new">
+<a class="tref internalDFN" title="plain_literal" href="#dfn-plain_literal">
plain
literal
-</ins></a><ins class="diff-new">
-for
-</ins><em><ins class="diff-new">
-花澄
-</ins></em><ins class="diff-new">
+</a>
+for
+<em>
+花澄
+</em>
and
associate
the
-</ins><code><ins class="diff-new">
+<code>
ja
-</ins></code><ins class="diff-new">
+</code>
language
tag
with
@@ -4681,19 +5505,21 @@
is
generated.
Languages
-</ins><em class="rfc2119" title="must"><ins class="diff-new">
+<em class="rfc2119" title="must">
must
-</ins></em><ins class="diff-new">
+</em>
be
expressed
in
[
-</ins><cite><a class="bibref" rel="biblioentry" href="#bib-BCP47"><ins class="diff-new">
+<cite>
+<a class="bibref" rel="biblioentry" href="#bib-BCP47">
BCP47
-</ins></a></cite><ins class="diff-new">
+</a>
+</cite>
]
format.
-</ins></p>
+</p>
</div>
<div id="typed-literals" class="section">
<h3>
@@ -4706,17 +5532,12 @@
Typed
Literals
</h3>
-<del class="diff-old">{
-...
- "dc:modified" : "",
-...
-</del>
<p>
-<ins class="diff-chg">A
-</ins><dfn title="typed_literal" id="dfn-typed_literal"><ins class="diff-chg">
+<ins class="diff-new">A
+</ins><dfn title="typed_literal" id="dfn-typed_literal"><ins class="diff-new">
typed
literal
-</ins></dfn><ins class="diff-chg">
+</ins></dfn><ins class="diff-new">
is
indicated
by
@@ -4728,10 +5549,10 @@
end
of
a
-</ins><a class="tref internalDFN" title="plain_literal" href="#dfn-plain_literal"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="plain_literal" href="#dfn-plain_literal"><ins class="diff-new">
plain
literal
-</ins></a>,<ins class="diff-chg">
+</ins></a>,<ins class="diff-new">
and
this
IRI
@@ -4739,24 +5560,33 @@
the
literal's
datatype.
+</ins>
Literals
may
+<del class="diff-old">also
+</del>
be
typed
in
JSON-LD
in
-three
+<del class="diff-old">two
+</del>
+<ins class="diff-chg">three
+</ins>
ways:
-</ins></p><ol><li><ins class="diff-chg">
+</p>
+<ol>
+<li>
By
utilizing
the
-</ins><code><ins class="diff-chg">
+<code>
@coerce
-</ins></code><ins class="diff-chg">
+</code>
keyword.
-</ins></li><li><ins class="diff-chg">
+</li>
+<li>
By
utilizing
the
@@ -4765,30 +5595,34 @@
for
specifying
objects.
-</ins></li><li><ins class="diff-chg">
-By
+</li>
+<li>
+<ins class="diff-new">By
using
a
native
JSON
datatype.
-</ins></li></ol><p><ins class="diff-chg">
+</ins></li>
+</ol>
+<p>
The
first
example
uses
the
-</ins><code><ins class="diff-chg">
+<code>
@coerce
-</ins></code><ins class="diff-chg">
+</code>
keyword
to
express
a
typed
literal:
-</ins></p><pre class="example">{<span class="diff">
-<ins class="diff-chg">
+</p>
+<pre class="example">
+{<span class="diff">
"@context":
{
"@coerce":
@@ -4800,7 +5634,8 @@
"dc:modified": "2010-05-29T14:17:39+02:00",
...
}
-</ins></pre><p><ins class="diff-chg">
+</pre>
+<p>
The
second
example
@@ -4811,8 +5646,9 @@
for
specifying
objects:
-</ins></p><pre class="example">{
-<ins class="diff-chg">
+</p>
+<pre class="example">
+{
...
"dc:modified": <span class="diff">
{
@@ -4820,11 +5656,10 @@
"@datatype": "xsd:dateTime"
}</span>
...
-</ins>
}
</pre>
<p>
-<ins class="diff-new">Both
+Both
examples
above
would
@@ -4836,16 +5671,17 @@
literal
value
of
-</ins><code><ins class="diff-new">
+<code>
2010-05-29T14:17:39+02:00
-</ins></code><ins class="diff-new">
+</code>
and
the
datatype
of
-</ins><code><ins class="diff-new">
+<code>
http://www.w3.org/2001/XMLSchema#dateTime
-</ins></code>.</p>
+</code>.
+</p>
</div>
<div id="multiple-objects-for-a-single-property" class="section">
<h3>
@@ -4862,13 +5698,8 @@
Single
Property
</h3>
-<del class="diff-old">{
-...
- "foaf:nick" : ,
-...
-</del>
<p>
-<ins class="diff-chg">A
+A
JSON-LD
author
can
@@ -4894,26 +5725,26 @@
property,
the
author
-</ins><em class="rfc2119" title="may"><ins class="diff-chg">
+<em class="rfc2119" title="may">
may
-</ins></em><ins class="diff-chg">
+</em>
express
each
property
as
an
array.
-</ins></p><pre class="example">{
-<ins class="diff-chg">
+</p>
+<pre class="example">
+{
...
"@": "http://example.org/people#joebob",
"foaf:nick": <span class="diff">["joe", "bob", "jaybee"]</span>,
...
-</ins>
}
</pre>
<p>
-<ins class="diff-new">The
+The
markup
shown
above
@@ -4922,8 +5753,9 @@
the
following
triples:
-</ins></p><pre class="example"><http://example.org/people#joebob>
-<ins class="diff-new">
+</p>
+<pre class="example">
+<http://example.org/people#joebob>
<http://xmlns.com/foaf/0.1/nick>
"joe" .
<http://example.org/people#joebob>
@@ -4933,7 +5765,7 @@
<http://xmlns.com/foaf/0.1/nick>
"jaybee"
.
-</ins></pre>
+</pre>
</div>
<div id="multiple-typed-literals-for-a-single-property" class="section">
<h3>
@@ -4951,18 +5783,16 @@
Single
Property
</h3>
-<del class="diff-old">{
-...
- "dc:modified" : ],
-...
+<p>
+Multiple
+<a class="tref internalDFN" title="typed_literal" href="#dfn-typed_literal">
+typed
+<del class="diff-old">literals
</del>
-<p>
-<ins class="diff-chg">Multiple
-</ins><a class="tref internalDFN" title="typed_literal" href="#dfn-typed_literal"><ins class="diff-chg">
-typed
-literal
+<ins class="diff-chg">literal
</ins></a><ins class="diff-chg">
s
+</ins>
may
also
be
@@ -4973,8 +5803,9 @@
form
for
objects:
-</ins></p><pre class="example">{
-<ins class="diff-chg">
+</p>
+<pre class="example">
+{
...
"@": "http://example.org/articles/8",
"dcterms:modified": <span class="diff">
@@ -4989,11 +5820,10 @@
}
]</span>
...
-</ins>
}
</pre>
<p>
-<ins class="diff-new">The
+The
markup
shown
above
@@ -5002,15 +5832,16 @@
the
following
triples:
-</ins></p><pre class="example"><http://example.org/articles/8>
-<ins class="diff-new">
+</p>
+<pre class="example">
+<http://example.org/articles/8>
<http://purl.org/dc/terms/modified>
"2010-05-29T14:17:39+02:00"^^http://www.w3.org/2001/XMLSchema#dateTime .
<http://example.org/articles/8>
<http://purl.org/dc/terms/modified>
"2010-05-30T09:21:28-04:00"^^http://www.w3.org/2001/XMLSchema#dateTime
.
-</ins></pre>
+</pre>
</div>
<div id="blank-nodes" class="section">
<h3>
@@ -5023,13 +5854,8 @@
Blank
Nodes
</h3>
-<del class="diff-old">{
-...
- "@" : "",
-...
-</del>
<p>
-<ins class="diff-chg">At
+At
times,
it
becomes
@@ -5072,9 +5898,9 @@
specified
using
the
-</ins><code><ins class="diff-chg">
+<code>
@
-</ins></code><ins class="diff-chg">
+</code>
keyword.
However,
authors
@@ -5086,21 +5912,21 @@
using
the
special
-</ins><code><ins class="diff-chg">
+<code>
_
-</ins></code><ins class="diff-chg">
+</code>
CURIE
prefix.
-</ins></p><pre class="example">{
-<ins class="diff-chg">
+</p>
+<pre class="example">
+{
...
"@": "<span class="diff">_:foo</span>",
...
-</ins>
}
</pre>
<p>
-<ins class="diff-new">The
+The
example
above
would
@@ -5108,9 +5934,9 @@
the
subject
to
-</ins><code><ins class="diff-new">
+<code>
_:foo
-</ins></code>,<ins class="diff-new">
+</code>,
which
can
then
@@ -5130,17 +5956,21 @@
named
blank
node.
-</ins></p>
+</p>
</div>
</div>
<div id="advanced-features" class="section">
<h2>
<span class="secno">
+<del class="diff-old">6.
+</del>
<ins class="diff-chg">5.
-</ins></span><ins class="diff-chg">
+</ins>
+</span>
Advanced
Features
-</ins></h2><p><ins class="diff-chg">
+</h2>
+<p>
JSON-LD
has
a
@@ -5170,26 +6000,20 @@
specific
to
JSON-LD.
-</ins></p><div id="automatic-typing" class="section">
+</p>
+<div id="automatic-typing" class="section">
<h3>
<span class="secno">
-<del class="diff-old">5.10
+<del class="diff-old">6.1
</del>
<ins class="diff-chg">5.1
</ins>
</span>
-<del class="diff-old">Escape
-Character
-</del>
-<ins class="diff-chg">Automatic
+Automatic
Typing
-</ins>
</h3>
<p>
-<del class="diff-old">Special
-characters
-</del>
-<ins class="diff-chg">Since
+Since
JSON
is
capable
@@ -5213,13 +6037,19 @@
information
to
create
-</ins><a class="tref internalDFN" title="typed_literal" href="#dfn-typed_literal"><ins class="diff-chg">
-typed
+<del class="diff-old">Typed
+Literals
+:
+</del>
+<a class="tref internalDFN" title="typed_literal" href="#dfn-typed_literal">
+<ins class="diff-chg">typed
literal
</ins></a><ins class="diff-chg">
s:
-</ins></p><pre class="example">{
-<ins class="diff-chg">
+</ins>
+</p>
+<pre class="example">
+{
...
// The following two values are automatically converted to a type of xsd:double
// and both values are equivalent to each other.
@@ -5235,7 +6065,8 @@
"sensor:active": <span class="diff">true</span>,
...
}
-</ins></pre><p class="note"><ins class="diff-chg">
+</pre>
+<p class="note">
When
dealing
with
@@ -5253,27 +6084,27 @@
no
distinction
between
-</ins><strong><ins class="diff-chg">
+<strong>
xsd:decimal
-</ins></strong><ins class="diff-chg">
-and
-</ins><strong><ins class="diff-chg">
+</strong>
+and
+<strong>
xsd:double
-</ins></strong><ins class="diff-chg">
+</strong>
values.
That
is,
the
number
-</ins><code><ins class="diff-chg">
+<code>
5.3
-</ins></code><ins class="diff-chg">
+</code>
and
the
number
-</ins><code><ins class="diff-chg">
+<code>
5.3e0
-</ins></code><ins class="diff-chg">
+</code>
are
treated
as
@@ -5296,11 +6127,8 @@
information
is
lost
-</ins>
-in
-<del class="diff-old">property
-</del>
-<ins class="diff-chg">a
+in
+a
number
of
these
@@ -5310,31 +6138,30 @@
could
say
that
-</ins><code><ins class="diff-chg">
+<code>
5.3
-</ins></code><ins class="diff-chg">
-is
-a
-</ins><strong><ins class="diff-chg">
+</code>
+is
+a
+<strong>
xsd:decimal
-</ins></strong><ins class="diff-chg">
-and
-</ins><code><ins class="diff-chg">
+</strong>
+and
+<code>
5.3e0
-</ins></code><ins class="diff-chg">
+</code>
is
an
-</ins><strong><ins class="diff-chg">
+<strong>
xsd:double
-</ins></strong><ins class="diff-chg">
+</strong>
in
JSON-LD,
but
when
both
-</ins>
values
-<ins class="diff-chg">are
+are
converted
to
a
@@ -5357,9 +6184,9 @@
always
be
a
-</ins><strong><ins class="diff-chg">
+<strong>
double
-</ins></strong>.<ins class="diff-chg">
+</strong>.
Implementers
should
be
@@ -5370,41 +6197,47 @@
round-tripping
issue
between
-</ins><strong><ins class="diff-chg">
+<strong>
xsd:decimal
-</ins></strong><ins class="diff-chg">
-and
-</ins><strong><ins class="diff-chg">
+</strong>
+and
+<strong>
xsd:double
-</ins></strong>.<ins class="diff-chg">
+</strong>.
Specifically
objects
with
a
datatype
of
-</ins><strong><ins class="diff-chg">
+<strong>
xsd:decimal
-</ins></strong><em class="rfc2119" title="must not">
+</strong>
+<em class="rfc2119" title="must not">
must
-<ins class="diff-new">not
-</ins>
+not
</em>
be
-<del class="diff-old">escaped
-</del>
-<ins class="diff-chg">converted
+converted
to
a
language
native
type.
-</ins></p></div><div id="type-coercion" class="section"><h3><span class="secno"><ins class="diff-chg">
-5.2
-</ins></span><ins class="diff-chg">
+</p>
+</div>
+<div id="type-coercion" class="section">
+<h3>
+<span class="secno">
+<del class="diff-old">6.2
+</del>
+<ins class="diff-chg">5.2
+</ins>
+</span>
Type
Coercion
-</ins></h3><p><ins class="diff-chg">
+</h3>
+<p>
JSON-LD
supports
the
@@ -5464,7 +6297,8 @@
typed
RDF
data.
-</ins></p><p><ins class="diff-chg">
+</p>
+<p>
The
example
below
@@ -5477,20 +6311,26 @@
coerce
values
to
-</ins><a class="tref internalDFN" title="plain_literal" href="#dfn-plain_literal"><ins class="diff-chg">
+<a class="tref internalDFN" title="plain_literal" href="#dfn-plain_literal">
plain
-literal
+<del class="diff-old">literals,
+</del>
+<ins class="diff-chg">literal
</ins></a><ins class="diff-chg">
s,
-</ins><a class="tref internalDFN" title="typed_literal" href="#dfn-typed_literal"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="typed_literal" href="#dfn-typed_literal">
typed
-literal
+<del class="diff-old">literals
+</del>
+<ins class="diff-chg">literal
</ins></a><ins class="diff-chg">
s
+</ins>
and
IRIs.
-</ins></p><pre class="example">{
-<ins class="diff-chg">
+</p>
+<pre class="example">
+{
"@context":
{
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
@@ -5498,8 +6338,9 @@
"name": "http://xmlns.com/foaf/0.1/name",
"age": "http://xmlns.com/foaf/0.1/age",
"homepage": "http://xmlns.com/foaf/0.1/homepage",
-</ins><span class="diff"> "@coerce":
-<ins class="diff-chg">
+<del class="diff-old"> "@type":
+</del>
+<span class="diff"> "@coerce":
{
"xsd:integer": "age",
"xsd:anyURI": "homepage",
@@ -5509,7 +6350,8 @@
"age": <span class="diff">"41"</span>,
"homepage": <span class="diff">"http://example.org/home/"</span>
}
-</ins></pre><p><ins class="diff-chg">
+</pre>
+<p>
The
example
above
@@ -5518,8 +6360,9 @@
the
following
triples:
-</ins></p><pre class="example">_:bnode1
-<ins class="diff-chg">
+</p>
+<pre class="example">
+_:bnode1
<http://xmlns.com/foaf/0.1/name>
"John Smith" .
_:bnode1
@@ -5529,8 +6372,13 @@
<http://xmlns.com/foaf/0.1/homepage>
<http://example.org/home/>
.
-</ins></pre></div></div><div id="the-json-ld-processing-algorithm" class="section"><h2><span class="secno"><ins class="diff-chg">
-6.
+</pre>
+</div>
+</div>
+<div id="the-json-ld-processing-algorithm" class="section">
+<h2>
+<span class="secno">
+<ins class="diff-chg">6.
</ins></span><ins class="diff-chg">
The
JSON-LD
@@ -5573,11 +6421,10 @@
section
is
provided
-</ins>
in
order
to
-<ins class="diff-new">demonstrate
+demonstrate
how
one
might
@@ -5605,9 +6452,8 @@
process
and
are
-</ins>
not
-<ins class="diff-new">required
+required
to
implement
the
@@ -5615,7 +6461,7 @@
exactly
as
described.
-</ins></p><p class="issue"><ins class="diff-new">
+</ins></p><p class="issue"><ins class="diff-chg">
The
Processing
Algorithm
@@ -5624,16 +6470,16 @@
work
in
progress.
-</ins></p><div class="informative section" id="overview"><h3><span class="secno"><ins class="diff-new">
+</ins></p><div class="informative section" id="overview"><h3><span class="secno"><ins class="diff-chg">
6.1
-</ins></span><ins class="diff-new">
+</ins></span><ins class="diff-chg">
Overview
-</ins></h3><p><em><ins class="diff-new">
+</ins></h3><p><em><ins class="diff-chg">
This
section
is
non-normative.
-</ins></em></p><p><ins class="diff-new">
+</ins></em></p><p><ins class="diff-chg">
JSON-LD
is
intended
@@ -5679,7 +6525,7 @@
similar
to
SAX.
-</ins></p><p><ins class="diff-new">
+</ins></p><p><ins class="diff-chg">
As
with
other
@@ -5696,16 +6542,13 @@
that
of
a
-</ins><em><ins class="diff-new">
+</ins><em><ins class="diff-chg">
resource
-</ins></em>.<ins class="diff-new">
+</ins></em>.<ins class="diff-chg">
Resources
may
-</ins>
-be
-<del class="diff-old">interpreted
-</del>
-<ins class="diff-chg">of
+be
+of
three
basic
types:
@@ -5741,11 +6584,8 @@
terminal
entities
such
-</ins>
as
-<del class="diff-old">IRIs,
-</del>
-<ins class="diff-chg">strings,
+strings,
dates
and
other
@@ -5758,14 +6598,9 @@
including
an
explicit
-</ins>
language
-<del class="diff-old">tags,
-</del>
or
-<del class="diff-old">TypedLiterals.
-</del>
-<ins class="diff-chg">datatype.
+datatype.
</ins></p><p><ins class="diff-chg">
Data
described
@@ -6315,14 +7150,12 @@
context
</ins></a><ins class="diff-chg">
?
-</ins>
-</p>
-<p>
+</ins></p><p><ins class="diff-chg">
The
-<a class="tref internalDFN" title="active_context" href="#dfn-active_context">
-<ins class="diff-new">active
+</ins><a class="tref internalDFN" title="active_context" href="#dfn-active_context"><ins class="diff-chg">
+active
context
-</ins></a><ins class="diff-new">
+</ins></a><ins class="diff-chg">
is
used
for
@@ -6340,17 +7173,17 @@
a
list
(see
-</ins><span a="#list-processing"><ins class="diff-new">
+</ins><span a="#list-processing"><ins class="diff-chg">
List
Processing
-</ins></span><ins class="diff-new">
+</ins></span><ins class="diff-chg">
)).
-</ins></p><p><ins class="diff-new">
+</ins></p><p><ins class="diff-chg">
A
-</ins><a class="tref internalDFN" title="local_context" href="#dfn-local_context"><ins class="diff-new">
+</ins><a class="tref internalDFN" title="local_context" href="#dfn-local_context"><ins class="diff-chg">
local
context
-</ins></a><ins class="diff-new">
+</ins></a><ins class="diff-chg">
is
identified
within
@@ -6361,9 +7194,9 @@
a
key
of
-</ins><code><ins class="diff-new">
+</ins><code><ins class="diff-chg">
@context
-</ins></code><ins class="diff-new">
+</ins></code><ins class="diff-chg">
with
an
associative
@@ -6372,14 +7205,12 @@
When
processing
a
-</ins><a class="tref internalDFN" title="local_context" href="#dfn-local_context"><ins class="diff-new">
+</ins><a class="tref internalDFN" title="local_context" href="#dfn-local_context"><ins class="diff-chg">
local
context
-</ins></a>,
+</ins></a>,<ins class="diff-chg">
special
-<del class="diff-old">characters
-</del>
-<ins class="diff-chg">rules
+rules
apply:
</ins></p><ul><li><ins class="diff-chg">
The
@@ -6592,22 +7423,21 @@
any
duplicate
values
-</ins>
-in
-<ins class="diff-new">the
-</ins><a class="tref internalDFN" title="active_context" href="#dfn-active_context"><ins class="diff-new">
+in
+the
+</ins><a class="tref internalDFN" title="active_context" href="#dfn-active_context"><ins class="diff-chg">
active
context
-</ins></a><ins class="diff-new">
+</ins></a><ins class="diff-chg">
's
-</ins><code><ins class="diff-new">
+</ins><code><ins class="diff-chg">
@coerce
-</ins></code><ins class="diff-new">
+</ins></code><ins class="diff-chg">
mapping.
The
-</ins><code><ins class="diff-new">
+</ins><code><ins class="diff-chg">
@coerce
-</ins></code><ins class="diff-new">
+</ins></code><ins class="diff-chg">
mapping
has
a
@@ -6630,10 +7460,10 @@
mapping
in
the
-</ins><a class="tref internalDFN" title="active_context" href="#dfn-active_context"><ins class="diff-new">
+</ins><a class="tref internalDFN" title="active_context" href="#dfn-active_context"><ins class="diff-chg">
active
context
-</ins></a>,<ins class="diff-new">
+</ins></a>,<ins class="diff-chg">
map
all
CURIE
@@ -6651,19 +7481,19 @@
value
from
the
-</ins><a class="tref internalDFN" title="local_context" href="#dfn-local_context"><ins class="diff-new">
+</ins><a class="tref internalDFN" title="local_context" href="#dfn-local_context"><ins class="diff-chg">
local
context
-</ins></a><ins class="diff-new">
+</ins></a><ins class="diff-chg">
and
the
value
of
the
-</ins><a class="tref internalDFN" title="active_context" href="#dfn-active_context"><ins class="diff-new">
+</ins><a class="tref internalDFN" title="active_context" href="#dfn-active_context"><ins class="diff-chg">
active
context
-</ins></a>.<ins class="diff-new">
+</ins></a>.<ins class="diff-chg">
If
the
result
@@ -6676,31 +7506,28 @@
CURIE,
the
processor
-</ins><em class="rfc2119" title="may"><ins class="diff-new">
+</ins><em class="rfc2119" title="may"><ins class="diff-chg">
may
-</ins></em><ins class="diff-new">
+</ins></em><ins class="diff-chg">
represent
this
as
a
string
value.
-</ins></p></div></div><div id="chaining" class="section"><h3><span class="secno"><ins class="diff-new">
+</ins></p></div></div><div id="chaining" class="section"><h3><span class="secno"><ins class="diff-chg">
6.5
-</ins></span><ins class="diff-new">
+</ins></span><ins class="diff-chg">
Chaining
-</ins></h3><p><ins class="diff-new">
+</ins></h3><p><ins class="diff-chg">
Object
-</ins><dfn title="chaining" id="dfn-chaining"><ins class="diff-new">
+</ins><dfn title="chaining" id="dfn-chaining"><ins class="diff-chg">
chaining
-</ins></dfn><ins class="diff-new">
-is
-a
-</ins>
-JSON-LD
-<del class="diff-old">are:
-</del>
-<ins class="diff-chg">feature
+</ins></dfn><ins class="diff-chg">
+is
+a
+JSON-LD
+feature
that
allows
an
@@ -6745,8 +7572,8 @@
the
first
object:
-</ins></p> <pre class="example">{
-<ins class="diff-chg">
+</ins></p> <pre class="example"><ins class="diff-chg">
+{
...
"foaf:name": "Manu Sporny",
"<span class="diff">foaf:knows</span>": {
@@ -6819,11 +7646,8 @@
value
relative
to
-</ins>
-<code>
-<del class="diff-old"><
-</del>
-<ins class="diff-chg">@base
+</ins><code><ins class="diff-chg">
+@base
</ins></code><ins class="diff-chg">
or
</ins><code><ins class="diff-chg">
@@ -7078,11 +7902,13 @@
as
an
IRI.
-</ins></li></ol><p></p></div></div><div id="sequence" class="section"><h2><span class="secno"><ins class="diff-chg">
+</ins></li></ol><p></p></div></div><div id="sequence" class="section">
+<h2>
+<span class="secno">
7.
-</ins></span><ins class="diff-chg">
-Sequence
-</ins></h2><p><ins class="diff-chg">
+</span>
+<ins class="diff-new">Sequence
+</ins></h2><p><ins class="diff-new">
The
algorithm
below
@@ -7106,17 +7932,17 @@
streaming
implementation,
see
-</ins><a href="streaming-processors"><ins class="diff-chg">
+</ins><a href="streaming-processors"><ins class="diff-new">
Appendix
B
-</ins></a>.</p><p><ins class="diff-chg">
+</ins></a>.</p><p><ins class="diff-new">
A
conforming
JSON-LD
processor
-</ins><em class="rfc2119" title="must"><ins class="diff-chg">
+</ins><em class="rfc2119" title="must"><ins class="diff-new">
must
-</ins></em><ins class="diff-chg">
+</ins></em><ins class="diff-new">
implement
a
processing
@@ -7126,51 +7952,51 @@
in
the
same
-</ins><a class="tref internalDFN" title="default_graph" href="#dfn-default_graph"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="default_graph" href="#dfn-default_graph"><ins class="diff-new">
default
graph
-</ins></a><ins class="diff-chg">
+</ins></a><ins class="diff-new">
that
the
following
algorithm
generates:
-</ins></p><ol class="algorithm"><li id="processing-step-default-context"><ins class="diff-chg">
+</ins></p><ol class="algorithm"><li id="processing-step-default-context"><ins class="diff-new">
Create
a
new
-</ins><a class="tref internalDFN" title="processor_state" href="#dfn-processor_state"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="processor_state" href="#dfn-processor_state"><ins class="diff-new">
processor
state
-</ins></a><ins class="diff-chg">
+</ins></a><ins class="diff-new">
with
with
the
-</ins><a class="tref internalDFN" title="active_context" href="#dfn-active_context"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="active_context" href="#dfn-active_context"><ins class="diff-new">
active
context
-</ins></a><ins class="diff-chg">
+</ins></a><ins class="diff-new">
set
to
the
-</ins><a class="tref internalDFN" title="default_context" href="#dfn-default_context-1"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="default_context" href="#dfn-default_context-1"><ins class="diff-new">
default
context
-</ins></a><ins class="diff-chg">
-and
-</ins><a class="tref internalDFN" title="active_subject" href="#dfn-active_subject"><ins class="diff-chg">
+</ins></a><ins class="diff-new">
+and
+</ins><a class="tref internalDFN" title="active_subject" href="#dfn-active_subject"><ins class="diff-new">
active
subject
-</ins></a><ins class="diff-chg">
-and
-</ins><a class="tref internalDFN" title="active_property" href="#dfn-active_property"><ins class="diff-chg">
+</ins></a><ins class="diff-new">
+and
+</ins><a class="tref internalDFN" title="active_property" href="#dfn-active_property"><ins class="diff-new">
active
property
-</ins></a><ins class="diff-chg">
+</ins></a><ins class="diff-new">
initialized
to
NULL.
-</ins></li><li id="processing-step-associative"><ins class="diff-chg">
+</ins></li><li id="processing-step-associative"><ins class="diff-new">
If
an
associative
@@ -7181,16 +8007,16 @@
the
following
steps:
-</ins><ol class="algorithm"><li><ins class="diff-chg">
+</ins><ol class="algorithm"><li><ins class="diff-new">
If
the
associative
array
has
a
-</ins><code><ins class="diff-chg">
+</ins><code><ins class="diff-new">
@context
-</ins></code><ins class="diff-chg">
+</ins></code><ins class="diff-new">
key,
process
the
@@ -7199,31 +8025,31 @@
as
described
in
-</ins><a href="context"><ins class="diff-chg">
+</ins><a href="context"><ins class="diff-new">
Context
-</ins></a>.</li><li><ins class="diff-chg">
+</ins></a>.</li><li><ins class="diff-new">
If
the
associative
array
has
an
-</ins><code><ins class="diff-chg">
+</ins><code><ins class="diff-new">
@iri
-</ins></code><ins class="diff-chg">
+</ins></code><ins class="diff-new">
key,
set
the
-</ins><a class="tref internalDFN" title="active_object" href="#dfn-active_object"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="active_object" href="#dfn-active_object"><ins class="diff-new">
active
object
-</ins></a><ins class="diff-chg">
+</ins></a><ins class="diff-new">
by
performing
-</ins><a href="#iri-processing"><ins class="diff-chg">
+</ins><a href="#iri-processing"><ins class="diff-new">
IRI
Processing
-</ins></a><ins class="diff-chg">
+</ins></a><ins class="diff-new">
on
the
associated
@@ -7233,99 +8059,99 @@
triple
representing
the
-</ins><a class="tref internalDFN" title="active_subject" href="#dfn-active_subject"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="active_subject" href="#dfn-active_subject"><ins class="diff-new">
active
subject
-</ins></a>,<ins class="diff-chg">
-the
-</ins><a class="tref internalDFN" title="active_property" href="#dfn-active_property"><ins class="diff-chg">
+</ins></a>,<ins class="diff-new">
+the
+</ins><a class="tref internalDFN" title="active_property" href="#dfn-active_property"><ins class="diff-new">
active
property
-</ins></a><ins class="diff-chg">
-and
-the
-</ins><a class="tref internalDFN" title="active_object" href="#dfn-active_object"><ins class="diff-chg">
+</ins></a><ins class="diff-new">
+and
+the
+</ins><a class="tref internalDFN" title="active_object" href="#dfn-active_object"><ins class="diff-new">
active
object
-</ins></a>.<ins class="diff-chg">
+</ins></a>.<ins class="diff-new">
Return
the
-</ins><a class="tref internalDFN" title="active_object" href="#dfn-active_object"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="active_object" href="#dfn-active_object"><ins class="diff-new">
active
object
-</ins></a><ins class="diff-chg">
+</ins></a><ins class="diff-new">
to
the
calling
location.
-</ins></li><li><ins class="diff-chg">
+</ins></li><li><ins class="diff-new">
If
the
associative
array
has
a
-</ins><code><ins class="diff-chg">
+</ins><code><ins class="diff-new">
@literal
-</ins></code><ins class="diff-chg">
+</ins></code><ins class="diff-new">
key,
set
the
-</ins><a class="tref internalDFN" title="active_object" href="#dfn-active_object"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="active_object" href="#dfn-active_object"><ins class="diff-new">
active
object
-</ins></a><ins class="diff-chg">
+</ins></a><ins class="diff-new">
to
a
literal
value
as
follows:
-</ins><ul><li><ins class="diff-chg">
+</ins><ul><li><ins class="diff-new">
as
a
-</ins><a class="tref internalDFN" title="typed_literal" href="#dfn-typed_literal"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="typed_literal" href="#dfn-typed_literal"><ins class="diff-new">
typed
literal
-</ins></a><ins class="diff-chg">
+</ins></a><ins class="diff-new">
if
the
associative
array
contains
a
-</ins><code><ins class="diff-chg">
+</ins><code><ins class="diff-new">
@datatype
-</ins></code><ins class="diff-chg">
+</ins></code><ins class="diff-new">
key
after
performing
-</ins><a href="#iri-processing"><ins class="diff-chg">
+</ins><a href="#iri-processing"><ins class="diff-new">
IRI
Processing
-</ins></a><ins class="diff-chg">
+</ins></a><ins class="diff-new">
on
the
specified
-</ins><code><ins class="diff-chg">
+</ins><code><ins class="diff-new">
@datatype
-</ins></code>.</li><li><ins class="diff-chg">
+</ins></code>.</li><li><ins class="diff-new">
otherwise,
as
a
-</ins><a class="tref internalDFN" title="plain_literal" href="#dfn-plain_literal"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="plain_literal" href="#dfn-plain_literal"><ins class="diff-new">
plain
literal
-</ins></a>.<ins class="diff-chg">
+</ins></a>.<ins class="diff-new">
If
the
associative
array
contains
a
-</ins><code><ins class="diff-chg">
+</ins><code><ins class="diff-new">
@language
-</ins></code><ins class="diff-chg">
+</ins></code><ins class="diff-new">
key,
use
it's
@@ -7338,49 +8164,49 @@
the
plain
literal.
-</ins></li></ul><ins class="diff-chg">
+</ins></li></ul><ins class="diff-new">
Generate
a
triple
representing
the
-</ins><a class="tref internalDFN" title="active_subject" href="#dfn-active_subject"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="active_subject" href="#dfn-active_subject"><ins class="diff-new">
active
subject
-</ins></a>,<ins class="diff-chg">
-the
-</ins><a class="tref" title="active__property"><ins class="diff-chg">
+</ins></a>,<ins class="diff-new">
+the
+</ins><a class="tref" title="active__property"><ins class="diff-new">
active
property
-</ins></a><ins class="diff-chg">
-and
-the
-</ins><a class="tref internalDFN" title="active_object" href="#dfn-active_object"><ins class="diff-chg">
+</ins></a><ins class="diff-new">
+and
+the
+</ins><a class="tref internalDFN" title="active_object" href="#dfn-active_object"><ins class="diff-new">
active
object
-</ins></a>.<ins class="diff-chg">
+</ins></a>.<ins class="diff-new">
Return
the
-</ins><a class="tref internalDFN" title="active_object" href="#dfn-active_object"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="active_object" href="#dfn-active_object"><ins class="diff-new">
active
object
-</ins></a><ins class="diff-chg">
+</ins></a><ins class="diff-new">
to
the
calling
location.
-</ins></li><li><ins class="diff-chg">
+</ins></li><li><ins class="diff-new">
If
the
associative
array
has
a
-</ins><code><ins class="diff-chg">
+</ins><code><ins class="diff-new">
@
-</ins></code><ins class="diff-chg">
+</ins></code><ins class="diff-new">
key:
-</ins><ol class="algorithm"><li><ins class="diff-chg">
+</ins><ol class="algorithm"><li><ins class="diff-new">
If
the
value
@@ -7389,90 +8215,90 @@
string,
set
the
-</ins><a class="tref internalDFN" title="active_object" href="#dfn-active_object"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="active_object" href="#dfn-active_object"><ins class="diff-new">
active
object
-</ins></a><ins class="diff-chg">
+</ins></a><ins class="diff-new">
to
the
result
of
performing
-</ins><a href="#iri-processing"><ins class="diff-chg">
+</ins><a href="#iri-processing"><ins class="diff-new">
IRI
Processing
-</ins></a>.<ins class="diff-chg">
+</ins></a>.<ins class="diff-new">
Generate
a
triple
representing
the
-</ins><a class="tref internalDFN" title="active_subject" href="#dfn-active_subject"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="active_subject" href="#dfn-active_subject"><ins class="diff-new">
active
subject
-</ins></a>,<ins class="diff-chg">
-the
-</ins><a class="tref internalDFN" title="active_property" href="#dfn-active_property"><ins class="diff-chg">
+</ins></a>,<ins class="diff-new">
+the
+</ins><a class="tref internalDFN" title="active_property" href="#dfn-active_property"><ins class="diff-new">
active
property
-</ins></a><ins class="diff-chg">
-and
-the
-</ins><a class="tref internalDFN" title="active_object" href="#dfn-active_object"><ins class="diff-chg">
+</ins></a><ins class="diff-new">
+and
+the
+</ins><a class="tref internalDFN" title="active_object" href="#dfn-active_object"><ins class="diff-new">
active
object
-</ins></a>.<ins class="diff-chg">
+</ins></a>.<ins class="diff-new">
Set
the
-</ins><a class="tref internalDFN" title="active_subject" href="#dfn-active_subject"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="active_subject" href="#dfn-active_subject"><ins class="diff-new">
active
subject
-</ins></a><ins class="diff-chg">
-to
-the
-</ins><a class="tref internalDFN" title="active_object" href="#dfn-active_object"><ins class="diff-chg">
+</ins></a><ins class="diff-new">
+to
+the
+</ins><a class="tref internalDFN" title="active_object" href="#dfn-active_object"><ins class="diff-new">
active
object
-</ins></a>.</li><li><ins class="diff-chg">
+</ins></a>.</li><li><ins class="diff-new">
Create
a
new
-</ins><a class="tref internalDFN" title="processor_state" href="#dfn-processor_state"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="processor_state" href="#dfn-processor_state"><ins class="diff-new">
processor
state
-</ins></a><ins class="diff-chg">
+</ins></a><ins class="diff-new">
using
copies
of
the
-</ins><a class="tref internalDFN" title="active_context" href="#dfn-active_context"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="active_context" href="#dfn-active_context"><ins class="diff-new">
active
context
-</ins></a>,<a class="tref internalDFN" title="active_subject" href="#dfn-active_subject"><ins class="diff-chg">
+</ins></a>,<a class="tref internalDFN" title="active_subject" href="#dfn-active_subject"><ins class="diff-new">
active
subject
-</ins></a><ins class="diff-chg">
-and
-</ins><a class="tref internalDFN" title="active_property" href="#dfn-active_property"><ins class="diff-chg">
+</ins></a><ins class="diff-new">
+and
+</ins><a class="tref internalDFN" title="active_property" href="#dfn-active_property"><ins class="diff-new">
active
property
-</ins></a><ins class="diff-chg">
+</ins></a><ins class="diff-new">
and
process
the
value
starting
at
-</ins><a href="#processing-step-associative"><ins class="diff-chg">
+</ins><a href="#processing-step-associative"><ins class="diff-new">
Step
2
-</ins></a>,<ins class="diff-chg">
+</ins></a>,<ins class="diff-new">
set
the
-</ins><a class="tref" title="active__subject"><ins class="diff-chg">
+</ins><a class="tref" title="active__subject"><ins class="diff-new">
active
subject
-</ins></a><ins class="diff-chg">
+</ins></a><ins class="diff-new">
to
the
result
@@ -7481,10 +8307,10 @@
using
the
previous
-</ins><a class="tref internalDFN" title="processor_state" href="#dfn-processor_state"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="processor_state" href="#dfn-processor_state"><ins class="diff-new">
processor
state
-</ins></a>.</li></ol></li><li><ins class="diff-chg">
+</ins></a>.</li></ol></li><li><ins class="diff-new">
If
the
associative
@@ -7493,56 +8319,56 @@
not
have
a
-</ins><code><ins class="diff-chg">
+</ins><code><ins class="diff-new">
@
-</ins></code><ins class="diff-chg">
+</ins></code><ins class="diff-new">
key,
set
the
-</ins><a class="tref" title="active__object"><ins class="diff-chg">
+</ins><a class="tref" title="active__object"><ins class="diff-new">
active
object
-</ins></a><ins class="diff-chg">
+</ins></a><ins class="diff-new">
to
newly
generated
-</ins><a class="tref" title="blank_node_identifier"><ins class="diff-chg">
+</ins><a class="tref" title="blank_node_identifier"><ins class="diff-new">
blank
node
identifier
-</ins></a>.<ins class="diff-chg">
+</ins></a>.<ins class="diff-new">
Generate
a
triple
representing
the
-</ins><a class="tref internalDFN" title="active_subject" href="#dfn-active_subject"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="active_subject" href="#dfn-active_subject"><ins class="diff-new">
active
subject
-</ins></a>,<ins class="diff-chg">
-the
-</ins><a class="tref internalDFN" title="active_property" href="#dfn-active_property"><ins class="diff-chg">
+</ins></a>,<ins class="diff-new">
+the
+</ins><a class="tref internalDFN" title="active_property" href="#dfn-active_property"><ins class="diff-new">
active
property
-</ins></a><ins class="diff-chg">
-and
-the
-</ins><a class="tref internalDFN" title="active_object" href="#dfn-active_object"><ins class="diff-chg">
+</ins></a><ins class="diff-new">
+and
+the
+</ins><a class="tref internalDFN" title="active_object" href="#dfn-active_object"><ins class="diff-new">
active
object
-</ins></a>.<ins class="diff-chg">
+</ins></a>.<ins class="diff-new">
Set
the
-</ins><a class="tref internalDFN" title="active_subject" href="#dfn-active_subject"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="active_subject" href="#dfn-active_subject"><ins class="diff-new">
active
subject
-</ins></a><ins class="diff-chg">
-to
-the
-</ins><a class="tref" title="active__object"><ins class="diff-chg">
+</ins></a><ins class="diff-new">
+to
+the
+</ins><a class="tref" title="active__object"><ins class="diff-new">
active
object
-</ins></a>.</li><li><ins class="diff-chg">
+</ins></a>.</li><li><ins class="diff-new">
For
each
key
@@ -7560,100 +8386,96 @@
the
following
steps:
-</ins><ol class="algorithm"><li><ins class="diff-chg">
+</ins><ol class="algorithm"><li><ins class="diff-new">
If
the
key
is
-</ins><code><ins class="diff-chg">
-a
-</ins>
-</code>,
-<ins class="diff-new">set
+</ins><code><ins class="diff-new">
+a
+</ins></code>,<ins class="diff-new">
+set
the
</ins><a class="tref internalDFN" title="active_property" href="#dfn-active_property"><ins class="diff-new">
active
property
</ins></a><ins class="diff-new">
to
-</ins>
-<code>
-<del class="diff-old">>
-</del>
-<ins class="diff-chg">rdf:type
-</ins></code>.</li><li><ins class="diff-chg">
+</ins><code><ins class="diff-new">
+rdf:type
+</ins></code>.</li><li><ins class="diff-new">
Otherwise,
set
the
-</ins><a class="tref internalDFN" title="active_property" href="#dfn-active_property"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="active_property" href="#dfn-active_property"><ins class="diff-new">
active
property
-</ins></a><ins class="diff-chg">
+</ins></a><ins class="diff-new">
to
the
result
of
performing
-</ins><a href="#iri-processing"><ins class="diff-chg">
+</ins><a href="#iri-processing"><ins class="diff-new">
IRI
Processing
-</ins></a><ins class="diff-chg">
+</ins></a><ins class="diff-new">
on
the
key.
-</ins></li><li><ins class="diff-chg">
+</ins></li><li><ins class="diff-new">
Create
a
new
-</ins><a class="tref internalDFN" title="processor_state" href="#dfn-processor_state"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="processor_state" href="#dfn-processor_state"><ins class="diff-new">
processor
state
-</ins></a><ins class="diff-chg">
+</ins></a><ins class="diff-new">
copies
of
the
-</ins><a class="tref internalDFN" title="active_context" href="#dfn-active_context"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="active_context" href="#dfn-active_context"><ins class="diff-new">
active
context
-</ins></a>,<a class="tref internalDFN" title="active_subject" href="#dfn-active_subject"><ins class="diff-chg">
+</ins></a>,<a class="tref internalDFN" title="active_subject" href="#dfn-active_subject"><ins class="diff-new">
active
subject
-</ins></a><ins class="diff-chg">
-and
-</ins><a class="tref internalDFN" title="active_property" href="#dfn-active_property"><ins class="diff-chg">
+</ins></a><ins class="diff-new">
+and
+</ins><a class="tref internalDFN" title="active_property" href="#dfn-active_property"><ins class="diff-new">
active
property
-</ins></a><ins class="diff-chg">
+</ins></a><ins class="diff-new">
and
process
the
value
starting
at
-</ins><a href="#processing-step-associative"><ins class="diff-chg">
+</ins><a href="#processing-step-associative"><ins class="diff-new">
Step
2
-</ins></a><ins class="diff-chg">
+</ins></a><ins class="diff-new">
and
proceed
using
the
previous
-</ins><a class="tref internalDFN" title="processor_state" href="#dfn-processor_state"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="processor_state" href="#dfn-processor_state"><ins class="diff-new">
processor
state
-</ins></a>.</li></ol></li><li><ins class="diff-chg">
+</ins></a>.</li></ol></li><li><ins class="diff-new">
Return
the
-</ins><a class="tref internalDFN" title="active_object" href="#dfn-active_object"><ins class="diff-chg">
+</ins><a class="tref internalDFN" title="active_object" href="#dfn-active_object"><ins class="diff-new">
active
object
-</ins></a><ins class="diff-chg">
+</ins></a><ins class="diff-new">
to
the
calling
location.
-</ins></li></ol></li><li><ins class="diff-chg">
+</ins></li></ol></li><li><ins class="diff-new">
If
a
regular
@@ -7681,7 +8503,7 @@
in
the
array:
-</ins><ol class="algorithm"><li><ins class="diff-chg">
+</ins><ol class="algorithm"><li><ins class="diff-new">
If
the
value
@@ -7701,26 +8523,21 @@
the
list
using
-</ins><code><ins class="diff-chg">
+</ins><code><ins class="diff-new">
rdf:first
-</ins></code><ins class="diff-chg">
-and
-</ins><code><ins class="diff-chg">
+</ins></code><ins class="diff-new">
+and
+</ins><code><ins class="diff-new">
rdf:next
-</ins>
-</code>,
-<ins class="diff-new">terminating
+</ins></code>,<ins class="diff-new">
+terminating
the
list
with
-</ins>
-<code>
-<del class="diff-old">@
-</del>
-<ins class="diff-chg">rdf:nil
-</ins>
-</code>
-<ins class="diff-new">using
+</ins><code><ins class="diff-new">
+rdf:nil
+</ins></code><ins class="diff-new">
+using
the
following
sequence:
@@ -7742,17 +8559,12 @@
</ins></a>,<a class="tref internalDFN" title="active_property" href="#dfn-active_property"><ins class="diff-new">
active
property
-</ins></a>
-and
-<code>
-<del class="diff-old">^
-</del>
-<ins class="diff-chg">rdf:nil
-</ins>
-</code>.
-</li>
-<li>
-<ins class="diff-new">Otherwise,
+</ins></a><ins class="diff-new">
+and
+</ins><code><ins class="diff-new">
+rdf:nil
+</ins></code>.</li><li><ins class="diff-new">
+Otherwise,
generate
a
triple
@@ -8044,10 +8856,11 @@
xsd:boolean
</ins></code>.</li></ol></div><div id="best-practices" class="section"><h2><span class="secno"><ins class="diff-new">
8.
-</ins></span><ins class="diff-new">
+</ins></span>
Best
Practices
-</ins></h2><p><ins class="diff-new">
+</h2>
+<p>
The
nature
of
@@ -8095,20 +8908,18 @@
certain
development
headaches.
-</ins>
-</p>
-<del class="diff-old">{
-...
- "example:code" : ,
-...
-</del>
+</p>
<div id="javascript" class="section">
<h3>
<span class="secno">
+<del class="diff-old">7.1
+</del>
<ins class="diff-chg">8.1
-</ins></span><ins class="diff-chg">
+</ins>
+</span>
JavaScript
-</ins></h3><p class="issue"><ins class="diff-chg">
+</h3>
+<p class="issue">
It
is
expected
@@ -8222,12 +9033,20 @@
very
much
appreciated.
-</ins></p></div><div id="schema-less-databases" class="section"><h3><span class="secno"><ins class="diff-chg">
-8.2
-</ins></span><ins class="diff-chg">
+</p>
+</div>
+<div id="schema-less-databases" class="section">
+<h3>
+<span class="secno">
+<del class="diff-old">7.2
+</del>
+<ins class="diff-chg">8.2
+</ins>
+</span>
Schema-less
Databases
-</ins></h3><p class="issue"><ins class="diff-chg">
+</h3>
+<p class="issue">
Databases
such
as
@@ -8288,8 +9107,9 @@
in
those
environments.
-</ins></p><p class="issue"><ins class="diff-chg">
-MongoDB
+</p>
+<p class="issue">
+<ins class="diff-new">MongoDB
does
not
allow
@@ -8357,12 +9177,21 @@
useful
to
developers.
-</ins></p></div></div><div id="advanced-concepts" class="section"><h2><span class="secno"><ins class="diff-chg">
-9.
-</ins></span><ins class="diff-chg">
+</ins></p>
+</div>
+</div>
+<div id="advanced-concepts" class="section">
+<h2>
+<span class="secno">
+<del class="diff-old">8.
+</del>
+<ins class="diff-chg">9.
+</ins>
+</span>
Advanced
Concepts
-</ins></h2><p class="issue"><ins class="diff-chg">
+</h2>
+<p class="issue">
There
are
a
@@ -8421,12 +9250,19 @@
not
been
explored.
-</ins></p><div id="vocabulary-profiles" class="section"><h3><span class="secno"><ins class="diff-chg">
-9.1
-</ins></span><ins class="diff-chg">
+</p>
+<div id="vocabulary-profiles" class="section">
+<h3>
+<span class="secno">
+<del class="diff-old">8.1
+</del>
+<ins class="diff-chg">9.1
+</ins>
+</span>
Vocabulary
Profiles
-</ins></h3><p><ins class="diff-chg">
+</h3>
+<p>
One
of
the
@@ -8478,7 +9314,8 @@
the
JSON-LD
document.
-</ins></p><p><ins class="diff-chg">
+</p>
+<p>
The
example
below
@@ -8500,10 +9337,12 @@
this
imaginary
URL:
-</ins><code><ins class="diff-chg">
+<code>
http://example.org/profiles/contacts
-</ins></code>.</p><pre class="example">{
-<ins class="diff-chg">
+</code>.
+</p>
+<pre class="example">
+{
"@context":
{
"xsd": "http://www.w3.org/2001/XMLSchema#",
@@ -8517,7 +9356,8 @@
}
}
}
-</ins></pre><p><ins class="diff-chg">
+</pre>
+<p>
The
profile
listed
@@ -8529,17 +9369,17 @@
the
following
way:
-</ins></p><pre class="example">{
-<ins class="diff-chg">
+</p>
+<pre class="example">
+{
"@profile": "http://example.org/profiles/contacts",
"name": "John Smith",
"age": "41",
"homepage": "http://example.org/home/"
-</ins>
}
</pre>
<p>
-<ins class="diff-new">The
+The
example
above
would
@@ -8547,8 +9387,9 @@
the
following
triples:
-</ins></p><pre class="example">_:bnode1
-<ins class="diff-new">
+</p>
+<pre class="example">
+_:bnode1
<http://xmlns.com/foaf/0.1/name>
"John Smith" .
_:bnode1
@@ -8558,35 +9399,21 @@
<http://xmlns.com/foaf/0.1/homepage>
<http://example.org/home/>
.
-</ins></pre>
+</pre>
</div>
<div id="disjoint-graphs" class="section">
<h3>
<span class="secno">
-<del class="diff-old">5.11
+<del class="diff-old">8.2
</del>
<ins class="diff-chg">9.2
</ins>
</span>
-<del class="diff-old">Automatic
-Typing
-</del>
-<ins class="diff-chg">Disjoint
+Disjoint
Graphs
-</ins>
</h3>
-<del class="diff-old">{
-...
- // This value is automatically converted to having a type of xsd:decimal
- "measure:cups" : ,
- // This value is automatically converted to having a type of xsd:integer
- "chem:protons" : ,
- // This value is automatically converted to having a type of xsd:boolean
- "sensor:active" : ,
-...
-</del>
<p>
-<ins class="diff-chg">When
+When
serializing
an
RDF
@@ -8660,21 +9487,24 @@
a
single
graph.
-</ins></p><p><ins class="diff-chg">
+</p>
+<p>
Assume
the
following
RDF
graph:
-</ins></p><pre class="example"><http://example.org/people#john>
-<ins class="diff-chg">
+</p>
+<pre class="example">
+<http://example.org/people#john>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://xmlns.com/foaf/0.1/Person> .
<http://example.org/people#jane>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://xmlns.com/foaf/0.1/Person>
.
-</ins></pre><p><ins class="diff-chg">
+</pre>
+<p>
Since
the
two
@@ -8700,7 +9530,8 @@
JSON-LD
associative
array.
-</ins></p><p><ins class="diff-chg">
+</p>
+<p>
In
JSON-LD,
one
@@ -8716,8 +9547,9 @@
a
single
graph:
-</ins></p><pre class="example">{
-<ins class="diff-chg">
+</p>
+<pre class="example">
+{
"@":
[
{
@@ -8729,11 +9561,10 @@
"a": "foaf:Person"
}
]
-</ins>
}
</pre>
<p>
-<ins class="diff-new">A
+A
disjoint
graph
could
@@ -8742,8 +9573,9 @@
expressed
like
so:
-</ins></p><pre class="example">[
-<ins class="diff-new">
+</p>
+<pre class="example">
+[
{
"@": "http://example.org/people#john",
"a": "foaf:Person"
@@ -8753,17 +9585,21 @@
"a": "foaf:Person"
}
]
-</ins></pre>
+</pre>
</div>
<div id="the-json-ld-api" class="section">
<h3>
<span class="secno">
-<ins class="diff-new">9.3
-</ins></span><ins class="diff-new">
+<del class="diff-old">8.3
+</del>
+<ins class="diff-chg">9.3
+</ins>
+</span>
The
JSON-LD
API
-</ins></h3><p><ins class="diff-new">
+</h3>
+<p>
This
API
provides
@@ -8790,20 +9626,31 @@
various
programming
languages.
-</ins></p><pre class="idl"><span class="idlInterface" id="idl-def-JSONLDProcessor">[<span class="extAttr">NoInterfaceObject</span>]
-<ins class="diff-new">
+</p>
+<pre class="idl">
+<span class="idlInterface" id="idl-def-JSONLDProcessor">[<span class="extAttr">NoInterfaceObject</span>]
interface <span class="idlInterfaceID">JSONLDProcessor</span> {
-</ins><span class="idlMethod"> <span class="idlMethType"><a>object</a></span> <span class="idlMethName"><a href="#widl-JSONLDProcessor-toProjection-object-DOMString-jsonld-object-template-DOMString-subject-JSONLDParserCallback-callback">toProjection</a></span> (<span class="idlParam">in <span class="idlParamType"><a>DOMString</a></span> <span class="idlParamName">jsonld</span></span>, <span class="idlParam">in <span class="idlParamType"><a>object</a>?</span> <span class="idlParamName">template</span></span>, <span class="idlParam">in <span class="idlParamType"><a>DOMString</a>?</span> <span class="idlParamName">subject</span></span>, <span class="idlParam">in optional <span class="idlParamType"><a>JSONLDParserCallback</a>?</span> <span class="idlParamName">callback</span></span>);</span>
+<span class="idlMethod"> <span class="idlMethType"><a>object</a></span> <span class="idlMethName"><a href="#widl-JSONLDProcessor-toProjection-object-DOMString-jsonld-object-template-DOMString-subject-JSONLDParserCallback-callback">toProjection</a></span> (<span class="idlParam">in <span class="idlParamType"><a>DOMString</a></span> <span class="idlParamName">jsonld</span></span>, <span class="idlParam">in <span class="idlParamType"><a>object</a>?</span> <span class="idlParamName">template</span></span>, <span class="idlParam">in <span class="idlParamType"><a>DOMString</a>?</span> <span class="idlParamName">subject</span></span>, <span class="idlParam">in optional <span class="idlParamType"><a>JSONLDParserCallback</a>?</span> <span class="idlParamName">callback</span></span>);</span>
<span class="idlMethod"> <span class="idlMethType"><a>Graph</a></span> <span class="idlMethName"><a href="#widl-JSONLDProcessor-toGraph-Graph-DOMString-jsonld-JSONLDParserCallback-callback">toGraph</a></span> (<span class="idlParam">in <span class="idlParamType"><a>DOMString</a></span> <span class="idlParamName">jsonld</span></span>, <span class="idlParam">in optional <span class="idlParamType"><a>JSONLDParserCallback</a>?</span> <span class="idlParamName">callback</span></span>);</span>
-<ins class="diff-new">
};</span>
-</ins></pre><div id="methods" class="section"><h4><span class="secno"><ins class="diff-new">
-9.3.1
-</ins></span><ins class="diff-new">
+</pre>
+<div id="methods" class="section">
+<h4>
+<span class="secno">
+<del class="diff-old">8.3.1
+</del>
+<ins class="diff-chg">9.3.1
+</ins>
+</span>
Methods
-</ins></h4><dl class="methods"><dt id="widl-JSONLDProcessor-toGraph-Graph-DOMString-jsonld-JSONLDParserCallback-callback"><code><ins class="diff-new">
+</h4>
+<dl class="methods">
+<dt id="widl-JSONLDProcessor-toGraph-Graph-DOMString-jsonld-JSONLDParserCallback-callback">
+<code>
toGraph
-</ins></code></dt><dd><ins class="diff-new">
+</code>
+</dt>
+<dd>
Parses
JSON-LD
and
@@ -8823,17 +9670,19 @@
API
specification
[
-</ins><cite><a class="bibref" rel="biblioentry" href="#bib-RDF-INTERFACES"><ins class="diff-new">
+<cite>
+<a class="bibref" rel="biblioentry" href="#bib-RDF-INTERFACES">
RDF-INTERFACES
-</ins></a></cite><ins class="diff-new">
+</a>
+</cite>
].
This
method
will
return
-</ins><code><ins class="diff-new">
+<code>
null
-</ins></code><ins class="diff-new">
+</code>
if
there
are
@@ -8850,25 +9699,42 @@
available
for
use.
-</ins><table class="parameters"><tr><th><ins class="diff-new">
+<table class="parameters">
+<tr>
+<th>
Parameter
-</ins></th><th><ins class="diff-new">
+</th>
+<th>
Type
-</ins></th><th><ins class="diff-new">
+</th>
+<th>
Nullable
-</ins></th><th><ins class="diff-new">
+</th>
+<th>
Optional
-</ins></th><th><ins class="diff-new">
+</th>
+<th>
Description
-</ins></th></tr><tr><td class="prmName"><ins class="diff-new">
+</th>
+</tr>
+<tr>
+<td class="prmName">
jsonld
-</ins></td><td class="prmType"><code><a><ins class="diff-new">
+</td>
+<td class="prmType">
+<code>
+<a>
DOMString
-</ins></a></code></td><td class="prmNullFalse"><ins class="diff-new">
-✘
-</ins></td><td class="prmOptFalse"><ins class="diff-new">
-✘
-</ins></td><td class="prmDesc"><ins class="diff-new">
+</a>
+</code>
+</td>
+<td class="prmNullFalse">
+✘
+</td>
+<td class="prmOptFalse">
+✘
+</td>
+<td class="prmDesc">
The
JSON-LD
string
@@ -8877,15 +9743,26 @@
into
the
RDFGraph.
-</ins></td></tr><tr><td class="prmName"><ins class="diff-new">
+</td>
+</tr>
+<tr>
+<td class="prmName">
callback
-</ins></td><td class="prmType"><code><a><ins class="diff-new">
+</td>
+<td class="prmType">
+<code>
+<a>
JSONLDParserCallback
-</ins></a></code></td><td class="prmNullTrue"><ins class="diff-new">
-✔
-</ins></td><td class="prmOptTrue"><ins class="diff-new">
-✔
-</ins></td><td class="prmDesc"><ins class="diff-new">
+</a>
+</code>
+</td>
+<td class="prmNullTrue">
+✔
+</td>
+<td class="prmOptTrue">
+✔
+</td>
+<td class="prmDesc">
A
callback
that
@@ -8901,20 +9778,33 @@
given
JSON-LD
string.
-</ins></td></tr></table><div><em><ins class="diff-new">
+</td>
+</tr>
+</table>
+<div>
+<em>
No
exceptions.
-</ins></em>
+</em>
</div>
<div>
<em>
-<ins class="diff-chg">Return
+Return
type:
-</ins></em><code><a><ins class="diff-chg">
+</em>
+<code>
+<a>
Graph
-</ins></a></code></div></dd><dt id="widl-JSONLDProcessor-toProjection-object-DOMString-jsonld-object-template-DOMString-subject-JSONLDParserCallback-callback"><code><ins class="diff-chg">
+</a>
+</code>
+</div>
+</dd>
+<dt id="widl-JSONLDProcessor-toProjection-object-DOMString-jsonld-object-template-DOMString-subject-JSONLDParserCallback-callback">
+<code>
toProjection
-</ins></code></dt><dd><ins class="diff-chg">
+</code>
+</dt>
+<dd>
Parses
JSON-LD
text
@@ -8932,39 +9822,58 @@
API
specification
[
-</ins><cite><a class="bibref" rel="biblioentry" href="#bib-RDF-API"><ins class="diff-chg">
+<cite>
+<a class="bibref" rel="biblioentry" href="#bib-RDF-API">
RDF-API
-</ins></a></cite><ins class="diff-chg">
+</a>
+</cite>
].
If
there
are
any
errors,
-</ins><code><ins class="diff-chg">
+<code>
null
-</ins></code><ins class="diff-chg">
+</code>
is
returned.
-</ins><table class="parameters"><tr><th><ins class="diff-chg">
+<table class="parameters">
+<tr>
+<th>
Parameter
-</ins></th><th><ins class="diff-chg">
+</th>
+<th>
Type
-</ins></th><th><ins class="diff-chg">
+</th>
+<th>
Nullable
-</ins></th><th><ins class="diff-chg">
+</th>
+<th>
Optional
-</ins></th><th><ins class="diff-chg">
+</th>
+<th>
Description
-</ins></th></tr><tr><td class="prmName"><ins class="diff-chg">
+</th>
+</tr>
+<tr>
+<td class="prmName">
jsonld
-</ins></td><td class="prmType"><code><a><ins class="diff-chg">
+</td>
+<td class="prmType">
+<code>
+<a>
DOMString
-</ins></a></code></td><td class="prmNullFalse"><ins class="diff-chg">
-✘
-</ins></td><td class="prmOptFalse"><ins class="diff-chg">
-✘
-</ins></td><td class="prmDesc"><ins class="diff-chg">
+</a>
+</code>
+</td>
+<td class="prmNullFalse">
+✘
+</td>
+<td class="prmOptFalse">
+✘
+</td>
+<td class="prmDesc">
The
JSON-LD
string
@@ -8973,15 +9882,26 @@
into
the
Projection.
-</ins></td></tr><tr><td class="prmName"><ins class="diff-chg">
+</td>
+</tr>
+<tr>
+<td class="prmName">
template
-</ins></td><td class="prmType"><code><a><ins class="diff-chg">
+</td>
+<td class="prmType">
+<code>
+<a>
object
-</ins></a></code></td><td class="prmNullTrue"><ins class="diff-chg">
-✔
-</ins></td><td class="prmOptFalse"><ins class="diff-chg">
-✘
-</ins></td><td class="prmDesc"><ins class="diff-chg">
+</a>
+</code>
+</td>
+<td class="prmNullTrue">
+✔
+</td>
+<td class="prmOptFalse">
+✘
+</td>
+<td class="prmDesc">
The
Projection
template
@@ -8991,15 +9911,26 @@
building
the
Projection.
-</ins></td></tr><tr><td class="prmName"><ins class="diff-chg">
+</td>
+</tr>
+<tr>
+<td class="prmName">
subject
-</ins></td><td class="prmType"><code><a><ins class="diff-chg">
+</td>
+<td class="prmType">
+<code>
+<a>
DOMString
-</ins></a></code></td><td class="prmNullTrue"><ins class="diff-chg">
-✔
-</ins></td><td class="prmOptFalse"><ins class="diff-chg">
-✘
-</ins></td><td class="prmDesc"><ins class="diff-chg">
+</a>
+</code>
+</td>
+<td class="prmNullTrue">
+✔
+</td>
+<td class="prmOptFalse">
+✘
+</td>
+<td class="prmDesc">
The
subject
to
@@ -9008,15 +9939,26 @@
building
the
Projection.
-</ins></td></tr><tr><td class="prmName"><ins class="diff-chg">
+</td>
+</tr>
+<tr>
+<td class="prmName">
callback
-</ins></td><td class="prmType"><code><a><ins class="diff-chg">
+</td>
+<td class="prmType">
+<code>
+<a>
JSONLDParserCallback
-</ins></a></code></td><td class="prmNullTrue"><ins class="diff-chg">
-✔
-</ins></td><td class="prmOptTrue"><ins class="diff-chg">
-✔
-</ins></td><td class="prmDesc"><ins class="diff-chg">
+</a>
+</code>
+</td>
+<td class="prmNullTrue">
+✔
+</td>
+<td class="prmOptTrue">
+✔
+</td>
+<td class="prmDesc">
A
callback
that
@@ -9032,15 +9974,30 @@
given
JSON-LD
string.
-</ins></td></tr></table><div><em><ins class="diff-chg">
+</td>
+</tr>
+</table>
+<div>
+<em>
No
exceptions.
-</ins></em></div><div><em><ins class="diff-chg">
+</em>
+</div>
+<div>
+<em>
Return
type:
-</ins></em><code><a><ins class="diff-chg">
+</em>
+<code>
+<a>
object
-</ins></a></code></div></dd></dl></div><p><ins class="diff-chg">
+</a>
+</code>
+</div>
+</dd>
+</dl>
+</div>
+<p>
The
JSONLDParserCallback
is
@@ -9053,19 +10010,30 @@
on
input
data.
-</ins></p><pre class="idl"><span class="idlInterface" id="idl-def-JSONLDProcessorCallback">[<span class="extAttr">NoInterfaceObject Callback</span>]
-<ins class="diff-chg">
+</p>
+<pre class="idl">
+<span class="idlInterface" id="idl-def-JSONLDProcessorCallback">[<span class="extAttr">NoInterfaceObject Callback</span>]
interface <span class="idlInterfaceID">JSONLDProcessorCallback</span> {
-</ins><span class="idlMethod"> <span class="idlMethType"><a>void</a></span> <span class="idlMethName"><a href="#widl-JSONLDProcessorCallback-error-void-DOMString-error">error</a></span> (<span class="idlParam">in <span class="idlParamType"><a>DOMString</a></span> <span class="idlParamName">error</span></span>);</span>
-<ins class="diff-chg">
+<span class="idlMethod"> <span class="idlMethType"><a>void</a></span> <span class="idlMethName"><a href="#widl-JSONLDProcessorCallback-error-void-DOMString-error">error</a></span> (<span class="idlParam">in <span class="idlParamType"><a>DOMString</a></span> <span class="idlParamName">error</span></span>);</span>
};</span>
-</ins></pre><div id="methods-1" class="section"><h4><span class="secno"><ins class="diff-chg">
-9.3.2
-</ins></span><ins class="diff-chg">
+</pre>
+<div id="methods-1" class="section">
+<h4>
+<span class="secno">
+<del class="diff-old">8.3.2
+</del>
+<ins class="diff-chg">9.3.2
+</ins>
+</span>
Methods
-</ins></h4><dl class="methods"><dt id="widl-JSONLDProcessorCallback-error-void-DOMString-error"><code><ins class="diff-chg">
+</h4>
+<dl class="methods">
+<dt id="widl-JSONLDProcessorCallback-error-void-DOMString-error">
+<code>
error
-</ins></code></dt><dd><ins class="diff-chg">
+</code>
+</dt>
+<dd>
This
callback
is
@@ -9076,25 +10044,42 @@
occurs
during
processing.
-</ins><table class="parameters"><tr><th><ins class="diff-chg">
+<table class="parameters">
+<tr>
+<th>
Parameter
-</ins></th><th><ins class="diff-chg">
+</th>
+<th>
Type
-</ins></th><th><ins class="diff-chg">
+</th>
+<th>
Nullable
-</ins></th><th><ins class="diff-chg">
+</th>
+<th>
Optional
-</ins></th><th><ins class="diff-chg">
+</th>
+<th>
Description
-</ins></th></tr><tr><td class="prmName"><ins class="diff-chg">
+</th>
+</tr>
+<tr>
+<td class="prmName">
error
-</ins></td><td class="prmType"><code><a><ins class="diff-chg">
+</td>
+<td class="prmType">
+<code>
+<a>
DOMString
-</ins></a></code></td><td class="prmNullFalse"><ins class="diff-chg">
-✘
-</ins></td><td class="prmOptFalse"><ins class="diff-chg">
-✘
-</ins></td><td class="prmDesc"><ins class="diff-chg">
+</a>
+</code>
+</td>
+<td class="prmNullFalse">
+✘
+</td>
+<td class="prmOptFalse">
+✘
+</td>
+<td class="prmDesc">
A
descriptive
error
@@ -9103,15 +10088,30 @@
by
the
processor.
-</ins></td></tr></table><div><em><ins class="diff-chg">
+</td>
+</tr>
+</table>
+<div>
+<em>
No
exceptions.
-</ins></em></div><div><em><ins class="diff-chg">
+</em>
+</div>
+<div>
+<em>
Return
type:
-</ins></em><code><a><ins class="diff-chg">
+</em>
+<code>
+<a>
void
-</ins></a></code></div></dd></dl></div><p><ins class="diff-chg">
+</a>
+</code>
+</div>
+</dd>
+</dl>
+</div>
+<p>
The
following
example
@@ -9131,19 +10131,17 @@
a
programming
environment:
-</ins></p><pre class="example">// retrieve JSON-LD from a Web Service
-<ins class="diff-chg">
+</p>
+<pre class="example">
+// retrieve JSON-LD from a Web Service
var jsonldString = fetchPerson();
-
// This map, usually defined once per script, defines how to map incoming
// JSON-LD to JavaScript objects
var myTemplate = { "http://xmlns.com/foaf/0.1/name" : "name",
"http://xmlns.com/foaf/0.1/age" : "age",
"http://xmlns.com/foaf/0.1/homepage" : "homepage" };
-
// Map the JSON-LD to a language-native object
var person = jsonld.toProjection(jsonldString, myTemplate);
-
// Use the language-native object
alert(person.name + " is " + person.age + " years old. " +
"Their
@@ -9152,7 +10150,8 @@
"
+
person.homepage);
-</ins></pre><p><ins class="diff-chg">
+</pre>
+<p>
A
JSON-LD
Serializer
@@ -9166,19 +10165,29 @@
object
to
JSON-LD.
-</ins></p><pre class="idl"><span class="idlInterface" id="idl-def-JSONLDSerializer">[<span class="extAttr">NoInterfaceObject</span>]
-<ins class="diff-chg">
+</p><pre class="idl">
+<span class="idlInterface" id="idl-def-JSONLDSerializer">[<span class="extAttr">NoInterfaceObject</span>]
interface <span class="idlInterfaceID">JSONLDSerializer</span> {
-</ins><span class="idlMethod"> <span class="idlMethType"><a>DOMString</a></span> <span class="idlMethName"><a href="#widl-JSONLDSerializer-normalize-DOMString-object-obj">normalize</a></span> (<span class="idlParam">in <span class="idlParamType"><a>object</a></span> <span class="idlParamName">obj</span></span>);</span>
-<ins class="diff-chg">
+<span class="idlMethod"> <span class="idlMethType"><a>DOMString</a></span> <span class="idlMethName"><a href="#widl-JSONLDSerializer-normalize-DOMString-object-obj">normalize</a></span> (<span class="idlParam">in <span class="idlParamType"><a>object</a></span> <span class="idlParamName">obj</span></span>);</span>
};</span>
-</ins></pre><div id="methods-2" class="section"><h4><span class="secno"><ins class="diff-chg">
-9.3.3
-</ins></span><ins class="diff-chg">
+</pre>
+<div id="methods-2" class="section">
+<h4>
+<span class="secno">
+<del class="diff-old">8.3.3
+</del>
+<ins class="diff-chg">9.3.3
+</ins>
+</span>
Methods
-</ins></h4><dl class="methods"><dt id="widl-JSONLDSerializer-normalize-DOMString-object-obj"><code><ins class="diff-chg">
+</h4>
+<dl class="methods">
+<dt id="widl-JSONLDSerializer-normalize-DOMString-object-obj">
+<code>
normalize
-</ins></code></dt><dd><ins class="diff-chg">
+</code>
+</dt>
+<dd>
Serializes
a
language-native
@@ -9203,25 +10212,42 @@
creation
and
verification.
-</ins><table class="parameters"><tr><th><ins class="diff-chg">
+<table class="parameters">
+<tr>
+<th>
Parameter
-</ins></th><th><ins class="diff-chg">
+</th>
+<th>
Type
-</ins></th><th><ins class="diff-chg">
+</th>
+<th>
Nullable
-</ins></th><th><ins class="diff-chg">
+</th>
+<th>
Optional
-</ins></th><th><ins class="diff-chg">
+</th>
+<th>
Description
-</ins></th></tr><tr><td class="prmName"><ins class="diff-chg">
+</th>
+</tr>
+<tr>
+<td class="prmName">
obj
-</ins></td><td class="prmType"><code><a><ins class="diff-chg">
+</td>
+<td class="prmType">
+<code>
+<a>
object
-</ins></a></code></td><td class="prmNullFalse"><ins class="diff-chg">
-✘
-</ins></td><td class="prmOptFalse"><ins class="diff-chg">
-✘
-</ins></td><td class="prmDesc"><ins class="diff-chg">
+</a>
+</code>
+</td>
+<td class="prmNullFalse">
+✘
+</td>
+<td class="prmOptFalse">
+✘
+</td>
+<td class="prmDesc">
An
associative
array
@@ -9247,19 +10273,35 @@
for
the
data.
-</ins></td></tr></table><div><em><ins class="diff-chg">
+</td>
+</tr>
+</table>
+<div>
+<em>
No
exceptions.
-</ins></em></div><div><em><ins class="diff-chg">
+</em>
+</div>
+<div>
+<em>
Return
type:
-</ins></em><code><a><ins class="diff-chg">
+</em>
+<code>
+<a>
DOMString
-</ins></a></code></div></dd></dl></div><h3 id="the-normalization-algorithm"><ins class="diff-chg">
+</a>
+</code>
+</div>
+</dd>
+</dl>
+</div>
+<h3 id="the-normalization-algorithm">
The
Normalization
Algorithm
-</ins></h3><p class="issue"><ins class="diff-chg">
+</h3>
+<p class="issue">
This
algorithm
is
@@ -9283,7 +10325,8 @@
the
coming
months.
-</ins></p><p><ins class="diff-chg">
+</p>
+<p>
The
JSON-LD
normalization
@@ -9291,31 +10334,35 @@
is
as
follows:
-</ins></p><ol class="algorithm"><li><ins class="diff-chg">
+</p>
+<ol class="algorithm">
+<li>
Remove
the
-</ins><code><ins class="diff-chg">
+<code>
@context
-</ins></code><ins class="diff-chg">
+</code>
key
and
preserve
it
as
the
-</ins><dfn title="transformation_map" id="dfn-transformation_map"><ins class="diff-chg">
+<dfn title="transformation_map" id="dfn-transformation_map">
transformation
map
-</ins></dfn><ins class="diff-chg">
+</dfn>
while
running
this
algorithm.
-</ins></li><li><ins class="diff-chg">
+</li>
+<li>
For
each
key
-</ins><ol class="algorithm"><li><ins class="diff-chg">
+<ol class="algorithm">
+<li>
If
the
key
@@ -9330,14 +10377,19 @@
IRI
using
the
-</ins><a class="tref internalDFN" title="transformation_map" href="#dfn-transformation_map"><ins class="diff-chg">
+<a class="tref internalDFN" title="transformation_map" href="#dfn-transformation_map">
transformation
map
-</ins></a>.</li></ol></li><li><ins class="diff-chg">
+</a>.
+</li>
+</ol>
+</li>
+<li>
For
each
value
-</ins><ol class="algorithm"><li><ins class="diff-chg">
+<ol class="algorithm">
+<li>
If
the
value
@@ -9347,10 +10399,10 @@
coerced
per
the
-</ins><a class="tref internalDFN" title="transformation_map" href="#dfn-transformation_map"><ins class="diff-chg">
+<a class="tref internalDFN" title="transformation_map" href="#dfn-transformation_map">
transformation
map
-</ins></a>,<ins class="diff-chg">
+</a>,
ensure
that
it
@@ -9360,7 +10412,8 @@
the
new
value.
-</ins></li><li><ins class="diff-chg">
+</li>
+<li>
If
the
value
@@ -9375,19 +10428,24 @@
IRI
using
the
-</ins><a class="tref internalDFN" title="transformation_map" href="#dfn-transformation_map"><ins class="diff-chg">
+<a class="tref internalDFN" title="transformation_map" href="#dfn-transformation_map">
transformation
map
-</ins></a>.</li><li><ins class="diff-chg">
+</a>.
+</li>
+<li>
If
the
value
is
a
-</ins><a class="tref internalDFN" title="typed_literal" href="#dfn-typed_literal"><ins class="diff-chg">
-typed
+<del class="diff-old">Typed
+Literal
+</del>
+<a class="tref internalDFN" title="typed_literal" href="#dfn-typed_literal">
+<ins class="diff-chg">typed
literal
-</ins></a><ins class="diff-chg">
+</ins></a>
and
the
type
@@ -9401,10 +10459,12 @@
IRI
using
the
-</ins><a class="tref internalDFN" title="transformation_map" href="#dfn-transformation_map"><ins class="diff-chg">
+<a class="tref internalDFN" title="transformation_map" href="#dfn-transformation_map">
transformation
map
-</ins></a>.</li><li><ins class="diff-chg">
+</a>.
+</li>
+<li>
When
generating
the
@@ -9422,15 +10482,21 @@
typed
literals
and
-</ins><a class="tref internalDFN" title="plain_literal" href="#dfn-plain_literal"><ins class="diff-chg">
+<a class="tref internalDFN" title="plain_literal" href="#dfn-plain_literal">
plain
-literal
+<del class="diff-old">literals
+</del>
+<ins class="diff-chg">literal
</ins></a><ins class="diff-chg">
s
+</ins>
with
language
information.
-</ins></li></ol></li><li><ins class="diff-chg">
+</li>
+</ol>
+</li>
+<li>
Output
each
sorted
@@ -9514,7 +10580,9 @@
the
top-level
array.
-</ins></li></ol><p class="issue"><ins class="diff-chg">
+</li>
+</ol>
+<p class="issue">
Note
that
normalizing
@@ -9559,27 +10627,34 @@
nodes
is
supported.
-</ins></p><pre class="example">var myObj = { "@context" : {
-<ins class="diff-chg">
+</p>
+<pre class="example">
+var myObj = { "@context" : {
"xsd" : "http://www.w3.org/2001/XMLSchema#",
"name" : "http://xmlns.com/foaf/0.1/name",
"age" : "http://xmlns.com/foaf/0.1/age",
"homepage" : "http://xmlns.com/foaf/0.1/homepage",
- "@coerce": {
+<del class="diff-old"> "@type": {
+</del>
+<ins class="diff-chg"> "@coerce": {
+</ins>
"xsd:nonNegativeInteger": "age",
"xsd:anyURI": "homepage"
}
},
"name" : "Joe Jackson",
- "age" : "42",
+<del class="diff-old"> "age" : 42,
+</del>
+<ins class="diff-chg"> "age" : "42",
+</ins>
"homepage" : "http://example.org/people/joe" };
-
// Map the language-native object to JSON-LD
var
jsonldText
=
jsonld.normalize(myObj);
-</ins></pre><p><ins class="diff-chg">
+</pre>
+<p>
After
the
code
@@ -9590,9 +10665,9 @@
has
executed,
the
-</ins><strong><ins class="diff-chg">
+<strong>
jsonldText
-</ins></strong><ins class="diff-chg">
+</strong>
value
will
be
@@ -9600,22 +10675,24 @@
added
for
readability):
-</ins></p><pre class="example">[{"http://xmlns.com/foaf/0.1/age":{"@datatype":"http://www.w3.org/2001/XMLSchema#nonNegativeInteger","@literal":"42"},
-<ins class="diff-chg">
+</p>
+<pre class="example">
+[{"http://xmlns.com/foaf/0.1/age":{"@datatype":"http://www.w3.org/2001/XMLSchema#nonNegativeInteger","@literal":"42"},
"http://xmlns.com/foaf/0.1/homepage":{"@iri":"http://example.org/people/joe"},
"http://xmlns.com/foaf/0.1/name":"Joe
Jackson"}]
-</ins></pre><p><ins class="diff-chg">
+</pre>
+<p>
When
normalizing
-</ins><strong><ins class="diff-chg">
+<strong>
xsd:double
-</ins></strong><ins class="diff-chg">
+</strong>
values,
implementers
-</ins><em class="rfc2119" title="must"><ins class="diff-chg">
+<em class="rfc2119" title="must">
must
-</ins></em><ins class="diff-chg">
+</em>
ensure
that
the
@@ -9632,45 +10709,46 @@
string
from
a
-</ins><strong><ins class="diff-chg">
+<strong>
double
-</ins></strong><ins class="diff-chg">
+</strong>
value,
output
equivalent
to
the
-</ins><code><ins class="diff-chg">
+<code>
printf("%1.6e",
value)
-</ins></code><ins class="diff-chg">
+</code>
function
in
C
-</ins><em class="rfc2119" title="must"><ins class="diff-chg">
+<em class="rfc2119" title="must">
must
-</ins></em><ins class="diff-chg">
+</em>
be
used
where
-</ins><strong><ins class="diff-chg">
+<strong>
"%1.6e"
-</ins></strong><ins class="diff-chg">
+</strong>
is
the
string
formatter
and
-</ins><strong><ins class="diff-chg">
+<strong>
value
-</ins></strong><ins class="diff-chg">
+</strong>
is
the
value
to
be
converted.
-</ins></p><p><ins class="diff-chg">
+</p>
+<p>
To
convert
the
@@ -9687,11 +10765,13 @@
snippet
of
code:
-</ins></p><pre class="example">// the variable 'value' below is the JavaScript native double value that is to be converted
-<ins class="diff-chg">
+</p>
+<pre class="example">
+// the variable 'value' below is the JavaScript native double value that is to be converted
(value).toExponential(6).replace(/(e(?:\+|-))([0-9])$/,
'$10$2')
-</ins></pre><p class="note"><ins class="diff-chg">
+</pre>
+<p class="note">
When
data
needs
@@ -9719,12 +10799,13 @@
lossy
nature
of
-</ins><strong><ins class="diff-chg">
+<strong>
xsd:double
-</ins></strong><ins class="diff-chg">
+</strong>
values.
-</ins></p><p class="issue"><ins class="diff-chg">
-Round-tripping
+</p>
+<p class="issue">
+<ins class="diff-new">Round-tripping
data
can
be
@@ -9746,24 +10827,22 @@
following
code
example:
-</ins></p><pre class="example">var myObj = { "@context" : {
-<ins class="diff-chg">
+</ins></p><pre class="example"><ins class="diff-new">
+var myObj = { "@context" : {
"number" : "http://example.com/vocab#number",
"@coerce": {
"xsd:nonNegativeInteger": "number"
}
},
"number" : 42 };
-
// Map the language-native object to JSON-LD
var jsonldText = jsonld.normalize(myObj);
-
// Convert the normalized object back to a JavaScript object
var
myObj2
=
jsonld.parse(jsonldText);
-</ins></pre><p class="issue"><ins class="diff-chg">
+</ins></pre><p class="issue"><ins class="diff-new">
At
this
point,
@@ -9830,20 +10909,24 @@
one
mentioned
above.
-</ins></p></div></div><div class="appendix section" id="the-default-context">
+</ins></p>
+</div>
+</div>
+<div class="appendix section" id="the-default-context">
<h2>
<span class="secno">
A.
</span>
-<ins class="diff-new">The
+The
Default
Context
-</ins></h2><p><ins class="diff-new">
+</h2>
+<p>
The
-</ins><dfn title="default_context" id="dfn-default_context-1"><ins class="diff-new">
+<dfn title="default_context" id="dfn-default_context-1">
default
context
-</ins></dfn><ins class="diff-new">
+</dfn>
is
provided
to
@@ -9867,13 +10950,14 @@
specified
by
the
-</ins><a class="tref internalDFN" title="default_context" href="#dfn-default_context-1"><ins class="diff-new">
+<a class="tref internalDFN" title="default_context" href="#dfn-default_context-1">
default
context
-</ins></a><em class="rfc2119" title="should not"><ins class="diff-new">
+</a>
+<em class="rfc2119" title="should not">
should
not
-</ins></em><ins class="diff-new">
+</em>
be
overwritten
by
@@ -9882,9 +10966,9 @@
All
JSON-LD
processors
-</ins><em class="rfc2119" title="must"><ins class="diff-new">
+<em class="rfc2119" title="must">
must
-</ins></em><ins class="diff-new">
+</em>
load
the
following
@@ -9898,11 +10982,13 @@
processing
JSON-LD
text.
-</ins></p><pre>{
-<ins class="diff-new">
+</p>
+<pre>
+{
"@context":
{
- "@vocab": "",
+<ins class="diff-new"> "@vocab": "",
+</ins>
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"owl": "http://www.w3.org/2002/07/owl#",
@@ -9922,14 +11008,21 @@
"ccard": "http://purl.org/commerce/creditcard#"
"@coerce":
{
- "xsd:anyURI": ["rdf:type", "rdf:rest", "foaf:homepage", "foaf:member"],
+<del class="diff-old"> "xsd:anyURI": ["foaf:homepage", "foaf:member"],
+</del>
+<ins class="diff-chg"> "xsd:anyURI": ["rdf:type", "rdf:rest", "foaf:homepage", "foaf:member"],
+</ins>
"xsd:integer": "foaf:age"
}
}
}
-</ins></pre></div><div class="appendix section" id="acknowledgements"><h2><span class="secno"><ins class="diff-new">
+</pre>
+</div>
+<div class="appendix section" id="acknowledgements">
+<h2>
+<span class="secno">
B.
-</ins></span>
+</span>
Acknowledgements
</h2>
<p>
@@ -9960,7 +11053,7 @@
work
on
RDFj,
-<ins class="diff-new">Dave
+Dave
Longley
who
reviewed,
@@ -9973,14 +11066,13 @@
on
the
specification,
-</ins>
and
Ian
Davis,
who
created
RDF/JSON.
-<ins class="diff-new">Thanks
+Thanks
also
to
Nathan
@@ -9997,60 +11089,40 @@
on
the
specification.
-</ins>
</p>
</div>
-<div id="respec-err" style="position: fixed; width: 350px; top: 10px; right: 10px; border: 3px double #f00; background: #fff" class="removeOnSave">
-<ul>
-<li style="color: #c00">
-<ins class="diff-new">There
-appears
-to
-have
-been
-a
-problem
-fetching
-the
-style
-sheet;
-status=0
-</ins></li></ul></div>
<div id="references" class="appendix section">
<h2>
<span class="secno">
-<del class="diff-old">B.
-</del>
-<ins class="diff-chg">C.
-</ins>
+C.
</span>
References
</h2>
<div id="normative-references" class="section">
<h3>
<span class="secno">
-<del class="diff-old">B.1
-</del>
-<ins class="diff-chg">C.1
-</ins>
+C.1
</span>
Normative
references
</h3>
<dl class="bibliography">
<dt id="bib-BCP47">
-<ins class="diff-new">[BCP47]
-</ins></dt><dd><ins class="diff-new">
+[BCP47]
+</dt>
+<dd>
A.
Phillips,
M.
Davis.
-</ins><a href="http://tools.ietf.org/rfc/bcp/bcp47.txt"><cite><ins class="diff-new">
+<a href="http://tools.ietf.org/rfc/bcp/bcp47.txt">
+<cite>
Tags
for
Identifying
Languages
-</ins></cite></a><ins class="diff-new">
+</cite>
+</a>
September
2009.
IETF
@@ -10058,11 +11130,14 @@
Current
Practice.
URL:
-</ins><a href="http://tools.ietf.org/rfc/bcp/bcp47.txt"><ins class="diff-new">
+<a href="http://tools.ietf.org/rfc/bcp/bcp47.txt">
http://tools.ietf.org/rfc/bcp/bcp47.txt
-</ins></a></dd><dt id="bib-RDF-API"><ins class="diff-new">
+</a>
+</dd>
+<dt id="bib-RDF-API">
[RDF-API]
-</ins></dt><dd><ins class="diff-new">
+</dt>
+<dd>
Manu
Sporny,
Benjamin
@@ -10071,26 +11146,32 @@
Rixham;
et
al.
-</ins><a href="http://www.w3.org/2010/02/rdfa/sources/rdf-api/"><cite><ins class="diff-new">
+<a href="http://www.w3.org/2010/02/rdfa/sources/rdf-api/">
+<cite>
RDF
API
-</ins></cite></a><ins class="diff-new">
+</cite>
+</a>
Latest.
W3C
Editor's
Draft.
URL:
-</ins><a href="http://www.w3.org/2010/02/rdfa/sources/rdf-api/"><ins class="diff-new">
+<a href="http://www.w3.org/2010/02/rdfa/sources/rdf-api/">
http://www.w3.org/2010/02/rdfa/sources/rdf-api/
-</ins></a></dd><dt id="bib-RDF-CONCEPTS"><ins class="diff-new">
+</a>
+</dd>
+<dt id="bib-RDF-CONCEPTS">
[RDF-CONCEPTS]
-</ins></dt><dd><ins class="diff-new">
+</dt>
+<dd>
Graham
Klyne;
Jeremy
J.
Carroll.
-</ins><a href="http://www.w3.org/TR/2004/REC-rdf-concepts-20040210"><cite><ins class="diff-new">
+<a href="http://www.w3.org/TR/2004/REC-rdf-concepts-20040210">
+<cite>
Resource
Description
Framework
@@ -10099,18 +11180,22 @@
and
Abstract
Syntax.
-</ins></cite></a><ins class="diff-new">
+</cite>
+</a>
10
February
2004.
W3C
Recommendation.
URL:
-</ins><a href="http://www.w3.org/TR/2004/REC-rdf-concepts-20040210"><ins class="diff-new">
+<a href="http://www.w3.org/TR/2004/REC-rdf-concepts-20040210">
http://www.w3.org/TR/2004/REC-rdf-concepts-20040210
-</ins></a></dd><dt id="bib-RDF-INTERFACES"><ins class="diff-new">
+</a>
+</dd>
+<dt id="bib-RDF-INTERFACES">
[RDF-INTERFACES]
-</ins></dt><dd><ins class="diff-new">
+</dt>
+<dd>
Nathan
Rixham,
Manu
@@ -10119,22 +11204,26 @@
Adrian;
et
al.
-</ins><a href="http://www.w3.org/2010/02/rdfa/sources/rdf-interfaces/"><cite><ins class="diff-new">
+<a href="http://www.w3.org/2010/02/rdfa/sources/rdf-interfaces/">
+<cite>
RDF
Interfaces
-</ins></cite></a><ins class="diff-new">
+</cite>
+</a>
Latest.
W3C
Editor's
Draft.
URL:
-</ins><a href="http://www.w3.org/2010/02/rdfa/sources/rdf-interfaces/"><ins class="diff-new">
+<a href="http://www.w3.org/2010/02/rdfa/sources/rdf-interfaces/">
http://www.w3.org/2010/02/rdfa/sources/rdf-interfaces/
-</ins></a></dd><dt id="bib-RFC3987"><ins class="diff-new">
-[RFC3987]
+</a>
+</dd>
+<dt id="bib-RFC3987">
+<ins class="diff-new">[RFC3987]
</ins></dt><dd><ins class="diff-new">
M.
-D�rst;
+Dürst;
M.
Suignard.
</ins><a href="http://www.ietf.org/rfc/rfc3987.txt"><cite><ins class="diff-new">
@@ -10151,16 +11240,15 @@
URL:
</ins><a href="http://www.ietf.org/rfc/rfc3987.txt"><ins class="diff-new">
http://www.ietf.org/rfc/rfc3987.txt
-</ins></a></dd>
+</ins>
+</a>
+</dd>
<dt id="bib-RFC4627">
[RFC4627]
</dt>
<dd>
D.
-<del class="diff-old">Crockford
-</del>
-<ins class="diff-chg">Crockford.
-</ins>
+Crockford.
<a href="http://www.ietf.org/rfc/rfc4627.txt">
<cite>
The
@@ -10189,10 +11277,7 @@
<div id="informative-references" class="section">
<h3>
<span class="secno">
-<del class="diff-old">B.2
-</del>
-<ins class="diff-chg">C.2
-</ins>
+C.2
</span>
Informative
references
@@ -10260,27 +11345,19 @@
attributes.
</cite>
</a>
-<del class="diff-old">22
-April
-2010.
-</del>
-<ins class="diff-chg">31
+31
March
2011.
-</ins>
W3C
Working
Draft.
URL:
-<del class="diff-old">http://www.w3.org/TR/2010/WD-rdfa-core-20100422
-</del>
<a href="http://www.w3.org/TR/2011/WD-rdfa-core-20110331">
-<ins class="diff-chg">http://www.w3.org/TR/2011/WD-rdfa-core-20110331
-</ins>
+http://www.w3.org/TR/2011/WD-rdfa-core-20110331
</a>
</dd>
</dl>
</div>
</div>
</body>
-</html>
\ No newline at end of file
+</html>