Examples of VarExprList


Examples of com.hp.hpl.jena.sparql.core.VarExprList

        return new OpOrder(subOp, conditions) ;
    }
   
    @Override public Op transform(OpGroup opGroup, Op subOp)
    {
        VarExprList groupVars = NodeTransformLib.transform(transform, opGroup.getGroupVars()) ;
        // Rename the vars in the expression as well.
        // .e.g max(?y) ==> max(?/y) 
        // These need renaming as well.
        List<ExprAggregator> aggregators = new ArrayList<ExprAggregator>() ;
        for ( ExprAggregator agg : opGroup.getAggregators() )
View Full Code Here

Examples of com.hp.hpl.jena.sparql.core.VarExprList

            return safeToTransform(varsEquality, opMod.getSubOp());
        }

        if (op instanceof OpGroup) {
            OpGroup opGroup = (OpGroup) op;
            VarExprList varExprList = opGroup.getGroupVars();
            return safeToTransform(varsEquality, varExprList) && safeToTransform(varsEquality, opGroup.getSubOp());
        }

        if (op instanceof OpTable) {
            OpTable opTable = (OpTable) op;
View Full Code Here

Examples of com.hp.hpl.jena.sparql.core.VarExprList

       
        // Check GROUP BY AS
        // ENABLE
        if ( false && query.hasGroupBy() )
        {
            VarExprList exprList2 = query.getGroupBy() ;
            checkExprListAssignment(vars, exprList2) ;
        // CHECK
        }
       
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.core.VarExprList

   
    private static void checkExprVarUse(Query query)
    {
        if ( query.hasGroupBy() )
        {
            VarExprList groupKey = query.getGroupBy() ;
           
            // Copy - we need to add variables
            // SELECT (count(*) AS ?C)  (?C+1 as ?D)
            List<Var> inScopeVars = new ArrayList<Var>(groupKey.getVars()) ;
            VarExprList exprList = query.getProject() ;
           
            for ( Iterator<Var> iter = exprList.getVars().iterator() ; iter.hasNext() ; )
            {
                // In scope?
                Var v = iter.next();
                Expr e = exprList.getExpr(v) ;
                if ( e == null )
                {
                    if ( ! inScopeVars.contains(v) )
                        throw new QueryParseException("Non-group key variable in SELECT: "+v, -1 , -1) ;
                }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.core.VarExprList

            BuilderLib.broken(item, "Not a var expr list") ;
       
        ItemList list = item.getList() ;
       
        if ( list.isEmpty() )
            return new VarExprList() ;
       
        if ( list.car().isList() )
            // List of lists
            return buildNamedExprList(list) ;
        // One item
View Full Code Here

Examples of com.hp.hpl.jena.sparql.core.VarExprList

        return buildNamedExpr(item) ;
    }
   
    public static VarExprList buildNamedExprList(ItemList list)
    {
        VarExprList x = new VarExprList() ;
        for ( Item item : list )
            buildNamedExpr(item, x) ;
        return x ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.core.VarExprList

        return x ;
    }
   
    public static VarExprList buildNamedExpr(Item item)
    {
        VarExprList varExprList = new VarExprList() ;
        buildNamedExpr(item, varExprList) ;
        return varExprList ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.core.VarExprList

        return new OpExtend(op, exprs) ;
    }

    static private Op createExtend(Op op, Var var, Expr expr)
    {
        VarExprList x = new VarExprList() ;
        x.add(var, expr) ;
        return new OpExtend(op, x) ;
    }  
View Full Code Here

Examples of com.hp.hpl.jena.sparql.core.VarExprList

    }  
   
    static private Op createExtend(Op op, VarExprList exprs)
    {
        // Create, copying the var-expr list
        VarExprList x = new VarExprList() ;
        x.addAll(exprs) ;
        return new OpExtend(op, x) ;
    }  
View Full Code Here

Examples of com.hp.hpl.jena.sparql.core.VarExprList

    }  
   
    private OpExtend(Op subOp)
    {
        super(subOp) ;
        assignments = new VarExprList() ;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.