Class BaseHandler
Abstract Base Class for Handlers.
Implements
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()
Namespace: VDS.RDF.Parsing.Handlers
Assembly: dotNetRDF.dll
Syntax
public abstract class BaseHandler : INodeFactory
Constructors
| Improve this Doc View SourceBaseHandler()
Creates a new Handler.
Declaration
public BaseHandler()
BaseHandler(INodeFactory)
Creates a new Handler using the given Node Factory.
Declaration
public BaseHandler(INodeFactory factory)
Parameters
Type | Name | Description |
---|---|---|
INodeFactory | factory | Node Factory. |
Properties
| Improve this Doc View SourceNodeFactory
Gets/Sets the in-use Node Factory.
Declaration
protected INodeFactory NodeFactory { get; set; }
Property Value
Type | Description |
---|---|
INodeFactory |
Methods
| Improve this Doc View SourceCreateBlankNode()
Creates a Blank Node.
Declaration
public virtual IBlankNode CreateBlankNode()
Returns
Type | Description |
---|---|
IBlankNode |
CreateBlankNode(String)
Creates a Blank Node with the given ID.
Declaration
public virtual IBlankNode CreateBlankNode(string nodeId)
Parameters
Type | Name | Description |
---|---|---|
System.String | nodeId | Node ID. |
Returns
Type | Description |
---|---|
IBlankNode |
CreateGraphLiteralNode()
Creates a Graph Literal Node.
Declaration
public virtual IGraphLiteralNode CreateGraphLiteralNode()
Returns
Type | Description |
---|---|
IGraphLiteralNode |
CreateGraphLiteralNode(IGraph)
Creates a Graph Literal Node with the given sub-graph.
Declaration
public virtual IGraphLiteralNode CreateGraphLiteralNode(IGraph subgraph)
Parameters
Type | Name | Description |
---|---|---|
IGraph | subgraph | Sub-graph. |
Returns
Type | Description |
---|---|
IGraphLiteralNode |
CreateLiteralNode(String)
Creates a Literal Node.
Declaration
public virtual ILiteralNode CreateLiteralNode(string literal)
Parameters
Type | Name | Description |
---|---|---|
System.String | literal | Value. |
Returns
Type | Description |
---|---|
ILiteralNode |
CreateLiteralNode(String, String)
Creates a Literal Node with the given Language.
Declaration
public virtual ILiteralNode CreateLiteralNode(string literal, string langspec)
Parameters
Type | Name | Description |
---|---|---|
System.String | literal | Value. |
System.String | langspec | Language. |
Returns
Type | Description |
---|---|
ILiteralNode |
CreateLiteralNode(String, Uri)
Creates a Literal Node with the given Datatype.
Declaration
public virtual ILiteralNode CreateLiteralNode(string literal, Uri datatype)
Parameters
Type | Name | Description |
---|---|---|
System.String | literal | Value. |
System.Uri | datatype | Datatype URI. |
Returns
Type | Description |
---|---|
ILiteralNode |
CreateUriNode(Uri)
Creates a URI Node.
Declaration
public virtual IUriNode CreateUriNode(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | uri | URI. |
Returns
Type | Description |
---|---|
IUriNode |
CreateVariableNode(String)
Creates a Variable Node.
Declaration
public virtual IVariableNode CreateVariableNode(string varname)
Parameters
Type | Name | Description |
---|---|---|
System.String | varname | Variable Name. |
Returns
Type | Description |
---|---|
IVariableNode |
GetNextBlankNodeID()
Gets the next available Blank Node ID.
Declaration
public virtual string GetNextBlankNodeID()
Returns
Type | Description |
---|---|
System.String |