Hi, I have a joseki sparql endpoint set up. I am testing SPARQL Update. The following works:
PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX ns: <http://example.org/ns#> INSERT DATA { <http://example/book1> ns:price 42 } ---- However, this does not work: PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX ns: <http://example.org/ns#> INSERT DATA { GRAPH <http://example/bookStore> { <http://example/book1> ns:price 42 } } ---- The error is: 18:05:36 INFO Servlet :: Service URI = <update/service> 18:05:36 INFO SPARQLUpdate :: SPARQL/Update Operation null graph 18:05:36 WARN SPARQLUpdate :: Update failed java.lang.NullPointerException at com.hp.hpl.jena.sparql.core.DatasetGraphCollection.add(DatasetGraphCollection.java:27) at com.hp.hpl.jena.sparql.core.DatasetGraphWrapper.add(DatasetGraphWrapper.java:57) at com.hp.hpl.jena.sparql.modify.UpdateEngineWorker.visit(UpdateEngineWorker.java:215) at com.hp.hpl.jena.sparql.modify.request.UpdateDataInsert.visit(UpdateDataInsert.java:15) at com.hp.hpl.jena.sparql.modify.UpdateEngineMain.execute(UpdateEngineMain.java:39) at com.hp.hpl.jena.sparql.modify.UpdateProcessorBase.execute(UpdateProcessorBase.java:48) at org.joseki.processors.SPARQLUpdate.execOperation(SPARQLUpdate.java:82) ---- Is there support in Joseki for writing into graphs in this way? I have taken the example from the w3c page on sparql update [1]. 1- http://www.w3.org/TR/sparql11-update/ thanks, -- Rob Stewart
