IteractiveGraphServer 基于Neo4j数据库为 IteractiveGraph 提供服务器后端。
IteractiveGraph为大型图数据提供了一个基于web的交互操作框架,其数据可以来自于GSON文件,或者在线Neo4j图数据库。
IteractiveGraph同时也提供了三个基于本框架的应用:GraphNavigator、GraphExplorer 和 RelFider。
图导航器(GraphNavigator):在线试用 https://bluejoe2008.github.io/IteractiveGraph/dist/examples/example1.html
图浏览器(GraphExplorer):在线试用 https://bluejoe2008.github.io/IteractiveGraph/dist/examples/example2.html
关系查找器(RelFider):在线试用 https://bluejoe2008.github.io/IteractiveGraph/dist/examples/example3.html
IteractiveGraphServer调用IteractiveGraph的架构如下:
快速上手:
1、下载最新版本的graphserver.war和igraph.warhttps://github.com/bluejoe2008/IteractiveGraphServer/releases
graphserver.war即为IteractiveGraphServer的javaweb应用;igraph.war则包含了IteractiveGraph的3个应用:GraphNavigator, GraphBrowser,和 RelFider.
2、将以上war文件置于webapps目录下,启动Webserver(Tomcat)假设server的Web地址为https://yourhost:8080
3、访问如下地址启动GraphBrowser:https://yourhost:8080/igraph/example12.html
4、你也可以分别访问如下地址启动GraphExplorer和RelFider:https://yourhost:8080/igraph/example22.htmlhttps://yourhost:8080/igraph/example32.html
服务器配置:
IteractiveGraphServer提供一个CoectorServlet用以实现HTTP请求的响应。该Servlet初始化时需要指定一个配置文件(properties格式),可以指定数据源来自于一个GSON文件、Neo4j数据库还是一个支持BOLT协议的服务器。如下示出如何配置连接到一个本地的Neo4j数据库:
#allowOrigi=https://localhost:63342allowOrigi=*backedType=eo4j-dbeo4j.dataDir=WEB-INF/databases/data.dbeo4j.boltPort=7688eo4j.regexpSearchFields=ameeo4j.strictSearchFields=label:ameeo4j.odeCategories=perso:人物,evet:事件,locatio:地点visNodeProperty.label==$prop.amevisNodeProperty.value==$prop.value
评论