static void webs_toTripleFile(L webs, PrintWriter out) { new L names; new Map index; new StringBuilder buf; for (Web web : webs) { T3 t = ai_webToTriple(web); if (t == null) fail("Not tripelizable: " + webToStringShort(web)); buf.append( webs_toTripleFile_indexGet(names, index, t.a) + " " + webs_toTripleFile_indexGet(names, index, t.b) + " " + webs_toTripleFile_indexGet(names, index, t.c) + "\n"); } out.println(struct(names)); out.print(buf); }