如何使用 gremlin 查询创建具有嵌套属性的 AWS Neptune 节点

问题描述 投票:0回答:1

我正在寻找一种方法来创建带有 nosted proprietes 的节点,例如我在 Github 上找到的本示例中的“位置”:https://github.com/apache/tinkerpop/blob/master/data/tinkerpop -crew.json

{
  "id":{
    "@type":"g:Int32",
    "@value":1
  },
  "label":"person",
  "properties":{
    "location":[
      {
        "id":{
          "@type":"g:Int64",
          "@value":6
        },
        "value":"san diego",
        "properties":{
          "startTime":{
            "@type":"g:Int32",
            "@value":1997
          },
          "endTime":{
            "@type":"g:Int32",
            "@value":2001
          }
        }
      },
      {
        "id":{
          "@type":"g:Int64",
          "@value":7
        },
        "value":"santa cruz",
        "properties":{
          "startTime":{
            "@type":"g:Int32",
            "@value":2001
          },
          "endTime":{
            "@type":"g:Int32",
            "@value":2004
          }
        }
      },
      {
        "id":{
          "@type":"g:Int64",
          "@value":8
        },
        "value":"brussels",
        "properties":{
          "startTime":{
            "@type":"g:Int32",
            "@value":2004
          },
          "endTime":{
            "@type":"g:Int32",
            "@value":2005
          }
        }
      },
      {
        "id":{
          "@type":"g:Int64",
          "@value":9
        },
        "value":"santa fe",
        "properties":{
          "startTime":{
            "@type":"g:Int32",
            "@value":2005
          }
        }
      }
    ]
  }
}

我还在 Tinkerpop Apache 文档中发现顶点可以具有属性上的属性 ,但我不理解文档以及我应该如何做。

如有任何帮助,我们将不胜感激

我尝试遵循 Tinkerpop Apache 文档

gremlin tinkerpop
1个回答
1
投票

Amazon Neptune 目前不支持“元属性”(属性的属性)。请参阅文档的本节

© www.soinside.com 2019 - 2024. All rights reserved.