Show / Hide Table of Contents

Class SparqlHtmlWriter

Class for saving SPARQL Result Sets to a HTML Table format (this is not a standardized format).

Inheritance
object
BaseHtmlWriter
SparqlHtmlWriter
Implements
IHtmlWriter
ISparqlResultsWriter
INamespaceWriter
Inherited Members
BaseHtmlWriter.Stylesheet
BaseHtmlWriter.CssClassUri
BaseHtmlWriter.CssClassBlankNode
BaseHtmlWriter.CssClassLiteral
BaseHtmlWriter.CssClassDatatype
BaseHtmlWriter.CssClassLangSpec
BaseHtmlWriter.CssClassBox
BaseHtmlWriter.UriPrefix
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Writing
Assembly: dotNetRdf.dll
Syntax
public class SparqlHtmlWriter : BaseHtmlWriter, IHtmlWriter, ISparqlResultsWriter, INamespaceWriter

Properties

| Edit this page View Source

DefaultNamespaces

Gets/Sets the Default Namespaces used to pretty print URIs in the output.

Declaration
public INamespaceMapper DefaultNamespaces { get; set; }
Property Value
Type Description
INamespaceMapper

Methods

| Edit this page View Source

Save(SparqlResultSet, TextWriter)

Saves the Result Set to the given Stream as a HTML Table.

Declaration
public void Save(SparqlResultSet results, TextWriter output)
Parameters
Type Name Description
SparqlResultSet results

Result Set to save.

TextWriter output

Stream to save to.

| Edit this page View Source

Save(SparqlResultSet, string)

Saves the Result Set to the given File as a HTML Table.

Declaration
public void Save(SparqlResultSet results, string filename)
Parameters
Type Name Description
SparqlResultSet results

Result Set to save.

string filename

File to save to.

| Edit this page View Source

Save(SparqlResultSet, string, Encoding)

Saves the result set to the specified file using the specified text encoding.

Declaration
public void Save(SparqlResultSet results, string filename, Encoding fileEncoding)
Parameters
Type Name Description
SparqlResultSet results

The results set to save.

string filename

The path to the file to be written.

Encoding fileEncoding

The text encoding to use.

| Edit this page View Source

ToString()

Gets the String representation of the writer which is a description of the syntax it produces.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Events

| Edit this page View Source

Warning

Event raised when a non-fatal issue with the SPARQL Results being written is detected

Declaration
public event SparqlWarning Warning
Event Type
Type Description
SparqlWarning

Implements

IHtmlWriter
ISparqlResultsWriter
INamespaceWriter

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Properties
    • DefaultNamespaces
  • Methods
    • Save(SparqlResultSet, TextWriter)
    • Save(SparqlResultSet, string)
    • Save(SparqlResultSet, string, Encoding)
    • ToString()
  • Events
    • Warning
  • Implements
  • Extension Methods
Back to top Generated by DocFX