1

我正在运行一个关于滑板手 Steve Caballero 的简单查询

https://www.freebase.com/m/0qmzf

具有https://www.freebase.com/business/spired_recipient/sponsorship?schema=类型的属性

在 freebase 中,我可以看到该属性具有以下项目:

史蒂夫卡巴列罗的赞助商

MQL 是这样的:

[{
  "id": "/m/0qmzf",
  "name": null,
  "/business/sponsored_recipient/sponsorship": []
}]

但它返回这个:

{
  "result": [{
    "id": "/m/0qmzf",
    "/business/sponsored_recipient/sponsorship": [
      null,
      null,
      null,
      null
    ],
    "name": "Steve Caballero"
  }]
}

谁能帮我弄清楚为什么列表的空值?谢谢

4

1 回答 1

2

赞助是一种中介类型(也称为复合值类型 (CVT)),这意味着除了赞助者和赞助接受者之外,它还有多个值(特别是 From & To 日期)。

您可以在此处查看架构:https ://www.freebase.com/business/sponsorship?schema=

CVT 节点没有名称(因此是空值),但您真正想要的是更进一步。您可以执行以下操作来获取赞助滑板手列表以及赞助商以及赞助开始和结束日期:

[{
  "type":       "/people/person",
  "name":       null,
  "profession": "Skateboarder",
  "/business/sponsored_recipient/sponsorship": [{
    "sponsored_by": null,
    "from":         null,
    "to":           null
  }]
}]
于 2013-08-31T22:38:26.947 回答