Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/njahn82/semscholar
- Owner: njahn82
- License: other
- Created: 2020-01-24T21:10:05.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-22T15:56:53.000Z (over 3 years ago)
- Last Synced: 2024-11-01T21:51:11.499Z (2 months ago)
- Language: R
- Size: 56.6 KB
- Stars: 16
- Watchers: 3
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
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"))
```