2017-02-27 48 views
0

我使用微軟學術API的graph search方法來檢索引用ID和參考標識的紙。但是,在檢索引用ID時,引用ID字段始終爲空,即使是應該鏈接引用的論文也是如此。例如,通過API獲取this publication微軟學術API,知識圖搜索 - ReferenceIDs總是空

POST https://westus.api.cognitive.microsoft.com/academic/v1.0/graph/search?mode=json 
Content-Type: application/json 
Host: westus.api.cognitive.microsoft.com 
Ocp-Apim-Subscription-Key: my-api-key 

{ 
    "path": "/paper", 
    "paper": { 
     "select": [ 
      "OriginalTitle", 
      "CitationIDs", 
      "ReferenceIDs" 
     ], 
     "type": "Paper", 
     "id": [2059999322] 
    } 
} 

產生這種反應(我縮短了CitationIDs列表可讀性的緣故):

{ 
    "Results": [ 
     [ 
      { 
       "CellID": 2059999322, 
       "CitationIDs": "[630584464,2053566310,2239657960,...]", 
       "OriginalTitle": "Biodistribution of colloidal gold nanoparticles after intravenous administration: Effect of particle size", 
       "ReferenceIDs": "" 
      } 
     ] 
    ] 
} 

有一件事我注意到的是,圖形架構提供here(在頁面的底部)不匹配here顯示的模式(某些屬性被重新命名,例如NormalizedPaperTitle - > NormalizedTitle),所以我想現場也許重命名爲別的東西。

什麼是正確的查詢通過API獲得參考的ID?

回答

2

它應該是ReferencesIDs,而不是ReferenceIDs

+0

這是行得通!非常感謝你! – robodasha

+1

要查看哪些字段可用,您可以在「選擇」字段中使用「*」(當時爲拉姆達查詢工作至少...)的小費 – Renaud

+1

謝謝!我只是嘗試過,它也適用於json查詢。 – robodasha