Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Fixed the sparql recipes bug that failed for 4.0.0-beta-04-SNAPSHOT. #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -88,9 +89,12 @@ public Callable<Void> 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);
}

/**
Expand Down