You can check syntax at:

http://www.sparql.org/query-validator.html

On 21/11/17 12:05, Chris Dollin wrote:
Dear All

I'm missing something with use of the query builder to create VALUES
clauses.
The code

     @Test public void buildValues() {
         SelectBuilder sb = new SelectBuilder();
         sb.addValueVar("item",  "spoo", "flarn");
         System.err.println(sb.buildString());
     }

generates

   SELECT  *
   WHERE
     {  }
   VALUES ?item { "spoo" "flarn" }

which I believe to be syntactically incorrect but in any case I want the
generated VALUES clause to be inside the WHERE {} ie

   SELECT * WHERE {VALUES ?item {"spoo" "flarn"}}}

What should I be doing and how should I have known that?

Chris

PS please to excuse the misuse of @Test here ... exploratory use only.

Reply via email to