Click or drag to resize

TurtleFormatter Class

Formatter which formats Turtle with QName compression.
Inheritance Hierarchy

Namespace:  VDS.RDF.Writing.Formatting
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public class TurtleFormatter : QNameFormatter, 
	IBaseUriFormatter

The TurtleFormatter type exposes the following members.

Constructors
  NameDescription
Public methodTurtleFormatter
Creates a new Turtle Formatter.
Protected methodTurtleFormatter(String)
Creates a new Turtle Formatter.
Public methodTurtleFormatter(IGraph)
Creates a new Turtle Formatter for the given Graph.
Public methodTurtleFormatter(INamespaceMapper)
Creates a new Turtle Formatter for the given Namespace Map.
Public methodTurtleFormatter(QNameOutputMapper)
Creates a new Turtle Formatter that uses the given QName mapper.
Protected methodTurtleFormatter(String, IGraph)
Creates a new Turtle Formatter.
Protected methodTurtleFormatter(String, INamespaceMapper)
Creates a new Turtle Formatter.
Protected methodTurtleFormatter(String, QNameOutputMapper)
Creates a new Turtle Formatter.
Top
Properties
  NameDescription
Public propertyFormatName
Gets the Format Name.
(Inherited from BaseFormatter.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodEscape
Applies escapes to the given value.
(Inherited from BaseFormatter.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFormat(INode)
Formats a Node as a String.
(Inherited from BaseFormatter.)
Public methodFormat(SparqlResult)
Formats a SPARQL Result for the given format.
(Inherited from BaseFormatter.)
Public methodFormat(Triple)
Formats a Triple as a String.
(Inherited from BaseFormatter.)
Public methodFormat(INode, NullableTripleSegment)
Formats a Node as a String.
(Inherited from BaseFormatter.)
Public methodFormatBaseUri
Formats a Base URI declaration as a @base declaration.
Protected methodFormatBlankNode
Formats a Blank Node as a String.
(Overrides BaseFormatterFormatBlankNode(IBlankNode, NullableTripleSegment).)
Public methodFormatBooleanResult
Formats a SPARQL Boolean Result for the given format.
(Inherited from BaseFormatter.)
Public methodFormatChar(Char) Obsolete.
Formats a Character for the given Format.
(Inherited from BaseFormatter.)
Public methodFormatChar(Char)
Formats a sequence of characters as a String.
(Inherited from BaseFormatter.)
Protected methodFormatGraphLiteralNode
Formats a Graph Literal Node as a String for the given Format.
(Inherited from BaseFormatter.)
Protected methodFormatLiteralNode
Formats a Literal Node as a String.
(Overrides QNameFormatterFormatLiteralNode(ILiteralNode, NullableTripleSegment).)
Public methodFormatNamespace
Formats a Namespace Decalaration as a @prefix declaration.
(Overrides QNameFormatterFormatNamespace(String, Uri).)
Public methodFormatUri(String)
Formats a URI as a String for full Output.
(Inherited from BaseFormatter.)
Public methodFormatUri(Uri)
Formats a URI as a String for full Output.
(Inherited from BaseFormatter.)
Protected methodFormatUriNode
Formats a URI Node using QName compression if possible.
(Inherited from QNameFormatter.)
Protected methodFormatVariableNode
Formats a Variable Node as a String for the given Format.
(Inherited from BaseFormatter.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodIsValidQName
Determines whether a QName is valid.
(Inherited from QNameFormatter.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Gets the Name of the Format this Format uses.
(Inherited from BaseFormatter.)
Top
Fields
  NameDescription
Protected field_litMustEscape
Set of characters that must be escaped for Literals.
Protected field_longLitMustEscape
Set of characters that must be escaped for Long Literals.
Protected field_qnameMapper
QName Map used for compressing URIs to QNames.
(Inherited from QNameFormatter.)
Top
See Also