Class ReadWriteSparqlConnector
Class for connecting to any SPARQL server that provides both a query and update endpoint.
Implements
Inherited Members
Namespace: VDS.RDF.Storage
Assembly: dotNetRdf.dll
Syntax
public class ReadWriteSparqlConnector : SparqlConnector, IConfigurationSerializable, IUpdateableStorage, IQueryableStorage, IStorageProvider, IStorageCapabilities, IDisposable
Remarks
This class is a wrapper around a Sparql
Unlike other HTTP based connectors this connector does not derive from Base
Constructors
| Improve this Doc View SourceReadWriteSparqlConnector(Uri, Uri, SparqlConnectorLoadMethod)
Creates a new connection.
Declaration
public ReadWriteSparqlConnector(Uri queryEndpoint, Uri updateEndpoint, SparqlConnectorLoadMethod mode)
Parameters
Type | Name | Description |
---|---|---|
System. |
queryEndpoint | Query Endpoint. |
System. |
updateEndpoint | Update Endpoint. |
Sparql |
mode | Method for loading graphs. |
Remarks
This class is a wrapper around a Sparql
Unlike other HTTP based connectors this connector does not derive from Base
ReadWriteSparqlConnector(Uri, Uri)
Creates a new connection.
Declaration
public ReadWriteSparqlConnector(Uri queryEndpoint, Uri updateEndpoint)
Parameters
Type | Name | Description |
---|---|---|
System. |
queryEndpoint | Query Endpoint. |
System. |
updateEndpoint | Update Endpoint. |
Remarks
This class is a wrapper around a Sparql
Unlike other HTTP based connectors this connector does not derive from Base
ReadWriteSparqlConnector(SparqlQueryClient, SparqlUpdateClient, SparqlConnectorLoadMethod)
Creates a new connector.
Declaration
public ReadWriteSparqlConnector(SparqlQueryClient queryClient, SparqlUpdateClient updateClient, SparqlConnectorLoadMethod loadMethod = SparqlConnectorLoadMethod.Construct)
Parameters
Type | Name | Description |
---|---|---|
Sparql |
queryClient | The SPARQL query client to use. |
Sparql |
updateClient | The SPARQL update client to use. |
Sparql |
loadMethod | The method to use for loading graphs. |
Remarks
This class is a wrapper around a Sparql
Unlike other HTTP based connectors this connector does not derive from Base
ReadWriteSparqlConnector(SparqlRemoteEndpoint, SparqlRemoteUpdateEndpoint, SparqlConnectorLoadMethod)
Creates a new connection.
Declaration
[Obsolete("Replaced by ReadWriteSparqlConnector(SparqlQueryClient, SparqlUpdateClient, SparqlConnectorLoadMethod")]
public ReadWriteSparqlConnector(SparqlRemoteEndpoint queryEndpoint, SparqlRemoteUpdateEndpoint updateEndpoint, SparqlConnectorLoadMethod mode)
Parameters
Type | Name | Description |
---|---|---|
Sparql |
queryEndpoint | Query Endpoint. |
Sparql |
updateEndpoint | Update Endpoint. |
Sparql |
mode | Method for loading graphs. |
Remarks
This class is a wrapper around a Sparql
Unlike other HTTP based connectors this connector does not derive from Base
ReadWriteSparqlConnector(SparqlRemoteEndpoint, SparqlRemoteUpdateEndpoint)
Creates a new connection.
Declaration
[Obsolete("Replaced by ReadWriteSparqlConnector(SparqlQueryClient, SparqlUpdateClient, SparqlConnectorLoadMethod")]
public ReadWriteSparqlConnector(SparqlRemoteEndpoint queryEndpoint, SparqlRemoteUpdateEndpoint updateEndpoint)
Parameters
Type | Name | Description |
---|---|---|
Sparql |
queryEndpoint | Query Endpoint. |
Sparql |
updateEndpoint | Update Endpoint. |
Remarks
This class is a wrapper around a Sparql
Unlike other HTTP based connectors this connector does not derive from Base
Properties
| Improve this Doc View SourceDeleteSupported
Gets that deleting graphs is supported.
Declaration
public override bool DeleteSupported { get; }
Property Value
Type | Description |
---|---|
System. |
Overrides
Remarks
This class is a wrapper around a Sparql
Unlike other HTTP based connectors this connector does not derive from Base
IOBehaviour
Gets the IO behaviour for the store.
Declaration
public override IOBehaviour IOBehaviour { get; }
Property Value
Type | Description |
---|---|
IOBehaviour |
Overrides
Remarks
This class is a wrapper around a Sparql
Unlike other HTTP based connectors this connector does not derive from Base
IsReadOnly
Gets that the store is not read-only.
Declaration
public override bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System. |
Overrides
Remarks
This class is a wrapper around a Sparql
Unlike other HTTP based connectors this connector does not derive from Base
Timeout
Gets/Sets the HTTP Timeout in milliseconds used for communicating with the SPARQL Endpoint.
Declaration
[Obsolete("This property is only used by the obsolete SparqlRemoteEndpoint-backed implementation.")]
public override int Timeout { get; set; }
Property Value
Type | Description |
---|---|
int |
Overrides
Remarks
This class is a wrapper around a Sparql
Unlike other HTTP based connectors this connector does not derive from Base
UpdateClient
Gets the underlying Sparql
Declaration
public SparqlUpdateClient UpdateClient { get; }
Property Value
Type | Description |
---|---|
Sparql |
Remarks
This class is a wrapper around a Sparql
Unlike other HTTP based connectors this connector does not derive from Base
UpdateEndpoint
Gets the underlying Sparql
Declaration
[TypeConverter(typeof(ExpandableObjectConverter))]
[Obsolete]
public SparqlRemoteUpdateEndpoint UpdateEndpoint { get; }
Property Value
Type | Description |
---|---|
Sparql |
Remarks
This class is a wrapper around a Sparql
Unlike other HTTP based connectors this connector does not derive from Base
UpdateSupported
Gets that triple level updates are supported, see the remarks section of the Read
Declaration
public override bool UpdateSupported { get; }
Property Value
Type | Description |
---|---|
System. |
Overrides
Remarks
This class is a wrapper around a Sparql
Unlike other HTTP based connectors this connector does not derive from Base
Methods
| Improve this Doc View SourceDeleteGraph(string)
Deletes a graph from the store.
Declaration
public override void DeleteGraph(string graphUri)
Parameters
Type | Name | Description |
---|---|---|
string | graphUri | URI of the graph to delete. |
Overrides
Remarks
This class is a wrapper around a Sparql
Unlike other HTTP based connectors this connector does not derive from Base
DeleteGraph(Uri)
Deletes a graph from the store.
Declaration
public override void DeleteGraph(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
System. |
graphUri | URI of the graph to delete. |
Overrides
Remarks
This class is a wrapper around a Sparql
Unlike other HTTP based connectors this connector does not derive from Base
SaveGraph(IGraph)
Saves a graph to the store.
Declaration
public override void SaveGraph(IGraph g)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to save. |
Overrides
Remarks
This class is a wrapper around a Sparql
Unlike other HTTP based connectors this connector does not derive from Base
SerializeConfiguration(ConfigurationSerializationContext)
Serializes the connection's configuration.
Declaration
public override void SerializeConfiguration(ConfigurationSerializationContext context)
Parameters
Type | Name | Description |
---|---|---|
Configuration |
context | Configuration Serialization Context. |
Overrides
Remarks
This class is a wrapper around a Sparql
Unlike other HTTP based connectors this connector does not derive from Base
ToString()
Gets a String which gives details of the Connection.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Overrides
Remarks
This class is a wrapper around a Sparql
Unlike other HTTP based connectors this connector does not derive from Base
Update(string)
Makes a SPARQL Update against the store.
Declaration
public void Update(string sparqlUpdate)
Parameters
Type | Name | Description |
---|---|---|
string | sparqlUpdate | SPARQL Update. |
Remarks
This class is a wrapper around a Sparql
Unlike other HTTP based connectors this connector does not derive from Base
UpdateGraph(string, IEnumerable<Triple>, IEnumerable<Triple>)
Updates a graph in the store.
Declaration
public override void UpdateGraph(string graphUri, IEnumerable<Triple> additions, IEnumerable<Triple> removals)
Parameters
Type | Name | Description |
---|---|---|
string | graphUri | URI of the graph to update. |
System. |
additions | Triples to add. |
System. |
removals | Triples to remove. |
Overrides
Remarks
This class is a wrapper around a Sparql
Unlike other HTTP based connectors this connector does not derive from Base
UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>)
Updates a graph in the store.
Declaration
public override void UpdateGraph(Uri graphUri, IEnumerable<Triple> additions, IEnumerable<Triple> removals)
Parameters
Type | Name | Description |
---|---|---|
System. |
graphUri | URI of the graph to update. |
System. |
additions | Triples to add. |
System. |
removals | Triples to remove. |
Overrides
Remarks
This class is a wrapper around a Sparql
Unlike other HTTP based connectors this connector does not derive from Base