Show / Hide Table of Contents

Class BaseRdfHandler

Abstract Base Class for RDF Handlers.

Inheritance
System.Object
BaseHandler
BaseRdfHandler
DataTableHandler
AnyHandler
CancellableHandler
ChainedHandler
CountHandler
GraphHandler
GraphUriRewriteHandler
MultiHandler
NullHandler
PagingHandler
StoreCountHandler
StoreHandler
StripStringHandler
UniqueBlankNodesHandler
WriteThroughHandler
WriteToStoreHandler
Implements
IRdfHandler
INodeFactory
Inherited Members
BaseHandler.NodeFactory
BaseHandler.NormalizeLiteralValues
BaseHandler.ResolveQName(string)
BaseHandler.BaseUri
BaseHandler.NamespaceMap
BaseHandler.UriFactory
BaseHandler.CreateBlankNode()
BaseHandler.CreateBlankNode(string)
BaseHandler.CreateGraphLiteralNode()
BaseHandler.CreateGraphLiteralNode(IGraph)
BaseHandler.CreateLiteralNode(string, Uri)
BaseHandler.CreateLiteralNode(string)
BaseHandler.CreateLiteralNode(string, string)
BaseHandler.CreateUriNode(Uri)
BaseHandler.CreateUriNode(string)
BaseHandler.CreateUriNode()
BaseHandler.CreateVariableNode(string)
BaseHandler.CreateTripleNode(Triple)
BaseHandler.GetNextBlankNodeID()
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 BaseRdfHandler : BaseHandler, IRdfHandler, INodeFactory

Constructors

| Improve this Doc View Source

BaseRdfHandler()

Creates a new RDF Handler.

Declaration
protected BaseRdfHandler()
| Improve this Doc View Source

BaseRdfHandler(INodeFactory)

Creates a new RDF Handler using the given Node Factory.

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

Node Factory.

Properties

| Improve this Doc View Source

AcceptsAll

Gets whether the Handler will accept all Triples i.e. it will never abort handling early.

Declaration
public abstract bool AcceptsAll { get; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

EndRdf(bool)

Ends the Handling of RDF.

Declaration
public void EndRdf(bool ok)
Parameters
Type Name Description
System.Boolean ok

Whether the parsing completed without error.

| Improve this Doc View Source

EndRdfInternal(bool)

Optionally used by derived Handlers to do additional actions on ending RDF handling.

Declaration
protected virtual void EndRdfInternal(bool ok)
Parameters
Type Name Description
System.Boolean ok

Whether the parsing completed without error.

| Improve this Doc View Source

HandleBaseUri(Uri)

Handles Base URI declarations.

Declaration
public bool HandleBaseUri(Uri baseUri)
Parameters
Type Name Description
System.Uri baseUri

Base URI.

Returns
Type Description
System.Boolean
| Improve this Doc View Source

HandleBaseUriInternal(Uri)

Optionally used by derived Handlers to do additional actions on handling Base URI declarations.

Declaration
protected virtual bool HandleBaseUriInternal(Uri baseUri)
Parameters
Type Name Description
System.Uri baseUri

Base URI.

Returns
Type Description
System.Boolean
| Improve this Doc View Source

HandleNamespace(string, Uri)

Handles Namespace declarations.

Declaration
public bool HandleNamespace(string prefix, Uri namespaceUri)
Parameters
Type Name Description
string prefix

Prefix.

System.Uri namespaceUri

Namespace URI.

Returns
Type Description
System.Boolean
| Improve this Doc View Source

HandleNamespaceInternal(string, Uri)

Optionally used by derived Handlers to do additional actions on handling namespace declarations.

Declaration
protected virtual bool HandleNamespaceInternal(string prefix, Uri namespaceUri)
Parameters
Type Name Description
string prefix

Prefix.

System.Uri namespaceUri

Namespace URI.

Returns
Type Description
System.Boolean
| Improve this Doc View Source

HandleQuad(Triple, IRefNode)

Handles Quads.

Declaration
public bool HandleQuad(Triple t, IRefNode graph)
Parameters
Type Name Description
Triple t

Triple to handle.

IRefNode graph

The name of the graph containing the triple.

Returns
Type Description
System.Boolean
Exceptions
Type Condition
RdfParseException

Raised if the handler is not currently in a state to handle quads.

| Improve this Doc View Source

HandleQuadInternal(Triple, IRefNode)

Must be overridden by derived handlers to take appropriate Quad handling action.

Declaration
protected abstract bool HandleQuadInternal(Triple t, IRefNode graph)
Parameters
Type Name Description
Triple t

Triple.

IRefNode graph

Name of the graph containing the triple.

Returns
Type Description
System.Boolean
Remarks

Implementations that expect to only handle triples in the un-named graph SHOULD provide an implementation for this method that checks if graph is null and if so perform their standard triple handling processing.

| Improve this Doc View Source

HandleTriple(Triple)

Handles Triples.

Declaration
public bool HandleTriple(Triple t)
Parameters
Type Name Description
Triple t

Triple.

Returns
Type Description
System.Boolean
| Improve this Doc View Source

HandleTripleInternal(Triple)

Must be overridden by derived handlers to take appropriate Triple handling action.

Declaration
protected abstract bool HandleTripleInternal(Triple t)
Parameters
Type Name Description
Triple t

Triple.

Returns
Type Description
System.Boolean
| Improve this Doc View Source

StartRdf()

Starts the Handling of RDF.

Declaration
public void StartRdf()
| Improve this Doc View Source

StartRdfInternal()

Optionally used by derived Handlers to do additional actions on starting RDF handling.

Declaration
protected virtual void StartRdfInternal()

Implements

IRdfHandler
INodeFactory

Extension Methods

Extensions.ToSafeString(object)
HandlerExtensions.Apply(IRdfHandler, IEnumerable<Triple>)
HandlerExtensions.Apply(IRdfHandler, IGraph)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • BaseRdfHandler()
    • BaseRdfHandler(INodeFactory)
  • Properties
    • AcceptsAll
  • Methods
    • EndRdf(bool)
    • EndRdfInternal(bool)
    • HandleBaseUri(Uri)
    • HandleBaseUriInternal(Uri)
    • HandleNamespace(string, Uri)
    • HandleNamespaceInternal(string, Uri)
    • HandleQuad(Triple, IRefNode)
    • HandleQuadInternal(Triple, IRefNode)
    • HandleTriple(Triple)
    • HandleTripleInternal(Triple)
    • StartRdf()
    • StartRdfInternal()
  • Implements
  • Extension Methods
Back to top Generated by DocFX