Show / Hide Table of Contents

Class NTriples11Formatter

Formatter for formatting as NTriples according to the RDF 1.1 specification.

Inheritance
object
BaseFormatter
NTriplesFormatter
NTriples11Formatter
Implements
INodeFormatter
ITripleFormatter
IUriFormatter
ICharFormatter
IResultFormatter
ICommentFormatter
Inherited Members
NTriplesFormatter.Syntax
NTriplesFormatter.Format(Triple, IRefNode)
NTriplesFormatter.FormatUriNode(IUriNode, TripleSegment?)
NTriplesFormatter.FormatLiteralNode(ILiteralNode, TripleSegment?)
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 NTriples11Formatter : NTriplesFormatter, INodeFormatter, ITripleFormatter, IUriFormatter, ICharFormatter, IResultFormatter, ICommentFormatter
Remarks

The primary difference between this formatter and NTriplesFormatter is that this formatter will drop the xsd:string datatype IRI from literals as this is the default datatype assigned to string literals by the RDF 1.1 specification.

Constructors

| Edit this page View Source

NTriples11Formatter()

Creates a new formatter.

Declaration
public NTriples11Formatter()

Methods

| Edit this page View Source

FormatDatatype(Uri)

Return the datatype specification for a literal value.

Declaration
protected override string FormatDatatype(Uri datatypeUri)
Parameters
Type Name Description
Uri datatypeUri

The datatype URI.

Returns
Type Description
string

The formatted datatype specification unless datatypeUri matches the XML Schema String datatype URI, in which case an empty string is returned.

Overrides
NTriplesFormatter.FormatDatatype(Uri)

Implements

INodeFormatter
ITripleFormatter
IUriFormatter
ICharFormatter
IResultFormatter
ICommentFormatter

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • NTriples11Formatter()
  • Methods
    • FormatDatatype(Uri)
  • Implements
  • Extension Methods
Back to top Generated by DocFX