Search in sources :

Example 56 with VarExprList

use of org.apache.jena.sparql.core.VarExprList in project jena by apache.

the class TestTransformPromoteTableEmpty method promote_table_empty_assignment_03.

@Test
public void promote_table_empty_assignment_03() {
    // Force algebra to have separate extends by using extendDirect()
    Op input = OpTable.empty();
    input = OpExtend.create(input, new VarExprList(Var.alloc("x"), new NodeValueInteger(1)));
    input = OpExtend.create(input, new VarExprList(Var.alloc("y"), new NodeValueInteger(2)));
    test(input, t_promote, "(table empty)");
}
Also used : Op(org.apache.jena.sparql.algebra.Op) NodeValueInteger(org.apache.jena.sparql.expr.nodevalue.NodeValueInteger) VarExprList(org.apache.jena.sparql.core.VarExprList) Test(org.junit.Test)

Aggregations

VarExprList (org.apache.jena.sparql.core.VarExprList)56 Var (org.apache.jena.sparql.core.Var)26 Test (org.junit.Test)15 Op (org.apache.jena.sparql.algebra.Op)12 ContractTest (org.xenei.junit.contract.ContractTest)12 Query (org.apache.jena.query.Query)10 Expr (org.apache.jena.sparql.expr.Expr)8 ExprVar (org.apache.jena.sparql.expr.ExprVar)7 NodeValueInteger (org.apache.jena.sparql.expr.nodevalue.NodeValueInteger)7 E_Random (org.apache.jena.sparql.expr.E_Random)6 QueryParseException (org.apache.jena.query.QueryParseException)3 ExprAggregator (org.apache.jena.sparql.expr.ExprAggregator)3 Node (org.apache.jena.graph.Node)2 StringReader (java.io.StringReader)1 ArrayList (java.util.ArrayList)1 Map (java.util.Map)1 ExprRewriter (org.apache.jena.arq.querybuilder.rewriters.ExprRewriter)1 SortCondition (org.apache.jena.query.SortCondition)1 OpAssign (org.apache.jena.sparql.algebra.op.OpAssign)1 OpExtend (org.apache.jena.sparql.algebra.op.OpExtend)1