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
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
>> trial. Simplify your report design, integration and deployment - and focus 
>> on 
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Virtuoso-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
> 
> 
> 
>       
> __________________________________________________________________________________
> Win 1 of 4 Sony home entertainment packs thanks to Yahoo!7.
> Enter now: http://au.docs.yahoo.com/homepageset/
> 
> 


Reply via email to