Class ExprTransformSubstitute

java.lang.Object
org.apache.jena.sparql.expr.ExprTransformCopy
org.apache.jena.sparql.expr.ExprTransformSubstitute
All Implemented Interfaces:
ExprTransform

public class ExprTransformSubstitute extends ExprTransformCopy
An expression transformer that substitutes another expression in place of variables

Primarily introduced in order to support the new UserDefinedFunction capabilities

  • Constructor Details

    • ExprTransformSubstitute

      public ExprTransformSubstitute(Var find, Expr replace)
      Creates a simple transform that replaces any occurrence of the given variable with the given expression
      Parameters:
      find - Variable to find
      replace - Expression to replace with
    • ExprTransformSubstitute

      public ExprTransformSubstitute(Map<String,Expr> substitutions)
      Creates an advanced transform that uses the given map to make substitutions
      Parameters:
      substitutions - Substitutions from variables to expressions
  • Method Details