【问题标题】:How to define schema & database for a Neptune database using Python / Gremlin?如何使用 Python / Gremlin 为 Neptune 数据库定义架构和数据库?
【发布时间】:2021-06-17 09:09:14
【问题描述】:

我最近开始使用 AWS Neptune 构建图形数据库。有没有办法使用gremlin_python 定义架构和创建数据库?

任何教程推荐也会有所帮助。

【问题讨论】:

    标签: python amazon-web-services graph gremlin amazon-neptune


    【解决方案1】:

    Amazon Neptune 具有隐式模式,有时称为“无模式”。这意味着它不需要提前定义模式。首先,您需要做的就是开始使用 Gremlin 添加数据。数据的“模式”是由写入的数据类型创建的。例如g.addV('person').property('age', 41) 将创建一个带有名为person 的标签和一个名为age 的属性的顶点。

    【讨论】:

    • 谢谢。这很有帮助。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-27
    相关资源
    最近更新 更多