Class ExprTransformSubstituteWithArgument

java.lang.Object
org.apache.jena.sparql.expr.ExprTransformCopy
org.aksw.jena_sparql_api.algebra.expr.transform.ExprTransformSubstituteWithArgument
All Implemented Interfaces:
org.apache.jena.sparql.expr.ExprTransform

public class ExprTransformSubstituteWithArgument extends org.apache.jena.sparql.expr.ExprTransformCopy
Substitute unary function with its argument - i.e. f(x) -> x Used for example in the r2rml exporter, where explicit string conversions using the 'STR' functions are removed in order to build to r2rml uri template strings: concat('http://foo.bar/baz/', str(?intColumn)) -> "http://foo.bar/baz/{intColumn}"
Author:
raven Mar 30, 2018
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Predicate<? super org.apache.jena.sparql.expr.Expr>
     

    Fields inherited from class org.apache.jena.sparql.expr.ExprTransformCopy

    COPY_ALWAYS, COPY_ONLY_ON_CHANGE
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExprTransformSubstituteWithArgument(Predicate<? super org.apache.jena.sparql.expr.Expr> isSubstitutionCanditate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.jena.sparql.expr.Expr
    transform(org.apache.jena.sparql.expr.ExprFunction1 func, org.apache.jena.sparql.expr.Expr arg)
     

    Methods inherited from class org.apache.jena.sparql.expr.ExprTransformCopy

    transform, transform, transform, transform, transform, transform, transform, transform, transform

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.jena.sparql.expr.ExprTransform

    transform
  • Field Details

    • isSubstitutionCanditate

      protected Predicate<? super org.apache.jena.sparql.expr.Expr> isSubstitutionCanditate
  • Constructor Details

    • ExprTransformSubstituteWithArgument

      public ExprTransformSubstituteWithArgument(Predicate<? super org.apache.jena.sparql.expr.Expr> isSubstitutionCanditate)
  • Method Details

    • transform

      public org.apache.jena.sparql.expr.Expr transform(org.apache.jena.sparql.expr.ExprFunction1 func, org.apache.jena.sparql.expr.Expr arg)
      Specified by:
      transform in interface org.apache.jena.sparql.expr.ExprTransform
      Overrides:
      transform in class org.apache.jena.sparql.expr.ExprTransformCopy