Class DeliminatedLineFormatter
Abstract Base Class for formatters where things are formatted as lines of plain text deliminated by specific characters.
Inherited Members
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
| Improve this Doc 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). |
System.Boolean | fullLiteralOutput | Whether Literals are output with Language/Datatype information. |
Methods
| Improve this Doc 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
| Improve this Doc 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
| Improve this Doc View SourceFormatUri(string)
Formats URIs.
Declaration
public override string FormatUri(string u)
Parameters
Type | Name | Description |
---|---|---|
string | u |
Returns
Type | Description |
---|---|
string |
Overrides
| Improve this Doc 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 |