Package org.openrdf.query

Examples of org.openrdf.query.QueryEvaluationException


        protected QueryEvaluationException convert(Exception e) {
          if (e instanceof ClosedByInterruptException) {
            return new QueryInterruptedException(e);
          }
          else if (e instanceof IOException) {
            return new QueryEvaluationException(e);
          }
          else if (e instanceof RuntimeException) {
            throw (RuntimeException)e;
          }
          else if (e == null) {
            throw new IllegalArgumentException("e must not be null");
          }
          else {
            throw new IllegalArgumentException("Unexpected exception type: " + e.getClass());
          }
        }
      };
    }
    catch (IOException e) {
      throw new QueryEvaluationException("Unable to get statements", e);
    }
  }
View Full Code Here


    }
    catch (MalformedURLException e) {
      throw new AssertionError(e);
    }
    catch (RepositoryException e) {
      throw new QueryEvaluationException(e);
    }
  }
View Full Code Here

      };

      return new GraphQueryResultImpl(getParsedQuery().getQueryNamespaces(), stIter);
    }
    catch (SailException e) {
      throw new QueryEvaluationException(e.getMessage(), e);
    }
  }
View Full Code Here

      finally {
        bindingsIter.close();
      }
    }
    catch (SailException e) {
      throw new QueryEvaluationException(e.getMessage(), e);
    }
  }
View Full Code Here

          tupleExpr, getActiveDataset(), getBindings(), getIncludeInferred());

      return new TupleQueryResultImpl(new ArrayList<String>(tupleExpr.getBindingNames()), bindingsIter);
    }
    catch (SailException e) {
      throw new QueryEvaluationException(e.getMessage(), e);
    }
  }
View Full Code Here

      {

        @Override
        protected QueryEvaluationException convert(Exception e) {
          if (e instanceof IOException) {
            return new QueryEvaluationException(e);
          }
          else if (e instanceof RuntimeException) {
            throw (RuntimeException)e;
          }
          else if (e == null) {
            throw new IllegalArgumentException("e must not be null");
          }
          else {
            throw new IllegalArgumentException("Unexpected exception type: " + e.getClass());
          }
        }
      };
    }
    catch (IOException e) {
      throw new QueryEvaluationException("Unable to get statements", e);
    }
  }
View Full Code Here

      RdbmsURI p = vf.asRdbmsURI(pred);
      RdbmsValue o = vf.asRdbmsValue(obj, pred);
      RdbmsResource[] c = vf.asRdbmsResource(contexts);
      return triples.find(s, p, o, false, c);
    } catch (SailException e) {
      throw new QueryEvaluationException(e);
    }
  }
View Full Code Here

    }
    else if (expr == null) {
      throw new IllegalArgumentException("expr must not be null");
    }
    else {
      throw new QueryEvaluationException("Unsupported tuple expr type: " + expr.getClass());
    }
  }
View Full Code Here

    }
    else if (expr == null) {
      throw new IllegalArgumentException("expr must not be null");
    }
    else {
      throw new QueryEvaluationException("Unknown unary tuple operator type: " + expr.getClass());
    }
  }
View Full Code Here

    }
    else if (expr == null) {
      throw new IllegalArgumentException("expr must not be null");
    }
    else {
      throw new QueryEvaluationException("Unsupported binary tuple operator type: " + expr.getClass());
    }
  }
View Full Code Here

TOP

Related Classes of org.openrdf.query.QueryEvaluationException

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.