Package com.hp.hpl.jena.query

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


            // Length checked in build
            match = argSubject.getArg(0) ;
            score = argSubject.getArg(1) ;
           
            if ( ! score.isVariable() )
                throw new QueryExecException("Hit score is not a variable: "+argSubject) ;
        }
        else
        {
            match = argSubject.getArg() ;
            //score = null ;
View Full Code Here


    public static final Symbol queryTimeout = ARQConstants.allocSymbol(base, "queryTimeout");

    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 by renaming
        // in the first place.
View Full Code Here

              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

        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

            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

  }

  private void ensureQueryType(QueryType expectedType) throws QueryExecException {
    QueryType actualType = getQueryType( query );
    if( actualType != expectedType )
      throw new QueryExecException( "Attempt to execute a " + actualType + " query as a "
          + expectedType + " query" );
  }
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

  }

  private void ensureQueryType(QueryType expectedType) throws QueryExecException {
    QueryType actualType = getQueryType(query);
    if (actualType != expectedType)
      throw new QueryExecException("Attempt to execute a " + actualType + " query as a " + expectedType
                      + " query");
  }
View Full Code Here

    public static final Symbol queryTimeout = ARQConstants.allocSymbol(base, "queryTimeout");

    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 by renaming
        // in the first place.
View Full Code Here

              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

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.