On 8/2/2013 0:12, Andy Seaborne wrote:
On 01/08/13 01:52, Holger Knublauch wrote:
I am upgrading our code base to the latest Jena snapshot, and noticed
that UpdateProcessor.setInitialBindings is no longer around. What is the
replacement for this functionality?
Thanks
Holger
Holger,
https://jena.apache.org/documentation/query/parameterized-sparql-strings.html
http://jena.apache.org/documentation/javadoc/arq/com/hp/hpl/jena/query/ParameterizedSparqlString.html
I cannot use ParameterizedSparqlString because it does not handle blank
nodes correctly. The previous implementation using initial bindings
supported this, because it didn't have to go through the string syntax.
Now, when I pre-bind a variable to point to a blank node, I am getting
strings like _:b0 which lose the identity of the blank node which is
otherwise (fortunately) preserved throughout Jena.
I am not sure if this is fixable in SPARQL syntax - please advise
whether you want me to open a JIRA ticket - but as stated elsewhere I
believe the initial bindings should be brought back into the update API.
Thanks,
Holger