Click or drag to resize

SparqlQueryParser Class

Class for parsing SPARQL Queries into SparqlQuery objects that can be used to query a Graph or Triple Store.
Inheritance Hierarchy
SystemObject
  VDS.RDF.ParsingSparqlQueryParser

Namespace:  VDS.RDF.Parsing
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public class SparqlQueryParser : ITraceableTokeniser, 
	IObjectParser<SparqlQuery>

The SparqlQueryParser type exposes the following members.

Constructors
  NameDescription
Public methodSparqlQueryParser
Creates a new instance of the SPARQL Query Parser.
Public methodSparqlQueryParser(SparqlQuerySyntax)
Creates a new instance of the SPARQL Query Parser which supports the given SPARQL Syntax.
Public methodSparqlQueryParser(TokenQueueMode)
Creates a new instance of the SPARQL Query Parser using the given Tokeniser Queue Mode.
Public methodSparqlQueryParser(TokenQueueMode, SparqlQuerySyntax)
Creates a new instance of the SPARQL Query Parser using the given Tokeniser which supports the given SPARQL Syntax.
Top
Properties
  NameDescription
Public propertyDefaultBaseUri
Gets/Sets the Default Base URI for Queries parsed by this Parser instance.
Public propertyExpressionFactories
Gets/Sets the locally scoped custom expression factories.
Public propertyQueryOptimiser
Gets/Sets the locally scoped Query Optimiser applied to queries at the end of the parsing process.
Public propertySyntaxMode
Gets/Sets the Syntax that should be supported.
Public propertyTraceTokeniser
Gets/Sets whether Tokeniser progress is Traced to the Console.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExcessTokensString
Constructs an error message that informs the user about unexpected excess tokens in a SPARQL qery.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodParse(StreamReader)
Parses a SPARQL Query from an arbitrary Input Stream.
Public methodParse(TextReader)
Parses a SPARQL Query from an arbitrary Input.
Public methodParseFromFile
Parses a SPARQL Query from a File.
Public methodParseFromString(String)
Parses a SPARQL Query from a String.
Public methodParseFromString(SparqlParameterizedString)
Parses a SPARQL Query from a SPARQL Parameterized String.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodTryParseGraphPattern
Tries to parse a Graph Pattern from the given Parser Context.
Top
Events
  NameDescription
Public eventWarning
Event raised when a non-fatal issue with the SPARQL Query being parsed is detected
Top
See Also