Class SimpleVirtualGraphLiteralNode
Simple implementation of a Virtual Graph Literal Node where the virtual IDs are integers.
Inheritance
Implements
Inherited Members
Namespace: VDS.RDF.Storage.Virtualisation
Assembly: dotNetRdf.dll
Syntax
public class SimpleVirtualGraphLiteralNode : BaseVirtualGraphLiteralNode<int, int>, IVirtualNode<int, int>, IEquatable<IVirtualNode<int, int>>, IComparable<IVirtualNode<int, int>>, IVirtualIdComparable, IEquatable<BaseVirtualNode<int, int>>, IComparable<BaseVirtualNode<int, int>>, ICanCopy, IGraphLiteralNode, IEquatable<BaseVirtualGraphLiteralNode<int, int>>, IComparable<BaseVirtualGraphLiteralNode<int, int>>, IValuedNode, INode, IComparable<INode>, IComparable<IBlankNode>, IComparable<IGraphLiteralNode>, IComparable<ILiteralNode>, IComparable<IUriNode>, IComparable<IVariableNode>, IComparable<IRefNode>, IComparable<ITripleNode>, IEquatable<INode>, IEquatable<IBlankNode>, IEquatable<IGraphLiteralNode>, IEquatable<ILiteralNode>, IEquatable<IUriNode>, IEquatable<IVariableNode>, IEquatable<IRefNode>, IEquatable<ITripleNode>, IEquatable<SimpleVirtualGraphLiteralNode>, IComparable<SimpleVirtualGraphLiteralNode>
Constructors
| Improve this Doc View SourceSimpleVirtualGraphLiteralNode(IGraph, int, IVirtualRdfProvider<int, int>, IGraphLiteralNode)
Creates a new Virtual Graph Literal Node.
Declaration
public SimpleVirtualGraphLiteralNode(IGraph g, int id, IVirtualRdfProvider<int, int> provider, IGraphLiteralNode value)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph the Node belongs to. |
int | id | Virtual ID. |
IVirtualRdfProvider<int, int> | provider | Virtual RDF Provider. |
IGraphLiteralNode | value | Materialised Values. |
SimpleVirtualGraphLiteralNode(IGraph, int, IVirtualRdfProvider<int, int>)
Creates a new Virtual Graph Literal Node.
Declaration
public SimpleVirtualGraphLiteralNode(IGraph g, int id, IVirtualRdfProvider<int, int> provider)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph the Node belongs to. |
int | id | Virtual ID. |
IVirtualRdfProvider<int, int> | provider | Virtual RDF Provider. |
Methods
| Improve this Doc View SourceCompareTo(SimpleVirtualGraphLiteralNode)
Compares this Node to another virtual Graph Literal node.
Declaration
public int CompareTo(SimpleVirtualGraphLiteralNode other)
Parameters
Type | Name | Description |
---|---|---|
SimpleVirtualGraphLiteralNode | other | Other Graph Literal Node. |
Returns
Type | Description |
---|---|
int |
CompareVirtualId(int)
Method to be implemented in derived classes to provide comparison of VirtualId values.
Declaration
public override int CompareVirtualId(int other)
Parameters
Type | Name | Description |
---|---|---|
int | other | The other virtual ID value to be compared with this node's virtual ID value. |
Returns
Type | Description |
---|---|
int | The comparison result. |
Overrides
CopyNode(IGraph)
Copies the Node to another Graph including the materialised value if present.
Declaration
public override INode CopyNode(IGraph target)
Parameters
Type | Name | Description |
---|---|---|
IGraph | target | Target Graph. |
Returns
Type | Description |
---|---|
INode |
Overrides
Equals(SimpleVirtualGraphLiteralNode)
Determines whether this Node is equal to another virtual Graph Literal node.
Declaration
public bool Equals(SimpleVirtualGraphLiteralNode other)
Parameters
Type | Name | Description |
---|---|---|
SimpleVirtualGraphLiteralNode | other | Other Graph Literal Node. |
Returns
Type | Description |
---|---|
System.Boolean |