InteractiveGraphServer日前發(fā)布v0.0.1版本。
InteractiveGraphServer基于Neo4j數(shù)據(jù)庫(kù)為InteractiveGraph提供服務(wù)器后端。InteractiveGraph為大型圖數(shù)據(jù)提供了一個(gè)基于web的交互操作框架,其數(shù)據(jù)可以來(lái)自于GSON文件,或者在線(xiàn)Neo4j圖數(shù)據(jù)庫(kù)。
InteractiveGraph 同時(shí)也提供了三個(gè)基于本框架的應(yīng)用:GraphNavigator, **GraphExplorer **和 RelFinder。
圖導(dǎo)航器(GraphNavigator): 在線(xiàn)試用 https://bluejoe2008.github.io/InteractiveGraph/dist/examples/example1.html

圖瀏覽器(GraphExplorer): 在線(xiàn)試用 https://bluejoe2008.github.io/InteractiveGraph/dist/examples/example2.html

關(guān)系查找器(RelFinder): 在線(xiàn)試用 https://bluejoe2008.github.io/InteractiveGraph/dist/examples/example3.html

InteractiveGraphServer調(diào)用InteractiveGraph的架構(gòu)如下:

快速上手:
1、下載最新版本的graphserver.war和igraph.war
https://github.com/bluejoe2008/InteractiveGraphServer/releases
graphserver.war即為InteractiveGraphServer的java web應(yīng)用;
igraph.war則包含了InteractiveGraph的3個(gè)應(yīng)用:GraphNavigator, GraphBrowser, 和 RelFinder.
2、將以上war文件置于webapps目錄下,啟動(dòng)Web server(Tomcat)
假設(shè)server的Web地址為http://yourhost:8080
3、訪(fǎng)問(wèn)如下地址啟動(dòng)GraphBrowser:
http://yourhost:8080/igraph/example12.html
4、你也可以分別訪(fǎng)問(wèn)如下地址啟動(dòng)GraphExplorer和RelFinder:
http://yourhost:8080/igraph/example22.html
http://yourhost:8080/igraph/example32.html
服務(wù)器配置:
InteractiveGraphServer提供一個(gè)ConnectorServlet用以實(shí)現(xiàn)HTTP請(qǐng)求的響應(yīng)。該Servlet初始化時(shí)需要指定一個(gè)配置文件(properties格式),可以指定數(shù)據(jù)源來(lái)自于一個(gè)GSON文件、Neo4j數(shù)據(jù)庫(kù)還是一個(gè)支持BOLT協(xié)議的服務(wù)器。如下示出如何配置連接到一個(gè)本地的Neo4j數(shù)據(jù)庫(kù):
<pre style="box-sizing: inherit; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 13px; white-space: pre-wrap; overflow: auto; border-radius: 3px; padding: 2px; line-height: 1.4; overflow-wrap: normal; display: block; background: rgb(63, 63, 63); color: rgb(220, 220, 220); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">#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:地點(diǎn)
visNodeProperty.label==$prop.name
visNodeProperty.value==$prop.value
...</pre>
更多配置項(xiàng)的介紹詳見(jiàn):https://github.com/bluejoe2008/InteractiveGraphServer
歡迎star和試用?。。?/p>