我正在寻找一种方法来创建带有 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 文档
Amazon Neptune 目前不支持“元属性”(属性的属性)。请参阅文档的本节: