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

11
LINES

< > BotCompany Repo | #1013496 // ai_spec_relRewrite

JavaX fragment (include)

sbool ai_spec_relRewrite_debug;

static void ai_spec_relRewrite(Web web) {
  for (WebRelation r : web_relationObjects(web)) {
    S rel = web_text(r);
    L<S> newRels = ai_texts_verified(rel, "[relation] rewrites to", "$X");
    if (ai_spec_relRewrite_debug) print("ai_spec_relRewrite: " + sfu(newRels));
    for (S newRel : newRels)
      postDerivedFromWeb(web, web_text(r.a), newRel, web_text(r.b));
  }
}

Author comment

Began life as a copy of #1011734

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: #1013496
Snippet name: ai_spec_relRewrite
Eternal ID of this version: #1013496/5
Text MD5: 61eee22b0c3533d1296b93b9a0092cd3
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-11 16:24:28
Source code size: 419 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 328 / 353
Version history: 4 change(s)
Referenced in: [show references]