Show / Hide Table of Contents

Class ChainedHandler

A Handler which passes the RDF to be handled through a sequence of Handlers where Handling is terminated as soon as any Handler returns false.

Inheritance
System.Object
BaseHandler
BaseRdfHandler
ChainedHandler
Implements
IWrappingRdfHandler
IRdfHandler
INodeFactory
Inherited Members
BaseRdfHandler.StartRdf()
BaseRdfHandler.EndRdf(bool)
BaseRdfHandler.HandleNamespace(string, Uri)
BaseRdfHandler.HandleBaseUri(Uri)
BaseRdfHandler.HandleTriple(Triple)
BaseRdfHandler.HandleQuad(Triple, IRefNode)
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 class ChainedHandler : BaseRdfHandler, IWrappingRdfHandler, IRdfHandler, INodeFactory
Remarks

This differs from the MultiHandler in that as soon as any Handler indicates that handling should stop by returning false handling is immediately terminated. All Handlers will always have their StartRdf and EndRdf methods called.

Constructors

| Improve this Doc View Source

ChainedHandler(IEnumerable<IRdfHandler>)

Creates a new Chained Handler.

Declaration
public ChainedHandler(IEnumerable<IRdfHandler> handlers)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T><IRdfHandler> handlers

Inner Handlers to use.

Remarks

This differs from the MultiHandler in that as soon as any Handler indicates that handling should stop by returning false handling is immediately terminated. All Handlers will always have their StartRdf and EndRdf methods called.

Properties

| Improve this Doc View Source

AcceptsAll

Gets that this Handler accepts all Triples if all inner handlers do so.

Declaration
public override bool AcceptsAll { get; }
Property Value
Type Description
System.Boolean
Overrides
BaseRdfHandler.AcceptsAll
Remarks

This differs from the MultiHandler in that as soon as any Handler indicates that handling should stop by returning false handling is immediately terminated. All Handlers will always have their StartRdf and EndRdf methods called.

| Improve this Doc View Source

InnerHandlers

Gets the Inner Handlers used by this Handler.

Declaration
public IEnumerable<IRdfHandler> InnerHandlers { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><IRdfHandler>
Remarks

This differs from the MultiHandler in that as soon as any Handler indicates that handling should stop by returning false handling is immediately terminated. All Handlers will always have their StartRdf and EndRdf methods called.

Methods

| Improve this Doc View Source

EndRdfInternal(bool)

Ends the Handling of RDF for each inner handler.

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

Whether parsing completed without errors.

Overrides
BaseRdfHandler.EndRdfInternal(bool)
Remarks

This differs from the MultiHandler in that as soon as any Handler indicates that handling should stop by returning false handling is immediately terminated. All Handlers will always have their StartRdf and EndRdf methods called.

| Improve this Doc View Source

HandleBaseUriInternal(Uri)

Handles Base URIs by getting each inner handler to attempt to handle it.

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

Base URI.

Returns
Type Description
System.Boolean
Overrides
BaseRdfHandler.HandleBaseUriInternal(Uri)
Remarks

Handling terminates at the first Handler which indicates handling should stop.

| Improve this Doc View Source

HandleNamespaceInternal(string, Uri)

Handles Namespaces by getting each inner handler to attempt to handle it.

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

Namespace Prefix.

System.Uri namespaceUri

Namespace URI.

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

Handling terminates at the first Handler which indicates handling should stop.

| Improve this Doc View Source

HandleQuadInternal(Triple, IRefNode)

Handles Quads by getting each inner handler to attempt to handle 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
System.Boolean
Overrides
BaseRdfHandler.HandleQuadInternal(Triple, IRefNode)
Remarks

Handling terminates at the first Handler which indicates handling should stop.

| Improve this Doc View Source

HandleTripleInternal(Triple)

Handles Triples by getting each inner handler to attempt to handle it.

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

Triple.

Returns
Type Description
System.Boolean
Overrides
BaseRdfHandler.HandleTripleInternal(Triple)
Remarks

Handling terminates at the first Handler which indicates handling should stop.

| Improve this Doc View Source

StartRdfInternal()

Starts the Handling of RDF for each inner handler.

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

This differs from the MultiHandler in that as soon as any Handler indicates that handling should stop by returning false handling is immediately terminated. All Handlers will always have their StartRdf and EndRdf methods called.

Implements

IWrappingRdfHandler
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
    • ChainedHandler(IEnumerable<IRdfHandler>)
  • Properties
    • AcceptsAll
    • InnerHandlers
  • Methods
    • EndRdfInternal(bool)
    • HandleBaseUriInternal(Uri)
    • HandleNamespaceInternal(string, Uri)
    • HandleQuadInternal(Triple, IRefNode)
    • HandleTripleInternal(Triple)
    • StartRdfInternal()
  • Implements
  • Extension Methods
Back to top Generated by DocFX