How to convert Neo4j Result to GraphJSON

十年热恋 提交于 2019-12-11 03:05:20

问题


I want to use GraphJSON format in Alchemy.js for visualization . After getting the Result of CQL execution , I want to convert the Result data to GraphJSON format . Is there some API available or I will have to iterate the collection and create the GraphJSON format?. I am using Java API.

Thanks in advance.


回答1:


I wrote an demo app that queries Neo4j and returns graphjson to render with alchemy.js

you can find it here:

http://jexp.github.io/cy2neo

running against an non-authenticated local server by default

this is the code that's used to create the graph-json

https://github.com/jexp/cy2neo/blob/master/scripts/neo.js#L36



来源:https://stackoverflow.com/questions/32585768/how-to-convert-neo4j-result-to-graphjson

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!