Hello Nathan, I'm unable to reproduce the bug, it works for me as expected, so I'd like to know more details --- server version and RDF Views in use (if any) and the whole text of a stored procedure if the query is part of its text.
Best Regards, Ivan Mikhailov OpenLink Software http://virtuoso.openlinksw.com On Thu, 2009-11-26 at 22:43 +0000, Nathan wrote: > it gives the correct results :-) thanks > > still left wondering why the following works: > select ?s ?p ?o WHERE { ?s ?p ?o . FILTER( ?o = "dba" ) } > > but you unblocked me - so a big thanks to you, cheers peter. > > many regards, > > nathan > > Peter Ansell wrote: > > What does it say for this query? > > > > select ?g ?s ?p ?o WHERE { GRAPH ?g { ?s ?p ?o . FILTER( str(?o) = "dba" ) > > } } > > > > > > cheers, > > > > peter > > > > > > > > ----- Original Message ---- > >> From: Nathan <[email protected]> > >> To: virtuoso Users List <[email protected]> > >> Sent: Fri, 27 November, 2009 8:29:38 AM > >> Subject: [Virtuoso-users] sparql bug? > >> > >> > >> This ones confusing me.. > >> > >> I can't filter on a literal when GRAPH is included in a sparql query.. > >> > >> select ?g ?s ?p ?o WHERE { GRAPH ?g { ?s ?p ?o . FILTER( ?o = "dba" ) } } > >> > >> produces the error: > >> 37000 Error SQ074: Line 1: syntax error at ')' before 'when' > >> > >> > >> the same query works fine when you swap the literal for a uri > >> > >> select ?g ?s ?p ?o WHERE { GRAPH ?g { ?s ?p ?o . FILTER( ?o = > >> ) } } > >> > >> a bug? > >> > >> regards! > >> > >> Nathan
