Question

I'm trying to retrieve the topic description for some film ("/film/film") and film genres ("film/film_genre") in italian language.

I think the problem is the same in both cases, so I post the MQL query that I'm trying to run for the film genre description:


Mql query

[{
  "type": "/film/film_genre",
  "name": "Film culto",
  "/common/topic/article": [{
    "id": null
  }]
}]

Response

{
  "result": [{
    "type": "/film/film_genre",
    "name": "Film culto",
    "/common/topic/article": [{
      "id": "/m/01q0d"
    }]
  }]
}

With the article ID received ("/m/01q0d"), I would use the "trans/wrap" service (http://api.freebase.com/api/trans/raw/m/01q0d). However, even though I use the query parameter "lang=it", the article is in English... :(

Any suggestions? I'm going crazy :D

Was it helpful?

Solution

Freebase contains non-English names, but it doesn't, for the most part, contain descriptions in anything other than English. You could use the Topic API and get the /common/topic/topic_equivalent_webpage for the Italian Wikipedia to fetch the article/description from there, but that's probably the closest you'll get.

https://www.googleapis.com/freebase/v1/topic/m/01q03

And, as Phil said, the api.freebase.com is going away in a matter of days, so you need to be using the new APIs.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top