Class TpfLiveGraph
A graph that dispatches all operations to a Triple Pattern Fragments (TPF) endpoint.
Inherited Members
Namespace: VDS.RDF.LDF.Client
Assembly: dotNetRdf.Ldf.dll
Syntax
public class TpfLiveGraph : Graph, IGraph, INodeFactory, IDisposable, ITripleIndex, IEquatable<IGraph>, IEquatable<Graph>
Remarks
Caution: All operations on this graph lead to (potentially numerous) network requests. This presents complexity characteristics that are very different from those you might expect from in-memory implementations of the interface.
This graph, like LDF itself, does not support
- blank nodes,
- quoted triples or
- mutation.
Constructors
| Edit this page View SourceTpfLiveGraph(Uri, IRdfReader, Loader)
Initializes a new instance of the TpfLiveGraph class.
Declaration
public TpfLiveGraph(Uri baseUri, IRdfReader reader = null, Loader loader = null)
Parameters
Type | Name | Description |
---|---|---|
Uri | baseUri | The URI of the TPF endpoint used to obtain triples. |
IRdfReader | reader | (Optional) The reader to be used for parsing LDF responses (Turtle by default). |
Loader | loader | (Optional) The loader to be used when sending LDF requests (Loader by default). |
Remarks
When this constructor is called then a network request will be sent to gather the LDF metadata.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
Properties
| Edit this page View SourceAllQuotedNodes
This graph returns no quoted nodes because Linked Data Fragments does not support RDF*.
Declaration
public override IEnumerable<INode> AllQuotedNodes { get; }
Property Value
Type | Description |
---|---|
IEnumerable<INode> |
Overrides
Exceptions
Type | Condition |
---|---|
LdfException | Throw under various circumstances to represent operations that are illigal in the context of LDF or when this client is not compatible with the response from the LDF endpoint. |
QuotedNodes
This graph returns no quoted nodes because Linked Data Fragments does not support RDF*.
Declaration
public override IEnumerable<INode> QuotedNodes { get; }
Property Value
Type | Description |
---|---|
IEnumerable<INode> |
Overrides
Exceptions
Type | Condition |
---|---|
LdfException | Throw under various circumstances to represent operations that are illigal in the context of LDF or when this client is not compatible with the response from the LDF endpoint. |
QuotedTriples
This graph returns no quoted triples because Linked Data Fragments does not support RDF*.
Declaration
public override IEnumerable<Triple> QuotedTriples { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Triple> |
Overrides
Exceptions
Type | Condition |
---|---|
LdfException | Throw under various circumstances to represent operations that are illigal in the context of LDF or when this client is not compatible with the response from the LDF endpoint. |
Methods
| Edit this page View SourceAssert(IEnumerable<Triple>)
This graph cannot assert triples because Linked Data Fragments does not support mutation.
Declaration
public override bool Assert(IEnumerable<Triple> _)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Triple> | _ | Ignored. |
Returns
Type | Description |
---|---|
bool | Nothing. |
Overrides
Exceptions
Type | Condition |
---|---|
NotSupportedException | Always. |
Assert(Triple)
This graph cannot assert a triple because Linked Data Fragments does not support mutation.
Declaration
public override bool Assert(Triple _)
Parameters
Type | Name | Description |
---|---|---|
Triple | _ | Ignored. |
Returns
Type | Description |
---|---|
bool | Nothing. |
Overrides
Exceptions
Type | Condition |
---|---|
NotSupportedException | Always. |
Clear()
This graph cannot be cleared because Linked Data Fragments does not support mutation.
Declaration
public override void Clear()
Overrides
Exceptions
Type | Condition |
---|---|
NotSupportedException | Always. |
ContainsQuotedTriple(Triple)
This graph does not contain any quoted triples because Linked Data Fragments does not support RDF*.
Declaration
public override bool ContainsQuotedTriple(Triple _)
Parameters
Type | Name | Description |
---|---|---|
Triple | _ | Ignored. |
Returns
Type | Description |
---|---|
bool | False. |
Overrides
Exceptions
Type | Condition |
---|---|
LdfException | Throw under various circumstances to represent operations that are illigal in the context of LDF or when this client is not compatible with the response from the LDF endpoint. |
Equals(IGraph, out Dictionary<INode, INode>)
Determines whether this graph is equal to the other
graph.
Declaration
public override bool Equals(IGraph other, out Dictionary<INode, INode> mapping)
Parameters
Type | Name | Description |
---|---|---|
IGraph | other | Graph to test for equality. |
Dictionary<INode, INode> | mapping | Always null because Linked Data Fragments does not support blank nodes. |
Returns
Type | Description |
---|---|
bool | Whether this graph is equal to the |
Overrides
Remarks
LDF graphs are equal to each other if their search templates are the same.
An LDF graph might be equal to other graph types if they contain the same triples.
Caution: Comparing LDF graphs to other types of graphs requires enumerating all statements in the LDF graph, which potentially involves numerous network requests.
Exceptions
Type | Condition |
---|---|
LdfException | Throw under various circumstances to represent operations that are illigal in the context of LDF or when this client is not compatible with the response from the LDF endpoint. |
GetBlankNode(string)
This graph returns no blank nodes because Linked Data Fragments does not support blank nodes.
Declaration
public override IBlankNode GetBlankNode(string _)
Parameters
Type | Name | Description |
---|---|---|
string | _ | Ignored. |
Returns
Type | Description |
---|---|
IBlankNode | Null. |
Overrides
Exceptions
Type | Condition |
---|---|
LdfException | Throw under various circumstances to represent operations that are illigal in the context of LDF or when this client is not compatible with the response from the LDF endpoint. |
GetQuoted(Uri)
This graph returns no quoted triples because Linked Data Fragments does not support RDF*.
Declaration
public override IEnumerable<Triple> GetQuoted(Uri _)
Parameters
Type | Name | Description |
---|---|---|
Uri | _ | Ignored. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> | Empty. |
Overrides
Exceptions
Type | Condition |
---|---|
LdfException | Throw under various circumstances to represent operations that are illigal in the context of LDF or when this client is not compatible with the response from the LDF endpoint. |
GetQuoted(INode)
This graph returns no quoted triples because Linked Data Fragments does not support RDF*.
Declaration
public override IEnumerable<Triple> GetQuoted(INode _)
Parameters
Type | Name | Description |
---|---|---|
INode | _ | Ignored. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> | Empty. |
Overrides
Exceptions
Type | Condition |
---|---|
LdfException | Throw under various circumstances to represent operations that are illigal in the context of LDF or when this client is not compatible with the response from the LDF endpoint. |
GetQuotedWithObject(Uri)
This graph returns no quoted triples because Linked Data Fragments does not support RDF*.
Declaration
public override IEnumerable<Triple> GetQuotedWithObject(Uri _)
Parameters
Type | Name | Description |
---|---|---|
Uri | _ | Ignored. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> | Empty. |
Overrides
Exceptions
Type | Condition |
---|---|
LdfException | Throw under various circumstances to represent operations that are illigal in the context of LDF or when this client is not compatible with the response from the LDF endpoint. |
GetQuotedWithObject(INode)
This graph returns no quoted triples because Linked Data Fragments does not support RDF*.
Declaration
public override IEnumerable<Triple> GetQuotedWithObject(INode _)
Parameters
Type | Name | Description |
---|---|---|
INode | _ | Ignored. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> | Empty. |
Overrides
Exceptions
Type | Condition |
---|---|
LdfException | Throw under various circumstances to represent operations that are illigal in the context of LDF or when this client is not compatible with the response from the LDF endpoint. |
GetQuotedWithPredicate(Uri)
This graph returns no quoted triples because Linked Data Fragments does not support RDF*.
Declaration
public override IEnumerable<Triple> GetQuotedWithPredicate(Uri _)
Parameters
Type | Name | Description |
---|---|---|
Uri | _ | Ignored. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> | Empty. |
Overrides
Exceptions
Type | Condition |
---|---|
LdfException | Throw under various circumstances to represent operations that are illigal in the context of LDF or when this client is not compatible with the response from the LDF endpoint. |
GetQuotedWithPredicate(INode)
This graph returns no quoted triples because Linked Data Fragments does not support RDF*.
Declaration
public override IEnumerable<Triple> GetQuotedWithPredicate(INode _)
Parameters
Type | Name | Description |
---|---|---|
INode | _ | Ignored. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> | Empty. |
Overrides
Exceptions
Type | Condition |
---|---|
LdfException | Throw under various circumstances to represent operations that are illigal in the context of LDF or when this client is not compatible with the response from the LDF endpoint. |
GetQuotedWithPredicateObject(INode, INode)
This graph returns no quoted triples because Linked Data Fragments does not support RDF*.
Declaration
public override IEnumerable<Triple> GetQuotedWithPredicateObject(INode _, INode __)
Parameters
Type | Name | Description |
---|---|---|
INode | _ | Ignored. |
INode | __ | Ignored. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> | Empty. |
Overrides
Exceptions
Type | Condition |
---|---|
LdfException | Throw under various circumstances to represent operations that are illigal in the context of LDF or when this client is not compatible with the response from the LDF endpoint. |
GetQuotedWithSubject(Uri)
This graph returns no quoted triples because Linked Data Fragments does not support RDF*.
Declaration
public override IEnumerable<Triple> GetQuotedWithSubject(Uri _)
Parameters
Type | Name | Description |
---|---|---|
Uri | _ | Ignored. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> | Empty. |
Overrides
Exceptions
Type | Condition |
---|---|
LdfException | Throw under various circumstances to represent operations that are illigal in the context of LDF or when this client is not compatible with the response from the LDF endpoint. |
GetQuotedWithSubject(INode)
This graph returns no quoted triples because Linked Data Fragments does not support RDF*.
Declaration
public override IEnumerable<Triple> GetQuotedWithSubject(INode _)
Parameters
Type | Name | Description |
---|---|---|
INode | _ | Ignored. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> | Empty. |
Overrides
Exceptions
Type | Condition |
---|---|
LdfException | Throw under various circumstances to represent operations that are illigal in the context of LDF or when this client is not compatible with the response from the LDF endpoint. |
GetQuotedWithSubjectObject(INode, INode)
This graph returns no quoted triples because Linked Data Fragments does not support RDF*.
Declaration
public override IEnumerable<Triple> GetQuotedWithSubjectObject(INode _, INode __)
Parameters
Type | Name | Description |
---|---|---|
INode | _ | Ignored. |
INode | __ | Ignored. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> | Empty. |
Overrides
Exceptions
Type | Condition |
---|---|
LdfException | Throw under various circumstances to represent operations that are illigal in the context of LDF or when this client is not compatible with the response from the LDF endpoint. |
GetQuotedWithSubjectPredicate(INode, INode)
This graph returns no quoted triples because Linked Data Fragments does not support RDF*.
Declaration
public override IEnumerable<Triple> GetQuotedWithSubjectPredicate(INode _, INode __)
Parameters
Type | Name | Description |
---|---|---|
INode | _ | Ignored. |
INode | __ | Ignored. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> | Empty. |
Overrides
Exceptions
Type | Condition |
---|---|
LdfException | Throw under various circumstances to represent operations that are illigal in the context of LDF or when this client is not compatible with the response from the LDF endpoint. |
Merge(IGraph)
This graph cannot merge another because Linked Data Fragments does not support mutation.
Declaration
public override void Merge(IGraph _)
Parameters
Type | Name | Description |
---|---|---|
IGraph | _ | Ignored. |
Overrides
Exceptions
Type | Condition |
---|---|
NotSupportedException | Always. |
Merge(IGraph, bool)
This graph cannot merge another because Linked Data Fragments does not support mutation.
Declaration
public override void Merge(IGraph _, bool __)
Parameters
Type | Name | Description |
---|---|---|
IGraph | _ | Ignored. |
bool | __ | Ignored. |
Overrides
Exceptions
Type | Condition |
---|---|
NotSupportedException | Always. |
Retract(IEnumerable<Triple>)
This graph cannot retract triples because Linked Data Fragments does not support mutation.
Declaration
public override bool Retract(IEnumerable<Triple> _)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Triple> | _ | Ignored. |
Returns
Type | Description |
---|---|
bool | Nothing. |
Overrides
Exceptions
Type | Condition |
---|---|
NotSupportedException | Always. |
Retract(Triple)
This graph cannot retract a triple because Linked Data Fragments does not support mutation.
Declaration
public override bool Retract(Triple _)
Parameters
Type | Name | Description |
---|---|---|
Triple | _ | Ignored. |
Returns
Type | Description |
---|---|
bool | Nothing. |
Overrides
Exceptions
Type | Condition |
---|---|
NotSupportedException | Always. |