Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

Cannot visualise graph #8

Open
sriniraghu16 opened this issue Jul 11, 2018 · 3 comments
Open

Cannot visualise graph #8

sriniraghu16 opened this issue Jul 11, 2018 · 3 comments

Comments

@sriniraghu16
Copy link

sriniraghu16 commented Jul 11, 2018

When I try to visualise the knowledge graph, I get the graph-data.js but the graph-index.js remains empty and html files are not generated.

================================
[Datasource] Processing : { name: 'vor',
mapper: [Function: circularGraphMapper],
output: 'graph-data.js' }

[Connected] to OrientDB [vor].
All nodes retrieved...
Enumerating edges...
Transforming nodes & edges ...
Initialising I/O ...
Serialising graph to JS ...
118 nodes
100 links
Graph HTML is ready in ./HTML/

[Datasource] Processing : { name: 'vorindex',
mapper: [Function: indexGraphMapper],
output: 'graph-index.js' }

[Connected] to OrientDB [vorindex].
All nodes retrieved...
Enumerating edges...
Remapping nodes...
Initialising I/O ...
Serialising graph to JS ...
0 nodes
0 links
Graph HTML is ready in ./HTML/

Can anyone help me regarding this ?

@sriniraghu16 sriniraghu16 changed the title Unhandled rejection SyntaxError: Unexpected token = Cannot visualize graph Jul 11, 2018
@sriniraghu16 sriniraghu16 changed the title Cannot visualize graph Cannot visualise graph Jul 11, 2018
@tao-pr
Copy link
Owner

tao-pr commented Jul 11, 2018

Based on your output, the word space data graph-data.js should be written with 118 nodes and 100 links. Can you try opening html/graph-universe.html?

The second part of your output suggests that you don't have an index data generated beforehand. This can be done with build_index.py.

@sriniraghu16
Copy link
Author

I tried opening "html/graph-universe.html" but could find it empty !! Also the "build_index.py" too seems to be empty. what can be done to overcome this?

@tao-pr
Copy link
Owner

tao-pr commented Jul 13, 2018

build_index.py will generate the index data onto your OrientDB. The output database will be created as vorindex. Can you check if it exists and whether it has some nodes/edges inside?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants