Class DeliminatedLineFormatter
Abstract Base Class for formatters where things are formatted as lines of plain text deliminated by specific characters.
Inherited Members
Namespace: VDS.RDF.Writing.Formatting
Assembly: dotNetRdf.dll
Syntax
public abstract class DeliminatedLineFormatter : BaseFormatter, INodeFormatter, ITripleFormatter, IUriFormatter, ICharFormatter, IResultFormatter
Constructors
| Edit this page View SourceDeliminatedLineFormatter(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 SourceFormat(Triple)
Formats a Triple.
Declaration
public override string Format(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
Returns
Type | Description |
---|---|
string |
Overrides
| Edit this page View SourceFormatLiteralNode(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
| Edit this page View SourceFormatUri(string)
Formats URIs.
Declaration
public override string FormatUri(string u)
Parameters
Type | Name | Description |
---|---|---|
string | u |
Returns
Type | Description |
---|---|
string |
Overrides
| Edit this page View SourceFormatUriNode(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 |