Cheers Ivan,

That covers it :)

Best,

Nathan

Ivan Mikhailov wrote:
Hello Nathan,

Why not try

SELECT * WHERE {
 graph <http://default.graph/> { <http://some.uri> ?p ?o } .
 graph ?ont { ?p ?o2 ?s2 } . filter (some condition on ?ont) }

(and make empty "default graph" field of the query web page)

Best Regards,

Ivan Mikhailov
OpenLink Software
http://virtuoso.openlinksw.com

On Thu, 2010-05-13 at 11:27 +0100, Nathan wrote:
Hi All,

I've just hit on something, that I don't know how I haven't hit on before..

Short is I'm using rdf_sink and everything in a http://default.graph/ and I want to run the following query:

   SELECT * WHERE { <http://some.uri> ?p ?o . ?p ?o2 ?s2 }

which will obviously give me all a and t box statements.

But here's the problem, the Ontologies were all sponged so aren't in the http://default.graph/ - rather they are in there own - and obviously rdf_sink saves all rdf in 2 graphs.

So.. if I put in the http://default.graph/ to get one set of data I get zero T boxes (and there in zero A boxes too because of the non optional query)

and if I leave the http://default.graph/ out then I get double everything.

I have a feeling you're going to suggest rdf_sink'ing the ontologies in to the same graph :p

Best,

Nathan

------------------------------------------------------------------------------

_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users





Reply via email to