Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
334 views
in Technique[技术] by (71.8m points)

python - Extract author profile entities from Microsoft Academic API?

I am working with the Microsoft Academic API to download some bibliometric data. Microsoft Academic contains just like most bibliometric databases a wide selection of entities, ranging from data on individual publications to profiles of authors and institutions.

Currently I am using this code to download relevant data for paper entities:

import requests
response = requests.get("https://api.labs.cognitive.microsoft.com/academic/v1.0/evaluate?&expr=Composite(AA.AuN==john
     smith)&count=1000&attributes=Ti&subscription-key=<subscription_key>")

Yet, I would like to also download "author profile" and "institution profile" data using the Microsoft Academic API, but I am not sure whether that is possible or how I can accomplish this. With "institution profile data" I mean not just the publication output of the specific institution, but rather data on where the institution is based, the total number of citations etc.

The documentation seems to suggest that it would be possible to download data from the other entities. I have tried quite a lot of things, but to no avail, so I was wondering if someone has already managed to do this.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Search by Author ID

For author profile data, use the author profile ID via AA.AuId in the expr-field.

Here is an example with the author profile ID 2154179079 (Emanuel A.) with count=30 (30 publications) showing attributes=Ti,VFN, that is, the title of each publication (Ti) and the venue's full name (VFN, e.g. journal name or conference name):

https://api.labs.cognitive.microsoft.com/academic/v1.0/evaluate?&expr=Composite(AA.AuId=2154179079)&count=30&attributes=AuN,Ti,VFN&subscription-key={YOUR-KEY}

Search by Affiliation ID

Use the Affiliation ID via AA.AfId in the expr-field.

If you only want to find the publications from the Hebrew University of Jerusalem (ID: 197251160), then this would be the URL (again with 30 publications only showing titles and venues):

https://api.labs.cognitive.microsoft.com/academic/v1.0/evaluate?&expr=Composite(AA.AfId=197251160)&count=30&attributes=Ti,VFN&subscription-key={YOUR-KEY}

Search by Author ID and Affiliation ID

To search for both author ID and affiliation ID, change the expr field to Composite(And(AA.AuId={AUTHOR-ID},AA.AfId={AFFILIATION-ID})).

For example, if you use the same author (Emanuel A.) from above, but only want to see the papers he published at the Hebrew University of Jerusalemn, then the expr field would read: expr=Composite(And(AA.AuId=2154179079,AA.AfId=197251160)).

The whole URL is then:

https://api.labs.cognitive.microsoft.com/academic/v1.0/evaluate?&expr=Composite(And(AA.AuId=2154179079,AA.AfId=197251160))&count=30&attributes=Ti,VFN&subscription-key={YOUR-KEY}


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...