Show / Hide Table of Contents

Class NTriples11Formatter

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

Inheritance
System.Object
BaseFormatter
NTriplesFormatter
NTriples11Formatter
Implements
INodeFormatter
ITripleFormatter
IUriFormatter
ICharFormatter
IResultFormatter
Inherited Members
NTriplesFormatter._litEscapes
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)
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
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

| Improve this Doc View Source

NTriples11Formatter()

Creates a new formatter.

Declaration
public NTriples11Formatter()
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.

Methods

| Improve this Doc View Source

FormatDatatype(Uri)

Return the datatype specification for a literal value.

Declaration
protected override string FormatDatatype(Uri datatypeUri)
Parameters
Type Name Description
System.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)
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.

Implements

INodeFormatter
ITripleFormatter
IUriFormatter
ICharFormatter
IResultFormatter

Extension Methods

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