Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1011788 // ai_spec_webContents

JavaX fragment (include)

1  
static void ai_spec_webContents(S s) {
2  
  new Matches m;
3  
  if (!swic_trim(s, "Web ", m)) ret;
4  
  Web web = ai_getWeb(m.rest());
5  
  if (web == null) ret;
6  
  ai_postTriple(s, "is", "a web");
7  
  
8  
  T3<S> t = ai_webToTriple(web);
9  
  if (t != null)
10  
    ai_postTriple(s, "is triple", ai_renderTriple(t));
11  
  else
12  
    for (WebNode node : web_nodesAndRelations(web))
13  
      ai_postTriple(s, node << WebRelation ? "contains relation" : "contains node", web_text(node));
14  
}

Author comment

Began life as a copy of #1011437

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: #1011788
Snippet name: ai_spec_webContents
Eternal ID of this version: #1011788/6
Text MD5: ad316dd3a7c370363790c81c9ce81e2f
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-05 05:19:16
Source code size: 467 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 440 / 466
Version history: 5 change(s)
Referenced in: [show references]