【问题标题】:I am using Tinkerpop 3 and Gremlin. Can someone tell how I can commit the graph that I create using TinkerGraph.open()?我正在使用 Tinkerpop 3 和 Gremlin。有人能告诉我如何提交我使用 TinkerGraph.open() 创建的图表吗?
【发布时间】:2017-11-15 23:10:00
【问题描述】:

我正在使用 Tinkerpop3 和 Gremlin 控制台(通过运行 gremlin.bat)。创建图形后,向其添加节点、边,如果由于某种原因必须关闭控制台,我将无法检索之前创建的图形。有人可以告诉我如何保存我创建的图表吗? 示例-graph = TinkerGraph.open() // 添加节点和边的命令 // 将此图提交到数据库

【问题讨论】:

    标签: gremlin tinkerpop3


    【解决方案1】:

    TinkerGraph 没有 commit(),因为它不是事务性的,但您可以将图表保存为多种不同的格式。查看Gremlin I/O 文档以了解支持的格式并获取一些有关如何保存/加载图表的示例。

    【讨论】:

      猜你喜欢
      • 2020-11-20
      • 1970-01-01
      • 2023-01-14
      • 1970-01-01
      • 2015-09-20
      • 2019-03-09
      • 2019-02-15
      • 2014-06-04
      • 2021-12-08
      相关资源
      最近更新 更多