如何使用Google知识图谱API [英] How to use Google Knowledge Graph 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 oneHere I can clearly see useful information like
Best Player
andGoals scored
, so Google has to have other entities linked to1990 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屋!