Class FederatedSparqlRemoteEndpoint
A Class for connecting to multiple remote SPARQL Endpoints and federating queries over them with the data merging done locally.
Inheritance
System.Object
FederatedSparqlRemoteEndpoint
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: dotNetRDF.dll
Syntax
public class FederatedSparqlRemoteEndpoint : SparqlRemoteEndpoint, IConfigurationSerializable
Constructors
|
Improve this Doc
View Source
FederatedSparqlRemoteEndpoint(IEnumerable<Uri>)
Creates a new Federated SPARQL Endpoint by creating a
SparqlRemoteEndpoint for each of the given URI.
Declaration
public FederatedSparqlRemoteEndpoint(IEnumerable<Uri> endpointUris)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.Uri> |
endpointUris |
Endpoint URIs. |
|
Improve this Doc
View Source
FederatedSparqlRemoteEndpoint(IEnumerable<SparqlRemoteEndpoint>)
Creates a new Federated SPARQL Endpoint using the given Endpoints.
Declaration
public FederatedSparqlRemoteEndpoint(IEnumerable<SparqlRemoteEndpoint> endpoints)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<SparqlRemoteEndpoint> |
endpoints |
Endpoints. |
|
Improve this Doc
View Source
FederatedSparqlRemoteEndpoint(Uri)
Declaration
public FederatedSparqlRemoteEndpoint(Uri endpointUri)
Parameters
Type |
Name |
Description |
System.Uri |
endpointUri |
Endpoint URI. |
|
Improve this Doc
View Source
FederatedSparqlRemoteEndpoint(SparqlRemoteEndpoint)
Creates a new Federated SPARQL Endpoint using a given Endpoint.
Declaration
public FederatedSparqlRemoteEndpoint(SparqlRemoteEndpoint endpoint)
Parameters
Properties
|
Improve this Doc
View Source
IgnoreFailedRequests
Gets/Sets whether a failed request on one endpoint should cause the entire request to fail.
Declaration
public bool IgnoreFailedRequests { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
MaxSimultaneousRequests
Gets/Sets the maximum number of endpoints this endpoint will issue queries to at any one time.
Declaration
public int MaxSimultaneousRequests { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
AddEndpoint(Uri)
Adds an additional endpoint to be used by this endpoint.
Declaration
public void AddEndpoint(Uri endpointUri)
Parameters
Type |
Name |
Description |
System.Uri |
endpointUri |
Endpoint URI. |
|
Improve this Doc
View Source
AddEndpoint(SparqlRemoteEndpoint)
Adds a additional endpoint to be used by this endpoint.
Declaration
public void AddEndpoint(SparqlRemoteEndpoint endpoint)
Parameters
|
Improve this Doc
View Source
QueryRaw(String)
Makes a Query to a Sparql Endpoint and returns the raw Response.
Declaration
public override HttpWebResponse QueryRaw(string sparqlQuery)
Parameters
Type |
Name |
Description |
System.String |
sparqlQuery |
Sparql Query String. |
Returns
Type |
Description |
System.Net.HttpWebResponse |
|
Overrides
Exceptions
Type |
Condition |
System.NotSupportedException |
Thrown if more than one endpoint is in use since for any federated endpoint which used more than one endpoint there is no logical/sensible way to combine the result streams. |
|
Improve this Doc
View Source
QueryRaw(String, String[])
Makes a Query to a Sparql Endpoint and returns the raw Response.
Declaration
public override HttpWebResponse QueryRaw(string sparqlQuery, string[] mimeTypes)
Parameters
Type |
Name |
Description |
System.String |
sparqlQuery |
Sparql Query String. |
System.String[] |
mimeTypes |
MIME Types to use for the Accept Header. |
Returns
Type |
Description |
System.Net.HttpWebResponse |
|
Overrides
Exceptions
Type |
Condition |
System.NotSupportedException |
Thrown if more than one endpoint is in use since for any federated endpoint which used more than one endpoint there is no logical/sensible way to combine the result streams. |
|
Improve this Doc
View Source
QueryWithResultGraph(String)
Makes a Query where the expected Result is an RDF Graph ie. CONSTRUCT and DESCRIBE Queries.
Declaration
public override IGraph QueryWithResultGraph(string sparqlQuery)
Parameters
Type |
Name |
Description |
System.String |
sparqlQuery |
SPARQL Query String. |
Returns
Type |
Description |
IGraph |
RDF Graph. |
Overrides
Exceptions
|
Improve this Doc
View Source
QueryWithResultGraph(IRdfHandler, String)
Makes a Query where the expected result is a Graph i.e. a CONSTRUCT or DESCRIBE query.
Declaration
public override void QueryWithResultGraph(IRdfHandler handler, string sparqlQuery)
Parameters
Type |
Name |
Description |
IRdfHandler |
handler |
RDF Handler to process the results. |
System.String |
sparqlQuery |
SPARQL Query. |
Overrides
|
Improve this Doc
View Source
QueryWithResultSet(String)
Makes a Query where the expected Result is a SparqlResultSet ie. SELECT and ASK Queries.
Declaration
public override SparqlResultSet QueryWithResultSet(string sparqlQuery)
Parameters
Type |
Name |
Description |
System.String |
sparqlQuery |
Sparql Query String. |
Returns
Overrides
Exceptions
|
Improve this Doc
View Source
QueryWithResultSet(ISparqlResultsHandler, String)
Makes a Query where the expected Result is a SparqlResultSet ie. SELECT and ASK Queries.
Declaration
public override void QueryWithResultSet(ISparqlResultsHandler handler, string sparqlQuery)
Parameters
Type |
Name |
Description |
ISparqlResultsHandler |
handler |
Results Handler to process the results. |
System.String |
sparqlQuery |
SPARQL Query String. |
Overrides
Exceptions
|
Improve this Doc
View Source
RemoveEndpoint(Uri)
Removes all endpoints with the given URI from this endpoint.
Declaration
public void RemoveEndpoint(Uri endpointUri)
Parameters
Type |
Name |
Description |
System.Uri |
endpointUri |
Endpoint URI. |
|
Improve this Doc
View Source
RemoveEndpoint(SparqlRemoteEndpoint)
Removes a given endpoint from this endpoint.
Declaration
public void RemoveEndpoint(SparqlRemoteEndpoint endpoint)
Parameters
|
Improve this Doc
View Source
SerializeConfiguration(ConfigurationSerializationContext)
Serializes the Endpoint's Configuration.
Declaration
public override void SerializeConfiguration(ConfigurationSerializationContext context)
Parameters
Overrides
Implements
Extension Methods