This repository has been archived by the owner on Oct 5, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add @graph container tests. * A couple of more graph expansion and compaction tests for corner cases. * Add tests for expanding and compacting named graphs where term definition includes `@graphid`. * Expand and compact `@container: @index` where value is a graph. * Disable highlight.js, and update our use of the "highlight" class to "hl-bold". This makes rendered JavaScript examples slightly less pretty, but restores the specific highlighting used with "****" in examples. * Sort many definition lists automatically using `@data-sort`. * Add @Version to context definitions in examples using 1.1 features. * Syntax updates to describe Graph Containers. * Add inline ednotes for places that are affected by issue #480. * Add compaction and expansion tests for `@graph` with `@index` and `@id`. * Add syntax for graph maps and API algorithms for all graph containers.
- Loading branch information
Showing
56 changed files
with
640 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"@context": { | ||
"@version": 1.1, | ||
"input": {"@id": "foo:input", "@container": "@graph"}, | ||
"value": "foo:value" | ||
} | ||
} |
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": { | ||
"@version": 1.1, | ||
"input": {"@id": "foo:input", "@container": "@graph"}, | ||
"value": "foo:value" | ||
}, | ||
"input": { | ||
"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,13 @@ | ||
{ | ||
"@context": { | ||
"@version": 1.1, | ||
"input": { | ||
"@id": "foo:input", | ||
"@container": "@graph" | ||
}, | ||
"value": "foo:value" | ||
}, | ||
"input": { | ||
"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,7 @@ | ||
{ | ||
"@context": { | ||
"@version": 1.1, | ||
"input": {"@id": "foo:input", "@container": ["@graph", "@set"]}, | ||
"value": "foo:value" | ||
} | ||
} |
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": { | ||
"@version": 1.1, | ||
"input": {"@id": "foo:input", "@container": "@graph"}, | ||
"value": "foo:value" | ||
}, | ||
"input": { | ||
"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,13 @@ | ||
{ | ||
"@context": { | ||
"@version": 1.1, | ||
"input": { | ||
"@id": "foo:input", | ||
"@container": ["@graph", "@set"] | ||
}, | ||
"value": "foo:value" | ||
}, | ||
"input": [{ | ||
"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,6 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "http://example.org/", | ||
"input": {"@container": "@graph"} | ||
} | ||
} |
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.org/input": [{ | ||
"@graph": [{ | ||
"http://example.org/value": [{"@value": "x"}] | ||
}], | ||
"@index": "ndx" | ||
}] | ||
}] |
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,9 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "http://example.org/", | ||
"input": {"@container": "@graph"} | ||
}, | ||
"input": { | ||
"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,6 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "http://example.org/", | ||
"input": {"@container": "@graph"} | ||
} | ||
} |
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.org/input": [{ | ||
"@id": "http://example.org/gid", | ||
"@graph": [{ | ||
"http://example.org/value": [{"@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,14 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "http://example.org/", | ||
"input": {"@container": "@graph"} | ||
}, | ||
"input": { | ||
"@id": "http://example.org/gid", | ||
"@graph": [ | ||
{ | ||
"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,6 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "http://example.org/", | ||
"input": {"@container": ["@graph", "@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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[{ | ||
"http://example.org/input": [{ | ||
"@index": "g1", | ||
"@graph": [{ | ||
"http://example.org/value": [{"@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,9 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "http://example.org/", | ||
"input": {"@container": ["@graph", "@index"]} | ||
}, | ||
"input": { | ||
"g1": {"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,6 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "http://example.org/", | ||
"input": {"@container": ["@graph", "@index", "@set"]} | ||
} | ||
} |
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.org/input": [{ | ||
"@index": "g1", | ||
"@graph": [{ | ||
"http://example.org/value": [{"@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,9 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "http://example.org/", | ||
"input": {"@container": ["@graph", "@index", "@set"]} | ||
}, | ||
"input": { | ||
"g1": [{"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,6 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "http://example.org/", | ||
"input": {"@container": ["@graph", "@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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[{ | ||
"http://example.org/input": [{ | ||
"@graph": [{ | ||
"http://example.org/value": [{"@value": "x"}] | ||
}], | ||
"@index": "g1", | ||
"@id": "http://example.org/id" | ||
}] | ||
}] |
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,11 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "http://example.org/", | ||
"input": {"@container": ["@graph", "@index"]} | ||
}, | ||
"input": { | ||
"@id": "http://example.org/id", | ||
"@index": "g1", | ||
"@graph": [{"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,6 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "http://example.org/", | ||
"input": {"@container": ["@graph", "@id"]} | ||
} | ||
} |
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 @@ | ||
[{ | ||
"http://example.org/input": [{ | ||
"@graph": [{ | ||
"http://example.org/value": [{"@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,9 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "http://example.org/", | ||
"input": {"@container": ["@graph", "@id"]} | ||
}, | ||
"input": { | ||
"_:b0": {"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,6 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "http://example.org/", | ||
"input": {"@container": ["@graph", "@id"]} | ||
} | ||
} |
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.org/input": [{ | ||
"@graph": [{ | ||
"http://example.org/value": [{"@value": "x"}] | ||
}], | ||
"@id": "http://example.org/id" | ||
}] | ||
}] |
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,9 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "http://example.org/", | ||
"input": {"@container": ["@graph", "@id"]} | ||
}, | ||
"input": { | ||
"http://example.org/id" : {"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,6 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "http://example.org/", | ||
"input": {"@container": ["@graph", "@id", "@set"]} | ||
} | ||
} |
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 @@ | ||
[{ | ||
"http://example.org/input": [{ | ||
"@graph": [{ | ||
"http://example.org/value": [{"@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,7 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "http://example.org/", | ||
"input": {"@container": ["@graph", "@id", "@set"]} | ||
}, | ||
"input": {"_:b0": [{"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,6 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "http://example.org/", | ||
"input": {"@container": ["@graph", "@id", "@set"]} | ||
} | ||
} |
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.org/input": [{ | ||
"@graph": [{ | ||
"http://example.org/value": [{"@value": "x"}] | ||
}], | ||
"@id": "http://example.org/id" | ||
}] | ||
}] |
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,9 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "http://example.org/", | ||
"input": {"@container": ["@graph", "@id", "@set"]} | ||
}, | ||
"input": { | ||
"http://example.org/id" : [{"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,6 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "http://example.org/", | ||
"input": {"@container": ["@graph", "@id"]} | ||
} | ||
} |
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.org/input": [{ | ||
"@graph": [{ | ||
"http://example.org/value": [{"@value": "x"}] | ||
}], | ||
"@index": "ndx" | ||
}] | ||
}] |
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,9 @@ | ||
{ | ||
"@context": { | ||
"@vocab": "http://example.org/", | ||
"input": {"@container": ["@graph", "@id"]} | ||
}, | ||
"input": { | ||
"_:b0": {"value": "x"} | ||
} | ||
} |
Oops, something went wrong.