Class DeliminatedLineFormatter
Abstract Base Class for formatters where things are formatted as lines of plain text deliminated by specific characters.
Inherited Members
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)
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, Nullable<Char>, Nullable<Char>, Nullable<Char>, Nullable<Char>, Nullable<Char>, Boolean)
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 |
---|---|---|
System.String | formatName | Format Name. |
System.Char | deliminator | Item Deliminator Character. |
System.Char | escape | Escape Character. |
System.Nullable<System.Char> | uriStartChar | Character to start URIs (may be null). |
System.Nullable<System.Char> | uriEndChar | Character to end URIs (may be null). |
System.Nullable<System.Char> | literalWrapperChar | Character to wrap Literals in (may be null). |
System.Nullable<System.Char> | longLiteralWrapperChar | Character to wrap Long Literals in (may be null). |
System.Nullable<System.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 |
---|---|
System.String |
Overrides
| Improve this Doc View SourceFormatLiteralNode(ILiteralNode, Nullable<TripleSegment>)
Formats a Literal Node.
Declaration
protected override string FormatLiteralNode(ILiteralNode lit, TripleSegment? segment)
Parameters
Type | Name | Description |
---|---|---|
ILiteralNode | lit | Literal Node. |
System.Nullable<TripleSegment> | segment | Triple Segment. |
Returns
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceFormatUri(String)
Formats URIs.
Declaration
public override string FormatUri(string u)
Parameters
Type | Name | Description |
---|---|---|
System.String | u |
Returns
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceFormatUriNode(IUriNode, Nullable<TripleSegment>)
Formats a URI Node.
Declaration
protected override string FormatUriNode(IUriNode u, TripleSegment? segment)
Parameters
Type | Name | Description |
---|---|---|
IUriNode | u | URI Node. |
System.Nullable<TripleSegment> | segment | Triple Segment. |
Returns
Type | Description |
---|---|
System.String |