Re: [Virtuoso-users] Clear graph query problem

2011-06-30 Thread Sebastian Trüg
Hi Ivan, thanks a lot for the explanation. The workaround looks crazy. :) Sadly it does not work here. But then again the following query does not work either which is very confusing: select ?mg where { ?mg nrl:coreGraphMetadataFor ?g . FILTER(?g in ()) . FILTER(!bif:exists((select (1) w

Re: [Virtuoso-users] Clear graph query problem

2011-06-30 Thread Ivan Mikhailov
Hello Sebastian, Unfortunately there's no way to calculate the graph to delete by something more complicated than constant expression. If that creates severe problems then I will extend the processor to support something like clear graph ( select ?mg where { ?mg nrl:coreGraphMetadataF

[Virtuoso-users] Clear graph query problem

2011-06-29 Thread Sebastian Trüg
Hi list, With this query: clear graph ?mg where { ?mg nrl:coreGraphMetadataFor ?g . FILTER(?g in ()) . FILTER( !bif:exists((select (1) where { graph ?g { ?s ?p ?o . } . })) ) . } I get the following error: "SP031: SPARQL compiler: non-global variable 'mg' can not be