3

As it is not possible yet to transfer data from Neo4j to Gephi via .graphml- file without loss of information I tried to stream the data. Therefore the Graph Streaming Plugin for Gephi exists here.

Following the instructions and inserting Cypher-Code:

match path = (:p)-[:r]->(:m)
WITH path LIMIT 1000
with collect(path) as paths
call apoc.gephi.add(null,'workspace0', paths) yield nodes, relationships, time
return nodes, relationships, time

I receive:

Can't read url http://localhost:8080/workspace0?operation=updateGraph as 
json: http://localhost:8080/workspace0?operation=updateGraph

What could be the problem?

Thank you in advance!

Fabio Lamanna
  • 20,504
  • 24
  • 90
  • 122
Grapheneer
  • 897
  • 8
  • 25
  • Did you try changing `workspace0` to `workspace1`? – Fabio Lamanna Aug 22 '17 at 14:45
  • @Fabio Lamanna, yes i did - same result – Grapheneer Aug 23 '17 at 08:24
  • Does the active Gephi window have workspace 0? – Yannis P. Aug 25 '17 at 12:59
  • @YannisP. How can I check that? It should be default.. – Grapheneer Sep 03 '17 at 10:50
  • 1
    I made my research so in Gephi 0.9.1 the default workspace when you start the Gephi is workspace 1. So I would suggest to start Gephi, start the streaming server, uncheck SSL in the settings and in a new browser window, put in the the URL field: `http://localhost:8080/workspace1?operation=getGraph`. Provided that Gephi has loaded a graph, this request will return you a JSON with all graph info – Yannis P. Sep 03 '17 at 11:33
  • 1
    This is what i get: Problem accessing /workspace1. Reason: Not Found – Grapheneer Sep 03 '17 at 11:35
  • 1
    I was kind of having the same issue to begin with but then in the server settings I unchecked SSL and restarted Gephi and it worked for me at least – Yannis P. Sep 03 '17 at 11:57

2 Answers2

0

For someone who has faced the similar issue, changing the language of Gephi (0.92) to English solved the problem.

Book Of Zeus
  • 49,509
  • 18
  • 174
  • 171
mingchau
  • 450
  • 3
  • 12
0
  1. Turn off ssl in the Streaming Properties.
  2. Save
  3. Restart Gephi
  4. Load your file
  5. Start the streaming server

Go to

curl "http://localhost:8080/workspace1?operation=getGraph"

All @YannisP's work.., many thanks, I just tested it and put it in an answer (so people can find it more easily).

demented hedgehog
  • 7,007
  • 4
  • 42
  • 49