2013-04-12 40 views
1

我知道某個主題的/ common/topic/description屬性。當我訪問特定主題的頁面時,有一個主題的這個屬性有很多實例。以下哪些是維基百科的描述(如果存在某個主題)?什麼屬性將我的維基百科描述的主題?

其基本目標是獲得關於主題的描述,並且如果存在主題則優先考慮維基百科的描述。

某個主題的屬性會幫我取這個嗎?

回答

1

如果您要求Topic API中的/common/topic/description,您會看到引用數據,告訴您說明的描述來自維基百科。

https://www.googleapis.com/freebase/v1/topic//m/09c7w0?filter=/common/topic/description

{ 
"id": "/m/09c7w0", 
"property": { 
    "/common/topic/description": { 
    "valuetype": "string", 
    "values": [ 
    { 
    "text": "The United States of America, commonly called the United States and America, is a federal...", 
    "lang": "en", 
    "creator": "/user/wikirecon_bot", 
    "project": "wikirecon", 
    "dataset": "/m/0kj4zz_", 
    "citation": { 
     "provider": "Wikipedia", 
     ... 
} 
+0

輝煌的答案。謝謝肖恩!那麼這是否意味着/ common/topic/description可能不僅來自維基百科,還來自其他來源(如用戶自己添加其描述)?所以我想知道這個屬性的多個實例的問題,現在我得到了答案:)謝謝! –