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
FieldsFields inherited from class org.apache.jena.sparql.expr.ExprTransformCopy
COPY_ALWAYS, COPY_ONLY_ON_CHANGE -
Constructor Summary
ConstructorsConstructorDescriptionExprTransformSubstituteWithArgument(Predicate<? super org.apache.jena.sparql.expr.Expr> isSubstitutionCanditate) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.sparql.expr.Exprtransform(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, transformMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.sparql.expr.ExprTransform
transform
-
Field Details
-
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:
transformin interfaceorg.apache.jena.sparql.expr.ExprTransform- Overrides:
transformin classorg.apache.jena.sparql.expr.ExprTransformCopy
-