Re: [Tracker] Is this RDF query correct?
- From: Jamie McCracken <jamiemcc blueyonder co uk>
 
- To: Laurent Aguerreche <laurent aguerreche free fr>
 
- Cc: tracker-list gnome org
 
- Subject: Re: [Tracker] Is this RDF query correct?
 
- Date: Sat, 02 Sep 2006 19:34:11 +0100
 
Laurent Aguerreche wrote:
Le jeudi 31 aoÃt 2006 Ã 20:43 +0100, Jamie McCracken a Ãcrit :
Laurent Aguerreche wrote:
Hello,
I try to use this RDF query:
....
and it fails with this message :
Error in rdf query parse: Line 12 character 1: CONTAINS element not
expected here
What is the problem? How can I do a OR between numerous 'contains'
encapsulated itself in a AND? Is it legal?
it should be but most likely its a bug.
check start_element_handler in tracker-rdf-query.c
the "state" variable refers to the previous entry on the query stack.
looking at lines 626-628, the fail check is not expecting  </rdfq:or> 
or any logic end state. I would guess adding :
|| is_end_logic (state)
to the failcheck condition should make it okay. This would need to be 
added to all the operators in that function.
Ok, you're right except it is is_end_operator(state).  :-)
(state which blocked was STATE_END_CONTAINS)
Have applied to CVS - thanks
--
Mr Jamie McCracken
http://jamiemcc.livejournal.com/
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]