Skip to content

Commit

Permalink
Some editorial fixes based on Sandro's feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
lanthaler committed Apr 4, 2013
1 parent 9470356 commit a3d5882
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 18 deletions.
34 changes: 24 additions & 10 deletions spec/latest/json-ld-api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ <h1>Introduction</h1>
the following audiences:</p>

<ul>
<li>Developers that want an overview of the JSON-LD API.</li>
<li>Web authors and developers that want a very detailed view of how
<li>Developers who want an overview of the JSON-LD API.</li>
<li>Web authors and developers who want a very detailed view of how
a <tref>JSON-LD Processor</tref> or a <tref>JSON-LD API Implementation</tref>
operates.</li>
<li>Software developers that want to implement the algorithms to transform
<li>Software developers who want to implement the algorithms to transform
JSON-LD documents.</li>
</ul>

Expand Down Expand Up @@ -559,8 +559,9 @@ <h1>Conformance</h1>
in [[!RFC2119]].</p>

<p>There are three classes of products that can claim conformance to this
specification: <tref title="JSON-LD Processor">JSON-LD Processors</tref>
and <tref title="JSON-LD API Implementation">JSON-LD API Implementations</tref>.</p>
specification: <tref title="JSON-LD Processor">JSON-LD Processors</tref>,
<tref title="JSON-LD API Implementation">JSON-LD API Implementations</tref>,
and <tref title="JSON-LD-RDF Converter">JSON-LD-RDF Converters</tref>.</p>

<p>A conforming <tdef>JSON-LD Processor</tdef> is a system which can perform the
<a href="#expansion-algorithm">Expansion</a>, <a href="#compaction-algorithm">Compaction</a>,
Expand Down Expand Up @@ -3075,7 +3076,15 @@ <h1>RDF Conversion Algorithms</h1>
<section>
<h2>Convert to RDF Algorithm</h2>

<p>This algorithms converts a JSON-LD document to an <tref>RDF dataset</tref>.</p>
<p>This algorithms converts a JSON-LD document to an <tref>RDF dataset</tref>.
Please note that RDF does not allow a <tref>blank node</tref> to be used
as a <tref>graph name</tref> or <tref>property</tref>, while JSON-LD does.
<tref title="JSON-LD-RDF Converter">JSON-LD-RDF Converters</tref> can work
around this restriction, when converting JSON-LD to RDF, by converting such
<tref title="blank node">blank nodes</tref> to <tref title="IRI">IRIs</tref>,
minting new "Skolem IRIs" as per
<cite><a href="http://www.w3.org/TR/rdf11-concepts/#section-skolemization">Replacing Blank Nodes with IRIs</a></cite>
of [[RDF11-CONCEPTS]].</p>

<div class="issue atrisk" data-number="3" title="Allow blank nodes to be used as graph name or property">
<p class="atrisk-head">Note: This feature is
Expand All @@ -3085,11 +3094,16 @@ <h2>Convert to RDF Algorithm</h2>
For the current status see
<a href="http://www.w3.org/2011/rdf-wg/wiki/JSON-LD_Features_at_Risk">features "at risk" in JSON-LD 1.0</a></p>
<p>RDF does not currently allow a <tref>blank node</tref> to be
used as <tref>graph name</tref> or <tref>property</tref>. Implementations
might convert such <tref title="blank node">blank nodes</tref> to
<tref title="IRI">IRIs</tref> by minting new "Skolem IRIs" as per
used as <tref>graph name</tref> or <tref>property</tref>, while JSON-LD
does. <tref title="JSON-LD-RDF Converter">JSON-LD-RDF Converters</tref>
can work around this restriction, when converting JSON-LD to RDF, by
converting such <tref title="blank node">blank nodes</tref> to
<tref title="IRI">IRIs</tref>, minting new "Skolem IRIs" as per
<cite><a href="http://www.w3.org/TR/rdf11-concepts/#section-skolemization">Replacing Blank Nodes with IRIs</a></cite>
of [[RDF11-CONCEPTS]].</p>
of [[RDF11-CONCEPTS]]. Based on feedback from implementors the
Working Group may decide to disallow blank nodes as graph names and
properties in JSON-LD. If this change would affect you, be sure to
send in a comment.</p>
</div>

<section class="informative">
Expand Down
26 changes: 18 additions & 8 deletions spec/latest/json-ld/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2739,11 +2739,15 @@ <h1>Data Model</h1>
For the current status see
<a href="http://www.w3.org/2011/rdf-wg/wiki/JSON-LD_Features_at_Risk">features "at risk" in JSON-LD 1.0</a></p>
<p>RDF does not currently allow a <tref>blank node</tref> to be
used as <tref>graph name</tref> or <tref>property</tref>. Implementations
might convert such <tref title="blank node">blank nodes</tref> to
<tref title="IRI">IRIs</tref> by minting new "Skolem IRIs" as per
used as <tref>graph name</tref> or <tref>property</tref>, while JSON-LD
does. JSON-LD to RDF converters can work around this restriction, when converting
JSON-LD to RDF, by converting such <tref title="blank node">blank nodes</tref> to
<tref title="IRI">IRIs</tref>, minting new "Skolem IRIs" as per
<cite><a href="http://www.w3.org/TR/rdf11-concepts/#section-skolemization">Replacing Blank Nodes with IRIs</a></cite>
of [[RDF11-CONCEPTS]].</p>
of [[RDF11-CONCEPTS]]. Based on feedback from implementors the
Working Group may decide to disallow blank nodes as graph names and
properties in JSON-LD. If this change would affect you, be sure to
send in a comment.</p>
</div>

<p><tref title="JSON-LD document">JSON-LD documents</tref> MAY contain data that cannot be
Expand Down Expand Up @@ -3154,10 +3158,16 @@ <h2>Relationship to RDF</h2>
</ul>

<p>Summarized these differences mean that JSON-LD is capable of serializing any RDF
graph or dataset and most, but not all, JSON-LD documents can be transformed to RDF.
A complete description of the algorithms to convert from RDF to JSON-LD and from
JSON-LD to RDF is included in the JSON-LD Processing Algorithms and API specification
[[JSON-LD-API]].</p>
graph or dataset and most, but not all, JSON-LD documents can be directly
transformed to RDF. It is possible to work around this restriction, when
converting JSON-LD to RDF, by converting <tref title="blank node">blank nodes</tref>
used as <tref title="graph name">graph names</tref> or
<tref title="property">properties</tref> to <tref title="IRI">IRIs</tref>,
minting new "Skolem IRIs" as per
<cite><a href="http://www.w3.org/TR/rdf11-concepts/#section-skolemization">Replacing Blank Nodes with IRIs</a></cite>
of [[RDF11-CONCEPTS]]. A complete description of the algorithms to convert
from RDF to JSON-LD and from JSON-LD to RDF is included in the JSON-LD
Processing Algorithms and API specification [[JSON-LD-API]].</p>

<p>Even though JSON-LD serializes RDF datasets, it can also be used as a RDF graph source.
In that case, a consumer MUST only use the default graph and ignore all named graphs.
Expand Down

0 comments on commit a3d5882

Please sign in to comment.