Show / Hide Table of Contents

Class LeviathanQueryOptions

A class encapsulating run-time options that can be configured for a LeviathanQueryProcessor.

Inheritance
object
LeviathanQueryOptions
LeviathanUpdateOptions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Query
Assembly: dotNetRdf.dll
Syntax
public class LeviathanQueryOptions

Properties

| Edit this page View Source

AlgebraOptimisation

Gets/Sets whether Algebra Optimization should be used.

Declaration
public bool AlgebraOptimisation { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

AlgebraOptimisers

Gets/Sets the optimisers to apply if AlgebraOptimisation is enabled.

Declaration
public IEnumerable<IAlgebraOptimiser> AlgebraOptimisers { get; set; }
Property Value
Type Description
IEnumerable<IAlgebraOptimiser>
| Edit this page View Source

Describer

Gets/Sets the ISparqlDescribe which provides the Describe algorithm you wish to use.

Declaration
public ISparqlDescribe Describer { get; set; }
Property Value
Type Description
ISparqlDescribe
Remarks

By default this will be the ConciseBoundedDescription (CBD) algorithm.

| Edit this page View Source

NodeComparer

Get or set the node comparer to use in evaluation.

Declaration
public ISparqlNodeComparer NodeComparer { get; set; }
Property Value
Type Description
ISparqlNodeComparer
Remarks

You may want to provide a SparqlNodeComparer instance to specify a different culture or compare options for string comparison.

| Edit this page View Source

QueryExecutionTimeout

Gets/Sets the Hard Timeout limit for SPARQL Query Execution (in milliseconds).

Declaration
public long QueryExecutionTimeout { get; set; }
Property Value
Type Description
long
Remarks

This is used to stop SPARQL queries running away and never completing execution, it defaults to 3 mins (180,000 milliseconds).

| Edit this page View Source

RigorousEvaluation

Gets/Sets whether to use rigorous query evaluation.

Declaration
public bool RigorousEvaluation { get; set; }
Property Value
Type Description
bool
Remarks

Rigorous Query evaluation applies more checks to the triples produced by datasets to ensure they actually match the patterns being scanned. If the underlying index structures are able to guarantee this then rigorous evaluation may be turned off for faster evaluation which it is by default since our default TreeIndexedTripleCollection and TripleCollection implementations will guarantee this.

| Edit this page View Source

SparqlResultFactory

Gets/Sets the ISparqlResultFactory which creates the ISparqlResult instances that are passed to a ISparqlResultsHandler.

Declaration
public ISparqlResultFactory SparqlResultFactory { get; set; }
Property Value
Type Description
ISparqlResultFactory
| Edit this page View Source

StrictOperators

Gets/Sets whether to use strict operators.

Declaration
public bool StrictOperators { get; set; }
Property Value
Type Description
bool
Remarks

Strict Operators refers to the interpretation of certain operators like + and - in SPARQL expression evaluation. If enabled then the operators will function only as specified in the SPARQL specification. If disabled (which is the default) then certain extensions (which the SPARQL specification allows an implementation to provide) will be allowed e.g. date time arithmetic.

The only time you may want to disable this is if you are developing queries locally which you want to ensure are portable to other systems or when running the SPARQL compliance tests.

| Edit this page View Source

UriFactory

Gets/Sets the URI factory to use during query evaluation.

Declaration
public IUriFactory UriFactory { get; set; }
Property Value
Type Description
IUriFactory
Remarks

When querying an in-memory dataset, using the same URI factory as the graphs being queried, or a child of the URI factor of the graphs being queried will save memory.

| Edit this page View Source

UsePLinqEvaluation

Gets/Sets whether the query engine will try to use PLinq where applicable to evaluate suitable SPARQL constructs in parallel.

Declaration
public bool UsePLinqEvaluation { get; set; }
Property Value
Type Description
bool
Remarks

Defaults to true.

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Properties
    • AlgebraOptimisation
    • AlgebraOptimisers
    • Describer
    • NodeComparer
    • QueryExecutionTimeout
    • RigorousEvaluation
    • SparqlResultFactory
    • StrictOperators
    • UriFactory
    • UsePLinqEvaluation
  • Extension Methods
Back to top Generated by DocFX