Class SparqlXmlWriter
Class for saving Sparql Result Sets to the Sparql Results XML Format.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: VDS.RDF.Writing
Assembly: dotNetRDF.dll
Syntax
public class SparqlXmlWriter : ISparqlResultsWriter
Methods
| Improve this Doc View SourceGenerateOutput(SparqlResultSet, XmlWriter)
Method which generates the Sparql Query Results XML Format serialization of the Result Set.
Declaration
protected void GenerateOutput(SparqlResultSet resultSet, XmlWriter writer)
Parameters
Type | Name | Description |
---|---|---|
SparqlResultSet | resultSet | |
System.Xml.XmlWriter | writer |
RaiseWarning(String)
Helper Method which raises the Warning event when a non-fatal issue with the SPARQL Results being written is detected.
Declaration
protected void RaiseWarning(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Warning Message. |
Save(SparqlResultSet, TextWriter)
Saves the Result Set to the given Stream in the Sparql Results XML Format.
Declaration
public virtual void Save(SparqlResultSet results, TextWriter output)
Parameters
Type | Name | Description |
---|---|---|
SparqlResultSet | results | |
System.IO.TextWriter | output |
Save(SparqlResultSet, String)
Saves the Result Set to the given File in the Sparql Results XML Format.
Declaration
public virtual void Save(SparqlResultSet results, string filename)
Parameters
Type | Name | Description |
---|---|---|
SparqlResultSet | results | Result Set to save. |
System.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 |
---|---|
System.String |
Overrides
System.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 |