現在是否可以從Freebase Search API獲取所有結果?Freebase Search API - 獲取所有結果
今天我試着2點的方法在Java中:
1) www.googleapis.com/freebase/v1/search?filter=..."
Using "cursor"(integer) and "limit" options.
2) www.freebase.com/ajax/156b.lib.www.tags.svn.freebase-site.googlecode.dev/cuecard/mqlread.ajax?&query=
Try to simulate 'Query Editor' (https://www.freebase.com/query)
Using "cursor" from the previous results set (String).
但在這兩種方法中我只拿到了
- 200 (first option)
- 500 (second option)
記錄(應該是約6000條記錄)...
經過多次迭代,我得到了
- "Request too large, cursor: 200, limit: 200" (first option, only 1 iteration)
- "cursor is false" (second option, 6 iterations)
消息。
它是Freebase問題還是API限制?
我怎麼能得到所有結果?
謝謝!我也嘗試在我的瀏覽器中運行'查詢編輯器',只有6次迭代,直到'遊標'變成'假'。我想讓所有人都出生在葡萄牙。我使用了這個查詢[{ 「name」:null, 「place_of_birth」:「Portugal」, 「type」:「/ people/person」 }]我可以使用'Knowledge Graph'嗎? – gmlvsv
我已根據您的查詢更新了我的答案。我懷疑問題的根源在於MQLRead沒有爲位置查詢計算傳遞閉包。 –