Learn R Programming

microdemic (version 0.1.0)

ma_graph_search: Graph search API

Description

Graph search API

Usage

ma_graph_search(query, mode = "json", key = NULL, ...)

Arguments

query

(character) query terms

mode

(character) json (default) or lambda

key

(character) microsoft academic API key, see Details.

...

curl options passed on to crul::HttpClient

References

https://westus.dev.cognitive.microsoft.com/docs/services/56332331778daf02acc0a50b/operations/57e3569ddbe2d91158fa270e graph search method: https://docs.microsoft.com/en-us/azure/cognitive-services/academic-knowledge/graphsearchmethod json search: https://docs.microsoft.com/en-us/azure/cognitive-services/academic-knowledge/jsonsearchsyntax lambda search: https://docs.microsoft.com/en-us/azure/cognitive-services/academic-knowledge/lambdasearchsyntax

Examples

Run this code
# NOT RUN {
x <- '{
"path": "/paper/AuthorIDs/author",
 "paper": {
   "type": "Paper",
   "NormalizedTitle": "graph engine",
   "select": [ "OriginalTitle" ]
 },
 "author": {
   "return": { "type": "Author", "Name": "bin shao" }
 }
}'

res <- ma_graph_search(query = x)
res$Results
do.call(rbind, res$Results)
# }

Run the code above in your browser using DataLab