When I use your command line arguments I get exactly your results. The fact remains that it's not happening in my program. My program is in clojure, but the same code is being used for the query that works and the query that doesn't, so I can't see what difference that would make.

Pseudocode:

model = ModelFactory.createDefaultModel ();

request = UpdateFactory.create();

request.add (sparqlString);

UpdateAction.execute (request, model);


Thanks,

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