On 5/3/12 11:03 PM, Andy Seaborne wrote:
> Injecting in the right place can be quite cheap - the query string upto
> that point, the syntax, and the query string after that point. There is
> only one point to put variables in.
Our users are already struggling to write SPARQL 1.0 queries. Most query 
templates are just a single GP with an occasional FILTER and/or REGEX 
thrown in. They basically just write a query and then define which 
variables are meant to be exposed by our API as parameters. We probably 
can't ask them to inject the value placeholders themselves. The BINDINGS 
approach worked in almost all cases.

> ARQ also allows for rewrite of parsed queries: a query can be rewritten
> (either the abstract syntax tree or the SPARQL algebra) as replacing
> specific variables by values prior to execution (this is even in the
> public API). Discuss with your implementation of choice.
ARQ is our implementation of choice :) If it's as simple as adding some 
parameters to the SPARQL API call (we only have HTTP access to the 
backend), we'd have a perfect solution. Will look into that, thanks for 
the hint!


> Andy

Benjamin Nowack
Software Engineer, Talis Systems Ltd

Received on Saturday, 5 May 2012 22:29:22 UTC