Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
Expand and compact @container: @index where value is a graph.
  • Loading branch information
gkellogg committed Nov 19, 2017
commit d4d52bd3ee4098ba30391fa51d33aef1b9cc5cbc
6 changes: 6 additions & 0 deletions test-suite/tests/compact-0083-context.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"@context": {
"@vocab": "http://example.org/",
"container": {"@container": "@index"}
}
}
12 changes: 12 additions & 0 deletions test-suite/tests/compact-0083-in.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"@id": "http://example.com/graphTest",
"http://example.org/container": [{
"@graph": [{"http://example.org/input": [{"@value": "de"}]}],
"@index": "de"
}, {
"@graph": [{"http://example.org/input": [{"@value": "en"}]}],
"@index": "en"
}]
}
]
11 changes: 11 additions & 0 deletions test-suite/tests/compact-0083-out.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"@context": {
"@vocab": "http://example.org/",
"container": {"@container": "@index"}
},
"@id": "http://example.com/graphTest",
"container": {
"en": {"@graph": [{"input": "en"}]},
"de": {"@graph": [{"input": "de"}]}
}
}
9 changes: 9 additions & 0 deletions test-suite/tests/compact-manifest.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,15 @@
"context": "compact-0082-context.jsonld",
"expect": "compact-0082-out.jsonld",
"option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}
}, {
"@id": "#t0083",
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
"name": "Compacts graphs having @index",
"purpose": "@container: @index works when values are graphs",
"input": "compact-0083-in.jsonld",
"context": "compact-0083-context.jsonld",
"expect": "compact-0083-out.jsonld",
"option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}
}, {
"@id": "#tc001",
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
Expand Down