Thanks for your response.

I'm pretty sure of the versions.

I'm using a model, in-memory.


On 08/11/2011 10:16 AM, Andy Seaborne wrote:


On 11/08/11 17:50, Eric Scott wrote:
Hi all -

When I execute this query (taken verbatim from
http://www.w3.org/Submission/SPARQL-Update/):

"PREFIX dc: <http://purl.org/dc/elements/1.1/>
INSERT DATA INTO <http://example/bookStore>
{ <http://example/book3> dc:title \"Fundamentals of Compiler Design\" }
"

Unrelated: INTO not going to be strict SPARQL 1.1 Update:

INSERT DATA
{ GRAPH <http://example/bookStore>
   { <http://example/book3> dc:title "Fundamentals of Compiler Design" }
}

The update submission is superseded by SPARQL 1.1


I get a null pointer exception in this context:

0:
com.hp.hpl.jena.sparql.core.DatasetGraphCollection.add(DatasetGraphCollection.java:27)

1:
com.hp.hpl.jena.sparql.core.DatasetGraphWrapper.add(DatasetGraphWrapper.java:57)

2:
com.hp.hpl.jena.sparql.modify.UpdateEngineWorker.visit(UpdateEngineWorker.java:215)

3:
com.hp.hpl.jena.sparql.modify.request.UpdateDataInsert.visit(UpdateDataInsert.java:15)

4:
com.hp.hpl.jena.sparql.modify.UpdateEngineMain.execute(UpdateEngineMain.java:28)

5:
com.hp.hpl.jena.sparql.modify.UpdateProcessorBase.execute(UpdateProcessorBase.java:48)

6: com.hp.hpl.jena.update.UpdateAction.execute$(UpdateAction.java:319)
7: com.hp.hpl.jena.update.UpdateAction.execute(UpdateAction.java:312)
8: com.hp.hpl.jena.update.UpdateAction.execute(UpdateAction.java:272)
9: com.hp.hpl.jena.update.UpdateAction.execute(UpdateAction.java:226)

This happens whether or not I precede the query with this:

"CREATE GRAPH <http://example/bookstore>"

Here's a minimal pairing that works just fine:

"PREFIX dc: <http://purl.org/dc/elements/1.1/>
INSERT DATA
{ <http://example/book3> dc:title \"Fundamentals of Compiler Design\" }
"

Is there something else I need to do?

Versions: Jena 2.6.4, arq 2.8.8.

Eric,

I tried your example with ARQ 2.8.8:

java -cp 'lib/*' arq.update --dump --file ../../U.ru

where U.ru has:

-----------
PREFIX dc: <http://purl.org/dc/elements/1.1/>
 INSERT DATA INTO <http://example/bookStore>
 { <http://example/book3>  dc:title  "Fundamentals of Compiler Design" }
-----------
java -cp 'lib/*' arq.update --version
==>
Jena:       VERSION: 2.6.4
Jena:       BUILD_DATE: 2010-12-12T16:56:15+0000
ARQ:        VERSION: 2.8.8
ARQ:        BUILD_DATE: 2011-04-21T10:12:50+0100

Might you have a second, old, copy of ARQ, on your system?

How are you invoking the operation/ Specifically, are you passing in a model or a dataset, and are you using in-memory storage?

    Andy


Reply via email to