Show / Hide Table of Contents

Class NTriplesFormatter

Formatter for formatting as NTriples.
Inheritance
System.Object
BaseFormatter
NTriplesFormatter
NQuadsFormatter
NTriples11Formatter
UncompressedTurtleFormatter
Implements
INodeFormatter
ITripleFormatter
IUriFormatter
ICharFormatter
IResultFormatter
Inherited Members
BaseFormatter.FormatName
BaseFormatter.Format(INode, Nullable<TripleSegment>)
BaseFormatter.Format(INode)
BaseFormatter.Format(Triple)
BaseFormatter.FormatVariableNode(IVariableNode, Nullable<TripleSegment>)
BaseFormatter.FormatGraphLiteralNode(IGraphLiteralNode, Nullable<TripleSegment>)
BaseFormatter.Format(SparqlResult)
BaseFormatter.FormatBooleanResult(Boolean)
BaseFormatter.Escape(String, List<String[]>)
BaseFormatter.ToString()
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 Source

NTriplesFormatter()

Creates a new NTriples Formatter.
Declaration
public NTriplesFormatter()
| Improve this Doc View Source

NTriplesFormatter(String)

Creates a new NTriples Formatter.
Declaration
protected NTriplesFormatter(string formatName)
Parameters
Type Name Description
System.String formatName Format Name.
| Improve this Doc View Source

NTriplesFormatter(NTriplesSyntax)

Creates a new NTriples Formatter.
Declaration
public NTriplesFormatter(NTriplesSyntax syntax)
Parameters
Type Name Description
NTriplesSyntax syntax
| Improve this Doc View Source

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 Source

Syntax

Gets the NTriples syntax being used.
Declaration
public NTriplesSyntax Syntax { get; }
Property Value
Type Description
NTriplesSyntax

Methods

| Improve this Doc View Source

FormatBlankNode(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
BaseFormatter.FormatBlankNode(IBlankNode, Nullable<TripleSegment>)
| Improve this Doc View Source

FormatChar(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
BaseFormatter.FormatChar(Char)
| Improve this Doc View Source

FormatChar(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
BaseFormatter.FormatChar(Char[])
| Improve this Doc View Source

FormatLiteralNode(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
BaseFormatter.FormatLiteralNode(ILiteralNode, Nullable<TripleSegment>)
| Improve this Doc View Source

FormatUri(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
BaseFormatter.FormatUri(String)
| Improve this Doc View Source

FormatUri(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
BaseFormatter.FormatUri(Uri)
| Improve this Doc View Source

FormatUriNode(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
Overrides
BaseFormatter.FormatUriNode(IUriNode, Nullable<TripleSegment>)

Implements

INodeFormatter
ITripleFormatter
IUriFormatter
ICharFormatter
IResultFormatter

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • NTriplesFormatter()
    • NTriplesFormatter(String)
    • NTriplesFormatter(NTriplesSyntax)
    • NTriplesFormatter(NTriplesSyntax, String)
  • Properties
    • Syntax
  • Methods
    • FormatBlankNode(IBlankNode, Nullable<TripleSegment>)
    • FormatChar(Char)
    • FormatChar(Char[])
    • FormatLiteralNode(ILiteralNode, Nullable<TripleSegment>)
    • FormatUri(String)
    • FormatUri(Uri)
    • FormatUriNode(IUriNode, Nullable<TripleSegment>)
  • Implements
  • Extension Methods
Back to top Generated by DocFX