Click or drag to resize

SparqlFormatter Class

Formatter for formatting Nodes for use in SPARQL and for formatting SPARQL Queries.
Inheritance Hierarchy

Namespace:  VDS.RDF.Writing.Formatting
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public class SparqlFormatter : TurtleFormatter, 
	IQueryFormatter, INodeFormatter, IUriFormatter, IResultFormatter

The SparqlFormatter type exposes the following members.

Constructors
  NameDescription
Public methodSparqlFormatter
Creates a new SPARQL Formatter.
Public methodSparqlFormatter(IGraph)
Creates a new SPARQL Formatter using the given Graph.
Public methodSparqlFormatter(INamespaceMapper)
Creates a new SPARQL Formatter using the given Namespace Map.
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(GraphPattern)
Formats a Graph Pattern in nicely formatted SPARQL syntax.
Public methodFormat(INode)
Formats a Node as a String.
(Inherited from BaseFormatter.)
Public methodFormat(ITriplePattern)
Formats a Triple Pattern in nicely formatted SPARQL syntax.
Public methodFormat(SparqlQuery)
Formats a Query in nicely formatted SPARQL syntax.
Public methodFormat(SparqlResult)
Formats a SPARQL Result using this Formatter to format the Node values for each Variable.
(Overrides BaseFormatterFormat(SparqlResult).)
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 methodFormat(PatternItem, NullableTripleSegment)
Formats a Pattern Item in nicely formatted SPARQL syntax.
Protected methodFormatAggregate
Formats a SPARQL Aggregate.
Public methodFormatBaseUri
Formats a Base URI Declaration.
(Overrides TurtleFormatterFormatBaseUri(Uri).)
Protected methodFormatBlankNode
Formats a Blank Node as a String.
(Inherited from TurtleFormatter.)
Public methodFormatBooleanResult
Formats a Boolean Result.
(Overrides BaseFormatterFormatBooleanResult(Boolean).)
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 methodFormatDescribeVariablesList
Formats the Variable/QName/URI for a SPARQL DESCRIBE Query.
Protected methodFormatExpression
Formats a SPARQL Expression.
Protected methodFormatGraphLiteralNode
Formats a Graph Literal Node as a String for the given Format.
(Inherited from BaseFormatter.)
Protected methodFormatGroupBy
Formats a SPARQL GROUP BY Clause.
Protected methodFormatInlineData
Formats the Inline Data portion of a Query.
Protected methodFormatLiteralNode
Formats a Literal Node as a String.
(Inherited from TurtleFormatter.)
Public methodFormatNamespace
Formats a Namespace Declaration.
(Overrides TurtleFormatterFormatNamespace(String, Uri).)
Protected methodFormatOrderBy
Formats a SPARQL ORDER BY Clause.
Protected methodFormatPath
Formats a SPARQL Property Path.
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 in SPARQL Syntax.
(Overrides BaseFormatterFormatVariableNode(IVariableNode, NullableTripleSegment).)
Protected methodFormatVariablesList
Formats the Variable List for a SPARQL Query.
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.
(Overrides QNameFormatterIsValidQName(String).)
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.
(Inherited from TurtleFormatter.)
Protected field_longLitMustEscape
Set of characters that must be escaped for Long Literals.
(Inherited from TurtleFormatter.)
Protected field_qnameMapper
QName Map used for compressing URIs to QNames.
(Inherited from QNameFormatter.)
Top
See Also