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

      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

      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
    • createStreaming

      @Deprecated(forRemoval=true) public static UpdateProcessorStreaming createStreaming(Dataset dataset)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create an UpdateExecution appropriate to the datasetGraph, or null if no available factory to make an UpdateExecution
      Parameters:
      dataset -
      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

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

      public static UpdateExecution createRemoteForm(Update update, String remoteEndpoint)
      Create an UpdateExecution that sends the update 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

      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