lookup_paper: Lookup details about a paper

View source: R/semantic_scholar.R

lookup_paperR Documentation

Lookup details about a paper

Description

This function fetch a paper data from the Semantic Scholar corpus.

Usage

lookup_paper(
  paper_id,
  fields = c("externalIds", "title", "abstract", "year", "tldr")
)

Arguments

paper_id

string Supported paper identifier services: Semantic Scholar ID, Semantic Scholar numerical ID, Digital Object Identifier, arXiv.rg, Microsoft Academic Graph, Association for Computational Linguistics, PubMed/Medline, PubMed Central and URL from one of the sites listed below. See Format for detalis.

fields

string A comma-separated list of the fields to be returned, support one or more fileds, for example fileds = get_fields()[['papers']] was all fields to be returned. See Format or see get_fields to set more params.

Format

The following types of paper_id are supported:

  • <sha> - a Semantic Scholar ID, e.g. 649def34f8be52c8b66281af98ae884c09aef38b

  • CorpusId:<id> - Semantic Scholar numerical ID, e.g. 215416146

  • DOI:<doi> - a Digital Object Identifier, e.g. DOI:10.18653/v1/N18-3011

  • ARXIV:<id> - arXiv.rg, e.g. ARXIV:2106.15928

  • MAG:<id> - Microsoft Academic Graph, e.g. MAG:112218234

  • ACL:<id> - Association for Computational Linguistics, e.g. ACL:W12-3903

  • PMID:<id> - PubMed/Medline, e.g. PMID:19872477

  • PMCID:<id> - PubMed Central, e.g. PMCID:2323736

  • URL:<url> - URL from one of the sites listed below, e.g. URL:https://arxiv.org/abs/2106.15928v1

The following returned results are recognized:

  • paperId string

  • externalIds object Other catalog IDs for this paper, if known. Supports ArXiv, MAG, ACL, PubMed, Medline, PubMedCentral, DBLP, DOI.

  • url string URL on the Semantic Scholar website

  • title string This field will be provided if no fields are specified.

  • abstract string

  • venue string

  • year integer

  • referenceCount integer

  • citationCount integer

  • influentialCitationCount integer https://www.semanticscholar.org/faq#influential-citations

  • isOpenAccess boolean https://www.openaccess.nl/en/what-is-open-access

  • fieldsOfStudy object A list of high-level academic categories.

  • authors object Array of objects (Author Info).

  • citations object Array of objects (Paper Info)

  • references object Array of objects (Paper Info

  • embedding object object (Embedding)

  • tldr object Too Long; Didn't Read. Artificial Intelligence https://www.semanticscholar.org/product/semantic-reader summarizes academic articles for you.

Details

See website https://api.semanticscholar.org/graph/v1#operation/get_graph_get_paper for details.

Value

list representing paper objects

Author(s)

Liuyong Ding

Examples

## Not run: 
res <- lookup_paper(paper_id = "649def34f8be52c8b66281af98ae884c09aef38b")

## End(Not run)

Otoliths/S2miner documentation built on Dec. 5, 2023, 2:17 p.m.