Hi, (n00b alert) I'm trying to port a data-loading program to use Jena/Fuseki, and I'm stuck at a very basic point.
I'm basically trying to implement the code here http://jena.sourceforge.net/ARQ/update.html, but pointing at a Fuseki update endpoint and using UpdateRemote.execute to send the request I'm building to fuseki. The code (in Clojure) I'm using is: (defn -deleteGraph [] (let [request (UpdateFactory/create)] (.add request "DROP ALL") (.add request "CREATE GRAPH <http://papyri.info#pi>") (println (.toString request)) ;; for debugging purposes only (UpdateRemote/execute request server))) The idea behind the method being just to drop everything and re-create the graph <http://papyri.info#pi>. My problem is that my CREATE query is getting mangled when I add it to the request. When I print the request, I get: DROP ALL ; CREATE <http://papyri.info#pi> ; And Fuseki (correctly as far as I can tell) tells me Exception in thread "main" com.hp.hpl.jena.update.UpdateException: 400 Encountered " <IRIref> "<http://papyri.info#pi> "" at line 3, column 8. Was expecting one of: "graph" ... "silent" ... Can anyone tell me why the word "GRAPH" is getting stripped from my query, and how to stop it? Or is what I'm doing completely wrong? Thanks, Hugh
