使用 R,我想获得引用科学期刊论文的文章列表。
我唯一的信息是文章的标题,例如“用叶酸酚试剂测量蛋白质”。
有没有人能够通过生产,我可以使用一个可复制的例子来帮助我?
这是我到目前为止所尝试的。
R 包fulltext
似乎很有用,因为它允许检索链接到文章的 ID 列表。例如,我可以获取文章的 DOI:
library(fulltext)
res1 <- ft_search(query = "Protein measurement with the folin phenol reagent", from = "croef")
res1 <- ft_links(res1)
res1$croef$ids
同样,我可以通过在函数fulltext::ft_search
中设置from = "scopus"
(并包含一个作用域 API 键)来获取作用域 ID。
如果使用 DOI,我可以使用 R 库rcroef
获取文章的引用次数:
rcroef::cr_citation_count(res1$croef$ids[1])
同样,如果我想使用作用域 ID,而不是 DOI,我可以使用 R 包rscopus
。
不幸的是,这些信息对我来说还不够,因为我需要引用该论文的文章列表,而不是数量。
我在互联网上看到很多人使用包scholar
。但是如果我理解正确,为了这个工作,我需要文章的作者有一个谷歌学者 ID,我必须找到一种方法来检索这个 ID。所以它看起来不像是一个可行的解决方案。
有没有人有任何想法如何解决这个问题?
获得 DOI 后,您可以使用OpenCitations API获取有关引用该文章的出版物的数据。通过https://opencitations.net/index/coci/api/v1/citations/{DOI}
使用rjson
-package 访问 API。字段名称citing
包含引用该出版物的所有出版物的 DOI 的值。然后,您可以使用CrossRef's API和获取有关引用论文的更多
OpenCitations的 API 的Here is an example,有三个引用(截至 2021 年 1 月)。
这是一个可能的代码(与上面的示例相同):
opcit <- "https://opencitations.net/index/coci/api/v1/citations/10.1177/1369148118786043"
result <- rjson::fromJSON(file = opcit)
citing <- lapply(result, function(x){
x[['citing']]
})
# a vector with three DOIs, each of which cite the paper
citing <- unlist(citing)
现在我们有了带有三个 DOI 的向量citing
。然后,您可以使用rcroef
查找有关引用论文的基本信息,例如:
paper <- rcroef::cr_works(citing[1])
# find out the title of that paper
paper[["data"]][["title"]]
# output: "Exchange diplomacy: theory, policy and practice in the Fulbright program"
由于您在citing
中有一个 DOI 向量,您也可以使用此方法:
citingdata <- rcroef::cr_cn(citing)
citingdata
的输出应该导致三篇引用论文的元数据,其结构类似于这两个示例:
[[1]]
[1] "@article{Wong_2020,\n\tdoi = {10.1017/s1752971920000196},\n\turl = {https://doi.org/10.1017%2Fs1752971920000196},\n\tyear = 2020,\n\tmonth = {jun},\n\tpublisher = {Cambridge University Press ({CUP})},\n\tpages = {1--31},\n\tauthor = {Seanon S. Wong},\n\ttitle = {One-upmanship and putdowns: the aggressive use of interaction rituals in face-to-face diplomacy},\n\tjournal = {International Theory}\n}"
[[2]]
[1] "@article{Aalberts_2020,\n\tdoi = {10.1080/21624887.2020.1792734},\n\turl = {https://doi.org/10.1080%2F21624887.2020.1792734},\n\tyear = 2020,\n\tmonth = {aug},\n\tpublisher = {Informa {UK} Limited},\n\tvolume = {8},\n\tnumber = {3},\n\tpages = {240--264},\n\tauthor = {Tanja Aalberts and Xymena Kurowska and Anna Leander and Maria Mälksoo and Charlotte Heath-Kelly and Luisa Lobato and Ted Svensson},\n\ttitle = {Rituals of world politics: on (visual) practices disordering things},\n\tjournal = {Critical Studies on Security}\n}"
本站系公益性非盈利分享网址,本文来自用户投稿,不代表边看边学立场,如若转载,请注明出处
评论列表(14条)