Hi Ivan, thanks for your fast reply.
Yes, I can reproduce this with ISQL. SQL> sparql select ?s ?p ?o where { ?s ?p ?o }; s p o VARCHAR VARCHAR VARCHAR _______________________________________________________________________________ NULL NULL NULL 1 Rows. -- 0 msec. while sparql select ?s ?p ?o where { graph ?g {?s ?p ?o }}; returns everything. I'm using the /sparql/ endpoint with empty default and named graphs, but all queries contains a list of FROM NAMED <uri>. POST /sparql/?default_graph_uri=&named_graph_uri= Best Regards, Mikael On 27/01/2008, Ivan Mikhailov <imikhai...@openlinksw.com> wrote: > Hello Mikael, > > Virtuoso can query unspecified graphs so the issue is probably misused > interface. Can you reproduce this problem by querying via ISQL? If yes > then that is a real (and surprising) problem. If you're using /sparql/ > or /isparql/ web service endpoint then please check whether 'default > graph' field contains graph name or empty. When empty then by triple > patterns outside graph ... { ... } will be matched against at all > graphs, when non-empty then they will be restricted to the specified > graph. So if graph is specified but empty then you get nuthing without > graph ?g { ... } and get everything with it. > > Best Regards, > Ivan Mikhailov, > OpenLink Software. > > On Sun, 2008-01-27 at 11:04 +0100, Mikael Högqvist wrote: > > Hi, > > > > I'm using virtuoso 5.0.3 and have run into a problem with queries. I > > expect that a query like > > > > select ?s ?p ?o where { ?s ?p ?o } > > > > would return all triples in the store. But it returns nothing, while this > > query: > > > > select ?s ?p ?o where { graph ?g {?s ?p ?o }} > > > > returns all the triples. I did not run into this with earlier versions > > of virtuoso and could not find any related configuration setting. All > > graphs are indexed by uploading via WebDAV to an rdf_sink-directory. > > > > Is it possible to avoid "graph ?g { ... }"?. > > > > Thanks, > > Mikael > > >