static void ai_downloadRelations(S... relations) { for (S rel : relations) { Map map = cast loadJSONPage("http://smartbot.botcompany.de/json/relations/" + urlencode(rel)); if (map.containsKey("loading")) fail("Smart Bot is loading"); L> data = (L) map.get("data"); for (L l : unnull(data)) { S globalID = (S) l.get(3); if (!ai_hasWeb(globalID)) { T3 t = listToTriple(takeFirst(3, l)); Web web = webFromTriple(t); web.unverified = !eqGet(l, 5, "v"); web.setGlobalID(globalID); web.source = (S) get(l, 4); print("Posting downloaded web: " + globalID + " " + webToStringShort(web)); postSoftwareMadeWebAsSmartBot(web); } } } }