如何使用Google知识图谱API [英] How to use Google Knowledge Graph API

查看:1861
本文介绍了如何使用Google知识图谱API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



假设我的MID适用于 1990年FIFA世界杯,这是 / m / 014nm _



p>


GET



在这里,我可以清楚地看到有用的信息例如 Best Player 目标得分,因此Google必须将其他实体链接到 1990 FIFA世界杯在知识图中。

解决方案

所以你必须从外部来源获取数据。据我所知,没有完整的可用来源。还有一些不完整的内容,比如Wikidata,DBPedia和Freebase转储数据。



Youtube有一个 Freebase Topic API ,您可以通过Knowledge Graph id搜索视频和频道。


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.

解决方案

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.

这篇关于如何使用Google知识图谱API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆