[英]Freebase returning empty results for MQL query of topic description
I try and use the google API freebase. 我尝试使用谷歌API免费库。 I search for films description using the following query:
我使用以下查询搜索电影描述:
[{
"id": "/m/027pfg",
"name": null,
"/common/topic/description": []
}]
which result in : 结果是:
{
"result": [{
"id": "/m/027pfg",
"name": "Big Fish",
"/common/topic/description": []
}]
}
the url: 网址:
http://www.freebase.com/query?autorun=1&q=%5B%7B%22id%22:%22/m/027pfg%22,%22name%22:null,%22/common/topic/description
http://www.freebase.com/query?autorun=1&q=%5B%7B%22id%22:%22/m/027pfg%22,%22name%22:null,%22/common/topic/description
but in the page itself: " http://www.freebase.com/m/027pfg " I do see the description of the film. 但在页面本身:“ http://www.freebase.com/m/027pfg ”我确实看到了电影的描述。 this happenes alot and I can not get the info I need.
这发生了很多,我无法得到我需要的信息。
The MQL API does not return entity descriptions. MQL API不返回实体描述。 In order to get the descriptions, you'll need to use either the Search API or the Topic API .
为了获得描述,您需要使用Search API或Topic API 。
Search API: 搜索API:
https://www.googleapis.com/freebase/v1/search?query=/m/027pfg&output=(description)
Topic API: 主题API:
https://www.googleapis.com/freebase/v1/topic/m/027pfg?filter=/common/topic
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.