Class NTriplesFormatter
Formatter for formatting as NTriples.
Inheritance
System.Object
NTriplesFormatter
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 class NTriplesFormatter : BaseFormatter, INodeFormatter, ITripleFormatter, IUriFormatter, ICharFormatter, IResultFormatter
Constructors
| Improve this Doc View SourceNTriplesFormatter()
Creates a new NTriples Formatter.
Declaration
public NTriplesFormatter()
NTriplesFormatter(String)
Creates a new NTriples Formatter.
Declaration
protected NTriplesFormatter(string formatName)
Parameters
Type | Name | Description |
---|---|---|
System.String | formatName | Format Name. |
NTriplesFormatter(NTriplesSyntax)
Creates a new NTriples Formatter.
Declaration
public NTriplesFormatter(NTriplesSyntax syntax)
Parameters
Type | Name | Description |
---|---|---|
NTriplesSyntax | syntax |
NTriplesFormatter(NTriplesSyntax, String)
Creates a new NTriples formatter.
Declaration
public NTriplesFormatter(NTriplesSyntax syntax, string formatName)
Parameters
Type | Name | Description |
---|---|---|
NTriplesSyntax | syntax | NTriples syntax to output. |
System.String | formatName | Format Name. |
Properties
| Improve this Doc View SourceSyntax
Gets the NTriples syntax being used.
Declaration
public NTriplesSyntax Syntax { get; }
Property Value
Type | Description |
---|---|
NTriplesSyntax |
Methods
| Improve this Doc View SourceFormatBlankNode(IBlankNode, Nullable<TripleSegment>)
Formats a Blank Node.
Declaration
protected override string FormatBlankNode(IBlankNode b, TripleSegment? segment)
Parameters
Type | Name | Description |
---|---|---|
IBlankNode | b | Blank Node. |
System.Nullable<TripleSegment> | segment | Triple Segment. |
Returns
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceFormatChar(Char)
Formats a Character.
Declaration
[Obsolete("This form of the FormatChar() method is considered obsolete as it is inefficient", false)]
public override string FormatChar(char c)
Parameters
Type | Name | Description |
---|---|---|
System.Char | c | Character. |
Returns
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceFormatChar(Char[])
Formats a sequence of characters as a String.
Declaration
public override string FormatChar(char[] cs)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | cs | Characters. |
Returns
Type | Description |
---|---|
System.String | String. |
Overrides
| Improve this Doc View SourceFormatLiteralNode(ILiteralNode, Nullable<TripleSegment>)
Formats a Literal Node.
Declaration
protected override string FormatLiteralNode(ILiteralNode l, TripleSegment? segment)
Parameters
Type | Name | Description |
---|---|---|
ILiteralNode | l | Literal Node. |
System.Nullable<TripleSegment> | segment | Triple Segment. |
Returns
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceFormatUri(String)
Formats a URI as a String for full Output.
Declaration
public override string FormatUri(string u)
Parameters
Type | Name | Description |
---|---|---|
System.String | u | URI. |
Returns
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceFormatUri(Uri)
Formats a URI as a String for full Output.
Declaration
public override string FormatUri(Uri u)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | u | URI. |
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 |