Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/njahn82/semscholar

R interface to Semantic Scholar API
https://github.com/njahn82/semscholar

Last synced: about 2 months ago
JSON representation

R interface to Semantic Scholar API

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

# semscholar: interfacing Semantic Scholar search engine with R

[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![R-CMD-check](https://github.com/njahn82/semscholar/workflows/R-CMD-check/badge.svg)](https://github.com/njahn82/semscholar/actions)
[![Codecov test coverage](https://codecov.io/gh/njahn82/semscholar/branch/master/graph/badge.svg)](https://codecov.io/gh/njahn82/semscholar?branch=master)

This web client wraps the Semantic Scholar RESTful API.
[Semantic Scholar](https://www.semanticscholar.org/) is a free,
nonprofit, academic search engine from the
[Allen Institute for AI](https://allenai.org/).

The client supports search for author profiles and mined metadata
of scholarly works including citations, references and topics.

API Docs:

## Installation

You can install the develpment version of semscholar from GitHub:

``` r
remotes::install_github("njahn82/semscholar")
```

## Paper Lookup

```{r}
library(semscholar)
s2_papers(
c("10.1093/nar/gkr1047",
"14a22b032524573d15593abed170f9f76359e581",
"10.7717/peerj.2323",
"arXiv:0711.0914")
)
```

Authors

```{r}
s2_papers("14a22b032524573d15593abed170f9f76359e581")$authors
```

Citations

```{r}
s2_papers("14a22b032524573d15593abed170f9f76359e581")$citations
```

References

```{r}
s2_papers("14a22b032524573d15593abed170f9f76359e581")$references
```

Topics

```{r}
s2_papers("14a22b032524573d15593abed170f9f76359e581")$topics
```

## Author Lookup

Provide one or many S2 Author IDs

```{r}
s2_authors(c("2204561", "144128278", "49930593"))
```