From ce04ee461f62e78dae35ec2cef0a8749ef8bcdc6 Mon Sep 17 00:00:00 2001 From: lsitu Date: Tue, 30 Sep 2014 08:13:11 -0700 Subject: [PATCH] Fixed the sparql recipes bug that failed for 4.0.0-beta-04-SNAPSHOT. --- .../main/java/org/fcrepo/indexer/sparql/SparqlIndexer.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fcrepo-message-consumer-core/src/main/java/org/fcrepo/indexer/sparql/SparqlIndexer.java b/fcrepo-message-consumer-core/src/main/java/org/fcrepo/indexer/sparql/SparqlIndexer.java index 6fff191..c5bef91 100644 --- a/fcrepo-message-consumer-core/src/main/java/org/fcrepo/indexer/sparql/SparqlIndexer.java +++ b/fcrepo-message-consumer-core/src/main/java/org/fcrepo/indexer/sparql/SparqlIndexer.java @@ -36,6 +36,7 @@ import com.hp.hpl.jena.rdf.model.StmtIterator; import com.hp.hpl.jena.graph.Node_URI; import com.hp.hpl.jena.graph.Triple; +import com.hp.hpl.jena.shared.PrefixMapping; import com.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP; import com.hp.hpl.jena.sparql.modify.UpdateProcessRemote; import com.hp.hpl.jena.sparql.modify.request.QuadDataAcc; @@ -88,9 +89,12 @@ public Callable updateSynch(final String pid, add.addTriple( triples.nextStatement().asTriple() ); } + final UpdateRequest update = new UpdateRequest(new UpdateDataInsert(add)); + update.setPrefixMapping(PrefixMapping.Standard); + // send update to server LOGGER.debug("Sending update request for pid: {}", pid); - return exec(new UpdateRequest(new UpdateDataInsert(add))); + return exec(update); } /**