@Override public void addStatement(Resource subject, URI predicate, Node object) throws ModelRuntimeException { try { this.writer.write(" <triple>\n"); writeNode(subject); writeNode(predicate); writeNode(object); this.writer.write(" </triple>\n"); } catch (IOException e) { throw new ModelRuntimeException(e); } }
@Override public void addStatement(Resource subject, URI predicate, Node object) throws ModelRuntimeException { try { this.writer.write(" <triple>\n"); writeNode(subject); writeNode(predicate); writeNode(object); this.writer.write(" </triple>\n"); } catch(IOException e) { throw new ModelRuntimeException(e); } }