Examples of ExprEvalException


Examples of com.hp.hpl.jena.sparql.expr.ExprEvalException

                    total = XSDFuncOp.add(nv, total) ;
            }
            else
            {
                //ARQ.getExecLogger().warn("Evaluation error: avg() on "+nv) ;
                throw new ExprEvalException("avg: not a number: "+nv) ;
            }
           
            if ( DEBUG ) System.out.println("avg: ("+total+","+count+")") ;
        }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.expr.ExprEvalException

                    total = nv ;
                else
                    total = XSDFuncOp.add(nv, total) ;
            }
            else
                throw new ExprEvalException("Not a number: "+nv) ;
        }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.expr.ExprEvalException

                    total = nv ;
                else
                    total = XSDFuncOp.add(nv, total) ;
            }
            else
                throw new ExprEvalException("avg: not a number: "+nv) ;

            if ( DEBUG ) System.out.println("avg: ("+total+","+count+")") ;
        }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.expr.ExprEvalException

                    total = nv ;
                else
                    total = XSDFuncOp.add(nv, total) ;
            }
            else
                throw new ExprEvalException("Not a number: "+nv) ;
        }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.expr.ExprEvalException

                                            ExecutionContext execCxt)
    {
        // subject a variable.
       
        if ( objectArgs.size() != 2 )
            throw new ExprEvalException("ListIndex : object not a list of length 2") ;
        Node indexNode = objectArgs.get(0) ;
        Node memberNode = objectArgs.get(1) ;
       
        final Collection<Node> x ;
        if ( ! Var.isVar(memberNode) )
View Full Code Here

Examples of com.hp.hpl.jena.sparql.expr.ExprEvalException

    protected QueryIterator execOneList(Binding binding,
                                        Node listNode, Node predicate, List<Node> objectArgs,
                                        ExecutionContext execCxt)
    {
        if ( Var.isVar(listNode) )
            throw new ExprEvalException("ListIndex : subject not a list or variable bound to a list") ;

        if ( objectArgs.size() != 2 )
            throw new ExprEvalException("ListIndex : object not a list of length 2") ;

        Node indexNode = objectArgs.get(0) ;
        Node memberNode = objectArgs.get(1) ;
       
        Graph graph = execCxt.getActiveGraph() ;
View Full Code Here

Examples of com.hp.hpl.jena.sparql.expr.ExprEvalException

        if ( args == null )
            // The contract on the function interface is that this should not happen.
            throw new ARQInternalErrorException(Utils.className(this)+": Null args list") ;
       
        if ( args.size() != 3 )
            throw new ExprEvalException(Utils.className(this)+": Wrong number of arguments: Wanted 3, got "+args.size()) ;
       
        NodeValue v1 = args.get(0) ;
        NodeValue v2 = args.get(1) ;
        NodeValue v3 = args.get(2) ;
       
View Full Code Here

Examples of com.hp.hpl.jena.sparql.expr.ExprEvalException

        if ( args == null )
            // The contract on the function interface is that this should not happen.
            throw new ARQInternalErrorException(Utils.className(this)+": Null args list") ;
       
        if ( args.size() != 4 )
            throw new ExprEvalException(Utils.className(this)+": Wrong number of arguments: Wanted 4, got "+args.size()) ;
       
        NodeValue v1 = args.get(0) ;
        NodeValue v2 = args.get(1) ;
        NodeValue v3 = args.get(2) ;
        NodeValue v4 = args.get(3) ;
View Full Code Here

Examples of com.hp.hpl.jena.sparql.expr.ExprEvalException

        if ( args == null )
            // The contract on the function interface is that this should not happen.
            throw new ARQInternalErrorException("FunctionBase1: Null args list") ;
       
        if ( args.size() != 1 )
            throw new ExprEvalException("FunctionBase1: Wrong number of arguments: Wanted 1, got "+args.size()) ;
       
        NodeValue v1 = args.get(0) ;
       
        return exec(v1) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.expr.ExprEvalException

                    total = XSDFuncOp.numAdd(nv, total) ;
            }
            else
            {
                //ARQ.getExecLogger().warn("Evaluation error: avg() on "+nv) ;
                throw new ExprEvalException("avg: not a number: "+nv) ;
            }
           
            if ( DEBUG ) System.out.println("avg: ("+total+","+count+")") ;
        }
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.