Click or drag to resize

VariableSubstitutionTransformer Class

An optimiser for walking algebra and expression trees and replacing a Variable with another Variable or a Constant.
Inheritance Hierarchy
SystemObject
  VDS.RDF.Query.ExpressionsPrimaryExpressionSubstituter
    VDS.RDF.Query.OptimisationVariableSubstitutionTransformer

Namespace:  VDS.RDF.Query.Optimisation
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public class VariableSubstitutionTransformer : PrimaryExpressionSubstituter, 
	IAlgebraOptimiser

The VariableSubstitutionTransformer type exposes the following members.

Constructors
  NameDescription
Public methodVariableSubstitutionTransformer(String, String)
Create a transform that replaces one variable with another.
Public methodVariableSubstitutionTransformer(String, INode)
Create a transform that replaces a variable with a constant.
Top
Properties
  NameDescription
Public propertyCanReplaceObjects
Gets/Sets whethe the Transformer is allowed to replace objects.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
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.)
Public methodIsApplicable(SparqlQuery)
Returns false because this optimiser is never globally applicable.
Public methodIsApplicable(SparqlUpdateCommandSet)
Returns false because this optimiser is never globally applicable.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOptimise
Attempts to do variable substitution within the given algebra.
Protected methodSubstitutePrimaryExpression
Tries to substitute variables within primary expressions.
(Overrides PrimaryExpressionSubstituterSubstitutePrimaryExpression(ISparqlExpression).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTransform
Transforms an expression into a form where primary expressions may be substituted.
(Inherited from PrimaryExpressionSubstituter.)
Top
See Also