從舊版 Google Knowledge Graph Search API 遷移

更新要求

  1. 新版 Google Knowledge Graph Search API 推出兩種版本:BasicAdvanced。詳情請參閱「Basic 和 Advanced 版本」。

  2. 為支援安全性和法規遵循需求,請改用新的預測端點。如要使用 Basic 版本,請為這個 API 使用新的存取權杖或服務帳戶,並替換端點網址,如下所示:

舊版

https://kgsearch.googleapis.com/v1/entities

已更新

https://enterpriseknowledgegraph.googleapis.com/v1/projects/PROJECT_ID/locations/global/publicKnowledgeGraphEntities

回覆更新

  1. Cloud 知識圖譜 MID 會成為實體的主要 MID (identifier)。為顧及回溯相容性,您仍可在 identifier 部分找到 Google 知識圖譜 MID。詳情請參閱「瞭解機器 ID (MID)」。

    "identifier": [
      {
        "@type": "PropertyValue",
        "propertyID": "googleKgMID",
        "value": "/m/06pwq"
      }
    ]
    
  2. 已新增 additionalProperty,說明「name」欄位的授權規定。

    "additionalProperty": {
      "@type": "PropertyValue",
      "name": "nameLicense",
      "value": "https://cloud.google.com/maps-platform/terms"
    }
    
  3. 回應中已移除 resultScore 欄位。