NAME
RDF::Query::Optimizer::Peephole::Naive - Peephole optimizer for re-ordering triple patterns.
METHODS
new ( $query, $model, %args )
-
Returns a new optimizer object.
optimize_triplepattern ( $pattern )
-
Recursively performs optimization on the supplied triple
$pattern
. Re-orders the triple patterns in$pattern
and returns the computed cost of the pattern. statement_cost ( $statement )
-
Returns the computed cost of querying the triple store for the supplied
$statement
. variable_cost
-
Returns the partial cost of querying the triple store for a statement containing a variable.
resource_cost
-
Returns the partial cost of querying the triple store for a statement containing a resource.
literal_cost
-
Returns the partial cost of querying the triple store for a statement containing a literal.
blank_cost
-
Returns the partial cost of querying the triple store for a statement containing a blank node.
AUTHOR
Gregory Williams <gwilliams@cpan.org>