문제

My code:

[{
  "id": null,
  "name": null,
  "/common/topic/alias": [],
  "/common/topic/notable_for": [],
  "limit": 100,
  "type": "/sports/sport"
}]

Link

"/common/topic/alias" is returned fine however notable_for is always empty. I also tried: null, [{}], {} and /common/notable_for which gives a schema error.

How can I return the notable_for value per instance in the /sports/sport example above?

도움이 되었습니까?

해결책

The notable_for data is computed separately from other facts in Freebase and is not accessible from the MQL API. It is however available from the Search API, the Topic API and the RDF data dumps.

Search API:

https://www.googleapis.com/freebase/v1/search?filter=(all+type:/sports/sport)&output=(/common/topic/alias)

Topic API:

https://www.googleapis.com/freebase/v1/topic/m/071k0
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top