Class UpdateExecutionFactory

java.lang.Object
org.apache.jena.update.UpdateExecutionFactory

public class UpdateExecutionFactory extends Object
Create UpdateExecution execution objects.

For more control of building a local or remote UpdateExecution object see the builder pattern:

  • UpdateExecution.create(). ... .build() for querying local data.
  • UpdateProcessorHTTP.service(url). ... .build() for querying a remote store using HTTP.

See also RDFConnection for working with SPARQL Query, SPARQL Update and SPARQL Graph Store Protocol together.

See Also:
  • Constructor Details

    • UpdateExecutionFactory

      public UpdateExecutionFactory()
  • Method Details

    • create

      public static UpdateExecution create(Update update, Dataset dataset)
      Create an UpdateExecution appropriate to the datasetGraph, or null if no available factory to make an UpdateExecution
      Parameters:
      update -
      dataset -
      Returns:
      UpdateExecution
    • create

      @Deprecated public static UpdateExec create(Update update, DatasetGraph datasetGraph)
      Deprecated.
      Use UpdateExec.dataset(datasetGraph)... build();
      Create an UpdateExecution appropriate to the datasetGraph, or null if no available factory to make an UpdateExecution
      Parameters:
      update -
      datasetGraph -
      Returns:
      UpdateExec
    • create

      @Deprecated public static UpdateExec create(Update update, Dataset dataset, QuerySolution inputBinding)
      Deprecated.
      Use UpdateExecution.dataset(dataset)... build()
      Create an UpdateExecution appropriate to the datasetGraph, or null if no available factory to make an UpdateExecution
      Parameters:
      update -
      dataset -
      inputBinding - Initial binding to be applied to Update operations that can apply an initial binding (i.e. UpdateDeleteWhere, UpdateModify)
      Returns:
      UpdateExec
    • create

      @Deprecated public static UpdateExec create(Update update, DatasetGraph datasetGraph, Binding inputBinding)
      Deprecated.
      Use UpdateExec.dataset(datasetGraph)... build()
      Create an UpdateExecution appropriate to the datasetGraph, or null if no available factory to make an UpdateExecution
      Parameters:
      update -
      datasetGraph -
      inputBinding - Initial binding to be applied to Update operations that can apply an initial binding (i.e. UpdateDeleteWhere, UpdateModify)
      Returns:
      UpdateExec
    • create

      public static UpdateExecution create(UpdateRequest updateRequest, Dataset dataset)
      Create an UpdateExecution appropriate to the datasetGraph, or null if no available factory to make an UpdateExecution
      Parameters:
      updateRequest -
      dataset -
      Returns:
      UpdateExecution
    • create

      @Deprecated public static UpdateExec create(UpdateRequest updateRequest, DatasetGraph datasetGraph)
      Deprecated.
      Use UpdateExec.dataset(datasetGraph)... build()
      Create an UpdateExecution appropriate to the datasetGraph, or null if no available factory to make an UpdateExecution
      Parameters:
      updateRequest -
      datasetGraph -
      Returns:
      UpdateExec
    • create

      @Deprecated public static UpdateExecution create(UpdateRequest updateRequest, Dataset dataset, QuerySolution inputBinding)
      Deprecated.
      Use UpdateExecution.dataset(dataset)... build()
      Create an UpdateExecution appropriate to the datasetGraph, or null if no available factory to make an UpdateExecution
      Parameters:
      updateRequest -
      dataset -
      inputBinding - Initial binding to be applied to Update operations that can apply an initial binding (i.e. UpdateDeleteWhere, UpdateModify)
      Returns:
      UpdateExecution
    • create

      @Deprecated public static UpdateExec create(UpdateRequest updateRequest, DatasetGraph datasetGraph, Binding inputBinding)
      Deprecated.
      Use UpdateExec.dataset(datasetGraph)... build()
      Create an UpdateExecution appropriate to the datasetGraph, or null if no available factory to make an UpdateExecution
      Parameters:
      updateRequest -
      datasetGraph -
      inputBinding - Initial binding to be applied to Update operations that can apply an initial binding (i.e. UpdateDeleteWhere, UpdateModify)
      Returns:
      UpdateExec
    • create

      public static UpdateExecution create(UpdateRequest updateRequest, Dataset dataset, Context context)
      Create an UpdateExecution appropriate to the datasetGraph, or null if no available factory to make an UpdateExecution
      Parameters:
      updateRequest -
      dataset -
      context - (null means use merge of global and graph store context))
      Returns:
      UpdateExecution
    • create

      @Deprecated public static UpdateExec create(UpdateRequest updateRequest, DatasetGraph datasetGraph, Context context)
      Deprecated.
      Use UpdateExec.dataset(datasetGraph)... build()
      Create an UpdateExecution appropriate to the datasetGraph, or null if no available factory to make an UpdateExecution
      Parameters:
      updateRequest -
      datasetGraph -
      context - (null means use merge of global and graph store context))
      Returns:
      UpdateExec
    • create

      @Deprecated public static UpdateExecution create(UpdateRequest updateRequest, Dataset dataset, QuerySolution inputBinding, Context context)
      Deprecated.
      Use UpdateExecution.dataset(dataset)... build()
      Create an UpdateExecution appropriate to the datasetGraph, or null if no available factory to make an UpdateExecution
      Parameters:
      updateRequest -
      dataset -
      inputBinding - Initial binding to be applied to Update operations that can apply an initial binding (i.e. UpdateDeleteWhere, UpdateModify)
      context - (null means use merge of global and graph store context))
      Returns:
      UpdateExecution
    • create

      @Deprecated public static UpdateExec create(UpdateRequest updateRequest, DatasetGraph datasetGraph, Binding inputBinding, Context context)
      Deprecated.
      Use UpdateExecution.dataset(dataset)... build()
      Create an UpdateExecution appropriate to the datasetGraph, or null if no available factory to make an UpdateExecution
      Parameters:
      updateRequest -
      datasetGraph -
      inputBinding - Initial binding to be applied to Update operations that can apply an initial binding (i.e. UpdateDeleteWhere, UpdateModify)
      context - (null means use merge of global and graph store context))
      Returns:
      UpdateExec
    • createStreaming

      public static UpdateProcessorStreaming createStreaming(Dataset dataset)
      Create an UpdateExecution appropriate to the datasetGraph, or null if no available factory to make an UpdateExecution
      Parameters:
      dataset -
      Returns:
      UpdateExecution
    • createStreaming

      @Deprecated public static UpdateProcessorStreaming createStreaming(DatasetGraph datasetGraph)
      Deprecated.
      Create an UpdateExecution appropriate to the datasetGraph, or null if no available factory to make an UpdateExecution
      Parameters:
      datasetGraph -
      Returns:
      UpdateExecution
    • createStreaming

      @Deprecated public static UpdateProcessorStreaming createStreaming(Dataset dataset, QuerySolution inputBinding)
      Deprecated.
      Create an UpdateExecution appropriate to the datasetGraph, or null if no available factory to make an UpdateExecution
      Parameters:
      dataset -
      inputBinding - Initial binding to be applied to Update operations that can apply an initial binding (i.e. UpdateDeleteWhere, UpdateModify)
      Returns:
      UpdateExecution
    • createStreaming

      @Deprecated public static UpdateProcessorStreaming createStreaming(DatasetGraph datasetGraph, Binding inputBinding)
      Deprecated.
      Use UpdateExecution.dataset(dataset)... build()
      Create an UpdateExecution appropriate to the datasetGraph, or null if no available factory to make an UpdateExecution
      Parameters:
      datasetGraph -
      inputBinding - Initial binding to be applied to Update operations that can apply an initial binding (i.e. UpdateDeleteWhere, UpdateModify)
      Returns:
      UpdateExecution
    • createStreaming

      @Deprecated public static UpdateProcessorStreaming createStreaming(Dataset dataset, Context context)
      Deprecated.
      Create an UpdateExecution appropriate to the datasetGraph, or null if no available factory to make an UpdateExecution
      Parameters:
      dataset -
      context - (null means use merge of global and graph store context))
      Returns:
      UpdateExecution
    • createStreaming

      @Deprecated public static UpdateProcessorStreaming createStreaming(DatasetGraph datasetGraph, Context context)
      Deprecated.
      Create an UpdateExecution appropriate to the datasetGraph, or null if no available factory to make an UpdateExecution
      Parameters:
      datasetGraph -
      context - (null means use merge of global and graph store context))
      Returns:
      UpdateExecution
    • createStreaming

      @Deprecated public static UpdateProcessorStreaming createStreaming(Dataset dataset, QuerySolution inputBinding, Context context)
      Deprecated.
      Use UpdateExecution.dataset(dataset)... build()
      Create an UpdateExecution appropriate to the datasetGraph, or null if no available factory to make an UpdateExecution
      Parameters:
      dataset -
      inputBinding - Initial binding to be applied to Update operations that can apply an initial binding (i.e. UpdateDeleteWhere, UpdateModify)
      context - (null means use merge of global and graph store context))
      Returns:
      UpdateExecution
    • createStreaming

      @Deprecated public static UpdateProcessorStreaming createStreaming(DatasetGraph datasetGraph, Binding inputBinding, Context context)
      Deprecated.
      Use UpdateExecution.dataset(dataset)... build()
      Create an UpdateExecution appropriate to the datasetGraph, or null if no available factory to make an UpdateExecution
      Parameters:
      datasetGraph -
      inputBinding - Initial binding to be applied to Update operations that can apply an initial binding (i.e. UpdateDeleteWhere, UpdateModify)
      context - (null means use merge of global and graph store context))
      Returns:
      UpdateExecution
    • createRemote

      public static UpdateExecution createRemote(Update update, String remoteEndpoint)
      Create an UpdateExecution that sends the update to a remote SPARQL Update service.
      Parameters:
      update - Updates
      remoteEndpoint - Endpoint URL
      Returns:
      Remote Update processor
    • createRemote

      @Deprecated public static UpdateExecution createRemote(Update update, String remoteEndpoint, Context context)
      Deprecated.
      Use UpdateExecution.service(remoteEndpoint)...build();
      Create an UpdateExecution that sends the update to a remote SPARQL Update service.
      Parameters:
      update - Updates
      remoteEndpoint - Endpoint URL
      context - Context
      Returns:
      Remote Update processor
    • createRemote

      @Deprecated public static UpdateExecution createRemote(UpdateRequest updateRequest, String remoteEndpoint)
      Deprecated.
      Use UpdateExecution.service(remoteEndpoint)...build();
      Create an UpdateExecution that sends the update request to a remote SPARQL Update service.
      Parameters:
      updateRequest - Updates
      remoteEndpoint - Endpoint URL
      Returns:
      Remote Update processor
    • createRemote

      @Deprecated public static UpdateExecution createRemote(UpdateRequest updateRequest, String remoteEndpoint, Context context)
      Deprecated.
      Use UpdateExecution.service(remoteEndpoint)...build();
      Create an UpdateExecution that sends the update request to a remote SPARQL Update service.
      Parameters:
      updateRequest - Updates
      remoteEndpoint - Endpoint URL
      context - Context
      Returns:
      Remote Update processor
    • createRemoteForm

      @Deprecated public static UpdateExecution createRemoteForm(Update update, String remoteEndpoint)
      Deprecated.
      Use UpdateExecution.service(remoteEndpoint).snedMode(UpdateSendMode.asPostForm)..build();
      Create an UpdateExecution that sends the update request to a remote SPARQL Update service using an HTML form. Using an HTML form should be avoided unless the endpoint does not offer POST application/sparql-update.
      Parameters:
      update - Updates
      remoteEndpoint - Endpoint URL
      Returns:
      Remote Update processor
    • createRemoteForm

      @Deprecated public static UpdateExecution createRemoteForm(Update update, String remoteEndpoint, Context context)
      Deprecated.
      Use UpdateExecution.service(remoteEndpoint)...build();
      Create an UpdateExecution that sends the update request to a remote SPARQL Update service using an HTML form. Using an HTML form should be avoided unless the endpoint does not offer POST application/sparql-update.
      Parameters:
      update - Updates
      remoteEndpoint - Endpoint URL
      context - Context
      Returns:
      Remote Update processor
    • createRemoteForm

      public static UpdateExecution createRemoteForm(UpdateRequest updateRequest, String remoteEndpoint)
      Create an UpdateExecution that sends the update request to a remote SPARQL Update service using an HTML form. Using an HTML form should be avoided unless the endpoint does not offer POST application/sparql-update.
      Parameters:
      updateRequest - Updates
      remoteEndpoint - Endpoint URL
      Returns:
      Remote Update processor
    • createRemoteForm

      @Deprecated public static UpdateExecution createRemoteForm(UpdateRequest updateRequest, String remoteEndpoint, Context context)
      Deprecated.
      Use UpdateExecution.service(remoteEndpoint)...build();
      Create an UpdateExecution that sends the update request to a remote SPARQL Update service using an HTML form. Using an HTML form should be avoided unless the endpoint does not offer POST application/sparql-update.
      Parameters:
      updateRequest - Updates
      remoteEndpoint - Endpoint URL
      context - Context
      Returns:
      Remote Update processor