Package com.hp.hpl.jena.query

Examples of com.hp.hpl.jena.query.QueryExecException


        if ( serviceURL.indexOf('?') >= 0 )
            serviceParams = true ;

        if ( queryParamPattern.matcher(serviceURL).matches() )
            throw new QueryExecException("SERVICE URL overrides the 'query' SPARQL protocol parameter") ;

        this.serviceURL = serviceURL ;
    }
View Full Code Here


            if ( paramsMap != null )
            {
                for (String param : paramsMap.keySet())
                {  
                    if ( HttpParams.pQuery.equals(param) )
                        throw new QueryExecException("ARQ serviceParams overrides the 'query' SPARQL protocol parameter") ;

                    List<String> values = paramsMap.get(param) ;
                    for (String value : values)
                        params.addParam(param, value) ;
                }
View Full Code Here

        limit = numItems ;
        if ( limit == Query.NOLIMIT )
            limit = Long.MAX_VALUE ;

        if ( limit < 0 )
            throw new QueryExecException("Negative LIMIT: " + limit) ;

        if ( limit == 0 ) {
            // Keep Java happy.
            Iterator<Binding> iter0 = Iter.nullIterator() ;
            setIterator(iter0) ;
View Full Code Here

            QueryIterator qIter = opExt.eval(input, execCxt) ;
            if (qIter != null)
                return qIter ;
        } catch (UnsupportedOperationException ex) {}
        // null or UnsupportedOperationException
        throw new QueryExecException("Encountered unsupported OpExt: " + opExt.getName()) ;
    }
View Full Code Here

     *            Context
     * @return Query iterator of service results
     */
    public static QueryIterator exec(OpService op, Context context) {
        if (!op.getService().isURI())
            throw new QueryExecException("Service URI not bound: " + op.getService());

        // This relies on the observation that the query was originally correct,
        // so reversing the scope renaming is safe (it merely restores the
        // algebra expression).
        // Any variables that reappear should be internal ones that were hidden
View Full Code Here

                    } else {
                        int x = Integer.parseInt(str);
                        query.setConnectTimeout(x);
                    }
                } catch (NumberFormatException ex) {
                    throw new QueryExecException("Can't interpret string for timeout: " + obj);
                }
            } else {
                throw new QueryExecException("Can't interpret timeout: " + obj);
            }
        }
    }
View Full Code Here

        push(opTable.getTable()) ;
    }

    @Override
    public void visit(OpExt opExt)
    { throw new QueryExecException("Encountered OpExt during execution of reference engine") ; }
View Full Code Here

    {
        for ( SortCondition sc : conditions )
        {
            if ( sc.expression == null )
            {
                throw new QueryExecException( "Broken sort condition" );
            }

            NodeValue nv1 = null;
            NodeValue nv2 = null;
View Full Code Here

   
    @Override
    public ResultSet execSelect()
    {
        if ( ! query.isSelectType() )
            throw new QueryExecException("Attempt to have ResultSet from a "+labelForQuery(query)+" query") ;
        return execResultSet() ;
    }
View Full Code Here

   
    @Override
    public Iterator<Triple> execConstructTriples()
    {
        if ( ! query.isConstructType() )
            throw new QueryExecException("Attempt to get a CONSTRUCT model from a "+labelForQuery(query)+" query") ;
        // This causes there to be no PROJECT around the pattern.
        // That in turn, exposes the initial bindings. 
        query.setQueryResultStar(true) ;

        startQueryIterator() ;
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.query.QueryExecException

Copyright © 2018 www.massapicom. 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.