clarivate / wos-amr

Utility scripts for using the Web of Science Links Article Match Retrieval Service (AMR) service.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Web of Science Links Article Match Retrieval Service (AMR)

Note, AMR is deprecated and scheduled to be sunset on November 1, 2023. It has been replaced by the Web of Science Starter API. This library will be archived following the sunset of AMR.

This client allows users to send batch requests to AMR to match local metadata to the Web of Science and retrieve details about individual documents from the Web of Science.

For more information about web services for the Web of Science, please review this data integration website.

Getting started

Requirements

  • Python 3
  • Access to the AMR service

Install

  • Download or clone this repository by clicking on the "Clone or download" button in the top right corner
  • Set two environment variables with your AMR credentials. Note, your AMR username and password is NOT the same as your credentials for the Web of Science.
    • WOS_USER
    • WOS_PASSWORD

Setting environment variables

On a Mac or Linux system:

$ export WOS_USER="myuser"
$ export WOS_PASSWORD="mypassword"

On Windows, open a command window:

set WOS_USER="myuser"
set WOS_PASSWORD="mypassword"

Running a script

Run the script with the incoming csv data as the first parameter and output file as the second parameter. For example:

$ python3 lookup_ids.py myfile.csv output.csv

A note on throttling

AMR limits the number of records you can request per minute. The example scripts in this repository include logic to respect that limit. You may have to adjust the THROTTLE_CAP value in client.py if you continue to receive throttling errors.

Disclaimer

These scripts are provided to allow Web of Science users to perform common operations with the AMR web service. The scripts and uses cases may change over time. No direct support is provided. Please contact your Clarivate account manager or technical support with questions regarding API access.

Use Cases

Match a set of DOIs or PMIDs to the Web of Science

With a CSV file with the following information, retrieve the Web of Science identifier (UT), DOI, current times cited count, and a link to the Web of Science.

Script name: lookup_ids.py

incoming data

PMID DOI
19883697 10.1016/j.bbr.2009.10.030
22011016 10.1080/09602011.2011.621275
2223077 10.1016/j.neuropsychologia.2011.12.011

matched data

id ut doi pmid times cited source
1 WOS:000276621200002 10.1016/j.bbr.2009.10.030 19883697 95 ...
2 WOS:000299789100009 10.1080/09602011.2011.621275 22011016 33 ....
3 WOS:000300816600006 10.1016/j.neuropsychologia.2011.12.011 22223077 22 ...

Match based on bibliometric data

The AMR API also allows you to retrieve articles based on bibliometric data, such as the article title and authors. Authors should be in a single field, separated by semicolons. Note that the data provided to the API must match a single article, if the result set is non-unique you will not receive any results. Please note, matching based on bibliometric data is not available for customers entitled only to the AMRLite service. An example csv file excluding bibliometric fields is included as ids_example_lite.csv.

incoming data

atitle stitle vol issue spage issn year authors
weighted median filters: A tutorial IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS II-ANALOG AND DIGITAL SIGNAL PROCESSING 1996
"New kilogram-synthesis of the anti-Alzheimer drug (-)-galanthamine" TETRAHEDRON LETTERS 39 15 2087 0040-4039 1998 Czollner, L;Frantsits, W;Kuenburg, B;Hedenig, U;Frohlich, J;Jordis, U

matched data

id ut doi pmid times cited source
1 WOS:A1996UB63100001 10.1109/82.486465 349 ...
2 WOS:000072730400015 10.1016/S0040-4039(98)00294-9 56 ...

Get JCR URLs for a set of ISSNs

Script name: issns_to_jcr.py

An incoming csv file with a column with an ID and a ISSN can be match to the Web of Science and a link to the Journal Citation Reports URL for that journal can be returned.

$ python3 issns_to_jcr.py issns_example.csv outputfile.csv

About

Utility scripts for using the Web of Science Links Article Match Retrieval Service (AMR) service.

License:MIT License


Languages

Language:Python 100.0%