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).

!7

concept Drawing {
  S globalID = aGlobalID();
  S name;
  S calStructure;
  
  CirclesAndLines cal() { ret (CirclesAndLines) unstructure(calStructure); }
}

p {
  Concepts concepts = new Concepts(#1007609).load();
  L<Drawing> drawings = list(concepts, Drawing);
  print("Have " + n(drawings, "drawing") + ".");
  Drawing d = getConcept(concepts, Drawing, 38);
  Web web = calToWeb(d.cal());
  web_labelsToUpperCase(web);
  printWeb(web);
  
  for (Pair<WebNode> p : web_relationsOfType(web, "IS")) {
    web_copyRelations(p.a, p.b);
    web_copyRelations(p.b, p.a);
  }
  
  printWeb(web);
}

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: 565 / 1053
Version history: 12 change(s)
Referenced in: [show references]