I've checked into QueryEngineBase (line 96) code to substitute variables before algebra optimization, rather than the current approach which optimizes then expects the storage query engine to deal with it.

This does not apply to QueryEngineHTTP (this has never supported initial bindings).

This does not apply to updates.

Please take a look and say what you think.
if you enable the code, two test will fail -

com.hp.hpl.jena.sparql.api.TestAPI

testInitialBindings5

ASK WHERE { FILTER (?a = <http://constant>) }
substituting <http://constant> for ?a

testInitialBindings6

ASK WHERE { FILTER (?a = ?b) }
substituting value true for ?a and ?b

this is correct for the substitution-before-optimization design.

        Andy


Reply via email to