【问题标题】:Freebase returning empty results for MQL query of topic descriptionFreebase 为主题描述的 MQL 查询返回空结果
【发布时间】:2013-04-28 10:34:20
【问题描述】:

我尝试使用 google API freebase。 我使用以下查询搜索电影描述:

[{ 
  "id": "/m/027pfg", 
  "name": null, 
  "/common/topic/description": [] 
}] 

导致:

{ 
  "result": [{ 
    "id": "/m/027pfg", 
    "name": "Big Fish", 
    "/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 /说明

但在页面本身:“http://www.freebase.com/m/027pfg” 我确实看到了电影的描述。 这种情况经常发生,我无法获得所需的信息。

【问题讨论】:

    标签: google-api freebase


    【解决方案1】:

    MQL API 不返回实体描述。为了获得描述,您需要使用Search APITopic API

    搜索 API:

    https://www.googleapis.com/freebase/v1/search?query=/m/027pfg&output=(description)
    

    主题 API:

    https://www.googleapis.com/freebase/v1/topic/m/027pfg?filter=/common/topic
    

    【讨论】:

    • 谢谢。你知道我怎样才能在他们的 Api 中连续获取所有电影的信息吗?
    • Freebase 目前拥有超过 200,000 部电影的信息。数据转储可能是获取所有数据的最佳方式。 developers.google.com/freebase/data
    • 我下载了 tsv 文件。你能告诉我处理数据和解析数据的最佳方法是什么?
    • 您能否将其作为一个单独的问题发布。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多