2011-10-30 16 views
1

我正在使用freebase庫來打印文章。一切工作正常。但我想問你一些問題。以下示例正常工作。假設我有這樣的標題bol (film)。現在我想用這個標題,像這樣"id": "/en/bol_(film)",。但這不起作用。在wikipedia API中,我們可以使用此標題作爲bol20%28%film29%。誰能幫我?非常感謝關於freebase庫(如何使用bol(電影)標題作爲id?)

query = [{ 
      "id": "/en/barak_obama", 
      "/common/topic/article": [{ 
      "id": None 
      }], 
      "/common/topic/image": [{ 
      "id": None 
      }] 
     }] 

編輯:我已閱讀此freebase網站。但這不起作用。 For example, $0028 in a fully-qualified name represents a left parenthesis and $0029 represents a right parenthesis. (See Section 2.5.9 for the full list of legal characters in fully-qualified names.

回答

相關問題