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

12
LINES

< > BotCompany Repo | #1012376 // Test TripleIndex

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (11727L/77K).

1  
!7
2  
3  
set flag ai_tripleToWebNode_debug.
4  
5  
p {
6  
  new TripleIndex index;
7  
  index.addWeb(webFromTriple("a", "b", "c"));
8  
  L<WebNode> l = printStruct(unlazyList(index.get("b")));
9  
  assertEquals(1, l(l));
10  
  assertTrue(first(l) instanceof WebRelation);
11  
  print("OK");
12  
}

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: #1012376
Snippet name: Test TripleIndex
Eternal ID of this version: #1012376/4
Text MD5: 68cf6f0e7b4811889eb3e171dde7f6a0
Transpilation MD5: d1a6c9835a9c6f07d102d714558f090d
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-29 00:28:49
Source code size: 272 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 472 / 1117
Version history: 3 change(s)
Referenced in: [show references]