/** Create an UpdateProcessor appropriate to the datasetGraph, or null if no available factory to make an UpdateProcessor * @param dataset * @param inputBinding Initial binding to be applied to Update operations that can apply an initial binding (i.e. UpdateDeleteWhere, UpdateModify) * @return UpdateProcessor or null */ public static UpdateProcessorStreaming createStreaming(Dataset dataset, QuerySolution inputBinding) { return createStreaming(dataset.asDatasetGraph(), BindingUtils.asBinding(inputBinding)) ; }
/** Create an UpdateProcessor appropriate to the datasetGraph, or null if no available factory to make an UpdateProcessor * @param dataset * @param inputBinding Initial binding to be applied to Update operations that can apply an initial binding (i.e. UpdateDeleteWhere, UpdateModify) * @param context (null means use merge of global and graph store context)) * @return UpdateProcessor or null */ public static UpdateProcessorStreaming createStreaming(Dataset dataset, QuerySolution inputBinding, Context context) { return createStreaming(dataset.asDatasetGraph(), BindingUtils.asBinding(inputBinding), context) ; }
UpdateProcessorStreaming uProc = UpdateExecutionFactory.createStreaming(dataset, inputBinding) ; if (uProc == null) throw new ARQException("No suitable update procesors are registered/able to execute your updates");