Click or drag to resize

BaseGraphLiteralNode Class

Abstract Base Class for Graph Literal Nodes.
Inheritance Hierarchy

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
[SerializableAttribute]
public abstract class BaseGraphLiteralNode : BaseNode, 
	IGraphLiteralNode, INode, IComparable<INode>, IComparable<IBlankNode>, 
	IComparable<IGraphLiteralNode>, IComparable<ILiteralNode>, IComparable<IUriNode>, 
	IComparable<IVariableNode>, IEquatable<INode>, IEquatable<IBlankNode>, 
	IEquatable<IGraphLiteralNode>, IEquatable<ILiteralNode>, IEquatable<IUriNode>, 
	IEquatable<IVariableNode>, ISerializable, IXmlSerializable, IEquatable<BaseGraphLiteralNode>, 
	IComparable<BaseGraphLiteralNode>, IValuedNode

The BaseGraphLiteralNode type exposes the following members.

Constructors
  NameDescription
Protected methodBaseGraphLiteralNode
Deserialization Only constructor.
Protected methodBaseGraphLiteralNode(IGraph)
Creates a new Graph Literal Node whose value is an empty Subgraph.
Protected methodBaseGraphLiteralNode(SerializationInfo, StreamingContext)
Deserializer Constructor.
Protected methodBaseGraphLiteralNode(IGraph, IGraph)
Creates a new Graph Literal Node in the given Graph which represents the given Subgraph.
Top
Properties
  NameDescription
Public propertyEffectiveType
Gets the URI of the datatype this valued node represents as a String.
Public propertyGraph
Nodes belong to a Graph.
(Inherited from BaseNode.)
Public propertyGraphUri
Gets/Sets the Graph Uri of the Node.
(Inherited from BaseNode.)
Public propertyNodeType
Nodes have a Type.
(Inherited from BaseNode.)
Public propertyNumericType
Gets the numeric type of the node.
Public propertySubGraph
Gets the Subgraph that this Node represents.
Top
Methods
  NameDescription
Public methodAsBoolean
Throws an error as Graph Literals cannot be cast to a boolean.
Public methodAsDateTime
Throws an error as Graph Literals cannot be cast to a date time.
Public methodAsDateTimeOffset
Throws an error as Graph Literals cannot be cast to a date time.
Public methodAsDecimal
Throws an error as Graph Literals cannot be cast to a decimal.
Public methodAsDouble
Throws an error as Graph Literals cannot be cast to a double.
Public methodAsFloat
Throws an error as Graph Literals cannot be cast to a float.
Public methodAsInteger
Throws an error as Graph Literals cannot be cast to an integer.
Public methodAsString
Throws an error as Graph Literals cannot be cast to a string.
Public methodAsTimeSpan
Throws an error as Graph Literals cannot be cast to a time span.
Public methodCompareTo(BaseGraphLiteralNode)
Returns an Integer indicating the Ordering of this Node compared to another Node.
Public methodCompareTo(IBlankNode)
Returns an Integer indicating the Ordering of this Node compared to another Node.
(Overrides BaseNodeCompareTo(IBlankNode).)
Public methodCompareTo(IGraphLiteralNode)
Returns an Integer indicating the Ordering of this Node compared to another Node.
(Overrides BaseNodeCompareTo(IGraphLiteralNode).)
Public methodCompareTo(ILiteralNode)
Returns an Integer indicating the Ordering of this Node compared to another Node.
(Overrides BaseNodeCompareTo(ILiteralNode).)
Public methodCompareTo(INode)
Implementation of CompareTo for Graph Literals.
(Overrides BaseNodeCompareTo(INode).)
Public methodCompareTo(IUriNode)
Returns an Integer indicating the Ordering of this Node compared to another Node.
(Overrides BaseNodeCompareTo(IUriNode).)
Public methodCompareTo(IVariableNode)
Returns an Integer indicating the Ordering of this Node compared to another Node.
(Overrides BaseNodeCompareTo(IVariableNode).)
Public methodEquals(Object)
Implementation of the Equals method for Graph Literal Nodes. Graph Literals are considered Equal if their respective Subgraphs are equal.
(Overrides BaseNodeEquals(Object).)
Public methodEquals(BaseGraphLiteralNode)
Determines whether this Node is equal to a Graph Literal Node.
Public methodEquals(IBlankNode)
Determines whether this Node is equal to a Blank Node (should always be false).
(Overrides BaseNodeEquals(IBlankNode).)
Public methodEquals(IGraphLiteralNode)
Determines whether this Node is equal to a Graph Literal Node.
(Overrides BaseNodeEquals(IGraphLiteralNode).)
Public methodEquals(ILiteralNode)
Determines whether this Node is equal to a Literal Node (should always be false).
(Overrides BaseNodeEquals(ILiteralNode).)
Public methodEquals(INode)
Implementation of the Equals method for Graph Literal Nodes. Graph Literals are considered Equal if their respective Subgraphs are equal.
(Overrides BaseNodeEquals(INode).)
Public methodEquals(IUriNode)
Determines whether this Node is equal to a URI Node (should always be false).
(Overrides BaseNodeEquals(IUriNode).)
Public methodEquals(IVariableNode)
Determines whether this Node is equal to a Variable Node (should always be false).
(Overrides BaseNodeEquals(IVariableNode).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Gets a Hash Code for a Node.
(Inherited from BaseNode.)
Public methodGetObjectData
Gets the Serialization Information.
(Overrides BaseNodeGetObjectData(SerializationInfo, StreamingContext).)
Public methodGetSchema
Gets the schema for XML serialization.
(Inherited from BaseNode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReadXml
Reads the data for XML deserialization.
(Overrides BaseNodeReadXml(XmlReader).)
Public methodToString
Implementation of ToString for Graph Literals which produces a String representation of the Subgraph in N3 style syntax.
(Overrides BaseNodeToString.)
Public methodToString(INodeFormatter)
Gets the String representation of the Node formatted with the given Node formatter.
(Inherited from BaseNode.)
Public methodToString(INodeFormatter, TripleSegment)
Gets the String representation of the Node formatted with the given Node formatter.
(Inherited from BaseNode.)
Public methodWriteXml
Writes the data for XML serialization.
(Overrides BaseNodeWriteXml(XmlWriter).)
Top
Fields
  NameDescription
Protected field_graph
Reference to the Graph that the Node belongs to.
(Inherited from BaseNode.)
Protected field_graphUri
Uri of the Graph that the Node belongs to.
(Inherited from BaseNode.)
Protected field_hashcode
Stores the computed Hash Code for this Node.
(Inherited from BaseNode.)
Protected field_nodetype
Node Type for the Node.
(Inherited from BaseNode.)
Top
Extension Methods
  NameDescription
Public Extension MethodAsDynamic
Dynamically wraps a node.
(Defined by DynamicExtensions.)
Public Extension MethodAsSafeBoolean
Tries to get the result of calling AsBoolean() on a node throwing an error if the node is null.
(Defined by ValuedNodeExtensions.)
Public Extension MethodAsValuedNode
Takes a INode and converts it to a IValuedNode if it is not already an instance that implements the interface.
(Defined by ValuedNodeExtensions.)
Public Extension MethodCopyNode(IGraph)Overloaded.
Copies a Node to the target Graph.
(Defined by Extensions.)
Public Extension MethodCopyNode(IGraph, Boolean)Overloaded.
Copies a Node to the target Graph.
(Defined by Extensions.)
Public Extension MethodIsListRoot
Gets whether a given Node is valid as a List Root, this does not guarantee that the list itself is valid simply that the Node appears to be the root of a list.
(Defined by Extensions.)
Top
See Also