I seem to be going around in circles with the fuseki documentation.

Does Fuseki support the POST command as noted at
http://www.w3.org/TR/2013/REC-sparql11-http-rdf-update-20130321/#http-post

(I believe it does from reading the docs)

I am attempting to execute an INSERT

I have started fuseki on my linux system using

fuseki-server -mem /tst

I am using the Apache httpcomponents library

I am posting to http://localhost:3030/tst/data?default

I have set the content type to text/turtle

the text that is being posted is

INSERT DATA
{
<urn:foo:s>  <urn:foo:p>  <urn:foo:o> .

}


The fuseki log shows:

[2015-06-18 07:20:32] Fuseki     INFO  [1] POST
http://localhost:3030/tst/data?default
[2015-06-18 07:20:32] Fuseki     INFO  [1] POST /tst :: 'data' ::
[text/turtle charset=UTF-8] ? default
[2015-06-18 07:20:32] Fuseki     ERROR [line: 1, col: 1 ] Out of place:
[KEYWORD:INSERT]
[2015-06-18 07:20:32] Fuseki     INFO  [1] 400 Parse error: [line: 1, col:
1 ] Out of place: [KEYWORD:INSERT] (62 ms)

The BasicHttpResponse I am getting back is:

HTTP/1.1 400 Parse error: [line: 1, col: 1 ] Out of place: [KEYWORD:INSERT]
[Fuseki-Request-ID: 2, Server: Fuseki (2.0.0-SNAPSHOT), Content-Type:
text/plain; charset=UTF-8, Cache-Control:
must-revalidate,no-cache,no-store, Pragma: no-cache, Content-Length: 147]
ResponseEntityProxy{[Content-Type: text/plain;
charset=UTF-8,Content-Length: 147,Chunked: false]}

I must be doing something silly.  Does anyone see what the issue is?

Claude
-- 
I like: Like Like - The likeliest place on the web
<http://like-like.xenei.com>
LinkedIn: http://www.linkedin.com/in/claudewarren

Reply via email to