@Override public void end() { try { writer.flush(); } catch (IOException e) { throw new RepositoryException(e); } }
@Override public void end() { try { if (last != null) { appendable.append(" .\n"); } appendable.append("}\n"); } catch (IOException e) { throw new RepositoryException(e); } }
@Override public boolean hasNext() { try { return graphResult.hasNext(); } catch (StoreException e) { throw new RepositoryException(e); } }
@Override public void close() { try { initialized = false; if (repository != null) { repository.shutDown(); } } catch (StoreException e) { throw new RepositoryException(e); } }
@Override public boolean hasNext() { try { return statements.hasNext(); } catch (org.openrdf.repository.RepositoryException e) { throw new RepositoryException(e); } }
@Override public boolean hasNext() { try { return tupleResult.hasNext(); } catch (QueryEvaluationException e) { throw new RepositoryException(e); } }
@Override public void remove() { try { tupleResult.remove(); } catch (QueryEvaluationException e) { throw new RepositoryException(e); } }
@Override public boolean hasNext() { try { return graphResult.hasNext(); } catch (QueryEvaluationException e) { throw new RepositoryException(e); } }
@Override public void close(){ try { statements.close(); } catch (StoreException e1) { throw new RepositoryException(e1); } }
@Override public boolean hasNext() { try { return graphResult.hasNext(); } catch (StoreException e) { throw new RepositoryException(e); } }
public void export(Format format, OutputStream os) { try { export(); repository.export(format, ns2prefix, null, os); } finally { try { os.close(); } catch (IOException e) { throw new RepositoryException(e); } } }
@Override public void rollback() { try { connection.getConnection().rollback(); } catch (StoreException e) { String error = "Caught " + e.getClass().getName(); logger.error(error, e); throw new RepositoryException(error, e); }finally{ connection.cleanUpAfterRollback(); } }
public SPARQLUpdateClause(RDFConnection connection, String clause) { try { this.connection = connection; this.clause = new SPARQLUpdateParser().parse(clause); } catch (IOException e) { throw new RepositoryException(e); } }
@Override public void close() { try { if (localTxn != null) { localTxn.rollback(); } connection.close(); } catch (Exception e) { throw new RepositoryException(e); } }
@Override public CloseableIterator<Map<String, NODE>> getTuples() { try { return new TupleResultIterator(getResult(), bindings, dialect); } catch (StoreException e) { throw new RepositoryException(e); } }
@Override public List<String> getVariables() { try { return getResult().getBindingNames(); } catch (StoreException e) { throw new RepositoryException(e); } }
@Override public STMT next() { try { return convert(graphResult.next(), true); } catch (StoreException e) { throw new RepositoryException(e); } }
@Override public List<String> getVariables() { try { return getResult().getBindingNames(); } catch (QueryEvaluationException e) { throw new RepositoryException(e); } }
@Override public RDFConnection openConnection() { try { return new SesameConnection(this, repository.getConnection(), getInferenceOptions()); } catch (StoreException e) { throw new RepositoryException(e); } }
@Override public RDFConnection openConnection() { try { return new SesameConnection(this, repository.getConnection(), getInferenceOptions()); } catch (StoreException e) { throw new RepositoryException(e); } }