Skip to content

Remove caveat about expanding values of terms which are graph contain… #145

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
Sep 2, 2019
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
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2240,8 +2240,7 @@ <h3>Algorithm</h3>
and <a data-link-for="JsonLdOptions">ordered</a> flags</span>.</li>
<li>For each <var>item</var> in <var>index value</var>:
<ol class="algorithm changed">
<li>If <var>container mapping</var> includes <code>@graph</code>
and if <var>item</var> is not a <a>graph object</a>,
<li>If <var>container mapping</var> includes <code>@graph</code>,
set <var>item</var> to a new <a>map</a> containing the key-value pair
<code>@graph</code>-<var>item</var>,
ensuring that the value is represented using an <a>array</a>.</li>
Expand Down
2 changes: 1 addition & 1 deletion tests/expand-manifest.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@
}, {
"@id": "#t0081",
"@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
"name": "Does not create an @graph container if value is a graph",
"name": "Creates an @graph container if value is a graph",
"purpose": "Don't double-expand an already expanded graph",
"input": "expand/0081-in.jsonld",
"expect": "expand/0081-out.jsonld",
Expand Down
4 changes: 3 additions & 1 deletion tests/expand/0081-out.jsonld
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[{
"http://example.org/input": [{
"@graph": [{
"http://example.org/value": [{"@value": "x"}]
"@graph": [{
"http://example.org/value": [{"@value": "x"}]
}]
}]
}]
}]
10 changes: 5 additions & 5 deletions tests/toRdf-manifest.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@
}, {
"@id": "#te081",
"@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"],
"name": "Does not create an @graph container if value is a graph",
"name": "Creates an @graph container if value is a graph",
"purpose": "Don't double-expand an already expanded graph",
"input": "toRdf/e081-in.jsonld",
"expect": "toRdf/e081-out.nq",
Expand Down Expand Up @@ -1090,7 +1090,7 @@
}, {
"@id": "#te095",
"@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"],
"name": "Does not create an @graph container if value is a graph (multiple objects)",
"name": "Creates an @graph container if value is a graph (multiple objects)",
"purpose": "Don't double-expand an already expanded graph",
"input": "toRdf/e095-in.jsonld",
"expect": "toRdf/e095-out.nq",
Expand Down Expand Up @@ -1146,23 +1146,23 @@
}, {
"@id": "#te102",
"@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"],
"name": "Do not expand @graph container if value is a graph (multiple objects)",
"name": "Expand @graph container if value is a graph (multiple objects)",
"purpose": "Does not create a new graph object if indexed value is already a graph object",
"input": "toRdf/e102-in.jsonld",
"expect": "toRdf/e102-out.nq",
"option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}
}, {
"@id": "#te103",
"@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"],
"name": "Do not expand @graph container if value is a graph (multiple graphs)",
"name": "Expand @graph container if value is a graph (multiple graphs)",
"purpose": "Does not create a new graph object if indexed value is already a graph object",
"input": "toRdf/e103-in.jsonld",
"expect": "toRdf/e103-out.nq",
"option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}
}, {
"@id": "#te104",
"@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"],
"name": "Does not create an @graph container if value is a graph (mixed graph and object)",
"name": "Creates an @graph container if value is a graph (mixed graph and object)",
"purpose": "Don't double-expand an already expanded graph",
"input": "toRdf/e104-in.jsonld",
"expect": "toRdf/e104-out.nq",
Expand Down
2 changes: 1 addition & 1 deletion tests/toRdf/e081-out.nq
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
_:b0 <http://example.org/input> _:b1 .
_:b2 <http://example.org/value> "x" _:b1 .
_:b3 <http://example.org/value> "x" _:b2 .
6 changes: 3 additions & 3 deletions tests/toRdf/e095-out.nq
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
_:b4 <http://example.org/value> "y" _:b3 .
_:b0 <http://example.org/input> _:b3 .
_:b0 <http://example.org/input> _:b1 .
_:b2 <http://example.org/value> "x" _:b1 .
_:b0 <http://example.org/input> _:b4 .
_:b3 <http://example.org/value> "x" _:b2 .
_:b6 <http://example.org/value> "y" _:b5 .
4 changes: 2 additions & 2 deletions tests/toRdf/e102-out.nq
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
_:b0 <http://example.org/input> _:b1 .
_:b3 <http://example.org/value> "y" _:b1 .
_:b2 <http://example.org/value> "x" _:b1 .
_:b3 <http://example.org/value> "x" _:b2 .
_:b4 <http://example.org/value> "y" _:b2 .
6 changes: 3 additions & 3 deletions tests/toRdf/e103-out.nq
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
_:b4 <http://example.org/value> "y" _:b3 .
_:b0 <http://example.org/input> _:b3 .
_:b0 <http://example.org/input> _:b1 .
_:b2 <http://example.org/value> "x" _:b1 .
_:b0 <http://example.org/input> _:b4 .
_:b3 <http://example.org/value> "x" _:b2 .
_:b6 <http://example.org/value> "y" _:b5 .
6 changes: 3 additions & 3 deletions tests/toRdf/e104-out.nq
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
_:b4 <http://example.org/value> "y" _:b3 .
_:b0 <http://example.org/input> _:b3 .
_:b3 <http://example.org/value> "x" _:b2 .
_:b5 <http://example.org/value> "y" _:b4 .
_:b0 <http://example.org/input> _:b4 .
_:b0 <http://example.org/input> _:b1 .
_:b2 <http://example.org/value> "x" _:b1 .