Show / Hide Table of Contents

Class ResultWriteThroughHandler

A Results Handler which writes the handled Results out to a TextWriter using a provided IResultFormatter.

Inheritance
object
BaseHandler
BaseResultsHandler
ResultWriteThroughHandler
Implements
ISparqlResultsHandler
INodeFactory
Inherited Members
BaseResultsHandler.StartResults()
BaseResultsHandler.EndResults(bool)
BaseResultsHandler.HandleBooleanResult(bool)
BaseResultsHandler.HandleVariable(string)
BaseResultsHandler.HandleResult(ISparqlResult)
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 ResultWriteThroughHandler : BaseResultsHandler, ISparqlResultsHandler, INodeFactory

Constructors

| Edit this page View Source

ResultWriteThroughHandler(Type, TextWriter)

Creates a new Write-Through Handler.

Declaration
public ResultWriteThroughHandler(Type formatterType, TextWriter writer)
Parameters
Type Name Description
Type formatterType

Type of the formatter to create.

TextWriter writer

Text Writer to write to.

| Edit this page View Source

ResultWriteThroughHandler(Type, TextWriter, bool)

Creates a new Write-Through Handler.

Declaration
public ResultWriteThroughHandler(Type formatterType, TextWriter writer, bool closeOnEnd)
Parameters
Type Name Description
Type formatterType

Type of the formatter to create.

TextWriter writer

Text Writer to write to.

bool closeOnEnd

Whether to close the writer at the end of RDF handling.

| Edit this page View Source

ResultWriteThroughHandler(IResultFormatter, TextWriter)

Creates a new Write-Through Handler.

Declaration
public ResultWriteThroughHandler(IResultFormatter formatter, TextWriter writer)
Parameters
Type Name Description
IResultFormatter formatter

Triple Formatter to use.

TextWriter writer

Text Writer to write to.

| Edit this page View Source

ResultWriteThroughHandler(IResultFormatter, TextWriter, bool)

Creates a new Write-Through Handler.

Declaration
public ResultWriteThroughHandler(IResultFormatter formatter, TextWriter writer, bool closeOnEnd)
Parameters
Type Name Description
IResultFormatter formatter

Triple Formatter to use.

TextWriter writer

Text Writer to write to.

bool closeOnEnd

Whether to close the writer at the end of RDF handling.

Methods

| Edit this page View Source

EndResultsInternal(bool)

Ends the writing of results closing the TextWriter depending on the option set when this instance was instantiated.

Declaration
protected override void EndResultsInternal(bool ok)
Parameters
Type Name Description
bool ok
Overrides
BaseResultsHandler.EndResultsInternal(bool)
| Edit this page View Source

HandleBooleanResultInternal(bool)

Writes a Boolean Result to the output.

Declaration
protected override void HandleBooleanResultInternal(bool result)
Parameters
Type Name Description
bool result

Boolean Result.

Overrides
BaseResultsHandler.HandleBooleanResultInternal(bool)
| Edit this page View Source

HandleResultInternal(ISparqlResult)

Writes a Result to the output.

Declaration
protected override bool HandleResultInternal(ISparqlResult result)
Parameters
Type Name Description
ISparqlResult result

SPARQL Result.

Returns
Type Description
bool
Overrides
BaseResultsHandler.HandleResultInternal(ISparqlResult)
| Edit this page View Source

HandleVariableInternal(string)

Writes a Variable declaration to the output.

Declaration
protected override bool HandleVariableInternal(string var)
Parameters
Type Name Description
string var

Variable Name.

Returns
Type Description
bool
Overrides
BaseResultsHandler.HandleVariableInternal(string)
| Edit this page View Source

StartResultsInternal()

Starts writing results.

Declaration
protected override void StartResultsInternal()
Overrides
BaseResultsHandler.StartResultsInternal()

Implements

ISparqlResultsHandler
INodeFactory

Extension Methods

Extensions.ToSafeString(object)
HandlerExtensions.Apply(ISparqlResultsHandler, SparqlResultSet)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • ResultWriteThroughHandler(Type, TextWriter)
    • ResultWriteThroughHandler(Type, TextWriter, bool)
    • ResultWriteThroughHandler(IResultFormatter, TextWriter)
    • ResultWriteThroughHandler(IResultFormatter, TextWriter, bool)
  • Methods
    • EndResultsInternal(bool)
    • HandleBooleanResultInternal(bool)
    • HandleResultInternal(ISparqlResult)
    • HandleVariableInternal(string)
    • StartResultsInternal()
  • Implements
  • Extension Methods
Back to top Generated by DocFX