package org.aksw.sparqlify.core.cast;

import java.util.Map;

import org.aksw.jena_sparql_api.views.NodeExprSubstitutor;
import org.apache.jena.sparql.core.Var;
import org.apache.jena.sparql.expr.Expr;

public class ExprBindingSubstitutorImpl
	implements ExprBindingSubstitutor
{
	@Override
	public Expr substitute(Expr expr, Map<Var, Expr> binding) {

		NodeExprSubstitutor substitutor = new NodeExprSubstitutor(binding);
		Expr result = substitutor.transformMM(expr);
		
		return result;
	}
}
