Andy,

I just upgraded my pom files to point to the latest Jena snapshots (from this 
morning). While I can verify that JENA-361 is fixed for SELECT queries, I'm 
still having the problem for INSERT. So, this code doesn't work:

String updateString = "prefix ex: <http://example.org/> \n"
+ "with <urn:test:t1> \n" + "INSERT {?foo ex:foo ?obj} \n"
+ "WHERE { ?foo ex:prop1 [ \n"
+ "                          ex:prop2 ?o ;\n" 
+ "                          ex:prop3 ?obj ] "
+ "}";  
UpdateRequest update = UpdateFactory.create(updateString);
UpdateRemote.execute(update, "http://localhost:3030/ds/update";); //exception 
thrown here

I get this exception (truncated):
org.apache.jena.atlas.web.HttpException: 400 Encountered " "?" "? "" at line 9, 
column 5. Was expecting one of:  ...


If I don't use the bracket notation above, but explicitly create another 
variable instead of the [ ], it works fine. So it looks like the same problem 
as JENA-361, but for INSERT scripts. As before, this works fine if I use Fuseki 
directly.

(PS. Do you prefer me to report these kinds of issues in JIRA or using this 
mailing list?)

Thanks,
Elli


________________________________
 From: Andy Seaborne <[email protected]>
To: [email protected] 
Sent: Thursday, December 6, 2012 2:38 PM
Subject: Re: Problem querying with sparqlService
 
On 06/12/12 17:00, Andy Seaborne wrote:

> I've recorded this as:
>
> https://issues.apache.org/jira/browse/JENA-361

Wasn't as structural as I feared it might be.  Fixed in SVN.

    Andy

Reply via email to