Interface IVirtualRdfProvider<TNodeID, TGraphID>
A Virtual RDF Provider is a provider that transforms materialised values into virtual ID values. These virtual values can be used to do much faster term equality checking and to minimise memory usage when accessing out of memory data.
Assembly: dotNetRDF.dll
Syntax
public interface IVirtualRdfProvider<TNodeID, TGraphID>
Type Parameters
Name |
Description |
TNodeID |
Node ID Type. |
TGraphID |
Graph ID Type. |
Properties
|
Improve this Doc
View Source
NullID
Gets the Node ID that is used to indicate that a Node does not exist in the underlying storage.
Declaration
Property Value
Methods
|
Improve this Doc
View Source
GetBlankNodeID(IBlankNode)
Given a Blank Node returns a Graph scoped Node ID.
Declaration
TNodeID GetBlankNodeID(IBlankNode value)
Parameters
Type |
Name |
Description |
IBlankNode |
value |
Blank Node. |
Returns
|
Improve this Doc
View Source
GetBlankNodeID(IBlankNode, Boolean)
Given a Blank Node returns a Graph scoped Node ID.
Declaration
TNodeID GetBlankNodeID(IBlankNode value, bool createIfNotExists)
Parameters
Type |
Name |
Description |
IBlankNode |
value |
Blank Node. |
System.Boolean |
createIfNotExists |
Determines whether to create a new Node ID if there is not already one for the given value. |
Returns
|
Improve this Doc
View Source
GetGraphID(Uri)
Gets the Graph ID for a Graph URI.
Declaration
TGraphID GetGraphID(Uri graphUri)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph URI. |
Returns
Type |
Description |
TGraphID |
|
|
Improve this Doc
View Source
GetGraphID(Uri, Boolean)
Gets the Graph ID for a Graph URI.
Declaration
TGraphID GetGraphID(Uri graphUri, bool createIfNotExists)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph URI. |
System.Boolean |
createIfNotExists |
Determines whether to create a new Graph ID if there is not already one for the given Graph URI. |
Returns
Type |
Description |
TGraphID |
|
|
Improve this Doc
View Source
GetGraphID(IGraph)
Gets the Graph ID for a Graph.
Declaration
TGraphID GetGraphID(IGraph g)
Parameters
Type |
Name |
Description |
IGraph |
g |
Graph. |
Returns
Type |
Description |
TGraphID |
|
|
Improve this Doc
View Source
GetGraphID(IGraph, Boolean)
Gets the Graph ID for a Graph creating it if necessary.
Declaration
TGraphID GetGraphID(IGraph g, bool createIfNotExists)
Parameters
Type |
Name |
Description |
IGraph |
g |
Graph. |
System.Boolean |
createIfNotExists |
Determines whether to create a new Graph ID if there is not already one for the given Graph. |
Returns
Type |
Description |
TGraphID |
|
|
Improve this Doc
View Source
GetGraphUri(TGraphID)
Given a Graph ID returns the value of the Graph URI.
Declaration
Uri GetGraphUri(TGraphID id)
Parameters
Type |
Name |
Description |
TGraphID |
id |
Graph ID. |
Returns
Type |
Description |
System.Uri |
|
|
Improve this Doc
View Source
GetID(INode)
Given a non-blank Node returns the Node ID.
Declaration
TNodeID GetID(INode value)
Parameters
Type |
Name |
Description |
INode |
value |
Node. |
Returns
|
Improve this Doc
View Source
GetID(INode, Boolean)
Given a non-blank Node returns the Node ID.
Declaration
TNodeID GetID(INode value, bool createIfNotExists)
Parameters
Type |
Name |
Description |
INode |
value |
Node. |
System.Boolean |
createIfNotExists |
Determines whether to create a new Node ID if there is not already one for the given value. |
Returns
|
Improve this Doc
View Source
GetValue(IGraph, TNodeID)
Given a Node ID returns the materialised value in the given Graph.
Declaration
INode GetValue(IGraph g, TNodeID id)
Parameters
Type |
Name |
Description |
IGraph |
g |
Graph to create the Node in. |
TNodeID |
id |
Node ID. |
Returns
|
Improve this Doc
View Source
LoadGraphVirtual(IGraph, Uri)
Loads a Graph creating all the Triples with virtual node values.
Declaration
void LoadGraphVirtual(IGraph g, Uri graphUri)
Parameters
Type |
Name |
Description |
IGraph |
g |
Graph to load into. |
System.Uri |
graphUri |
URI of the Graph to load. |
Extension Methods