Show / Hide Table of Contents

Class NQuadsFormatter

Formatter which formats Triples as NQuads adding an additional URI at the end of the Triple if there is a Graph URI associated with the Triple.

Inheritance
object
BaseFormatter
NTriplesFormatter
NQuadsFormatter
NQuads11Formatter
Implements
INodeFormatter
ITripleFormatter
IUriFormatter
ICharFormatter
IResultFormatter
ICommentFormatter
IQuadFormatter
Inherited Members
NTriplesFormatter.Syntax
NTriplesFormatter.FormatUriNode(IUriNode, TripleSegment?)
NTriplesFormatter.FormatLiteralNode(ILiteralNode, TripleSegment?)
NTriplesFormatter.FormatDatatype(Uri)
NTriplesFormatter.FormatTripleNode(ITripleNode, TripleSegment?)
NTriplesFormatter.FormatChar(char)
NTriplesFormatter.FormatChar(char[])
NTriplesFormatter.FormatBlankNode(IBlankNode, TripleSegment?)
NTriplesFormatter.FormatUri(Uri)
NTriplesFormatter.FormatUri(string)
NTriplesFormatter.FormatComment(string)
BaseFormatter.FormatName
BaseFormatter.Format(INode, TripleSegment?)
BaseFormatter.Format(INode)
BaseFormatter.Format(Triple)
BaseFormatter.FormatVariableNode(IVariableNode, TripleSegment?)
BaseFormatter.FormatGraphLiteralNode(IGraphLiteralNode, TripleSegment?)
BaseFormatter.Format(ISparqlResult)
BaseFormatter.FormatBooleanResult(bool)
BaseFormatter.Escape(string, List<string[]>)
BaseFormatter.ToString()
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 class NQuadsFormatter : NTriplesFormatter, INodeFormatter, ITripleFormatter, IUriFormatter, ICharFormatter, IResultFormatter, ICommentFormatter, IQuadFormatter

Constructors

| Edit this page View Source

NQuadsFormatter()

Creates a new NQuads Formatter.

Declaration
public NQuadsFormatter()
| Edit this page View Source

NQuadsFormatter(NQuadsSyntax)

Creates a new NQuads formatter.

Declaration
public NQuadsFormatter(NQuadsSyntax syntax)
Parameters
Type Name Description
NQuadsSyntax syntax

NQuads syntax to output.

| Edit this page View Source

NQuadsFormatter(NQuadsSyntax, string)

Creates a new NQuads formatter.

Declaration
public NQuadsFormatter(NQuadsSyntax syntax, string formatName)
Parameters
Type Name Description
NQuadsSyntax syntax

NQuads syntax to output.

string formatName

Format Name.

Methods

| Edit this page View Source

Format(ITripleStore)

Formats a TripleStore as a String. Especially useful for canonicalized graphs.

Declaration
public string Format(ITripleStore store)
Parameters
Type Name Description
ITripleStore store
Returns
Type Description
string
| Edit this page View Source

Format(Triple, IRefNode)

Formats a Triple (optionally in the context of a graph) as a String.

Declaration
public override string Format(Triple t, IRefNode graph)
Parameters
Type Name Description
Triple t

Triple.

IRefNode graph

The graph containing the triple.

Returns
Type Description
string
Overrides
NTriplesFormatter.Format(Triple, IRefNode)

Implements

INodeFormatter
ITripleFormatter
IUriFormatter
ICharFormatter
IResultFormatter
ICommentFormatter
IQuadFormatter

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • NQuadsFormatter()
    • NQuadsFormatter(NQuadsSyntax)
    • NQuadsFormatter(NQuadsSyntax, string)
  • Methods
    • Format(ITripleStore)
    • Format(Triple, IRefNode)
  • Implements
  • Extension Methods
Back to top Generated by DocFX