Show / Hide Table of Contents

Class SparqlUpdateClient

A class for connecting to a remote SPARQL update endpoint and executing updates against it using the System.Net.Http library.

Inheritance
object
SparqlUpdateClient
Implements
IConfigurationSerializable
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

| Edit this page View Source

SparqlUpdateClient(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 Source

EndpointUri

The URI of the SPARQL update endpoint.

Declaration
public Uri EndpointUri { get; }
Property Value
Type Description
Uri

Methods

| Edit this page View Source

SerializeConfiguration(ConfigurationSerializationContext)

Serializes configuration for the endpoint.

Declaration
public void SerializeConfiguration(ConfigurationSerializationContext context)
Parameters
Type Name Description
ConfigurationSerializationContext context

Serialization Context.

| Edit this page View Source

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
| Edit this page View Source

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

Implements

IConfigurationSerializable

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • SparqlUpdateClient(HttpClient, Uri)
  • Properties
    • EndpointUri
  • Methods
    • SerializeConfiguration(ConfigurationSerializationContext)
    • UpdateAsync(string)
    • UpdateAsync(string, CancellationToken)
  • Implements
  • Extension Methods
Back to top Generated by DocFX