Menu

#68 Query engine bug 1

v6.1.3
open-fixed
9
2011-09-21
2011-08-26
No

Sadly I cannot give this bug a better title. It is caused by using a IN filter. To expose the bug one simply has to create one resource and try to query it with a query as follows:

select distinct ?r ?v4 where {
?r nao:prefLabel ?v4 .
FILTER(bif:contains(?v4, "'shared' AND 'desktop'")) .
?r a ?t . filter(?t in (pimo:Project, pimo:Task)) .
FILTER(!bif:exists((select (1) where {
<nepomuk:/res/2598d3b7-ae9f-40ca-9044-067e466ba936> ?p ?r .
}
))) .
}

The result set will be empty. However, removing the bif:exists filter OR just using a single type in the IN filter "solves" the issue:

select distinct ?r ?v4 where {
?r nao:prefLabel ?v4 .
FILTER(bif:contains(?v4, "'shared' AND 'desktop'")) .
?r a ?t . filter(?t in (pimo:Project)) .
FILTER(!bif:exists((select (1) where {
<nepomuk:/res/2598d3b7-ae9f-40ca-9044-067e466ba936> ?p ?r .
}
))) .
}

or

select distinct ?r ?v4 where {
?r nao:prefLabel ?v4 .
FILTER(bif:contains(?v4, "'shared' AND 'desktop'")) .
?r a ?t . filter(?t in (pimo:Project, pimo:Task)) .
))) .
}

IMHO this is an obvious bug as the two filters should not interfere with one another.

Used Virtuoso version: 6.1.3.3127-pthreads

Discussion

  • Sebastian Trueg

    Sebastian Trueg - 2011-08-26
    • priority: 5 --> 9
     
  • iODBC Maintainer

    • assigned_to: nobody --> iv-an-ru
     
  • Ivan Mikhailov

    Ivan Mikhailov - 2011-09-21

    The bug Is fixed in upcoming 6.1.4 release

     
  • Ivan Mikhailov

    Ivan Mikhailov - 2011-09-21
    • labels: --> RDF - SPARQL
    • milestone: --> v6.1.3
    • status: open --> open-fixed
     
  • Sebastian Trueg

    Sebastian Trueg - 2011-09-28

    I can still reproduce this in 6.1.4-rc1.3127 from 15.09.2011.

     

Log in to post a comment.