On Thu, 2011-09-22 at 17:32 +0000, David Jordan wrote:
> Thanks for the suggestion on the Ant arg issue, that worked.
> With passing the tdb:unionDefaultGraph=true, without any FROM or FROM NAMED,
> I get no results.
Odd. I use tdb:unionDefaultGraph all the time with no FROM/FROM NAMED,
at least programmatically.
Assuming you are running on up to date code then you may want to try a
simple test case with two small test graphs and a trivial ?s ?p ?o
query.
> I have tried numerous variations, trying to get results.
> I have two graphs, call them P and I.
> I have annotated lines in the following query.
>
> select distinct ?subjid
> where {
> ?subj p:hasDiagnosis ?diag . #1: in graph P
> ?subj p:hasPatientID ?subjid . #2: in graph P
> ?diag rdf:type ?diagType . #3: in graph I
> FILTER ( ?diagType = HOM_ICD9:HOM_ICD_1224) . #4: in graph I
> }
How can #4 be in a different graph to #1??
Perhaps if you can generate some minimal example test data with just a
few statements for P and I, that would explain what you want more
precisely and give a test case that others could try out.
Dave