Kevin,

It looks like you calling the query parser, not he update language parser. Query != Update in SPARQL.

http://openjena.org/ARQ/update.html

Use UpdateAction or UpdateFactory/UpdateAction.

Otherwise, please could you provide a complete, minimal example of what you are doing.

        Andy

On 16/02/11 22:50, Kevin Pauli wrote:
After some extensive Googling I am still unclear: how do write a text SPARQL
query (ARQ 2.8.7) to DELETE a given triple?  Can anyone point me to a reference?
  I didn't see any examples in the src-examples in the distribution.  When I try
I always get

Exception in thread "main" com.hp.hpl.jena.query.QueryParseException:
Encountered " "delete" "delete "" at line 1, column 1.
Was expecting one of:
     "base" ...
     "prefix" ...
     "select" ...
     "describe" ...
     "construct" ...
     "ask" ...

at com.hp.hpl.jena.sparql.lang.ParserSPARQL11.perform(ParserSPARQL11.java:87)

   Thanks...
  Regards,
Kevin Pauli

  • DELETE? Kevin Pauli
    • Re: DELETE? Andy Seaborne

Reply via email to