Client for the Open Citations Corpus http://opencitations.net/ (OCC)

OCC created their own identifiers called Open Citation Identifiers (oci), e.g.,

020010009033611182421271436182433010601-02001030701361924302723102137251614233701000005090307

You are probably not going to be using oci identifiers, but rather DOIs and/or PMIDs and/or PMCIDs. See ?oc_lookup for methods for cross-walking among identifier types.

If you’d like to use the OpenCitations Sparql endpoint yourself you can find that at http://opencitations.net/sparql

Install

CRAN version

install.packages("citecorp")

Development version

devtools::install_github("ropenscilabs/citecorp")
library("citecorp")

COCI methods

OpenCitations Index of Crossref open DOI-to-DOI references

If you don’t load tibble you get normal data.frame’s

library(tibble)
doi1 <- "10.1108/jd-12-2013-0166"
# references
oc_coci_refs(doi1)
#> # A tibble: 36 x 7
#>    author_sc timespan oci             citing    journal_sc cited        creation
#>  * <chr>     <chr>    <chr>           <chr>     <chr>      <chr>        <chr>   
#>  1 no        P9Y2M5D  02001010008361… 10.1108/… no         10.1001/jam… 2015-03…
#>  2 no        P41Y8M   02001010008361… 10.1108/… no         10.1002/asi… 2015-03…
#>  3 no        P25Y6M   02001010008361… 10.1108/… no         10.1002/(si… 2015-03…
#>  4 no        P17Y2M   02001010008361… 10.1108/… no         10.1007/bf0… 2015-03…
#>  5 no        P2Y2M3D  02001010008361… 10.1108/… no         10.1007/s10… 2015-03…
#>  6 no        P5Y8M27D 02001010008361… 10.1108/… no         10.1007/s11… 2015-03…
#>  7 no        P2Y3M    02001010008361… 10.1108/… no         10.1016/j.w… 2015-03…
#>  8 no        P1Y10M   02001010008361… 10.1108/… no         10.1016/j.w… 2015-03…
#>  9 no        P12Y     02001010008361… 10.1108/… no         10.1023/a:1… 2015-03…
#> 10 no        P13Y10M  02001010008361… 10.1108/… no         10.1038/350… 2015-03…
#> # … with 26 more rows
# citations
oc_coci_cites(doi1)
#> # A tibble: 13 x 7
#>    author_sc timespan  oci                citing    journal_sc cited    creation
#>  * <chr>     <chr>     <chr>              <chr>     <chr>      <chr>    <chr>   
#>  1 no        P1Y4M1D   02001010707360009… 10.1177/… no         10.1108… 2016-07…
#>  2 no        P2Y11M20D 02007050504361421… 10.7554/… no         10.1108… 2018-03…
#>  3 no        P2Y       02001010405360301… 10.1145/… no         10.1108… 2018    
#>  4 no        P2Y3M4D   02001000903361118… 10.1093/… no         10.1108… 2017-06…
#>  5 no        P1Y       02001000007360907… 10.1007/… no         10.1108… 2017    
#>  6 no        P0Y       02003030406361920… 10.3346/… no         10.1108… 2015    
#>  7 no        P2Y9M12D  02001000007360907… 10.1007/… no         10.1108… 2017-12…
#>  8 no        P1Y14D    02003020303362832… 10.3233/… no         10.1108… 2016-03…
#>  9 no        P3Y5M4D   02003020303362832… 10.3233/… no         10.1108… 2018-08…
#> 10 no        P2Y       02001000007360907… 10.1007/… no         10.1108… 2018    
#> 11 no        P3Y4M21D  02001010402362800… 10.1142/… no         10.1108… 2018-07…
#> 12 no        P1Y       02001000007360907… 10.1007/… no         10.1108… 2017    
#> 13 no        P2Y4M     02001000507362804… 10.1057/… no         10.1108… 2017-08
# metadata
oc_coci_meta(doi1)
#> # A tibble: 1 x 13
#>   year  author issue source_id reference page  doi   source_title oa_link
#> * <chr> <chr>  <chr> <chr>     <chr>     <chr> <chr> <chr>        <chr>  
#> 1 2015  Peron… 2     issn:002… 10.1001/… 253-… 10.1… Journal Of … http:/…
#> # … with 4 more variables: citation <chr>, title <chr>, citation_count <chr>,
#> #   volume <chr>

Meta