From memory, SPARQL Query and SPARQL Update have different mimetypes for the 
request. Perhaps you are using the Query mimetype?

ajs6f

> On Dec 9, 2017, at 3:51 PM, Andy Seaborne <[email protected]> wrote:
> 
> Erich,
> 
> How are you sending the update? It looks like it is sent as a query ... 
> because it is and parsed as a query.
> 
>    Andy
> 
> Which version?
> 
> On 09/12/17 20:30, Erich Bremer wrote:
>> I'm trying to do a "insert data {}" command on the following end-point for
>> FusekiEmbeddedServer.
>>         DataService dataService = new DataService(ds.asDatasetGraph());
>>         dataService.addEndpoint(OperationName.Quads_RW, "");
>>         dataService.addEndpoint(OperationName.Query, "");
>>         dataService.addEndpoint(OperationName.Update, "");
>>         FusekiEmbeddedServer fs = FusekiEmbeddedServer.create()
>>             .setPort(8888)
>>             .add("/ds", dataService)
>>             .build();
>>         fs.start();
>> I get an error of:
>> Error 400: Parse error:
>> prefix : <http://www.ebremer.com/pred/>
>> insert data {<http://www.ebremer.com/test123> :name "Erich Bremer"}
>> Encountered " <INSERT_DATA> "insert data "" at line 2, column 1.
>> Was expecting one of:
>>     "base" ...
>>     "prefix" ...
>>     "select" ...
>>     "describe" ...
>>     "construct" ...
>>     "ask" ...
>> What am I doing wrong or not understanding?  - Erich

Reply via email to