You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.html
+20-28
Original file line number
Diff line number
Diff line change
@@ -4956,7 +4956,6 @@ <h3>Using the Document Base as the Default Vocabulary</h3>
4956
4956
href="#type-coercion">type coercion</a> of the <code>knows</code> property
4957
4957
is not required, as the value is not a string.</p>
4958
4958
4959
-
4960
4959
<p>While it is considered a best practice to identify nodes in a graph,
4961
4960
at times this is impractical. In the data model, nodes without an explicit
4962
4961
identifier are called <a>blank nodes</a>, which can be represented in a
@@ -8381,10 +8380,11 @@ <h1>Data Model</h1>
8381
8380
8382
8381
<ul>
8383
8382
<li>A <a>JSON-LD document</a> serializes a
8384
-
<a>generalized RDF Dataset</a>
8383
+
<a>RDF Dataset</a>
8385
8384
[[RDF11-CONCEPTS]], which is a collection of <a>graphs</a>
8386
8385
that comprises exactly one <a>default graph</a>
8387
-
and zero or more <a>named graphs</a>.</li>
8386
+
and zero or more <a>named graphs</a>.
8387
+
</li>
8388
8388
<li>The <a>default graph</a> does not have a name and MAY be empty.</li>
8389
8389
<li>Each <a>named graph</a> is a pair consisting of an <a>IRI</a> or
8390
8390
<a>blank node identifier</a> (the
@@ -8396,7 +8396,10 @@ <h1>Data Model</h1>
8396
8396
<li>Every <a>edge</a> has a direction associated with it and is labeled with
8397
8397
an <a>IRI</a> or a <a>blank node identifier</a>. Within the JSON-LD syntax
8398
8398
these edge labels are called <a>properties</a>.
8399
-
Whenever practical, an <a>edge</a> SHOULD be labeled with an <a>IRI</a>.</li>
8399
+
Whenever practical, an <a>edge</a> SHOULD be labeled with an <a>IRI</a>.
8400
+
<divclass="issue atrisk">The use of <a>blank node identifiers</a> to label properties is obsolete,
8401
+
and may be removed in a future version of JSON-LD.</div></dd>
8402
+
</li>
8400
8403
<li>Every <a>node</a>
8401
8404
is an <a>IRI</a>, a <a>blank node</a>, a <a>JSON-LD value</a>,
8402
8405
or a <a>list</a>.</li>
@@ -8426,7 +8429,7 @@ <h1>Data Model</h1>
8426
8429
<a>graph</a> SHOULD return a Linked Data document describing
8427
8430
the resource denoted by that <a>IRI</a> when being dereferenced.</li>
8428
8431
<li>A <a>blank node</a> is a <a>node</a> which is neither an <a>IRI</a>,
8429
-
nor a <a>JSON-LD value</a>, nor a <a>list</a>. A blank node MAY be identified
8432
+
nor a <a>JSON-LD value</a>, nor a <a>list</a>. A blank node is identified
8430
8433
using a <a>blank node identifier</a>.</li>
8431
8434
<li>A <a>blank node identifier</a>
8432
8435
is a string that can be used as an identifier for a <a>blank node</a> within
@@ -9183,33 +9186,20 @@ <h2>Relationship to RDF</h2>
9183
9186
between JSON's native data types and RDF's counterparts to allow round-tripping.</li>
9184
9187
</ul>
9185
9188
9189
+
<pclass="issue atrisk">The use of <a>blank node identifiers</a> to label properties is obsolete,
9190
+
and may be removed in a future version of JSON-LD, as is the support for <a>generalized rdf datasets</a>.</p>
9191
+
9186
9192
<p>Summarized, these differences mean that JSON-LD is capable of serializing any RDF
9187
9193
<a>graph</a> or <a>dataset</a> and most, but not all, JSON-LD documents can be directly
9188
9194
interpreted as RDF as described in RDF 1.1 Concepts [[RDF11-CONCEPTS]].</p>
9189
9195
9190
-
<p>For authors and developers working with <a>blank nodes</a>
9191
-
as <a>properties</a> when deserializing to RDF,
9192
-
three potential approaches are suggested:</p>
9193
-
9196
+
<p>Authors are strongly encouraged to avoid labeling properties using <a>blank node identifiers</a>,
9197
+
instead, consider one of the following mechanisms:</p>
9194
9198
<ul>
9195
-
<li>If the author is not yet ready to commit to a stable IRI, the
9196
-
property should be mapped to a <a>relative IRI</a>, or an IRI that is documented as unstable.</li>
9197
-
<li>If the developer wishes to use <a>blank nodes</a>
9198
-
as <a>properties</a> and also wishes to interpret the
9199
-
data as a
9200
-
<a>generalized RDF Dataset</a>,
9201
-
there is an option, <adata-cite="JSON-LD11-API#dom-jsonldoptions-producegeneralizedrdf"><em>produce generalized RDF</em></a>, in the
9202
-
<adata-cite="JSON-LD11-API#deserialize-json-ld-to-rdf-algorithm">Deserialize JSON-LD to RDF algorithm</a> [[JSON-LD11-API]] to do so. Note that a
9203
-
<a>generalized RDF Dataset</a>
9204
-
is an extension of RDF; it does not conform to the RDF standard.</li>
9205
-
<li>If the author or developer wishes to use <a>blank nodes</a>
9206
-
as <a>properties</a> and wishes to interpret the data
9207
-
as a standard (non-generalized)
9208
-
<a>RDF Dataset</a>,
9209
-
it is possible to losslessly interpret JSON-LD as RDF by transforming
9210
-
<a>blank nodes</a> used as
9211
-
<a>properties</a> to <a>IRIs</a>,
9212
-
by minting new "Skolem IRIs" as per
9199
+
<li>a <a>relative IRI</a>, either relative to the document or the vocabulary
9200
+
(see <ahref="#using-the-document-base-as-the-default-vocabulary" class="sectionRef"></a> for a discussion on using the document base as the <a>vocabulary mapping</a>).</li>
9201
+
<li>a URN such as <code>urn:example:1</code>, see [[?URN]], or</li>
9202
+
<li>a "Skolem IRI" as per
9213
9203
<adata-cite="RDF11-CONCEPTS#section-skolemization">Replacing Blank Nodes with IRIs</a>
9214
9204
of [[RDF11-CONCEPTS]].</li>
9215
9205
</ul>
@@ -9219,7 +9209,7 @@ <h2>Relationship to RDF</h2>
9219
9209
specification [[JSON-LD11-API]].</p>
9220
9210
9221
9211
<p>Even though JSON-LD serializes
9222
-
<a>generalized RDF Datasets</a>, it can
9212
+
<a>RDF Datasets</a>, it can
9223
9213
also be used as a <dfndata-cite="RDF11-CONCEPTS#dfn-rdf-source">RDF graph source</dfn>.
9224
9214
In that case, a consumer MUST only use the <a>default graph</a> and ignore all <a>named graphs</a>.
9225
9215
This allows servers to expose data in languages such as Turtle and JSON-LD
@@ -9895,6 +9885,8 @@ <h2>Changes since JSON-LD Community Group Final Report</h2>
9895
9885
to ensure that <code>@type</code> members are always represented as an array. This
9896
9886
also allows a term to be defined for <code>@type</code>, where the value MUST be a <a>dictionary</a>
9897
9887
with <code>@container</code> set to <code>@set</code>.</li>
9888
+
<li>The use of <a>blank node identifiers</a> to label properties is obsolete,
9889
+
and may be removed in a future version of JSON-LD, as is the support for <a>generalized rdf datasets</a>.</li>
0 commit comments