Skip to content

A tool for retrieving articles from Scopus. Can work as a standalone application or in conjunction with the author disambiguation application, ReCiter.

License

Notifications You must be signed in to change notification settings

wcmc-its/ReCiter-Scopus-Retrieval-Tool

Repository files navigation

ReCiter-Scopus-Retrieval-Tool

Build Status version codebeat badge License PRs Welcome Pending Pull-Requests Closed Pull-Requests GitHub issues open GitHub issues closed star this repo fork this repo Tags Github All Releases Open Source Love

Authorized users may download records from the Scopus database. This application presents an easier to use interface for developers who use Scopus. It corrects some errors in Scopus including cases where it duplicates authors.

This application was written to work with ReCiter, a tool for disambiguating articles written in PubMed and also indexed in Scopus. However, this application can work as a standalone service. In testing, it does help improve accuracy by several percentage points, but Scopus is not necessary to run ReCiter.

Advantages over using Scopus API alone

This tool has several advantages over using the Scopus API alone:

  • The Scopus API outputs data as XML while the ReCiter Scopus Retrieval Tool outputs data as JSON, a format which is easier for developers to use.
  • The Scopus API sometimes creates redundant author objects or otherwise doesn’t properly assign sequence numbers to authors. This tool addresses both problems.

Prerequisites

  • Java 11
  • Latest version of Maven. To install Maven navigate to the directory where ReCiter Scopus Retrieval Tool will be installed, execute brew install maven and then mvn clean install If you want to use Java 8 then update <java.version>1.8</java.version> in pom.xml

It is not necessary to install ReCiter in order to use the API.

Installing

  1. Navigate to directory where you wish to install the application, e.g., cd ~/Paul/Documents/
  2. Clone the repository: git clone https://github.com/wcmc-its/ReCiter-Scopus-Retrieval-Tool.git
  3. Navigate to the newly installed folder: cd ReCiter-Scopus-Retrieval-Tool
  4. Use Maven to build the project: mvn clean install -Dmaven.test.skip=true
  5. Set the SCOPUS_API_KEY key and SCOPUS_INST_TOKEN. (See "Obtaining an API key and INST_TOKEN" below)
  • Option #1: Command line
    • Enter export SCOPUS_API_KEY=[enter your API key here]
    • Enter export SCOPUS_INST_TOKEN=[enter your INST_TOKEN here]
  • Option #2: Enter as an environment variable in AWS itself. If you are deploying to an AWS instance, add the environment variable in the Elastic Beanstalk configuration section.
  • Option #3: In Eclipse application
    • Open Eclipse
    • Right-click on Application.java found here: ReCiter-Scopus-Retrieval-Tool --> src/main/java --> reciter --> Application.java
    • Click on "Run As..." --> "Run Configurations..."
    • Click on "ReCiter-Scopus-Retrieval-Tool" in sidebar
    • Click on "Environment" tab
    • Under variable, add "SCOPUS_API_KEY" and enter the API key.
    • Under variable, add "SCOPUS_INST_TOKEN" and enter the INST_TOKEN.
  1. Set the desired port
  • Option #1: Set at the system level using this command export SERVER_PORT=[your port number]. This supersedes any ports set in application.properties.
  • Option #2: Update the application.properties file located at /src/main/resources/ Make sure the port doesn't conflict with other services such as ReCiter or ReCiter PubMed Retrieval Tool.
  1. Build Maven instance mvn spring-boot:run
  2. Visit http://localhost:[your port number]/swagger-ui/index.html or http://localhost:[your port number]/swagger-ui/ to see the Swagger page for this service.

Obtaining an API key and INST_TOKEN

This Elsevier document describes how to obtain an API key and INST_TOKEN from Elsevier.

Using

Ths Scopus Retrieval Tool API only allows you to search one field at a time. Field codes are listed on the Elsevier site or in the Scopus data model for this tool.

Search for one PMID

{
  "query": [
    "20000000"
  ],
  "type": "PMID"
}

https://raw.githubusercontent.com/wcmc-its/ReCiter-Scopus-Retrieval-Tool/master/files/SearchScopus-PMID.gif

Search for multiple PMIDs

{
  "query": [
      "20000000",
      "21000000"
  ],
  "type": "PMID"
}

Search by DOI

{
  "query": [
     "10.1155/2018/1920276"
  ],
  "type": "doi"
}

https://raw.githubusercontent.com/wcmc-its/ReCiter-Scopus-Retrieval-Tool/master/files/SearchScopus-DOI.gif

Search by Scopus Doc ID

{
  "query": [
     "34547687746"
  ],
  "type": "scopus-id"
}

Search by institutional affiliation identifier

{
  "query": [
    "60007997"
  ],
  "type": "af-id"
}