Skip to content
This repository has been archived by the owner on Oct 5, 2019. It is now read-only.

Commit

Permalink
Merge pull request #569 from json-ld/maps-with-no-keys
Browse files Browse the repository at this point in the history
Maps with no keys
  • Loading branch information
gkellogg committed Jan 22, 2018
2 parents d449bf2 + 415c413 commit 64905e8
Show file tree
Hide file tree
Showing 93 changed files with 872 additions and 174 deletions.
2 changes: 1 addition & 1 deletion compact-0084-out.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"input": {"@container": ["@graph", "@id"]}
},
"input": {
"_:b0": {"value": "x"}
"@none": {"value": "x"}
}
}
2 changes: 1 addition & 1 deletion compact-0086-out.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"@vocab": "http://example.org/",
"input": {"@container": ["@graph", "@id", "@set"]}
},
"input": {"_:b0": [{"value": "x"}]}
"input": {"@none": [{"value": "x"}]}
}
2 changes: 1 addition & 1 deletion compact-0088-out.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"input": {"@container": ["@graph", "@id"]}
},
"input": {
"_:b0": {"value": "x"}
"@none": {"value": "x"}
}
}
10 changes: 10 additions & 0 deletions compact-0089-context.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"@context": {
"@vocab": "http://example.com/vocab/",
"@language": "it",
"s": { "@id": "label", "@language": null },
"label": {
"@container": "@language"
}
}
}
23 changes: 23 additions & 0 deletions compact-0089-in.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[{
"@id": "http://example.com/queen",
"http://example.com/vocab/label": [
{
"@value": "Il re",
"@language": "it"
}, {
"@value": "The king",
"@language": "en"
}, {
"@value": "The Queen",
"@language": "en"
}, {
"@value": "Die Königin",
"@language": "de"
}, {
"@value": "Ihre Majestät",
"@language": "de"
}, {
"@value": "No Language"
}
]
}]
17 changes: 17 additions & 0 deletions compact-0089-out.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"@context": {
"@vocab": "http://example.com/vocab/",
"@language": "it",
"s": { "@id": "label", "@language": null },
"label": {
"@container": "@language"
}
},
"@id": "http://example.com/queen",
"label": {
"it": "Il re",
"en": [ "The king", "The Queen" ],
"de": [ "Die Königin", "Ihre Majestät" ]
},
"s": "No Language"
}
6 changes: 6 additions & 0 deletions compact-c006-context.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"@context": {
"@vocab": "http://example/",
"Foo": {"@context": {"bar": "http://example.org/bar"}}
}
}
8 changes: 8 additions & 0 deletions compact-c006-in.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"http://example/a": [{
"@type": ["http://example/Foo"],
"http://example.org/bar": [{"@value": "baz"}]
}]
}
]
7 changes: 7 additions & 0 deletions compact-c006-out.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"@context": {
"@vocab": "http://example/",
"Foo": {"@context": {"bar": "http://example.org/bar"}}
},
"a": {"@type": "Foo", "bar": "baz"}
}
7 changes: 7 additions & 0 deletions compact-c007-context.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"@context": {
"@vocab": "http://example/",
"Foo": {"@context": {"bar": {"@type": "@id"}}},
"bar": {"@type": "http://www.w3.org/2001/XMLSchema#string"}
}
}
8 changes: 8 additions & 0 deletions compact-c007-in.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"http://example/a": [{
"@type": ["http://example/Foo"],
"http://example/bar": [{"@id": "http://example/baz"}]
}]
}
]
8 changes: 8 additions & 0 deletions compact-c007-out.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"@context": {
"@vocab": "http://example/",
"Foo": {"@context": {"bar": {"@type": "@id"}}},
"bar": {"@type": "http://www.w3.org/2001/XMLSchema#string"}
},
"a": {"@type": "Foo", "bar": "http://example/baz"}
}
7 changes: 7 additions & 0 deletions compact-c008-context.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"@context": {
"@vocab": "http://example/",
"type": "@type",
"Foo": {"@context": {"bar": "http://example.org/bar"}}
}
}
8 changes: 8 additions & 0 deletions compact-c008-in.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"http://example/a": [{
"@type": ["http://example/Foo"],
"http://example.org/bar": [{"@value": "baz"}]
}]
}
]
8 changes: 8 additions & 0 deletions compact-c008-out.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"@context": {
"@vocab": "http://example/",
"type": "@type",
"Foo": {"@context": {"bar": "http://example.org/bar"}}
},
"a": {"type": "Foo", "bar": "baz"}
}
6 changes: 6 additions & 0 deletions compact-c009-context.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"@context": {
"@vocab": "http://example/",
"Foo": {"@context": {"baz": {"@type": "@vocab"}}}
}
}
8 changes: 8 additions & 0 deletions compact-c009-in.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"@type": ["http://example/Foo"],
"http://example/bar": [{
"http://example/baz": [{"@id": "http://example/buzz"}]
}]
}
]
8 changes: 8 additions & 0 deletions compact-c009-out.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"@context": {
"@vocab": "http://example/",
"Foo": {"@context": {"baz": {"@type": "@vocab"}}}
},
"@type": "Foo",
"bar": {"baz": "buzz"}
}
6 changes: 6 additions & 0 deletions compact-c010-context.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"@context": {
"@vocab": "http://example/",
"B": {"@context": {"c": "http://example.org/c"}}
}
}
8 changes: 8 additions & 0 deletions compact-c010-in.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[{
"http://example/a": [{
"@type": ["http://example/B"],
"http://example.com/a": [{"@value": "A in example.com"}],
"http://example.org/c": [{"@value": "C in example.org"}]
}],
"http://example/c": [{"@value": "C in example"}]
}]
12 changes: 12 additions & 0 deletions compact-c010-out.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"@context": {
"@vocab": "http://example/",
"B": {"@context": {"c": "http://example.org/c"}}
},
"a": {
"@type": "B",
"c": "C in example.org",
"http://example.com/a": "A in example.com"
},
"c": "C in example"
}
3 changes: 2 additions & 1 deletion compact-m007-context.jsonld
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"@context": {
"@vocab": "http://example/",
"Foo": {"@context": {"bar": "http://example.org/bar"}}
"typemap": {"@container": "@type"},
"Type": {"@context": {"a": "http://example.org/a"}}
}
}
13 changes: 5 additions & 8 deletions compact-m007-in.jsonld
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
[
{
"http://example/a": [{
"@type": ["http://example/Foo"],
"http://example.org/bar": [{"@value": "baz"}]
}]
}
]
[{
"http://example/typemap": [
{"http://example.org/a": [{"@value": "Object with @type <Type>"}], "@type": ["http://example/Type"]}
]
}]
7 changes: 5 additions & 2 deletions compact-m007-out.jsonld
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"@context": {
"@vocab": "http://example/",
"Foo": {"@context": {"bar": "http://example.org/bar"}}
"typemap": {"@container": "@type"},
"Type": {"@context": {"a": "http://example.org/a"}}
},
"a": {"@type": "Foo", "bar": "baz"}
"typemap": {
"Type": {"a": "Object with @type <Type>"}
}
}
7 changes: 4 additions & 3 deletions compact-m008-context.jsonld
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"@context": {
"@vocab": "http://example/",
"Foo": {"@context": {"bar": {"@type": "@id"}}},
"bar": {"@type": "http://www.w3.org/2001/XMLSchema#string"}
"author": {
"@id": "http://example.com/vocab/author",
"@container": "@index"
}
}
}
17 changes: 9 additions & 8 deletions compact-m008-in.jsonld
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[
{
"http://example/a": [{
"@type": ["http://example/Foo"],
"http://example/bar": [{"@id": "http://example/baz"}]
}]
}
]
[{
"@id": "http://example.com/article",
"http://example.com/vocab/author": [{
"@id": "http://example.org/person/1",
"@index": "regular"
}, {
"@id": "http://example.org/guest/cd24f329aa"
}]
}]
17 changes: 13 additions & 4 deletions compact-m008-out.jsonld
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
{
"@context": {
"@vocab": "http://example/",
"Foo": {"@context": {"bar": {"@type": "@id"}}},
"bar": {"@type": "http://www.w3.org/2001/XMLSchema#string"}
"author": {
"@id": "http://example.com/vocab/author",
"@container": "@index"
}
},
"a": {"@type": "Foo", "bar": "http://example/baz"}
"@id": "http://example.com/article",
"author": {
"regular": {
"@id": "http://example.org/person/1"
},
"@none": {
"@id": "http://example.org/guest/cd24f329aa"
}
}
}
7 changes: 4 additions & 3 deletions compact-m009-context.jsonld
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"@context": {
"@vocab": "http://example/",
"type": "@type",
"Foo": {"@context": {"bar": "http://example.org/bar"}}
"author": {
"@id": "http://example.com/vocab/author",
"@container": "@index"
}
}
}
17 changes: 9 additions & 8 deletions compact-m009-in.jsonld
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[
{
"http://example/a": [{
"@type": ["http://example/Foo"],
"http://example.org/bar": [{"@value": "baz"}]
}]
}
]
[{
"@id": "http://example.com/article",
"http://example.com/vocab/author": [{
"@value": "Gregg",
"@index": "regular"
}, {
"@value": "Manu"
}]
}]
13 changes: 9 additions & 4 deletions compact-m009-out.jsonld
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{
"@context": {
"@vocab": "http://example/",
"type": "@type",
"Foo": {"@context": {"bar": "http://example.org/bar"}}
"author": {
"@id": "http://example.com/vocab/author",
"@container": "@index"
}
},
"a": {"type": "Foo", "bar": "baz"}
"@id": "http://example.com/article",
"author": {
"regular": "Gregg",
"@none": "Manu"
}
}
7 changes: 5 additions & 2 deletions compact-m010-context.jsonld
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"@context": {
"@vocab": "http://example/",
"Foo": {"@context": {"baz": {"@type": "@vocab"}}}
"author": {
"@id": "http://example.com/vocab/author",
"@container": "@index"
},
"none": "@none"
}
}
Loading

0 comments on commit 64905e8

Please sign in to comment.