本文介绍了可能通过灯泡/Rexster连接到多个neo4j数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用灯泡打开与图形的连接时,我希望能够指定neo4j(2.0+)数据库文件夹.目的是能够在不启动neo4j服务器的情况下在同一台计算机上打开不同或多个neo4j数据库(数据/文件夹).这适用于Gremlin控制台.我怀疑使用灯泡执行此操作的方法是使用灯泡Rexster客户端( http: //bulbflow.com/docs/api/bulbs/rexster/client/),并以某种方式自动启动指向该文件夹的Rexster服务器.是否有人这样做或有人可以为实现这些目标提供建议?

I would like to be able to specify the neo4j (2.0+) database folder when I open a connection to a graph using bulbs. The goal is to be able to open different or multiple neo4j databases (folders in data/) on the same machine without starting the neo4j server. This works with the Gremlin console. I suspect the route to doing this with bulbs would be to use the bulbs Rexster client (http://bulbflow.com/docs/api/bulbs/rexster/client/) and somehow automatically start a Rexster server pointing to the folder. Has anybody done this or can anyone contribute advice toward such goals?

非常感谢

推荐答案

Bulbs旨在简化使用多个图形数据库的工作.

Bulbs was designed to make it easy to work with multiple graph databases.

为要运行的每个Neo4j数据库配置rexster.xml(每个数据库将具有不同的名称,从而具有不同的URL路径),然后为每个数据库创建单独的Bulbs ConfigGraph对象:

Configure your rexster.xml for each Neo4j database you want to run (each will have a different name and thus a different URL path), and then create a separate Bulbs Config and Graph object for each database:

>>> from bulbs.rexster import Graph, Config
>>>
>>> config = Config('http://localhost:8182/graphs/somegraph')
>>> g1 = Graph(config)
>>>
>>> config = Config('http://localhost:8182/graphs/anothergraph')
>>> g2 = Graph(config)

以下是相关文档...

Here are the relevant docs...

  • Rexster配置(rexster.xml)

  • Rexster Configuration (rexster.xml)

https://github.com/tinkerpop/rexster/wiki/Rexster-Configuration

Rexster/Neo4j2配置

Rexster/Neo4j2 Configuration

https://github.com/tinkerpop/rexster/wiki/Specific-Graph-Configurations#neo4j2

灯泡配置

http://bulbflow.com/docs/api/bulbs/config/

这篇关于可能通过灯泡/Rexster连接到多个neo4j数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 05:13