Skip to content

Commit 47e7f10

Browse files
authored
Merge pull request #629 from json-ld/issue-627
Remove the `pruneBlankNodeIdentifiers` option for framing
2 parents 9083196 + 06d369b commit 47e7f10

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

spec/latest/json-ld-framing/index.html

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ <h3>Framing</h3>
372372
-->
373373
</pre>
374374

375-
<p>If <a>processing mode</a> is <code>json-ld-1.1</code> or greater, or the <a>omit graph flag</a> is <code>true</code>,
375+
<p>If <a>processing mode</a> is <code>json-ld-1.1</code>, or the <a>omit graph flag</a> is <code>true</code>,
376376
the top-level <code>@graph</code> member may be omitted.</p>
377377
<pre class="example nohighlight" data-transform="updateExample"
378378
title="Framed library objects with omitGraph set to false">
@@ -1109,7 +1109,7 @@ <h3>Framing Algorithm</h3>
11091109
</li>
11101110
</ol>
11111111

1112-
<p class="changed">If the <a data-link-for="JsonLdOptions">pruneBlankNodeIdentifiers</a> is <code>true</code>,
1112+
<p class="changed">If the <a>processing mode</a> is <code>json-ld-1.1</code>,
11131113
remove the <code>@id</code> member of each <a>node object</a> where the
11141114
member value is a <a>blank node identifier</a> which appears only once
11151115
in any property value within <var>result</var>.</p>
@@ -1398,7 +1398,6 @@ <h3>JsonLdOptions</h3>
13981398
boolean omitGraph;
13991399
boolean requireAll = false;
14001400
boolean frameDefault = false;
1401-
boolean pruneBlankNodeIdentifiers = true;
14021401
};
14031402
14041403
enum JsonLdEmbed {
@@ -1435,9 +1434,6 @@ <h3>JsonLdOptions</h3>
14351434
<a href="#framing-algorithm">Framing Algorithm</a>.</dd>
14361435
<dt><dfn data-dfn-for="JsonLdOptions">frameDefault</dfn></dt>
14371436
<dd>Instead of framing a <var>merged graph</var>, frame only the <a>default graph</a>.</dd>
1438-
<dt><dfn data-dfn-for="JsonLdOptions">pruneBlankNodeIdentifiers</dfn></dt>
1439-
<dd>Removes <code>@id</code> from <a>node objects</a> where the value
1440-
is a <a>blank node identifier</a> used only once within the document.</dd>
14411437
</dl>
14421438

14431439
<p><dfn>JsonLdEmbed</dfn> enumerates the values of the <a data-link-for="JsonLdOptions">embed</a> option:</p>
@@ -1556,11 +1552,9 @@ <h2>Changes since 1.0 Draft of 30 August 2012</h2>
15561552
object.</li>
15571553
<li>Frames can use one or more values for <code>@id</code> to allow for matching
15581554
specific objects in a frame.</li>
1559-
<li>There is a new API option <a data-link-for="JsonLdOptions">pruneBlankNodeIdentifiers</a>
1560-
defaulting to <code>true</code>, which causes the
1561-
<a href="#framing-algorithm">Framing Algorithm</a> to remove
1555+
<li>If <a>processing mode</a> is <code>json-ld-1.1</code>,
15621556
<code>@id</code> members who's value is a <a>blank node identifier</a>
1563-
used only for that <code>@id</code>.</li>
1557+
used only for that <code>@id</code> are removed.</li>
15641558
<li>The JSON syntax has been abstracted into an <a>internal representation</a>
15651559
to allow for other serialization formats that are functionally equivalent
15661560
to JSON.</li>

test-suite/tests/frame-manifest.jsonld

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@
441441
"@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"],
442442
"name": "Compacting values of @preserve",
443443
"purpose": "When compacting the value of a property using @preserve, use the term definition for term to properly compact the value of @preserve.",
444-
"option": {"specVersion": "json-ld-1.1"},
444+
"option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.1"},
445445
"input": "frame-0051-in.jsonld",
446446
"frame": "frame-0051-frame.jsonld",
447447
"expect": "frame-0051-out.jsonld"
@@ -462,7 +462,7 @@
462462
"input": "frame-0010-in.jsonld",
463463
"frame": "frame-0010-frame.jsonld",
464464
"expect": "frame-p010-out.jsonld",
465-
"option": {"pruneBlankNodeIdentifiers": true, "specVersion": "json-ld-1.1"}
465+
"option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}
466466
}, {
467467
"@id": "#tp020",
468468
"@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"],
@@ -471,7 +471,7 @@
471471
"input": "frame-0020-in.jsonld",
472472
"frame": "frame-0020-frame.jsonld",
473473
"expect": "frame-p020-out.jsonld",
474-
"option": {"pruneBlankNodeIdentifiers": true, "specVersion": "json-ld-1.1"}
474+
"option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}
475475
}, {
476476
"@id": "#tp021",
477477
"@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"],
@@ -480,7 +480,7 @@
480480
"input": "frame-0021-in.jsonld",
481481
"frame": "frame-0021-frame.jsonld",
482482
"expect": "frame-p021-out.jsonld",
483-
"option": {"pruneBlankNodeIdentifiers": true, "specVersion": "json-ld-1.1"}
483+
"option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}
484484
}, {
485485
"@id": "#tp046",
486486
"@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"],
@@ -489,7 +489,7 @@
489489
"input": "frame-0046-in.jsonld",
490490
"frame": "frame-0046-frame.jsonld",
491491
"expect": "frame-p046-out.jsonld",
492-
"option": {"pruneBlankNodeIdentifiers": true, "specVersion": "json-ld-1.1"}
492+
"option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}
493493
}, {
494494
"@id": "#tp049",
495495
"@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"],
@@ -498,7 +498,7 @@
498498
"input": "frame-0049-in.jsonld",
499499
"frame": "frame-0049-frame.jsonld",
500500
"expect": "frame-p049-out.jsonld",
501-
"option": {"pruneBlankNodeIdentifiers": true, "specVersion": "json-ld-1.1"}
501+
"option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}
502502
}
503503
]
504504
}

0 commit comments

Comments
 (0)