Google api 可以使用谷歌知识图api问自由形式的问题吗?

Google api 可以使用谷歌知识图api问自由形式的问题吗?,google-api,google-knowledge-graph,Google Api,Google Knowledge Graph,有没有可能使用谷歌知识图api问一个像“埃菲尔铁塔有多高?”这样的问题?如果不是,正确的api是什么 当我尝试这个: 我得到了一个空的结果。提问是可能的,但有一半的时间它会用不同于你所问的东西来“回答”,剩下的时间它会给你一个空的结果 即使是明确的搜索通常也会返回空的或意外的结果。例如,当我搜索现任美国总统时,它会返回一个关于巴拉克·奥巴马的结果,而当我搜索美国人口时,它并没有真正说出应该说什么(3.189亿(2014)): 我建议不要像我已经做的那样浪费你的时间。还要注意的是,不包括来自知识

有没有可能使用谷歌知识图api问一个像“埃菲尔铁塔有多高?”这样的问题?如果不是,正确的api是什么

当我尝试这个:


我得到了一个空的结果。

提问是可能的,但有一半的时间它会用不同于你所问的东西来“回答”,剩下的时间它会给你一个空的结果

即使是明确的搜索通常也会返回空的或意外的结果。例如,当我搜索现任美国总统时,它会返回一个关于巴拉克·奥巴马的结果,而当我搜索美国人口时,它并没有真正说出应该说什么(3.189亿(2014)):


我建议不要像我已经做的那样浪费你的时间。还要注意的是,不包括来自知识图的结果,而且长期以来一直存在“非定制”搜索API。

上面的示例不多,但在我看来,它是用于按名称查找实体,而不是用于在自由文本中查找实体。
=> #<HTTParty::Response:0x7ffc5857b938 parsed_response={"@context"=>{"@vocab"=>"http://schema.org/", "goog"=>"http://schema.googleapis.com/", "EntitySearchResult"=>"goog:EntitySearchResult", "detailedDescription"=>"goog:detailedDescription", "resultScore"=>"goog:resultScore", "kg"=>"http://g.co/kg"}, "@type"=>"ItemList", "itemListElement"=>[{"@type"=>"EntitySearchResult", "result"=>{"@id"=>"kg:/m/09c7w0", "name"=>"United States", "@type"=>["Country", "Thing", "Place", "AdministrativeArea"], "description"=>"Country", "image"=>{"contentUrl"=>"http://t1.gstatic.com/images?q=tbn:ANd9GcQKp8mjZhEK0hZroCA4srP9VA9eD8-0PcCsKSU4olhQlh6dMlxc", "url"=>"https://commons.wikimedia.org/wiki/File:USA_Flag_Map.svg", "license"=>"http://creativecommons.org/licenses/by-sa/2.5"}, "detailedDescription"=>{"articleBody"=>"The United States of America, commonly referred to as the United States or America, is a federal republic composed of 50 states, a federal district, five major self-governing territories, and various possessions. ", "url"=>"https://en.wikipedia.org/wiki/United_States", "license"=>"https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License"}, "url"=>"http://www.usa.gov/"}, "resultScore"=>246.96698}, {"@type"=>"EntitySearchResult", "result"=>{"@id"=>"kg:/g/1q5jrvck9", "name"=>"Population: Us", "@type"=>["Thing"], "description"=>"Song by Frank Portman"}, "resultScore"=>20.875225}]}, @response=#<Net::HTTPOK 200 OK readbody=true>, @headers={"content-type"=>["application/json; charset=UTF-8"], "vary"=>["Origin", "X-Origin", "Referer"], "date"=>["Fri, 03 Feb 2017 20:33:38 GMT"], "server"=>["ESF"], "cache-control"=>["private"], "x-xss-protection"=>["1; mode=block"], "x-frame-options"=>["SAMEORIGIN"], "x-content-type-options"=>["nosniff"], "alt-svc"=>["quic=\":443\"; ma=2592000; v=\"35,34\""], "connection"=>["close"], "transfer-encoding"=>["chunked"]}>
=> #<HTTParty::Response:0x7ffc58619f20 parsed_response={"@context"=>{"@vocab"=>"http://schema.org/", "goog"=>"http://schema.googleapis.com/", "EntitySearchResult"=>"goog:EntitySearchResult", "detailedDescription"=>"goog:detailedDescription", "resultScore"=>"goog:resultScore", "kg"=>"http://g.co/kg"}, "@type"=>"ItemList", "itemListElement"=>[{"@type"=>"EntitySearchResult", "result"=>{"@id"=>"kg:/m/09c7w0", "name"=>"United States", "@type"=>["Country", "Thing", "Place", "AdministrativeArea"], "description"=>"Country", "image"=>{"contentUrl"=>"http://t1.gstatic.com/images?q=tbn:ANd9GcQKp8mjZhEK0hZroCA4srP9VA9eD8-0PcCsKSU4olhQlh6dMlxc", "url"=>"https://commons.wikimedia.org/wiki/File:USA_Flag_Map.svg", "license"=>"http://creativecommons.org/licenses/by-sa/2.5"}, "detailedDescription"=>{"articleBody"=>"The United States of America, commonly referred to as the United States or America, is a federal republic composed of 50 states, a federal district, five major self-governing territories, and various possessions. ", "url"=>"https://en.wikipedia.org/wiki/United_States", "license"=>"https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License"}, "url"=>"http://www.usa.gov/"}, "resultScore"=>4238.782227}]}, @response=#<Net::HTTPOK 200 OK readbody=true>, @headers={"content-type"=>["application/json; charset=UTF-8"], "vary"=>["Origin", "X-Origin", "Referer"], "date"=>["Fri, 03 Feb 2017 20:29:07 GMT"], "server"=>["ESF"], "cache-control"=>["private"], "x-xss-protection"=>["1; mode=block"], "x-frame-options"=>["SAMEORIGIN"], "x-content-type-options"=>["nosniff"], "alt-svc"=>["quic=\":443\"; ma=2592000; v=\"35,34\""], "connection"=>["close"], "transfer-encoding"=>["chunked"]}>