Class SparqlXmlParser
Parser for SPARQL Results XML Format.
Implements
Inherited Members
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public class SparqlXmlParser : BaseSparqlResultsReader, ISparqlResultsReader
Fields
| Edit this page View SourceSparqlNamespace
Namespace Uri for SPARQL Namespace.
Declaration
public const string SparqlNamespace = "http://www.w3.org/2005/sparql-results#"
Field Value
Type | Description |
---|---|
string |
XmlReaderSettings
Get the settings passed to the underlying XML parser on read.
Declaration
public readonly XmlReaderSettings XmlReaderSettings
Field Value
Type | Description |
---|---|
XmlReaderSettings |
Remarks
This property can be used to modify the configuration of the XML parser used to parse SPARQL XML. In particular it makes it possible to disable the processing of the XML DTD in environments where remote XML entity references are of concern.
Methods
| Edit this page View SourceLoad(ISparqlResultsHandler, StreamReader, IUriFactory)
Loads a Result Set from an Input using a Results Handler.
Declaration
public override void Load(ISparqlResultsHandler handler, StreamReader input, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
ISparqlResultsHandler | handler | Results Handler to use. |
StreamReader | input | Input Stream to read from. |
IUriFactory | uriFactory | URI Factory to use. |
Overrides
| Edit this page View SourceLoad(ISparqlResultsHandler, TextReader, IUriFactory)
Loads a Result Set from an Input using a Results Handler.
Declaration
public override void Load(ISparqlResultsHandler handler, TextReader input, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
ISparqlResultsHandler | handler | Results Handler to use. |
TextReader | input | Input to read from. |
IUriFactory | uriFactory | URI Factory to use. |
Overrides
| Edit this page View SourceLoad(ISparqlResultsHandler, string, IUriFactory)
Loads a Result Set from a file using a Results Handler.
Declaration
public override void Load(ISparqlResultsHandler handler, string filename, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
ISparqlResultsHandler | handler | Results Handler to use. |
string | filename | File to read from. |
IUriFactory | uriFactory | URI Factory to use. |
Overrides
| Edit this page View SourceLoad(SparqlResultSet, StreamReader, IUriFactory)
Loads a Result Set from an Input Stream.
Declaration
public override void Load(SparqlResultSet results, StreamReader input, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
SparqlResultSet | results | Result Set to load into. |
StreamReader | input | Input Stream to read from. |
IUriFactory | uriFactory | URI Factory to use. |
Overrides
| Edit this page View SourceLoad(SparqlResultSet, TextReader, IUriFactory)
Loads a Result Set from an Input.
Declaration
public override void Load(SparqlResultSet results, TextReader input, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
SparqlResultSet | results | Result Set to load into. |
TextReader | input | Input to read from. |
IUriFactory | uriFactory | URI Factory to use. |
Overrides
| Edit this page View SourceLoad(SparqlResultSet, string, IUriFactory)
Loads a Result Set from a File.
Declaration
public override void Load(SparqlResultSet results, string filename, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
SparqlResultSet | results | Result Set to load into. |
string | filename | File to load from. |
IUriFactory | uriFactory | URI Factory to use. |
Overrides
| Edit this page View SourceToString()
Gets the String representation of the Parser which is a description of the syntax it parses.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Overrides
Events
| Edit this page View SourceWarning
Event raised when a non-fatal issue with the SPARQL Results being parsed is detected
Declaration
public override event SparqlWarning Warning
Event Type
Type | Description |
---|---|
SparqlWarning |