Question

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?

Était-ce utile?

La solution

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
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top