Show / Hide Table of Contents

Class TurtleW3CFormatter

Formatter which formats Turtle with QName compression using the newer W3C syntax which permits a wider range of valid QNames.

Inheritance
object
BaseFormatter
QNameFormatter
TurtleFormatter
TurtleW3CFormatter
Implements
INodeFormatter
ITripleFormatter
IUriFormatter
ICharFormatter
IResultFormatter
INamespaceFormatter
IBaseUriFormatter
Inherited Members
TurtleFormatter._longLitMustEscape
TurtleFormatter._litMustEscape
TurtleFormatter.FormatLiteralNode(ILiteralNode, TripleSegment?)
TurtleFormatter.FormatBlankNode(IBlankNode, TripleSegment?)
TurtleFormatter.FormatNamespace(string, Uri)
TurtleFormatter.FormatBaseUri(Uri)
QNameFormatter._qnameMapper
QNameFormatter.FormatUriNode(IUriNode, TripleSegment?)
BaseFormatter.FormatName
BaseFormatter.Format(INode, TripleSegment?)
BaseFormatter.Format(INode)
BaseFormatter.Format(Triple)
BaseFormatter.Format(Triple, IRefNode)
BaseFormatter.FormatUri(string)
BaseFormatter.FormatUri(Uri)
BaseFormatter.FormatVariableNode(IVariableNode, TripleSegment?)
BaseFormatter.FormatGraphLiteralNode(IGraphLiteralNode, TripleSegment?)
BaseFormatter.FormatChar(char)
BaseFormatter.FormatChar(char[])
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 TurtleW3CFormatter : TurtleFormatter, INodeFormatter, ITripleFormatter, IUriFormatter, ICharFormatter, IResultFormatter, INamespaceFormatter, IBaseUriFormatter

Constructors

| Edit this page View Source

TurtleW3CFormatter()

Creates a new Turtle Formatter.

Declaration
public TurtleW3CFormatter()
| Edit this page View Source

TurtleW3CFormatter(string)

Creates a new Turtle Formatter.

Declaration
protected TurtleW3CFormatter(string formatName)
Parameters
Type Name Description
string formatName

Format Name.

| Edit this page View Source

TurtleW3CFormatter(string, IGraph)

Creates a new Turtle Formatter.

Declaration
protected TurtleW3CFormatter(string formatName, IGraph g)
Parameters
Type Name Description
string formatName

Format Name.

IGraph g

Graph.

| Edit this page View Source

TurtleW3CFormatter(string, INamespaceMapper)

Creates a new Turtle Formatter.

Declaration
protected TurtleW3CFormatter(string formatName, INamespaceMapper nsmap)
Parameters
Type Name Description
string formatName

Format Name.

INamespaceMapper nsmap

Namespace Map.

| Edit this page View Source

TurtleW3CFormatter(string, INamespaceMapper, IUriFactory)

Creates a new Turtle Formatter.

Declaration
protected TurtleW3CFormatter(string formatName, INamespaceMapper nsmap, IUriFactory uriFactory)
Parameters
Type Name Description
string formatName

Format Name.

INamespaceMapper nsmap

Namespace Map.

IUriFactory uriFactory

The factory to use when creating new Uri instances.

| Edit this page View Source

TurtleW3CFormatter(string, IUriFactory)

Creates a new Turtle Formatter.

Declaration
protected TurtleW3CFormatter(string formatName, IUriFactory uriFactory)
Parameters
Type Name Description
string formatName

Format Name.

IUriFactory uriFactory

The factory to use when creating new Uri instances.

| Edit this page View Source

TurtleW3CFormatter(string, QNameOutputMapper)

Creates a new Turtle Formatter.

Declaration
protected TurtleW3CFormatter(string formatName, QNameOutputMapper qnameMapper)
Parameters
Type Name Description
string formatName

Format Name.

QNameOutputMapper qnameMapper

QName Map.

| Edit this page View Source

TurtleW3CFormatter(IGraph)

Creates a new Turtle Formatter for the given Graph.

Declaration
public TurtleW3CFormatter(IGraph g)
Parameters
Type Name Description
IGraph g

Graph.

| Edit this page View Source

TurtleW3CFormatter(INamespaceMapper)

Creates a new Turtle Formatter for the given Namespace Map.

Declaration
public TurtleW3CFormatter(INamespaceMapper nsmap)
Parameters
Type Name Description
INamespaceMapper nsmap

Namespace Map.

| Edit this page View Source

TurtleW3CFormatter(INamespaceMapper, IUriFactory)

Creates a new Turtle Formatter for the given Namespace Map.

Declaration
public TurtleW3CFormatter(INamespaceMapper nsmap, IUriFactory uriFactory)
Parameters
Type Name Description
INamespaceMapper nsmap

Namespace Map.

IUriFactory uriFactory

The factory to use when creating new Uri instances.

| Edit this page View Source

TurtleW3CFormatter(IUriFactory)

Creates a new Turtle Formatter.

Declaration
public TurtleW3CFormatter(IUriFactory uriFactory)
Parameters
Type Name Description
IUriFactory uriFactory

The factory to use when creating new Uri instances.

| Edit this page View Source

TurtleW3CFormatter(QNameOutputMapper)

Creates a new Turtle Formatter that uses the given QName mapper.

Declaration
public TurtleW3CFormatter(QNameOutputMapper qnameMapper)
Parameters
Type Name Description
QNameOutputMapper qnameMapper

QName Mapper.

Methods

| Edit this page View Source

FormatTripleNode(ITripleNode, TripleSegment?)

Formats a triple node a a string for the given format.

Declaration
protected override string FormatTripleNode(ITripleNode t, TripleSegment? segment)
Parameters
Type Name Description
ITripleNode t

Triple node.

TripleSegment? segment

Triple segment being written.

Returns
Type Description
string
Overrides
BaseFormatter.FormatTripleNode(ITripleNode, TripleSegment?)
Remarks

This method should be overridden in formatters that support serializing ITripleNodes.

| Edit this page View Source

IsValidQName(string)

Gets whether a QName is valid in Turtle as specified by the W3C.

Declaration
protected override bool IsValidQName(string value)
Parameters
Type Name Description
string value

QName.

Returns
Type Description
bool
Overrides
QNameFormatter.IsValidQName(string)

Implements

INodeFormatter
ITripleFormatter
IUriFormatter
ICharFormatter
IResultFormatter
INamespaceFormatter
IBaseUriFormatter

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • TurtleW3CFormatter()
    • TurtleW3CFormatter(string)
    • TurtleW3CFormatter(string, IGraph)
    • TurtleW3CFormatter(string, INamespaceMapper)
    • TurtleW3CFormatter(string, INamespaceMapper, IUriFactory)
    • TurtleW3CFormatter(string, IUriFactory)
    • TurtleW3CFormatter(string, QNameOutputMapper)
    • TurtleW3CFormatter(IGraph)
    • TurtleW3CFormatter(INamespaceMapper)
    • TurtleW3CFormatter(INamespaceMapper, IUriFactory)
    • TurtleW3CFormatter(IUriFactory)
    • TurtleW3CFormatter(QNameOutputMapper)
  • Methods
    • FormatTripleNode(ITripleNode, TripleSegment?)
    • IsValidQName(string)
  • Implements
  • Extension Methods
Back to top Generated by DocFX