What?

Virtuoso SPARQL pragma for negating query optimizer.

Why?

There are situations where engine based query optimization isn't suitable for the SPARQL query at hand. In situations like this, you can apply a query pragma that signals to Virtuoso the need to negate its in-built query optimizer.

How?

Example with pragma sql:select-option

The following example demonstrates usage of the sql:select-option pragma.


DEFINE sql:select-option "order" 
PREFIX  ub:  <http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#>
SELECT *
WHERE
  {
    ?s ?p <http://www.Department0.University0.edu/GraduateCourse0>
  }
LIMIT 10 

Sponger Usage Examples

Related