将 RIS 或 NBIB 或 JSON 转换为 bibtex?

将 RIS 或 NBIB 或 JSON 转换为 bibtex?

文章不在 Google Scholar 中,他们提供 RIS、NBIB 和 JSON 中的引用。

所以最大的问题是,我如何将其转换为 bibtex?

JSON 格式如下:

{"source":"PMC","accessed":{"date-parts":[[2015,9,29]]},"id":"aiid:181008","title":"The Genome Sequence of <i>Yersinia pestis</i> Bacteriophage φA1122 Reveals an Intimate History with the Coliphage T3 and T7 Genomes","author":[{"family":"Garcia","given":"Emilio"},{"family":"Elliott","given":"Jeffrey M."},{"family":"Ramanculov","given":"Erlan"},{"family":"Chain","given":"Patrick S. G."},{"family":"Chu","given":"May C."},{"family":"Molineux","given":"Ian J."}],"container-title-short":"J Bacteriol","container-title":"Journal of Bacteriology","publisher":"American Society for Microbiology","ISSN":"0021-9193","issued":{"date-parts":[[2003,9]]},"page":"5248-5262","volume":"185","issue":"17","PMID":"12923098","PMCID":"PMC181008","DOI":"10.1128/JB.185.17.5248-5262.2003","type":"article-journal"}

或者以漂亮的字体显示:

{
"DOI": "10.1128/JB.185.17.5248-5262.2003",
"ISSN": "0021-9193",
"PMCID": "PMC181008",
"PMID": "12923098",
"accessed": {
    "date-parts": [
        [
            2015,
            9,
            29
        ]
    ]
},
"author": [
    {
        "family": "Garcia",
        "given": "Emilio"
    },
    {
        "family": "Elliott",
        "given": "Jeffrey M."
    },
    {
        "family": "Ramanculov",
        "given": "Erlan"
    },
    {
        "family": "Chain",
        "given": "Patrick S. G."
    },
    {
        "family": "Chu",
        "given": "May C."
    },
    {
        "family": "Molineux",
        "given": "Ian J."
    }
],
"container-title": "Journal of Bacteriology",
"container-title-short": "J Bacteriol",
"id": "aiid:181008",
"issue": "17",
"issued": {
    "date-parts": [
        [
            2003,
            9
        ]
    ]
},
"page": "5248-5262",
"publisher": "American Society for Microbiology",
"source": "PMC",
"title": "The Genome Sequence of <i>Yersinia pestis</i> Bacteriophage \u03c6A1122 Reveals an Intimate History with the Coliphage T3 and T7 Genomes",
"type": "article-journal",
"volume": "185"
}

答案1

你确定?

@article{garcia2003genome,
  title={The genome sequence of Yersinia pestis bacteriophage $\varphi$A1122 reveals an intimate history with the coliphage T3 and T7 genomes},
  author={Garcia, Emilio and Elliott, Jeffrey M and Ramanculov, Erlan and Chain, Patrick SG and Chu, May C and Molineux, Ian J},
  journal={Journal of bacteriology},
  volume={185},
  number={17},
  pages={5248--5262},
  year={2003},
  publisher={Am Soc Microbiol}
}

答案2

为了从 RIS 转换为 BibTeX,我将其用作 shell 脚本的一部分:

ris2xml <filename>.ris | xml2bib -b > <filename>.bib

因此,RIS 是我的第二选择,并且非常方便,因为有几个地方不提供 BibTeX,但提供 RIS 导出。

ris2xml和均由xml2bib以下机构提供比布蒂尔斯

如果您使用 GNU/Linux 发行版,请在直接下载 CTAN 之前检查软件包,因为在大多数情况下这样更容易维护。

PKGBUILD例如,对于 Arch Linux,AUR 中有一个,而且我认为 Fedora 也提供了一个软件包。

答案3

工具doi2bib有 moto“给我们一个 DOI,我们将尽力为您提供 BibTeX 条目”,并且它适用于给定 json 中指定的 DOI。

答案4

AR答案:

# system terminal
pip install citepy
citepy pandas > pandas.json #(not in python)
# R
library(jsonlite)
#install.packages("RefManageR")
library(RefManageR)

pan<-fromJSON("pandas.json")
pan$bibtype<-"Misc"
rownames(pan)<-"pandas2021"
panbib<-as.BibEntry(pan)
WriteBib(panbib,"pandas.bib")

相关内容