标签: tinkerpop-blueprint

Tinkerpop3连接到远程TitanDB服务器

我正在尝试使用Java中的Tinkerpop3作为客户端从已经运行的TitanDB服务器获取Graph对象(我不想创建服务器).

换句话说,我正在尝试实现这样的功能:public Graph obtainGraph(String serverIp,String graphName);

我试图像这样做: AWS Lambda + Tinkerpop/Gremlin + TitanDB on EC2 + AWS DynamoDB in cloud

但据我了解,TitanFactory.open()启动服务器,我不想这样做 - 我只想连接到现有的服务器.

文档以及Internet中的大多数材料使用内存中的图表作为示例,我找不到一个,它显示了如何:

  • 创建新图并将其保存在远程服务器上

  • 从远程服务器检索现有图

  • 更新这样的远程Graph,所以在添加/删除边缘后提交更改

  • 删除整个图表

我不想通过Gremlin语言(字符串)来做上述事情,而是通过Java API(TinkerpopBlueprins).这个人正在接近我需要的东西: 在Java中将顶点添加到TitanDB Graph 但是,他的方法已经将Graph作为参数.

我在Internet的很多地方都看到过,GraphFactory.open()获取了属性文件的路径,但是我还没有看到这种文件内容的例子,尤其是TitanDB的相关数据,所以我更喜欢使用Configuration对象.

图形图形= GraphFactory.open(new BaseConfiguration())

说,没有gremlin.graph属性.

配置配置= new BaseConfiguration(); configuration.setProperty("gremlin.graph","titan");

图形图形= GraphFactory.open(配置);

说GraphFactory无法找到[titan] - 确保jar在类路径中

是否有任何静态类型的构建器,其中包含枚举和常量,而不是Map,它将告诉我,我必须提供哪些属性以及它们的类型是什么?是否有任何开源项目,使用Tinkerpop3作为客户端连接到远程TitanDB服务器,我可以用作例子吗?

我希望看到完整的工作示例,而不是内存与外部配置.

java gremlin titan tinkerpop-blueprint tinkerpop3

7
推荐指数
1
解决办法
1808
查看次数

我们如何在Orientdb中使用Tinkerpop蓝图?

我想在OrientDB中使用Blueprints和Pipes.方法是什么?还有TinkerPop3或TinkerPop2?哪个对我的学习经历更好?

orientdb tinkerpop tinkerpop-frames tinkerpop-blueprint

5
推荐指数
1
解决办法
1597
查看次数

从OrientDB检索OrientVertex对象

我在Java中使用OrientDB的Graph API时遇到了问题.

问题:

从持久性本地图数据库中检索顶点(OrientVertex或Vertex?),并通过控制台创建多个顶点/边.

因此,我已经能够从我现在认为使用的文档API查询数据库

graph = factory.getTx();
String string = String.format("select * from V where name like \"%s\"", criteria);
OSQLSynchQuery<ODocument> query = new OSQLSynchQuery<OrientVertex>(string);
List<OrientDocument> results = graph.getRawGraph().command(query).execute();
Run Code Online (Sandbox Code Playgroud)

但这不适用于Vertices.如何运行返回数据库中顶点列表的查询?

提前致谢.

graph-databases orientdb gremlin tinkerpop-blueprint

4
推荐指数
1
解决办法
3766
查看次数