我用的是TitanGraphDB+Cassandra。我将按如下方式启动泰坦
cd titan-cassandra-0.3.1
bin/titan.sh config/titan-server-rexster.xml config/titan-server-cassandra.properties
我有一个雷克斯特外壳,我可以用来与上面的泰坦+卡桑德拉通信。在
^{pr2}$我正在尝试使用Titan Graph DB建立网络拓扑模型。我想从python程序编程Titan Graph DB。我正在使用python bulbs
包那个。我的创建图形的代码如下所示。在
from bulbs.titan import Graph
self.g = Graph()
现在我在IP地址为192.168.65.93
的机器上运行rexster控制台和Titan。在
如果我想连接到在机器上运行的Titan AND Rexster
,它的IP是192.168.65.93
,来自192.168.65.94
上的python应用程序
我该怎么做?是否可以传递一些参数(例如,将配置文件传递给Graph())?我在哪能找到它?在
只需在bulls
Config
对象中设置Titan graph URI:见灯泡
Config
。。。在灯泡
Graph
(注意Titan的Graph
类是Rexster的Graph
类的一个子类)。。。在我鼓励你通读灯泡快速入门和其他文档,因为这些问题中的许多都在那里得到了解答。。。在
Quickstart使用
bulbs.neo4jserver
作为示例,但是由于无论您使用的是哪种后端服务器,bulls API都是一致的,因此快速入门示例也与Titan server和Rexster相关。在为了适应泰坦或雷克斯特灯泡快速启动,只需更改
^{pr2}$Graph
导入。。。在…到。。。在
……或者。。。在
相关问题 更多 >
编程相关推荐