Show / Hide Table of Contents

Class SparqlXmlParser

Parser for SPARQL Results XML Format.

Inheritance
object
BaseSparqlResultsReader
SparqlXmlParser
Implements
ISparqlResultsReader
Inherited Members
BaseSparqlResultsReader.Load(SparqlResultSet, StreamReader)
BaseSparqlResultsReader.Load(SparqlResultSet, string)
BaseSparqlResultsReader.Load(SparqlResultSet, TextReader)
BaseSparqlResultsReader.Load(ISparqlResultsHandler, StreamReader)
BaseSparqlResultsReader.Load(ISparqlResultsHandler, string)
BaseSparqlResultsReader.Load(ISparqlResultsHandler, TextReader)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public class SparqlXmlParser : BaseSparqlResultsReader, ISparqlResultsReader

Fields

| Edit this page View Source

SparqlNamespace

Namespace Uri for SPARQL Namespace.

Declaration
public const string SparqlNamespace = "http://www.w3.org/2005/sparql-results#"
Field Value
Type Description
string
| Edit this page View Source

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 Source

Load(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
BaseSparqlResultsReader.Load(ISparqlResultsHandler, StreamReader, IUriFactory)
| Edit this page View Source

Load(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
BaseSparqlResultsReader.Load(ISparqlResultsHandler, TextReader, IUriFactory)
| Edit this page View Source

Load(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
BaseSparqlResultsReader.Load(ISparqlResultsHandler, string, IUriFactory)
| Edit this page View Source

Load(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
BaseSparqlResultsReader.Load(SparqlResultSet, StreamReader, IUriFactory)
| Edit this page View Source

Load(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
BaseSparqlResultsReader.Load(SparqlResultSet, TextReader, IUriFactory)
| Edit this page View Source

Load(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
BaseSparqlResultsReader.Load(SparqlResultSet, string, IUriFactory)
| Edit this page View Source

ToString()

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
object.ToString()

Events

| Edit this page View Source

Warning

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
Overrides
BaseSparqlResultsReader.Warning

Implements

ISparqlResultsReader

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Fields
    • SparqlNamespace
    • XmlReaderSettings
  • Methods
    • Load(ISparqlResultsHandler, StreamReader, IUriFactory)
    • Load(ISparqlResultsHandler, TextReader, IUriFactory)
    • Load(ISparqlResultsHandler, string, IUriFactory)
    • Load(SparqlResultSet, StreamReader, IUriFactory)
    • Load(SparqlResultSet, TextReader, IUriFactory)
    • Load(SparqlResultSet, string, IUriFactory)
    • ToString()
  • Events
    • Warning
  • Implements
  • Extension Methods
Back to top Generated by DocFX