简体   繁体   English

为什么Google Knowledge Graph API无法返回我所知道的拥有Google Knowledge Panel的业务?

[英]Why does the Google Knowledge Graph API not return businesses that I know have a Google Knowledge Panel?

I am trying to programatically find out whether a given company has a google knowledge panel. 我正在尝试以编程方式找出给定的公司是否具有Google知识面板。 for instance, when i search google for the company "Aeronaut Brewing Company", I get a sidebar that displays relevant information about the company. 例如,当我在Google上搜索“ Aeronaut Brewing Company”公司时,会出现一个侧边栏,其中显示有关该公司的相关信息。 This is called the knowledge panel. 这称为知识面板。 Google's knowledge graph api is supposed to return this information, and for aeronaut it does: Google的知识图api应该返回此信息,对于Aeroonaut来说,它会:

https://kgsearch.googleapis.com/v1/entities:search?query=Aeronaut+Brewing+Company&key=YOUR_API_KEY&limit=10&indent=True https://kgsearch.googleapis.com/v1/entities:search?query=Aeronaut+Brewing+Company&key=YOUR_API_KEY&limit=10&indent=True

However, I've noticed that plenty of companies who have a knowledge panel do not show up in google knowledge graph api. 但是,我注意到,很多拥有知识面板的公司都没有出现在Google知识图API中。 for instance: 例如:

The Affton Chamber of Commerce has a sidebar on google ( link ), but a google knowledge graph search comes back as only the following JSON (basically it's empty): 阿夫顿商会在Google( 链接 )上有一个侧边栏,但是Google知识图搜索仅以以下JSON形式返回(基本上为空):

https://kgsearch.googleapis.com/v1/entities:search?query=affton+chamber+of+commerce&key=YOUR_API_KEY&limit=10&indent=True https://kgsearch.googleapis.com/v1/entities:search?query=affton+chamber+of+commerce&key=YOUR_API_KEY&limit=10&indent=True

@context    
@vocab  "http://schema.org/"
goog    "http://schema.googleapis.com/"
EntitySearchResult  "goog:EntitySearchResult"
detailedDescription "goog:detailedDescription"
kg  "http://g.co/kg"
@type   "ItemList"
itemListElement []

What's going on? 这是怎么回事? Shouldn't google knowledge graph API contain everything that has a knowledge panel on google?? Google知识图API不应该包含在Google上具有知识面板的所有内容吗?

The MID (machine-generated identifier, also known as Google Knowledge Graph ID) of the Affton Chamber of Commerce is /g/1hg4ww6pq ( SERP link ). Affton商会的MID(机器生成的标识符,也称为Google知识图ID)为/g/1hg4ww6pqSERP链接 )。 Unlike the entities that start with /m/ that originated from Freebase, /g/ entities are internal to Google and don't tend to be exposed through the Knowledge Graph API. 与以/m/开头的实体(源自Freebase)不同, /g/实体在Google内部,并且不会通过Knowledge Graph API公开。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM