On 21/09/11 16:16, David Jordan wrote:
I am trying to use tdb.tdbquery for the first time (but I am running it via an
Ant script).
I have loaded data into TDB.
Details?
Did the data go into the default graph?
I have a few queries that had been working with SDB, but every query I run
returns no results.
I thought maybe the graphs I was referring to in the query were wrong or needed
to be different, I tried several variations, including urn:x-arq:UnionGraph.
I am using an assembler file, which has the models and associated graph names
declared, but they don’t work.
Still no results. Then I tried the following query I found in the Learning
SPARQL book
select distinct ?g
where
{
GRAPH ?g {?s ?p ?o}
}
Try:
SELECT (Count(*) AS ?c) {
{ ?s ?p ?o } UNION { GRAPH ?g {?s ?p ?o} }
}
I thought this would tell me the right graph names to use. But this came back
with no results either.
Any ideas?
Check the location name. TDB autocreates databases so if you spell them
wrong, you end up loading one and querying another.
Andy