Show / Hide Table of Contents

Class MultiHandler

A Handler which passes the RDF to be handled to multiple Handlers where Handling terminates in the handling request where one of the Handlers returns false.

Inheritance
object
BaseHandler
BaseRdfHandler
MultiHandler
Implements
ICommentRdfHandler
IWrappingRdfHandler
IRdfHandler
INodeFactory
Inherited Members
BaseRdfHandler.StartRdf()
BaseRdfHandler.EndRdf(bool)
BaseRdfHandler.HandleNamespace(string, Uri)
BaseRdfHandler.HandleBaseUri(Uri)
BaseRdfHandler.HandleTriple(Triple)
BaseRdfHandler.HandleQuad(Triple, IRefNode)
BaseRdfHandler.HandleComment(string)
BaseHandler.NodeFactory
BaseHandler.NormalizeLiteralValues
BaseHandler.LanguageTagValidation
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 class MultiHandler : BaseRdfHandler, ICommentRdfHandler, IWrappingRdfHandler, IRdfHandler, INodeFactory
Remarks

This differs from ChainedHandler in that even if one Handler indicates that handling should stop by returning false all the Handlers still have a chance to handle the Base URI/Namespace/Triple before handling is terminated. All Handlers will always have their StartRdf and EndRdf methods called.

Constructors

| Edit this page View Source

MultiHandler(IEnumerable<IRdfHandler>)

Creates a new Multi Handler.

Declaration
public MultiHandler(IEnumerable<IRdfHandler> handlers)
Parameters
Type Name Description
IEnumerable<IRdfHandler> handlers

Inner Handlers for this Handler.

| Edit this page View Source

MultiHandler(IEnumerable<IRdfHandler>, INodeFactory)

Creates a new Multi Handler with a known Node Factory.

Declaration
public MultiHandler(IEnumerable<IRdfHandler> handlers, INodeFactory factory)
Parameters
Type Name Description
IEnumerable<IRdfHandler> handlers

Inner Handlers for this Handler.

INodeFactory factory

Node Factory to use for this Handler.

Properties

| Edit this page View Source

AcceptsAll

Gets whether this Handler accepts all Triples based on whether all inner handlers do so.

Declaration
public override bool AcceptsAll { get; }
Property Value
Type Description
bool
Overrides
BaseRdfHandler.AcceptsAll
| Edit this page View Source

InnerHandlers

Gets the Inner Handlers used by this Handler.

Declaration
public IEnumerable<IRdfHandler> InnerHandlers { get; }
Property Value
Type Description
IEnumerable<IRdfHandler>

Methods

| Edit this page View Source

EndRdfInternal(bool)

Ends RDF Handling by ending handling on all inner handlers.

Declaration
protected override void EndRdfInternal(bool ok)
Parameters
Type Name Description
bool ok

Whether parsing completed without error.

Overrides
BaseRdfHandler.EndRdfInternal(bool)
| Edit this page View Source

HandleBaseUriInternal(Uri)

Handles Base URIs by getting all inner handlers to handle the Base URI.

Declaration
protected override bool HandleBaseUriInternal(Uri baseUri)
Parameters
Type Name Description
Uri baseUri

Base URI.

Returns
Type Description
bool
Overrides
BaseRdfHandler.HandleBaseUriInternal(Uri)
Remarks

Handling ends if any of the Handlers indicates it should stop but all Handlers are given the chance to finish the current handling action first.

| Edit this page View Source

HandleCommentInternal(string)

Handles Comment by getting all inner handlers to handle it.

Declaration
protected override bool HandleCommentInternal(string text)
Parameters
Type Name Description
string text

Comment text.

Returns
Type Description
bool
Overrides
BaseRdfHandler.HandleCommentInternal(string)
Remarks

Handling ends if any of the Handlers indicates it should stop but all Handlers are given the chance to finish the current handling action first.

| Edit this page View Source

HandleNamespaceInternal(string, Uri)

Handles Namespace Declarations by getting all inner handlers to handle it.

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

Namespace Prefix.

Uri namespaceUri

Namespace URI.

Returns
Type Description
bool
Overrides
BaseRdfHandler.HandleNamespaceInternal(string, Uri)
Remarks

Handling ends if any of the Handlers indicates it should stop but all Handlers are given the chance to finish the current handling action first.

| Edit this page View Source

HandleQuadInternal(Triple, IRefNode)

Handles a quad by getting all inner handlers to handler it.

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

Triple.

IRefNode graph

The name of the graph containing the triple.

Returns
Type Description
bool
Overrides
BaseRdfHandler.HandleQuadInternal(Triple, IRefNode)
Remarks

Handling ends if any of the Handlers indicates it should stop but all Handlers are given the chance to finish the current handling action first.

| Edit this page View Source

HandleTripleInternal(Triple)

Handles Triples by getting all inner handlers to handler it.

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

Triple.

Returns
Type Description
bool
Overrides
BaseRdfHandler.HandleTripleInternal(Triple)
Remarks

Handling ends if any of the Handlers indicates it should stop but all Handlers are given the chance to finish the current handling action first.

| Edit this page View Source

StartRdfInternal()

Starts RDF Handling by starting handling on all inner handlers.

Declaration
protected override void StartRdfInternal()
Overrides
BaseRdfHandler.StartRdfInternal()

Implements

ICommentRdfHandler
IWrappingRdfHandler
IRdfHandler
INodeFactory

Extension Methods

Extensions.ToSafeString(object)
HandlerExtensions.Apply(IRdfHandler, IEnumerable<Triple>)
HandlerExtensions.Apply(IRdfHandler, IGraph)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • MultiHandler(IEnumerable<IRdfHandler>)
    • MultiHandler(IEnumerable<IRdfHandler>, INodeFactory)
  • Properties
    • AcceptsAll
    • InnerHandlers
  • Methods
    • EndRdfInternal(bool)
    • HandleBaseUriInternal(Uri)
    • HandleCommentInternal(string)
    • HandleNamespaceInternal(string, Uri)
    • HandleQuadInternal(Triple, IRefNode)
    • HandleTripleInternal(Triple)
    • StartRdfInternal()
  • Implements
  • Extension Methods
Back to top Generated by DocFX