Skip to content

Remove the pruneBlankNodeIdentifiers option for framing #629

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions spec/latest/json-ld-framing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ <h3>Framing</h3>
-->
</pre>

<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>,
<p>If <a>processing mode</a> is <code>json-ld-1.1</code>, or the <a>omit graph flag</a> is <code>true</code>,
the top-level <code>@graph</code> member may be omitted.</p>
<pre class="example nohighlight" data-transform="updateExample"
title="Framed library objects with omitGraph set to false">
Expand Down Expand Up @@ -1109,7 +1109,7 @@ <h3>Framing Algorithm</h3>
</li>
</ol>

<p class="changed">If the <a data-link-for="JsonLdOptions">pruneBlankNodeIdentifiers</a> is <code>true</code>,
<p class="changed">If the <a>processing mode</a> is <code>json-ld-1.1</code>,
remove the <code>@id</code> member of each <a>node object</a> where the
member value is a <a>blank node identifier</a> which appears only once
in any property value within <var>result</var>.</p>
Expand Down Expand Up @@ -1398,7 +1398,6 @@ <h3>JsonLdOptions</h3>
boolean omitGraph;
boolean requireAll = false;
boolean frameDefault = false;
boolean pruneBlankNodeIdentifiers = true;
};

enum JsonLdEmbed {
Expand Down Expand Up @@ -1435,9 +1434,6 @@ <h3>JsonLdOptions</h3>
<a href="#framing-algorithm">Framing Algorithm</a>.</dd>
<dt><dfn data-dfn-for="JsonLdOptions">frameDefault</dfn></dt>
<dd>Instead of framing a <var>merged graph</var>, frame only the <a>default graph</a>.</dd>
<dt><dfn data-dfn-for="JsonLdOptions">pruneBlankNodeIdentifiers</dfn></dt>
<dd>Removes <code>@id</code> from <a>node objects</a> where the value
is a <a>blank node identifier</a> used only once within the document.</dd>
</dl>

<p><dfn>JsonLdEmbed</dfn> enumerates the values of the <a data-link-for="JsonLdOptions">embed</a> option:</p>
Expand Down Expand Up @@ -1556,11 +1552,9 @@ <h2>Changes since 1.0 Draft of 30 August 2012</h2>
object.</li>
<li>Frames can use one or more values for <code>@id</code> to allow for matching
specific objects in a frame.</li>
<li>There is a new API option <a data-link-for="JsonLdOptions">pruneBlankNodeIdentifiers</a>
defaulting to <code>true</code>, which causes the
<a href="#framing-algorithm">Framing Algorithm</a> to remove
<li>If <a>processing mode</a> is <code>json-ld-1.1</code>,
<code>@id</code> members who's value is a <a>blank node identifier</a>
used only for that <code>@id</code>.</li>
used only for that <code>@id</code> are removed.</li>
<li>The JSON syntax has been abstracted into an <a>internal representation</a>
to allow for other serialization formats that are functionally equivalent
to JSON.</li>
Expand Down
12 changes: 6 additions & 6 deletions test-suite/tests/frame-manifest.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@
"@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"],
"name": "Compacting values of @preserve",
"purpose": "When compacting the value of a property using @preserve, use the term definition for term to properly compact the value of @preserve.",
"option": {"specVersion": "json-ld-1.1"},
"option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.1"},
"input": "frame-0051-in.jsonld",
"frame": "frame-0051-frame.jsonld",
"expect": "frame-0051-out.jsonld"
Expand All @@ -462,7 +462,7 @@
"input": "frame-0010-in.jsonld",
"frame": "frame-0010-frame.jsonld",
"expect": "frame-p010-out.jsonld",
"option": {"pruneBlankNodeIdentifiers": true, "specVersion": "json-ld-1.1"}
"option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}
}, {
"@id": "#tp020",
"@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"],
Expand All @@ -471,7 +471,7 @@
"input": "frame-0020-in.jsonld",
"frame": "frame-0020-frame.jsonld",
"expect": "frame-p020-out.jsonld",
"option": {"pruneBlankNodeIdentifiers": true, "specVersion": "json-ld-1.1"}
"option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}
}, {
"@id": "#tp021",
"@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"],
Expand All @@ -480,7 +480,7 @@
"input": "frame-0021-in.jsonld",
"frame": "frame-0021-frame.jsonld",
"expect": "frame-p021-out.jsonld",
"option": {"pruneBlankNodeIdentifiers": true, "specVersion": "json-ld-1.1"}
"option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}
}, {
"@id": "#tp046",
"@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"],
Expand All @@ -489,7 +489,7 @@
"input": "frame-0046-in.jsonld",
"frame": "frame-0046-frame.jsonld",
"expect": "frame-p046-out.jsonld",
"option": {"pruneBlankNodeIdentifiers": true, "specVersion": "json-ld-1.1"}
"option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}
}, {
"@id": "#tp049",
"@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"],
Expand All @@ -498,7 +498,7 @@
"input": "frame-0049-in.jsonld",
"frame": "frame-0049-frame.jsonld",
"expect": "frame-p049-out.jsonld",
"option": {"pruneBlankNodeIdentifiers": true, "specVersion": "json-ld-1.1"}
"option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}
}
]
}