Class SparqlCsvWriter
Class for saving SPARQL Result Sets to CSV format (not a standardised format).
Inheritance
System.Object
SparqlCsvWriter
Implements
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 SparqlCsvWriter : ISparqlResultsWriter
Methods
| Improve this Doc View SourceSave(SparqlResultSet, TextWriter)
Saves a SPARQL Result Set to CSV format.
Declaration
public void Save(SparqlResultSet results, TextWriter output)
Parameters
Type | Name | Description |
---|---|---|
SparqlResultSet | results | Result Set. |
System.IO.TextWriter | output | Writer to save to. |
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. |
System.Text.Encoding | fileEncoding | The text encoding to use. |
Save(SparqlResultSet, string)
Saves the Result Set to the given file using UTF-8 text encoding with no byte-order mark.
Declaration
public void Save(SparqlResultSet results, string filename)
Parameters
Type | Name | Description |
---|---|---|
SparqlResultSet | results | Result Set to save. |
string | filename | File to save to. |
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
| Improve this Doc View SourceWarning
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 |