如何查询微软学术图表的引文和共同引用?

时间:2017-02-10 20:30:29

标签: api microsoft-cognitive

阅读:

https://www.microsoft.com/cognitive-services/en-us/Academic-Knowledge-API/documentation/GraphSearchMethod

"路径"的含义有点模糊: "路径":" / paper / AuthorIDs / author" - 我在返回的结果中没有看到authorIds对象。

# post data query
{
  "path": "/paper/AuthorIDs/author",
  "paper": {
    "type": "Paper",
    "NormalizedTitle": "graph engine",
    "select": [
      "OriginalTitle"
    ]
  },
  "author": {
    "return": {
      "type": "Author",
      "Name": "bin shao"
    }
  }
}

#results
{
  "Results": [
    [
      {
        "CellID": 2160459668,
        "OriginalTitle": "Trinity: a distributed graph engine on a memory cloud"
      },
      {
        "CellID": 2093502026
      }
    ],
    [
      {
        "CellID": 2171539317,
        "OriginalTitle": "A distributed graph engine for web scale RDF data"
      },
      {
        "CellID": 2093502026
      }
    ],
    [
      {
        "CellID": 2411554868,
        "OriginalTitle": "A distributed graph engine for web scale RDF data"
      },
      {
        "CellID": 2093502026
      }
    ],
    [
      {
        "CellID": 73304046,
        "OriginalTitle": "The Trinity graph engine"
      },
      {
        "CellID": 2093502026
      }
    ]
  ]
}

查询文章的引用和共引用以及分页结果的正确路径(或要发布的数据)是什么?

2 个答案:

答案 0 :(得分:2)

您会在graph schema from Microsoft Academic Search上找到/** return true when the view is found */ func searchForElement(_ label:String) -> Bool{ do { try tester().tryFindingView(withAccessibilityLabel: label) return true } catch { return false } }

enter image description here

答案 1 :(得分:1)

假设您知道源文件的ID(以下示例中的2118322263),这里是请求的POST部分:

Promise {
  emitter:
   EventEmitter {
     domain: null,
     _events: {},
     _eventsCount: 0,
     _maxListeners: undefined },
  emitted: {},
  ended: false }

这会在一个响应中返回634结果,而对纸张本身的查询显示引用计数为732.我不知道为什么会有差异,也不知道如何进行分页。