This repository has been archived by the owner on Oct 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #569 from json-ld/maps-with-no-keys
Maps with no keys
- Loading branch information
Showing
93 changed files
with
872 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,6 @@ | |
"input": {"@container": ["@graph", "@id"]} | ||
}, | ||
"input": { | ||
"_:b0": {"value": "x"} | ||
"@none": {"value": "x"} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,6 @@ | |
"input": {"@container": ["@graph", "@id"]} | ||
}, | ||
"input": { | ||
"_:b0": {"value": "x"} | ||
"@none": {"value": "x"} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}] | ||
}] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}] | ||
}] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}] | ||
}] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "http://example/", | ||
"Foo": {"@context": {"baz": {"@type": "@vocab"}}} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}] | ||
}] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}] | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"]} | ||
] | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>"} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
}] | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
}] | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
Oops, something went wrong.