Show / Hide Table of Contents

Class DeliminatedLineFormatter

Abstract Base Class for formatters where things are formatted as lines of plain text deliminated by specific characters.

Inheritance
object
BaseFormatter
DeliminatedLineFormatter
TsvFormatter
Implements
INodeFormatter
ITripleFormatter
IUriFormatter
ICharFormatter
IResultFormatter
Inherited Members
BaseFormatter.FormatName
BaseFormatter.Format(INode, TripleSegment?)
BaseFormatter.Format(INode)
BaseFormatter.Format(Triple, IRefNode)
BaseFormatter.FormatUri(Uri)
BaseFormatter.FormatBlankNode(IBlankNode, TripleSegment?)
BaseFormatter.FormatTripleNode(ITripleNode, TripleSegment?)
BaseFormatter.FormatVariableNode(IVariableNode, TripleSegment?)
BaseFormatter.FormatGraphLiteralNode(IGraphLiteralNode, TripleSegment?)
BaseFormatter.FormatChar(char)
BaseFormatter.FormatChar(char[])
BaseFormatter.Format(ISparqlResult)
BaseFormatter.FormatBooleanResult(bool)
BaseFormatter.Escape(string, List<string[]>)
BaseFormatter.ToString()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Writing.Formatting
Assembly: dotNetRdf.dll
Syntax
public abstract class DeliminatedLineFormatter : BaseFormatter, INodeFormatter, ITripleFormatter, IUriFormatter, ICharFormatter, IResultFormatter

Constructors

| Edit this page View Source

DeliminatedLineFormatter(string, char, char, char?, char?, char?, char?, char?, bool)

Creates a new Deliminated Line Formatter.

Declaration
public DeliminatedLineFormatter(string formatName, char deliminator, char escape, char? uriStartChar, char? uriEndChar, char? literalWrapperChar, char? longLiteralWrapperChar, char? lineEndChar, bool fullLiteralOutput)
Parameters
Type Name Description
string formatName

Format Name.

char deliminator

Item Deliminator Character.

char escape

Escape Character.

char? uriStartChar

Character to start URIs (may be null).

char? uriEndChar

Character to end URIs (may be null).

char? literalWrapperChar

Character to wrap Literals in (may be null).

char? longLiteralWrapperChar

Character to wrap Long Literals in (may be null).

char? lineEndChar

Character to add at end of line (may be null).

bool fullLiteralOutput

Whether Literals are output with Language/Datatype information.

Methods

| Edit this page View Source

Format(Triple)

Formats a Triple.

Declaration
public override string Format(Triple t)
Parameters
Type Name Description
Triple t

Triple.

Returns
Type Description
string
Overrides
BaseFormatter.Format(Triple)
| Edit this page View Source

FormatLiteralNode(ILiteralNode, TripleSegment?)

Formats a Literal Node.

Declaration
protected override string FormatLiteralNode(ILiteralNode lit, TripleSegment? segment)
Parameters
Type Name Description
ILiteralNode lit

Literal Node.

TripleSegment? segment

Triple Segment.

Returns
Type Description
string
Overrides
BaseFormatter.FormatLiteralNode(ILiteralNode, TripleSegment?)
| Edit this page View Source

FormatUri(string)

Formats URIs.

Declaration
public override string FormatUri(string u)
Parameters
Type Name Description
string u
Returns
Type Description
string
Overrides
BaseFormatter.FormatUri(string)
| Edit this page View Source

FormatUriNode(IUriNode, TripleSegment?)

Formats a URI Node.

Declaration
protected override string FormatUriNode(IUriNode u, TripleSegment? segment)
Parameters
Type Name Description
IUriNode u

URI Node.

TripleSegment? segment

Triple Segment.

Returns
Type Description
string
Overrides
BaseFormatter.FormatUriNode(IUriNode, TripleSegment?)

Implements

INodeFormatter
ITripleFormatter
IUriFormatter
ICharFormatter
IResultFormatter

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • DeliminatedLineFormatter(string, char, char, char?, char?, char?, char?, char?, bool)
  • Methods
    • Format(Triple)
    • FormatLiteralNode(ILiteralNode, TripleSegment?)
    • FormatUri(string)
    • FormatUriNode(IUriNode, TripleSegment?)
  • Implements
  • Extension Methods
Back to top Generated by DocFX