jena-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Seaborne <andy.seabo...@epimorphics.com>
Subject Re: Union queries with tdbquery
Date Tue, 21 Dec 2010 20:50:49 GMT


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

Mime
View raw message