You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Benson Margulies <bi...@gmail.com> on 2010/12/21 20:23:17 UTC

Union queries with tdbquery

This doesn't work for me: no results.

PREFIX x-arq: <urn:x-arq>
SELECT ?x ?y from x-arq:UnionGraph WHERE { ?x ?y "Blair" }

Re: Union queries with tdbquery

Posted by Andy Seaborne <an...@epimorphics.com>.

On 21/12/10 19:23, Benson Margulies wrote:
> This doesn't work for me: no results.
>
> PREFIX x-arq:<urn:x-arq>
> SELECT ?x ?y from x-arq:UnionGraph WHERE { ?x ?y "Blair" }


# trailing ":" needed: a prefix name a:b does not include the ":"
PREFIX x-arq:<urn:x-arq:>

# GRAPH not FROM
SELECT ?x ?y
WHERE
   {
      GRAPH x-arq:UnionGraph { x ?y "Blair" }
   }

should work.

It's GRAPH to access a graph within the dataset.

FROM x-arq:UnionGraph may work (because of TDB dynamic dataset)

/me must move the union support up to ARQ sometime.

	Andy