InteractiveGraph-neo4j圖數(shù)據(jù)在線交互服務(wù)器
InteractiveGraph-neo4j —— 圖數(shù)據(jù)在線交互服務(wù)器
InteractiveGraph-neo4j 基于 Neo4j 數(shù)據(jù)庫為 InteractiveGraph 提供服務(wù)器后端。InteractiveGraph 為大型圖數(shù)據(jù)提供了一個基于 Web 的交互操作框架,其數(shù)據(jù)可以來自于 GSON 文件,或者在線 Neo4j 圖數(shù)據(jù)庫。
InteractiveGraph 同時也提供了三個基于本框架的應(yīng)用:GraphNavigator, GraphExplorer 和 RelFinder。
圖導航器(GraphNavigator): 在線試用 https://bluejoe2008.github.io/InteractiveGraph/dist/examples/example1.html
圖瀏覽器(GraphExplorer): 在線試用 https://bluejoe2008.github.io/InteractiveGraph/dist/examples/example2.html
關(guān)系查找器(RelFinder): 在線試用 https://bluejoe2008.github.io/InteractiveGraph/dist/examples/example3.html
InteractiveGraph-neo4j調(diào)用InteractiveGraph的架構(gòu)如下:
快速上手:
1、下載最新版本的graphserver.war和igraph.war
https://github.com/bluejoe2008/InteractiveGraph-neo4j/releases
graphserver.war即為InteractiveGraph-neo4j的java web應(yīng)用;
igraph.war則包含了InteractiveGraph的3個應(yīng)用:GraphNavigator, GraphBrowser, 和 RelFinder.
2、將以上war文件置于webapps目錄下,啟動Web server(Tomcat)
假設(shè)server的Web地址為http://yourhost:8080
3、訪問如下地址啟動GraphBrowser:
http://yourhost:8080/igraph/example12.html
4、你也可以分別訪問如下地址啟動GraphExplorer和RelFinder:
http://yourhost:8080/igraph/example22.html
http://yourhost:8080/igraph/example32.html
服務(wù)器配置:
InteractiveGraph-neo4j 提供一個 ConnectorServlet 用以實現(xiàn) HTTP 請求的響應(yīng)。該 Servlet 初始化時需要指定一個配置文件(properties格式),可以指定數(shù)據(jù)源來自于一個 GSON 文件、Neo4j 數(shù)據(jù)庫還是一個支持 BOLT 協(xié)議的服務(wù)器。如下示出如何配置連接到一個本地的 Neo4j 數(shù)據(jù)庫:
#allowOrigin=http://localhost:63342 allowOrigin=* backendType=neo4j-db neo4j.dataDir=WEB-INF/databases/data.db neo4j.boltPort=7688 neo4j.regexpSearchFields=name neo4j.strictSearchFields=label:name neo4j.nodeCategories=person:人物,event:事件,location:地點 visNodeProperty.label==$prop.name visNodeProperty.value==$prop.value ...
更多配置項的介紹詳見:https://github.com/bluejoe2008/InteractiveGraph-neo4j
歡迎star和試用?。?!
