2013-03-26 76 views
2

我試圖找回主題描述一些電影(「/膜/薄膜‘)和電影流派(’膜/ film_genre」)在意大利語的遊離鹼 - 專題介紹/文章

我認爲這個問題是在這兩種情況下是相同的,所以我張貼我想爲電影流派描述運行MQL查詢:


MQL查詢

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

響應

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

隨着收到的文章ID(「/m/01q0d」),我會使用「trans/wrap」服務(http://api.freebase.com/api/trans/raw/m/01q0d)。然而,即使我使用的查詢參數「LANG =它」,文章是英文... :(

任何建議,我要瘋了:?d

+0

請注意整個api.freebase.com API昨天已停止使用 - 您需要使用新的[Google API](https://developers.google.com/freebase/)。 – 2013-03-26 21:16:50

+0

即使不使用舊的「trans/wrap」服務,結果也是一樣的。 查詢返回的文章是英文的: https://www.freebase.com/m/01q0d – paoloaq 2013-03-26 21:24:33

回答

2

的遊離鹼包含非英語的名字,但大多數情況下,它不包含英文以外的任何描述。您可以使用Topic API並獲取意大利維基百科的/ common/topic/topic_equivalent_webpage從那裏獲取文章/描述,但這很可能最接近你會得到。

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

而且,正如菲爾說,該api.freebase。 com在幾天之內就會消失,所以你需要使用新的API。

+0

好的,非常感謝。 我希望能找到更短的方法,但如果沒有其他選擇,我會嘗試通過MQL檢索主題的「等效網頁」,並從維基百科的意大利語頁面中提取內容。 謝謝 – paoloaq 2013-03-27 19:41:53