On 17/10/2024 11:35, Holger Knublauch wrote:
Hi all,

we are trying to switch to Jena 5 and from using setInitialBindings to 
substitution.

There is a change in behaviour of SELECT *

Consider a query such as

SELECT  *
WHERE
   { ?this  ?PATH  ?value
     FILTER EXISTS { ?value (rdfs:subClassOf)* ?class
                     FILTER ( ?class IN (rdfs:Class, rdf:Property, sh:Shape) )
                   }
   }

where ?this and ?PATH have initial bindings.

Using initialBindings, the result variables include ?this, but with 
substitution semantics, only ?value is returned.

Does this mean that queries need to be rewritten to explicitly state SELECT 
?this ?value ... ?

Thanks,
Holger



Hi Holger,

Minimal, complete test case please.

(Presumably ?PATH is a property not a more general path)

    Andy

Reply via email to