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

9
LINES

< > BotCompany Repo | #1010206 // web_findTriple - find node/relation/node

JavaX fragment (include)

static Pair<WebNode> web_findTriple(Web web, S a, S rel, S b) {
  for (Pair<WebNode> p : web_relations(web)) {
    //print(p.a.text() + " / " + a);
    //print(p.b.text() + " / " + b);
    if (web_hasLabel(p.a, a) && web_hasLabel(p.b, b) && web_hasLabelIC(p, rel))
      ret p;
  }
  null;
}

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: #1010206
Snippet name: web_findTriple - find node/relation/node
Eternal ID of this version: #1010206/4
Text MD5: e311b486e700fb67a612098d58ee954f
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-06 18:20:36
Source code size: 299 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 414 / 455
Version history: 3 change(s)
Referenced in: [show references]