use of org.apache.jena.sparql.modify.UpdateEngineFactory in project jena by apache.
the class UpdateExecutionFactory method makeStreaming.
// Everything for local updates comes through one of these two make methods
@Deprecated
private static UpdateProcessorStreaming makeStreaming(DatasetGraph datasetGraph, Binding inputBinding, Context context) {
Prologue prologue = new Prologue();
Context cxt = Context.setupContextForDataset(context, datasetGraph);
UpdateEngineFactory f = UpdateEngineRegistry.get().find(datasetGraph, cxt);
UpdateProcessorStreamingBase uProc = new UpdateProcessorStreamingBase(datasetGraph, inputBinding, prologue, cxt, f);
return uProc;
}
use of org.apache.jena.sparql.modify.UpdateEngineFactory in project jena by apache.
the class UpdateExecDatasetBuilder method build.
@Override
public UpdateExec build() {
Objects.requireNonNull(dataset, "No dataset for update");
Objects.requireNonNull(updateRequest, "No update request");
UpdateRequest actualUpdate = updateRequest;
if (substitutionMap != null && !substitutionMap.isEmpty())
actualUpdate = UpdateTransformOps.transform(actualUpdate, substitutionMap);
Context cxt = Context.setupContextForDataset(context, dataset);
UpdateEngineFactory f = UpdateEngineRegistry.get().find(dataset, cxt);
if (f == null)
throw new UpdateException("Failed to find an UpdateEngine");
UpdateExec uExec = new UpdateExecDataset(actualUpdate, dataset, initialBinding, cxt, f);
return uExec;
}
Aggregations