Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
10-12-2018 01:22 AM
Hello,
I have created a python script which imports real time data into Neo4j. Is there any way to see this data in real time? For example, can I have the graph opened and see the new nodes popping up when the data is imported?
Thank you very much in advance!
/Angelos
10-12-2018 06:01 PM
You either have to poll the graph.
Or you could use an tx-listener to make them visible, pushed to a visualization client.
You might be able to do that with an apoc trigger, that then calls another procedure e.g. to send the nodes to a client, e.g. Gephi (via apoc.gephi.add ).
10-15-2018 01:09 AM
Thank you for your response!
How can I poll the graph? Is there any tool for that?
10-16-2018 12:25 PM
here is an example:
you also have to enable triggers in your config: apoc.trigger.enabled=true
CALL apoc.trigger.add('gephi',"UNWIND {createdNodes} AS n
OPTIONAL MATCH path = (n)--()
WITH collect(n) + collect(path) as paths
CALL apoc.gephi.add(null,'workspace1', paths) yield nodes return count(*)
", {phase:'before'})
10-17-2018 02:50 AM
Thank you Michael!
Now I can see what you meant. Really helpful thanks!
10-17-2018 09:03 AM
Hi Angelos!
This is an interesting ask! We would love to learn more about your project if you're ever interested in sharing!
If you wanted to write a blog post about it, we can possibly publish it on our Neo4j Medium Blog.
I think the community there could possibly find it valuable and learn from it!
All the sessions of the conference are now available online