!7 static double aiConceptsCacheInterval = 60; html { print("Wiki URI: " + uri); uri = dropSuffix("/", uri); uri = dropPrefix("/", uri); if (eq(uri, "import")) { triggerStandardAIImport(); ret "OK"; } aiConceptsMap_clearCache(aiConceptsCacheInterval); Map map = aiConceptsMap_cached(); if (possibleGlobalID(uri)) { AIConcept c = map.get(toLower(uri)); if (c == null) ret "Concept not found: " + toLower(uri); S html = h3(htmlencode(aiConceptToString(c))); html += ul( "Image MD5: " + htmlencode(c.imageMD5) ); if (nempty(c.imageMD5) && imageServerHas(c.imageMD5)) html += p(himg(imageServerLink(c.imageMD5))); ret html; } ret ul(map(f htmlencode, keys(map))); }