Class SparqlUpdateClient
A class for connecting to a remote SPARQL update endpoint and executing updates against it using the System.Net.Http library.
Inheritance
System.Object
SparqlUpdateClient
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Update
Assembly: dotNetRdf.dll
Syntax
public class SparqlUpdateClient : IConfigurationSerializable
Constructors
| Improve this Doc 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 |
---|---|---|
System.Net.Http.HttpClient | httpClient | The underlying HTTP client to use for all connections to the remote endpoint. |
System.Uri | endpointUri | The URI of the remote endpoint to connect to. |
Properties
| Improve this Doc View SourceEndpointUri
The URI of the SPARQL update endpoint.
Declaration
public Uri EndpointUri { get; }
Property Value
Type | Description |
---|---|
System.Uri |
Methods
| Improve this Doc View SourceSerializeConfiguration(ConfigurationSerializationContext)
Serializes configuration for the endpoint.
Declaration
public void SerializeConfiguration(ConfigurationSerializationContext context)
Parameters
Type | Name | Description |
---|---|---|
ConfigurationSerializationContext | context | Serialization Context. |
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. |
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
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 |
---|---|
System.Threading.Tasks.Task |