@Override public String toString() { IndentedLineBuffer out = new IndentedLineBuffer(); SerializationContext sCxt = SSE.sCxt((SSE.defaultPrefixMapWrite)); boolean first = true; for (Triple t : triples) { if (!first) out.print("\n"); else first = false; // Adds (triple ...) // SSE.write(buff.getIndentedWriter(), t) ; out.print("("); WriterNode.outputPlain(out, t, sCxt); out.print(")"); } out.flush(); return out.toString(); }
public static void output(IndentedWriter out, Quad qp, SerializationContext naming) { WriterLib.startOneLine(out, Tags.tagQuad); outputPlain(out, qp, naming); WriterLib.finishOneLine(out, Tags.tagQuad); }
public static void output(IndentedWriter out, Triple triple, SerializationContext naming) { WriterLib.startOneLine(out, Tags.tagTriple); outputPlain(out, triple, naming); WriterLib.finishOneLine(out, Tags.tagTriple); }