if (FALSE) {
query_auth <- oa_query(identifier = "A5069892096", verbose = TRUE)
### EXAMPLE 1: Full record about an entity.
# Query to obtain allinformation about a particular work/author/institution/etc.:
# The following paper is associated to the OpenAlex-id W2755950973.
# Aria, M., & Cuccurullo, C. (2017). bibliometrix:
# An R-tool for comprehensive science mapping analysis.
# Journal of informetrics, 11(4), 959-975.
query_work <- oa_query(
identifier = "W2755950973",
verbose = TRUE
)
# The author Massimo Aria is associated to the OpenAlex-id A5069892096:
query_auth <- oa_query(identifier = "A5069892096", verbose = TRUE)
### EXAMPLE 2: all works citing a particular work.
# Query to search all works citing the article:
# Aria, M., & Cuccurullo, C. (2017). bibliometrix:
# An R-tool for comprehensive science mapping analysis.
# Journal of informetrics, 11(4), 959-975.
# published in 2021.
# The paper is associated to the OpenAlex id W2755950973.
# Results have to be sorted by relevance score in a descending order.
query1 <- oa_query(
entity = "works",
cites = "W2755950973",
from_publication_date = "2021-01-01",
to_publication_date = "2021-12-31",
verbose = TRUE
)
### EXAMPLE 3: All works matching a string in their title
# Query to search all works containing the exact string
# "bibliometric analysis" OR "science mapping" in the title, published in the first half of 2021.
# Results have to be sorted by relevance score in a descending order.
query2 <- oa_query(
entity = "works",
title.search = c("bibliometric analysis", "science mapping"),
from_publication_date = "2021-01-01",
to_publication_date = "2021-06-30",
options = list(sort = "cited_by_count:desc"),
verbose = TRUE
)
}
Run the code above in your browser using DataLab