How to use Google Knowledge Graph API

旧时模样 提交于 2019-12-04 23:29:49

问题


In what useful way can I use Google Knowledge Graph API at the moment?

Let's say I have the MID for 1990 FIFA World Cup, which is /m/014nm_

and I make this request:

GET https://kgsearch.googleapis.com/v1/entities:search?ids=%2Fm%2F014nm_&key={MY_API_KEY}

I'll get something like this http://pastebin.com/M1fgj7Ew

Now how can I use that information in a meaningful way? Just a description and a wikipedia link is not that comprehensive. How can I find out what other entities are linked to this one in the graph?

If I search on Google for 1990 World Cup, I'll get a Knowledge Graph card like this one

Here I can clearly see useful information like Best Player and Goals scored, so Google has to have other entities linked to 1990 FIFA World Cup in the knowledge graph.


回答1:


Google does not expose additional facts from its knowledge graph, so you'd have to get data from an outside source. To my knowledge there are no complete sources that are available. There are incomplete ones, such as Wikidata, DBPedia, and loads of the Freebase dump data.

Youtube has a Freebase Topic API, you can search for videos and channels by Knowledge Graph id.



来源:https://stackoverflow.com/questions/37479276/how-to-use-google-knowledge-graph-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!