Show / Hide Table of Contents

Class SparqlJsonWriter

Class for saving Sparql Result Sets to the SPARQL Results JSON Format.

Inheritance
object
SparqlJsonWriter
Implements
ISparqlResultsWriter
Inherited Members
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 SparqlJsonWriter : ISparqlResultsWriter

Methods

| Edit this page View Source

Save(SparqlResultSet, TextWriter)

Saves the Result Set to the given Stream in the SPARQL Results JSON Format.

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 in the SPARQL Results JSON Format.

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

Result Set to save.

string filename

File to save to.

Remarks

The output file will be written using UTF-8 text encoding with no byte-order mark.

| Edit this page View Source

Save(SparqlResultSet, string, Encoding)

Saves the Result Set to the given File in the SPARQL Results JSON Format.

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

Result Set to save.

string filename

File to save to.

Encoding fileEncoding

The text encoding to use for the output file.

| 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

ISparqlResultsWriter

Extension Methods

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