@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 void end() { try { if (last != null) { writer.append(" </rdf:Description>\n"); } writer.append("</rdf:RDF>\n"); writer.flush(); } 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 statements.hasNext(); } catch (StoreException 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 { graphResult.close(); } catch (QueryEvaluationException e1) { throw new RepositoryException(e1); } }
@Override public void close() { try { repository.shutDown(); } catch (org.openrdf.repository.RepositoryException e) { throw new RepositoryException(e); } }
@Override public synchronized long getNextId() { try { if (nextId > maxId) { synchronize(); } return nextId++; } catch (IOException e) { throw new RepositoryException(e); } }
@Override public boolean getBoolean() { try { return booleanQuery.ask(); } 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 tupleResult.hasNext(); } catch (StoreException e) { throw new RepositoryException(e); } }
@Override public void begin() { try { if (delete) { appendable.append("DELETE DATA FROM <").append(graph.getId()).append("> {\n"); } else { appendable.append("INSERT DATA INTO <").append(graph.getId()).append("> {\n"); } } catch (IOException 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); } } }