Nevermind, I got it to work.  - Erich

On Fri, Jan 5, 2018 at 11:10 PM, Erich Bremer <[email protected]> wrote:

> I'm using embedded fuseki using the method of example 3 on the following
> URL:
> https://jena.apache.org/documentation/fuseki2/fuseki-embedded.html
>
> My code is similar in the fashion as:
>
> DatasetGraph dsg = ... ;DataService dataService = new DataService(dsg) 
> ;dataService.addEndpoint(OperationName.Quads_RW, 
> "");dataService.addEndpoint(OperationName.Query, 
> "");dataService.addEndpoint(OperationName.Update, "");
> FusekiServer server = FusekiServer.create()
>    .setPort(3332)
>    .add("/data", dataService)
>    .build() ;server.start() ;
>
> And doing SPARQL queries works fine, but when I try to issue the following 
> SPARQL update command:
>
> insert graph <http://example.com>
>
> I get the error:
>
> Encountered " "create" "create "" at line 2, column 1.
> Was expecting one of:
>     "base" ...
>     "prefix" ...
>     "select" ...
>     "describe" ...
>     "construct" ...
>     "ask" ...
>      (80 ms)
>
> What am I doing wrong here?
>
>   - Erich
>
>

Reply via email to