bodyModel.read(Channels.newInputStream(request.getMessageBody()
.read()), source.getURIRef());
} catch (Exception e) {
throw new HandlerException(e);
}
final FCAGraph graph = new FCAGraphImpl(bodyModel);
if (resourceURIStrings != null) {
final Set<GroundedNode> onlyForGroundedNodes = new HashSet<GroundedNode>(
resourceURIStrings.length);
for (String uriString : resourceURIStrings) {
onlyForGroundedNodes.add(new NamedNodeImpl(uriString));
}
// response.setBody(reconstructGraph(filterableDecomposition,
// onlyForGroundedNodes));
store.perform(source, new StoreTransaction() {
public void execute(SourceStoreView storeView) {
FCAGraph fcaGraph = storeView.getGraph();
storeView
.revokeGraph(fcaGraph.filter(onlyForGroundedNodes));
storeView.assertGraph(graph);
}
});
} else {