Show / Hide Table of Contents

Class BaseHandler

Abstract Base Class for Handlers.

Inheritance
System.Object
BaseHandler
BaseRdfHandler
BaseResultsHandler
Implements
INodeFactory
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Parsing.Handlers
Assembly: dotNetRdf.dll
Syntax
public abstract class BaseHandler : INodeFactory

Constructors

| Improve this Doc View Source

BaseHandler(INodeFactory)

Creates a new Handler using the given Node Factory.

Declaration
protected BaseHandler(INodeFactory factory)
Parameters
Type Name Description
INodeFactory factory

Node Factory.

Properties

| Improve this Doc View Source

BaseUri

Get or set the base URI used to resolve relative URI references.

Declaration
public Uri BaseUri { get; set; }
Property Value
Type Description
System.Uri
| Improve this Doc View Source

NamespaceMap

Get the namespace map for this node factory.

Declaration
public INamespaceMapper NamespaceMap { get; }
Property Value
Type Description
INamespaceMapper
| Improve this Doc View Source

NodeFactory

Gets/Sets the in-use Node Factory.

Declaration
protected INodeFactory NodeFactory { get; set; }
Property Value
Type Description
INodeFactory
| Improve this Doc View Source

NormalizeLiteralValues

Get or set whether to normalize the string values of literal nodes on creation.

Declaration
public virtual bool NormalizeLiteralValues { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

UriFactory

Get or set the factory to use when creating URIs.

Declaration
public IUriFactory UriFactory { get; set; }
Property Value
Type Description
IUriFactory

Methods

| Improve this Doc View Source

CreateBlankNode()

Creates a Blank Node.

Declaration
public virtual IBlankNode CreateBlankNode()
Returns
Type Description
IBlankNode
| Improve this Doc View Source

CreateBlankNode(string)

Creates a Blank Node with the given ID.

Declaration
public virtual IBlankNode CreateBlankNode(string nodeId)
Parameters
Type Name Description
string nodeId

Node ID.

Returns
Type Description
IBlankNode
| Improve this Doc View Source

CreateGraphLiteralNode()

Creates a Graph Literal Node.

Declaration
public virtual IGraphLiteralNode CreateGraphLiteralNode()
Returns
Type Description
IGraphLiteralNode
| Improve this Doc View Source

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
| Improve this Doc View Source

CreateLiteralNode(string, string)

Creates a Literal Node with the given Language.

Declaration
public virtual ILiteralNode CreateLiteralNode(string literal, string langSpec)
Parameters
Type Name Description
string literal

Value.

string langSpec

Language.

Returns
Type Description
ILiteralNode
| Improve this Doc View Source

CreateLiteralNode(string, Uri)

Creates a Literal Node with the given Datatype.

Declaration
public virtual ILiteralNode CreateLiteralNode(string literal, Uri datatype)
Parameters
Type Name Description
string literal

Value.

System.Uri datatype

Datatype URI.

Returns
Type Description
ILiteralNode
| Improve this Doc View Source

CreateLiteralNode(string)

Creates a Literal Node.

Declaration
public virtual ILiteralNode CreateLiteralNode(string literal)
Parameters
Type Name Description
string literal

Value.

Returns
Type Description
ILiteralNode
| Improve this Doc View Source

CreateTripleNode(Triple)

Creates a node that quotes the given triple.

Declaration
public virtual ITripleNode CreateTripleNode(Triple triple)
Parameters
Type Name Description
Triple triple

The triple to be the quoted value of the created node.

Returns
Type Description
ITripleNode
| Improve this Doc View Source

CreateUriNode()

Creates a URI Node that corresponds to the current Base URI of the node factory.

Declaration
public IUriNode CreateUriNode()
Returns
Type Description
IUriNode
| Improve this Doc View Source

CreateUriNode(string)

Creates a URI Node for the given QName using the Graphs NamespaceMap to resolve the QName.

Declaration
public IUriNode CreateUriNode(string qName)
Parameters
Type Name Description
string qName

QName.

Returns
Type Description
IUriNode
| Improve this Doc View Source

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
| Improve this Doc View Source

CreateVariableNode(string)

Creates a Variable Node.

Declaration
public virtual IVariableNode CreateVariableNode(string varName)
Parameters
Type Name Description
string varName

Variable Name.

Returns
Type Description
IVariableNode
| Improve this Doc View Source

GetNextBlankNodeID()

Gets the next available Blank Node ID.

Declaration
public virtual string GetNextBlankNodeID()
Returns
Type Description
string
| Improve this Doc View Source

ResolveQName(string)

Resolve a QName to a URI using the handler's underlying node factory to provide the NamespaceMap and BaseUri.

Declaration
public Uri ResolveQName(string qName)
Parameters
Type Name Description
string qName
Returns
Type Description
System.Uri

Implements

INodeFactory

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • BaseHandler(INodeFactory)
  • Properties
    • BaseUri
    • NamespaceMap
    • NodeFactory
    • NormalizeLiteralValues
    • UriFactory
  • Methods
    • CreateBlankNode()
    • CreateBlankNode(string)
    • CreateGraphLiteralNode()
    • CreateGraphLiteralNode(IGraph)
    • CreateLiteralNode(string, string)
    • CreateLiteralNode(string, Uri)
    • CreateLiteralNode(string)
    • CreateTripleNode(Triple)
    • CreateUriNode()
    • CreateUriNode(string)
    • CreateUriNode(Uri)
    • CreateVariableNode(string)
    • GetNextBlankNodeID()
    • ResolveQName(string)
  • Implements
  • Extension Methods
Back to top Generated by DocFX