Git Product home page Git Product logo

rwos's Introduction

R interface with Web of Science Web Services API

Travis-CI Build Status CRAN_Status_Badge

Note : Only the Lite version of the API is accessible for now.

Installation

Not on CRAN, install directly from GitHub :

install.packages("devtools")  # if required
devtools::install_github("wowazzz/rwos")

Usage

First, you need to authenticate against the service and get a session identifier. Username and password are not required as the Lite API is freely available.

library(rwos)
sid <- wos_authenticate()

You can the use this session id to run search queries with wos_search :

res <- wos_search(sid, "AU=Wickham Hadley")

This will display the number of results found. You can then retrieve all records from this search results with wor_retrieve_all :

pubs <- wos_retrieve_all(res)

Or just a fraction of them with wos_retrieve :

pubs <- wos_retrieve(res, first = 10, count = 15)

The result is a tibble (a data frame) with the different records fields as columns.

API usage

API version

Only the Lite version of the API is accessible for now, which means :

  • Access without authentication
  • Limited set of returned data
  • Records retrieving limited to batches of 100

Collections

The search collections available with the lite API are SCI, ISTP, ISSHP, IC. You can narrow your search to a subset of those with the editions argument :

wos_search(sid, 'TS=soil', editions = c("SCI", "IC"))

Queries against other editions will result in a Not authorized error message.

Searching for exact several words expressions

When searching for text with a keyword like TS, you must enclose it into double quotes if you want to look for exact phrases. For example, the following search will look for the exact soil health expression :

wos_search(sid, 'TS="soil health"')

Whereas the following will be equivalent to search for (soil AND health) :

wos_search(sid, "TS='soil health'"")

Limiting by document type

It seems you can narrow your search by document type with the DT operator, like this :

wos_search(sid, "((TS=(soil AND health)) AND (DT=(Article OR Book OR Book Chapter)))")

This has not been well tested, so use it with caution and don't hesitate to report any issue.

Links

Lite API technical documentation : http://ipscience-help.thomsonreuters.com/wosWebServicesLite/WebServicesLiteOverviewGroup/Introduction.html

General API FAQ : http://ip-science.interest.thomsonreuters.com/data-integration

Sample data : http://ip-science.interest.thomsonreuters.com/sample-data/?elqTrackId=4face30b453a4df981d9135a688b4868&elqaid=3746&elqat=2

rwos's People

Contributors

juba avatar wowazzz avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.