IReasoningQueryableStorageQuery Method (String, Boolean) | 
 
            Makes a SPARQL Query against the underlying store.
            
 
    Namespace: 
   VDS.RDF.Storage
    Assembly:
   dotNetRDF (in dotNetRDF.dll) Version: 
SyntaxObject Query(
	string sparqlQuery,
	bool reasoning
)
Function Query ( 
	sparqlQuery As String,
	reasoning As Boolean
) As Object
Parameters
- sparqlQuery
 - Type: SystemString
SPARQL Query. - reasoning
 - Type: SystemBoolean
rReasoning On demand by query. 
Return Value
Type: 
ObjectSparqlResultSet or a 
Graph depending on the Sparql Query.
Exceptions| Exception | Condition | 
|---|
| RdfQueryException | Thrown if an error occurs performing the query. | 
| RdfStorageException | Thrown if an error occurs performing the query. | 
| RdfParseException | Thrown if the query is invalid when validated by dotNetRDF prior to passing the query request to the store or if the request succeeds but the store returns malformed results. | 
| RdfParserSelectionException | Thrown if the store returns results in a format dotNetRDF does not understand. | 
See Also