openlink / virtuoso-opensource

Virtuoso is a high-performance and scalable Multi-Model RDBMS, Data Integration Middleware, Linked Data Deployment, and HTTP Application Server Platform
https://vos.openlinksw.com
Other
870 stars 210 forks source link

NOT EXISTS filter doesn't seem to work with VALUES clause #122

Open joernhees opened 10 years ago

joernhees commented 10 years ago

Tried on DBpedia endpoint:

This query works:

select ?t
where {
    dbpedia:Barack_Obama a ?t.
    FILTER(NOT EXISTS {
        ?t a dbpedia:foo.
    })
}

This doesn't:

select ?s ?t
where {
    ?s a ?t.
    FILTER(NOT EXISTS {
        ?t a dbpedia:foo.
    })
    VALUES (?s) { (dbpedia:Barack_Obama) (dbpedia:Angela_Merkel) }
}

No results?!?

Notice how it works in this one:

select ?s ?t
where {
    ?s a ?t.
    FILTER(NOT EXISTS {
        ?t a dbpedia:foo.
    })
    VALUES (?s) { (dbpedia:Barack_Obama) }
}
HughWilliams commented 10 years ago

We are looking into this ...