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.
Implements
Inherited Members
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 SourceNQuadsFormatter()
Creates a new NQuads Formatter.
Declaration
public NQuadsFormatter()
NQuadsFormatter(NQuadsSyntax)
Creates a new NQuads formatter.
Declaration
public NQuadsFormatter(NQuadsSyntax syntax)
Parameters
| Type | Name | Description |
|---|---|---|
| NQuadsSyntax | syntax | NQuads syntax to output. |
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 SourceFormat(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 |