Class SparqlRdfParser
Parser for reading SPARQL Results which have been encoded in the RDF schema for Result Sets and serialized as RDF.
Implements
Inherited Members
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public class SparqlRdfParser : BaseSparqlResultsReader, ISparqlResultsReader
Constructors
| Edit this page View SourceSparqlRdfParser()
Creates a new SPARQL RDF Parser which will use auto-detection for determining the syntax of input streams/files.
Declaration
public SparqlRdfParser()
SparqlRdfParser(IRdfReader)
Creates a new SPARQL RDF Parser which will use the given RDF Parser.
Declaration
public SparqlRdfParser(IRdfReader parser)
Parameters
Type | Name | Description |
---|---|---|
IRdf |
parser | RDF Parser. |
Fields
| Edit this page View SourceSparqlRdfResultsNamespace
Namespace Uri for the RDF serialization of a SPARQL Result Set.
Declaration
public const string SparqlRdfResultsNamespace = "http://www.w3.org/2001/sw/DataAccess/tests/result-set#"
Field Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceLoad(ISparqlResultsHandler, StreamReader, IUriFactory)
Loads a SPARQL Results from RDF contained in the given Stream using a Results Handler.
Declaration
public override void Load(ISparqlResultsHandler handler, StreamReader input, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
ISparql |
handler | Results Handler to use. |
Stream |
input | Stream to read from. |
IUri |
uriFactory | URI Factory to use. |
Overrides
Remarks
Uses the String
Load(ISparqlResultsHandler, TextReader, IUriFactory)
Loads a SPARQL Results from RDF contained in the given Input using a Results Handler.
Declaration
public override void Load(ISparqlResultsHandler handler, TextReader input, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
ISparql |
handler | Results Handler to use. |
Text |
input | Input to read from. |
IUri |
uriFactory | URI Factory to use. |
Overrides
Remarks
Uses the String
Load(ISparqlResultsHandler, string, IUriFactory)
Loads a SPARQL Results from RDF contained in the given file using a Results Handler.
Declaration
public override void Load(ISparqlResultsHandler handler, string filename, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
ISparql |
handler | Results Handler to use. |
string | filename | File to read from. |
IUri |
uriFactory | URI Factory to use. |
Overrides
Remarks
Uses the File
Load(SparqlResultSet, StreamReader, IUriFactory)
Loads a SPARQL Result Set from RDF contained in the given Stream.
Declaration
public override void Load(SparqlResultSet results, StreamReader input, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
Sparql |
results | SPARQL Result Set to populate. |
Stream |
input | Stream to read from. |
IUri |
uriFactory | URI Factory to use. |
Overrides
Remarks
Uses the String
Load(SparqlResultSet, TextReader, IUriFactory)
Loads a SPARQL Result Set from RDF contained in the given Input.
Declaration
public override void Load(SparqlResultSet results, TextReader input, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
Sparql |
results | SPARQL Result Set to populate. |
Text |
input | Input to read from. |
IUri |
uriFactory | URI Factory to use. |
Overrides
Remarks
Uses the String
Load(SparqlResultSet, string, IUriFactory)
Loads a SPARQL Result Set from RDF contained in the given File.
Declaration
public override void Load(SparqlResultSet results, string filename, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
Sparql |
results | SPARQL Result Set to populate. |
string | filename | File to read from. |
IUri |
uriFactory | URI Factory to use. |
Overrides
Remarks
Uses the File
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
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 |
---|---|
Sparql |