Show / Hide Table of Contents

Class WriteThroughHandler

A RDF Handler which writes the handled Triples out to a System.IO.TextWriter using a provided ITripleFormatter.
Inheritance
System.Object
BaseHandler
BaseRdfHandler
WriteThroughHandler
Implements
IRdfHandler
INodeFactory
Inherited Members
BaseRdfHandler.StartRdf()
BaseRdfHandler.EndRdf(Boolean)
BaseRdfHandler.HandleNamespace(String, Uri)
BaseRdfHandler.HandleBaseUri(Uri)
BaseRdfHandler.HandleTriple(Triple)
BaseHandler.NodeFactory
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.CreateVariableNode(String)
BaseHandler.GetNextBlankNodeID()
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 class WriteThroughHandler : BaseRdfHandler, IRdfHandler, INodeFactory

Constructors

| Improve this Doc View Source

WriteThroughHandler(Type, TextWriter)

Creates a new Write-Through Handler.
Declaration
public WriteThroughHandler(Type formatterType, TextWriter writer)
Parameters
Type Name Description
System.Type formatterType Type of the formatter to create.
System.IO.TextWriter writer Text Writer to write to.
| Improve this Doc View Source

WriteThroughHandler(Type, TextWriter, Boolean)

Creates a new Write-Through Handler.
Declaration
public WriteThroughHandler(Type formatterType, TextWriter writer, bool closeOnEnd)
Parameters
Type Name Description
System.Type formatterType Type of the formatter to create.
System.IO.TextWriter writer Text Writer to write to.
System.Boolean closeOnEnd Whether to close the writer at the end of RDF handling.
| Improve this Doc View Source

WriteThroughHandler(ITripleFormatter, TextWriter)

Creates a new Write-Through Handler.
Declaration
public WriteThroughHandler(ITripleFormatter formatter, TextWriter writer)
Parameters
Type Name Description
ITripleFormatter formatter Triple Formatter to use.
System.IO.TextWriter writer Text Writer to write to.
| Improve this Doc View Source

WriteThroughHandler(ITripleFormatter, TextWriter, Boolean)

Creates a new Write-Through Handler.
Declaration
public WriteThroughHandler(ITripleFormatter formatter, TextWriter writer, bool closeOnEnd)
Parameters
Type Name Description
ITripleFormatter formatter Triple Formatter to use.
System.IO.TextWriter writer Text Writer to write to.
System.Boolean closeOnEnd Whether to close the writer at the end of RDF handling.

Properties

| Improve this Doc View Source

AcceptsAll

Gets that the Handler accepts all Triples.
Declaration
public override bool AcceptsAll { get; }
Property Value
Type Description
System.Boolean
Overrides
BaseRdfHandler.AcceptsAll

Methods

| Improve this Doc View Source

EndRdfInternal(Boolean)

Ends RDF Handling closing the System.IO.TextWriter being used if the setting is enabled.
Declaration
protected override void EndRdfInternal(bool ok)
Parameters
Type Name Description
System.Boolean ok Indicates whether parsing completed without error.
Overrides
BaseRdfHandler.EndRdfInternal(Boolean)
| Improve this Doc View Source

HandleBaseUriInternal(Uri)

Handles Base URI Declarations passing them to the underlying formatter if applicable.
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)
| Improve this Doc View Source

HandleNamespaceInternal(String, Uri)

Handles Namespace Declarations passing them to the underlying formatter if applicable.
Declaration
protected override bool HandleNamespaceInternal(string prefix, Uri namespaceUri)
Parameters
Type Name Description
System.String prefix Namespace Prefix.
System.Uri namespaceUri Namespace URI.
Returns
Type Description
System.Boolean
Overrides
BaseRdfHandler.HandleNamespaceInternal(String, Uri)
| Improve this Doc View Source

HandleTripleInternal(Triple)

Handles Triples by writing them using the underlying formatter.
Declaration
protected override bool HandleTripleInternal(Triple t)
Parameters
Type Name Description
Triple t Triple.
Returns
Type Description
System.Boolean
Overrides
BaseRdfHandler.HandleTripleInternal(Triple)
| Improve this Doc View Source

StartRdfInternal()

Starts RDF Handling instantiating a Triple Formatter if necessary.
Declaration
protected override void StartRdfInternal()
Overrides
BaseRdfHandler.StartRdfInternal()

Implements

IRdfHandler
INodeFactory

Extension Methods

Extensions.AsEnumerable<T>(T)
HandlerExtensions.Apply(IRdfHandler, IGraph)
HandlerExtensions.Apply(IRdfHandler, IEnumerable<Triple>)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • WriteThroughHandler(Type, TextWriter)
    • WriteThroughHandler(Type, TextWriter, Boolean)
    • WriteThroughHandler(ITripleFormatter, TextWriter)
    • WriteThroughHandler(ITripleFormatter, TextWriter, Boolean)
  • Properties
    • AcceptsAll
  • Methods
    • EndRdfInternal(Boolean)
    • HandleBaseUriInternal(Uri)
    • HandleNamespaceInternal(String, Uri)
    • HandleTripleInternal(Triple)
    • StartRdfInternal()
  • Implements
  • Extension Methods
Back to top Generated by DocFX