1 | static S ai_html_renderWebShort(Web web) {
|
2 | try {
|
3 | int n = l(web_nodes(web)); |
4 | if (n == 0) ret "Empty web"; |
5 | WebNode a = web_firstNode(web); |
6 | if (n == 1) ret join(" = ", map html_encyclopediaTopic(web_texts(a)));
|
7 | if (n == 2) {
|
8 | WebNode b = web_secondNode(web); |
9 | WebRelation r= web_getRelationOpt(a, b); |
10 | if (r != null) ret ai_html_renderTriple(r); |
11 | } |
12 | ret "Includes " + joinWithComma(map html_encyclopediaTopic(map web_text(web_nodes(web)))); |
13 | } catch print e {
|
14 | ret "Error"; |
15 | } |
16 | } |
Began life as a copy of #1011390
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1011565 |
| Snippet name: | ai_html_renderWebShort |
| Eternal ID of this version: | #1011565/1 |
| Text MD5: | da9a5481090b68ccea9c51e747894a75 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-10-31 17:10:06 |
| Source code size: | 538 bytes / 16 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 665 / 687 |
| Referenced in: | [show references] |