diff --git a/README.md b/README.md index 78f27e6..62a3447 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ Preview ------- ![Screenshot](https://cloud.githubusercontent.com/assets/4989256/20325678/5efeecde-ab8e-11e6-8d8d-f4955a1afa4d.png) +![Screenshot](https://cloud.githubusercontent.com/assets/4989256/20610106/becaeac6-b29d-11e6-987b-670998ac048e.png) Usage ----- @@ -39,3 +40,13 @@ gulp ``` Then, open `build/static/index.html` file. + +To install test REST client, run the following: + +```bash +import +``` + +This will put `src/cls/EntityBrowser/Router.cls` class into your Caché (change the `import.*` +script), and after you set up a web application, go to configure app settings by clicking setting +button in the top right corner. \ No newline at end of file diff --git a/package.json b/package.json index a7ac777..eee4e74 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iknow-entity-browser", - "version": "0.0.8", + "version": "0.1.0", "description": "Visualizer for iKnow entities", "main": "gulpfile.babel.js", "scripts": { diff --git a/src/cls/EntityBrowser/Router.cls b/src/cls/EntityBrowser/Router.cls index f8e64b5..cc6a9ae 100644 --- a/src/cls/EntityBrowser/Router.cls +++ b/src/cls/EntityBrowser/Router.cls @@ -312,7 +312,7 @@ ClassMethod AppendChildObjects(ByRef pObjects, ByRef pGraph, ByRef pEntityTokens } set tNodeObj = {"id": (tNodeID), "label": (pEntityTokens(tEntIDx)), "type": "entity", "entities": [ (tEntObj) ]} do pObjects.nodes.%Push(tNodeObj) - set tEdgeObj = {"origin": (pParentNodeID), "destination": (tNodeID), "type": (tEdgeType)} + set tEdgeObj = {"source": (pParentNodeID), "target": (tNodeID), "type": (tEdgeType)} do pObjects.edges.%Push(tEdgeObj) set tSC = ..AppendChildObjects(.pObjects, .pGraph, .pEntityTokens, tNodeID, pLevel+1) diff --git a/src/static/index.html b/src/static/index.html index b566b57..0c9e887 100644 --- a/src/static/index.html +++ b/src/static/index.html @@ -70,6 +70,22 @@