我的代码:
[{
"id": null,
"name": null,
"/common/topic/alias": [],
"/common/topic/notable_for": [],
"limit": 100,
"type": "/sports/sport"
}]
"/common/topic/alias"
被罚款,但notable_for
始终为空。我还尝试过:null
,[{}]
,{}
和/common/notable_for
,这会产生架构错误。
如何在上面的notable_for
示例中返回每个实例的/sports/sport
值?
答案 0 :(得分:0)
notable_for数据与Freebase中的其他事实分开计算,无法从MQL API访问。但是,它可以从Search API,Topic API和RDF data dumps获取。
搜索API:
https://www.googleapis.com/freebase/v1/search?filter=(all+type:/sports/sport)&output=(/common/topic/alias)
主题API:
https://www.googleapis.com/freebase/v1/topic/m/071k0