Class SparqlUpdateClient
A class for connecting to a remote SPARQL update endpoint and executing updates against it using the System.Net.Http library.
Implements
Inherited Members
Namespace: VDS.RDF.Update
Assembly: dotNetRdf.dll
Syntax
public class SparqlUpdateClient : IConfigurationSerializable
  Constructors
| Edit this page View SourceSparqlUpdateClient(HttpClient, Uri)
Creates a new SPARQL Update client for the given endpoint URI.
Declaration
public SparqlUpdateClient(HttpClient httpClient, Uri endpointUri)
  Parameters
| Type | Name | Description | 
|---|---|---|
| HttpClient | httpClient | The underlying HTTP client to use for all connections to the remote endpoint.  | 
      
| Uri | endpointUri | The URI of the remote endpoint to connect to.  | 
      
Properties
| Edit this page View SourceEndpointUri
The URI of the SPARQL update endpoint.
Declaration
public Uri EndpointUri { get; }
  Property Value
| Type | Description | 
|---|---|
| Uri | 
Methods
| Edit this page View SourceSerializeConfiguration(ConfigurationSerializationContext)
Serializes configuration for the endpoint.
Declaration
public void SerializeConfiguration(ConfigurationSerializationContext context)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ConfigurationSerializationContext | context | Serialization Context.  | 
      
UpdateAsync(string)
Makes an update request to the remote endpoint.
Declaration
public Task UpdateAsync(string sparqlUpdate)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | sparqlUpdate | The SPARQL Update request.  | 
      
Returns
| Type | Description | 
|---|---|
| Task | 
UpdateAsync(string, CancellationToken)
Makes an update request to the remote endpoint.
Declaration
public Task UpdateAsync(string sparqlUpdate, CancellationToken cancellationToken)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | sparqlUpdate | The SPARQL Update request.  | 
      
| CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation.  | 
      
Returns
| Type | Description | 
|---|---|
| Task |