Query VALUES Variable Names

2018-11-07 Thread Greg Albiston
Hello, I'm trying to retrieve the VALUES variable names of a Query parsed from a string. When I run the below test the result is false when I was expecting true. The query is from the SPARQL 1.1 standard. Can the VALUES variable names be retrieved from another method? Apologies if I've miss

Re: Query VALUES Variable Names

2018-11-08 Thread Andy Seaborne
Hi Greg, query.getValuesVariables() applies specifically to the case of a trailing VALUES block. SELECT * WHERE {} VALUES ?var { ... } (I'll add some javadoc) To get an inner VALUES block which can be anywhere in the graph pattern, the code has to walk the query or to walk into the WHERE pa

Re: Query VALUES Variable Names

2018-11-08 Thread Lorenz B.
Hello Greg, I can understand that this is a bit misleading, but the methods you used just work for VALUES clause "outside" of the query pattern: |String ||queryString ||= ||"PREFIX dc: ||\n||"||+ ||"PREFIX : ||\n||"||+ ||"PREF