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)

static void ai_spec_webContents(S s) {
  new Matches m;
  if (!swic_trim(s, "Web ", m)) ret;
  Web web = ai_getWeb(m.rest());
  if (web == null) ret;
  ai_postTriple(s, "is", "a web");
  
  T3<S> t = ai_webToTriple(web);
  if (t != null)
    ai_postTriple(s, "is triple", ai_renderTriple(t));
  else
    for (WebNode node : web_nodesAndRelations(web))
      ai_postTriple(s, node << WebRelation ? "contains relation" : "contains node", web_text(node));
}

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: 358 / 384
Version history: 5 change(s)
Referenced in: [show references]