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

26
LINES

< > BotCompany Repo | #1009964 // Think about diagrams 1 [OK]

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

Download Jar. Uses 616K of libraries. Click here for Pure Java version (12967L/91K).

1  
!7
2  
3  
concept Drawing {
4  
  S globalID = aGlobalID();
5  
  S name;
6  
  S calStructure;
7  
  
8  
  CirclesAndLines cal() { ret (CirclesAndLines) unstructure(calStructure); }
9  
}
10  
11  
p {
12  
  Concepts concepts = new Concepts(#1007609).load();
13  
  L<Drawing> drawings = list(concepts, Drawing);
14  
  print("Have " + n(drawings, "drawing") + ".");
15  
  Drawing d = getConcept(concepts, Drawing, 38);
16  
  Web web = calToWeb(d.cal());
17  
  web_labelsToUpperCase(web);
18  
  printWeb(web);
19  
  
20  
  for (Pair<WebNode> p : web_relationsOfType(web, "IS")) {
21  
    web_copyRelations(p.a, p.b);
22  
    web_copyRelations(p.b, p.a);
23  
  }
24  
  
25  
  printWeb(web);
26  
}

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: #1009964
Snippet name: Think about diagrams 1 [OK]
Eternal ID of this version: #1009964/13
Text MD5: 1f8acf31c52f250bf7a129d87eb8e812
Transpilation MD5: 25aac87001ac41d1646dd7634c465503
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-08-27 23:31:00
Source code size: 621 bytes / 26 lines
Pitched / IR pitched: No / No
Views / Downloads: 804 / 1514
Version history: 12 change(s)
Referenced in: [show references]