Update compilers.asciidoc Updating documentation: - fixed optional clause - updated optional clause limitation while in nesting with union & order-by - went through other examples and limitations
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/8ffd63cd Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/8ffd63cd Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/8ffd63cd Branch: refs/heads/TINKERPOP-1878 Commit: 8ffd63cd09a55f1d0e5dd4a85720de485a653242 Parents: c95ce50 Author: Harsh Thakkar <hars...@gmail.com> Authored: Wed Aug 1 11:27:59 2018 +0200 Committer: Stephen Mallette <sp...@genoprime.com> Committed: Wed Aug 8 07:47:31 2018 -0400 ---------------------------------------------------------------------- docs/src/reference/compilers.asciidoc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/8ffd63cd/docs/src/reference/compilers.asciidoc ---------------------------------------------------------------------- diff --git a/docs/src/reference/compilers.asciidoc b/docs/src/reference/compilers.asciidoc index e015cc8..5b6ab2e 100644 --- a/docs/src/reference/compilers.asciidoc +++ b/docs/src/reference/compilers.asciidoc @@ -206,9 +206,8 @@ WHERE { ?person v:label "person" . ?person v:age ?age . ?person v:name ?name . } The the variable encountered first will be the ordering decider, i.e. since we have `?person` being encountered first, the result set will be ordered according to the `?person` variable (which are vertex id). * OPTIONAL -.... -currently fixing this... -.... +In the current implementation, `OPTIONAL` clause doesn't work under nesting with `UNION` clause (i.e. multiple optional clauses with in a union clause) and `ORDER-By` clause (i.e. declaring ordering over triple patterns within optional clauses). Everything else with SPARQL `OPTIONAL` works just fine. + [[examples]] === Examples