按属性将ID数组与密码进行匹配

mwg9r5ms  于 2022-10-01  发布在  其他
关注(0)|答案(0)|浏览(59)

我正在使用Neo4J Desktop测试我正在尝试编写的密码查询。

该数据库包含许多对象,例如:

{
  "identity": 44494216,
  "labels": [
    "WikiEntity"
  ],
  "properties": {
"date_added": "2022-01-11T00:00:00",
"indexed_text": "Johnny Dyer",
"name": "John Dyer (rugby union)",
"wikipediaID": "https://en.wikipedia.org/wiki/John_Dyer_(rugby_union)",
"type": "PERSON",
"parent_bin": "parent_0_230_303",
"uuid": "c378ff81-dea3-48e3-8411-4fb1cd085438"
  }
}

{
  "identity": 162983523,
  "labels": [
    "Topic"
  ],
  "properties": {
"topicID": "progressive politics-t",
"topicAlternateID": "XXX8383291769194810424",
"name": "Progressive Politics",
"parent_bin": "parent_0_217_230",
"uuid": "f8358b4f-e656-4290-ab26-2270c1d76088",
"slug": "progressive-politics"
  }
}

我希望能够从我提供的ID数组中返回匹配的对象的uuid,我还希望只返回labelWikiEntityTopicKeyword的匹配项。

理想情况下,我希望能够返回如下所示的对象:

{
  Keywords: [], // list of matching uuids 
  Topics: [], // list of matching uuids 
  Entities: [] // list of matching uuids 
}

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题