126127128129130131132133134135136
} catch (UnsupportedMediaType e) { throw new UnsupportedRDFormatException(e); } catch (Unauthorized e) { throw new StoreException(e); } catch (HTTPException e) { throw new StoreException(e); } }
5455565758596061
request.acceptTupleQueryResult(); execute(request); return request.getTupleQueryResult(); } catch (IOException e) { throw new StoreException(e); } }
8283848586878889
finally { result.close(); } } catch (IOException e) { throw new StoreException(e); } }
102103104105106107108109
} catch (Unauthorized e) { throw new UnauthorizedException(e); } catch (HTTPException e) { throw new StoreException(e); } }
8081828384858687888990
{ BNode bnode; TupleResult result = client.post(amount *= 2); try { if (!result.hasNext()) { throw new StoreException("No BNodes"); } bnode = (BNode)result.next().getValue(BNODE); while (result.hasNext()) { queue.add((BNode)result.next().getValue(BNODE)); }
155156157158159160161162
*/ protected void verifyIsOpen() throws StoreException { if (!isOpen()) { throw new StoreException("Connection has been closed"); } }
167168169170171172173174
*/ protected void verifyNotReadOnly() throws StoreException { if (isReadOnly()) { throw new StoreException("Connection is in read-only mode"); } }
179180181182183184185186
*/ protected void verifyTxnActive() throws StoreException { if (isAutoCommit()) { throw new StoreException("Connection does not have an active transaction"); } }
191192193194195196197198
*/ protected void verifyNotTxnActive(String msg) throws StoreException { if (!isAutoCommit()) { throw new StoreException(msg); } }
317318319320321322323
return new HTTPBooleanQuery(qry, (BooleanQueryClient)query); } if (query instanceof TupleQueryClient) { return new HTTPTupleQuery(qry, (TupleQueryClient)query); } throw new StoreException("Unsupported query type: " + query); }