gpt4 book ai didi

google-api - Freebase 为主题描述的 MQL 查询返回空结果

转载 作者:行者123 更新时间:2023-12-04 22:00:30 26 4
gpt4 key购买 nike

我尝试使用 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/description



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

最佳答案

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

关于google-api - Freebase 为主题描述的 MQL 查询返回空结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16261978/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com