Exemplo n.º 1
0
  @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();
  }
Exemplo n.º 2
0
 public static void output(IndentedWriter out, Quad qp, SerializationContext naming) {
   WriterLib.startOneLine(out, Tags.tagQuad);
   outputPlain(out, qp, naming);
   WriterLib.finishOneLine(out, Tags.tagQuad);
 }
Exemplo n.º 3
0
 public static void output(IndentedWriter out, Triple triple, SerializationContext naming) {
   WriterLib.startOneLine(out, Tags.tagTriple);
   outputPlain(out, triple, naming);
   WriterLib.finishOneLine(out, Tags.tagTriple);
 }