Class EvalUtils
- java.lang.Object
-
- fr.mines_stetienne.ci.sparql_generate.utils.EvalUtils
-
public class EvalUtils extends Object
- Author:
- Maxime Lefrançois
-
-
Constructor Summary
Constructors Constructor Description EvalUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Binding
createBinding(QuerySolution sol)
static List<Node>
eval(List<NodeValue> nodeValues)
static List<List<Node>>
eval(ExprList exprs, List<Binding> bindings, FunctionEnv env)
static List<Node>
eval(ExprList exprs, Binding binding, FunctionEnv env)
static Node
eval(Expr expr, Binding binding, FunctionEnv env)
static Map<String,List<Binding>>
splitBindingsForQuery(Expr expr, List<Binding> bindings, FunctionEnv env)
The query name may be an expression, which evaluates differently depending on the input bindings.
-
-
-
Method Detail
-
splitBindingsForQuery
public static Map<String,List<Binding>> splitBindingsForQuery(Expr expr, List<Binding> bindings, FunctionEnv env)
The query name may be an expression, which evaluates differently depending on the input bindings. This method groups the bindings for which the query name evaluation is the same.- Parameters:
expr
- the expression for the query namebindings
-env
-- Returns:
-
eval
public static List<Node> eval(ExprList exprs, Binding binding, FunctionEnv env)
-
eval
public static Node eval(Expr expr, Binding binding, FunctionEnv env)
-
createBinding
public static Binding createBinding(QuerySolution sol)
-
-