364365366367368369370371372
public static String modelToString(Model model, Syntax syntax) { StringWriter buffer = new StringWriter(); try { model.writeTo(buffer, syntax); } catch(Exception e) { throw new ModelRuntimeException(e); } return buffer.toString(); }
381382383384385386387388389
public static String modelToString(ModelSet modelset, Syntax syntax) { StringWriter buffer = new StringWriter(); try { modelset.writeTo(buffer, syntax); } catch(Exception e) { throw new ModelRuntimeException(e); } return buffer.toString(); }
498499500501502503504505506507
StringReader s = new StringReader(string); try { m.readFrom(s, syntax); return m; } catch(Exception e) { throw new ModelRuntimeException(e); } finally { s.close(); } }
8889909192939495
@Override public void close() { try { this.idIterator.close(); } catch(RepositoryException e) { throw new ModelRuntimeException(e); } }
979899100101102103104
@Override public boolean hasNext() { try { return this.idIterator.hasNext(); } catch(RepositoryException e) { throw new ModelRuntimeException(e); } }
106107108109110111112113
@Override public URI next() { try { return (URI)ConversionUtil.toRdf2go(this.idIterator.next()); } catch(RepositoryException e) { throw new ModelRuntimeException(e); } }
261262263264265266267268
@Override public void close() { try { this.result.close(); } catch(RepositoryException e) { throw new ModelRuntimeException(e); } }
270271272273274275276277
@Override public boolean hasNext() { try { return this.result.hasNext(); } catch(RepositoryException e) { throw new ModelRuntimeException(e); } }
280281282283284285286287
public Statement next() { try { org.openrdf.model.Statement statement = this.result.next(); return new StatementWrapper(null, statement); } catch(RepositoryException e) { throw new ModelRuntimeException(e); } }
289290291292293294295296
@Override public void remove() { try { this.result.remove(); } catch(RepositoryException e) { throw new ModelRuntimeException(e); } }