R client for Directory of Open Access Journals API
R Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R
man-roxygen
man
.Rbuildignore
.gitignore
.travis.yml
CONDUCT.md
DESCRIPTION
LICENSE
Makefile
NAMESPACE
README.Rmd
README.md
jaod.Rproj

README.md

jaod

Build Status

jaod - R client for Directory of Open Access Journals API

installation

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

search journals

jaod_journal_search(query = "bibjson.keywords:heritage")
#> $timestamp
#> [1] "2016-0909T19:35:04Z"
#> 
#> $page
#> [1] 1
#> 
#> $pageSize
#> [1] 10
#> 
#> $query
#> [1] "bibjson.keywords:heritage"
#> 
#> $total
#> [1] 47
#> 
#> $`next`
#> [1] "https://doaj.org/api/v1/search/journals/bibjson.keywords:heritage?page=2&pageSize=10"
#> 
#> $last
#> [1] "https://doaj.org/api/v1/search/journals/bibjson.keywords:heritage?page=5&pageSize=10"
#> 
#> $results
#> # A tibble: 10 × 39
#>            last_updated                               id
#> *                 <chr>                            <chr>
#> 1  2016-09-06T16:54:42Z a77592b0bc7043ad89370fc34bafb61e
#> 2  2016-09-06T16:53:15Z 6f6f2f3ebd6143589a95b54b50480a16
#> 3  2016-09-09T15:31:54Z 1642c0a3d74d4218951a597b3ed1193e
#> 4  2016-09-06T16:56:41Z fa4bf9b1a36d4ddabb0019deba82d43f
#> 5  2016-09-06T16:55:00Z b41c34274fa04f318760687c6b8d1c0f
#> 6  2016-09-06T16:51:57Z 3858157c002e4fd5b20c8f7b44b2f35b
#> 7  2016-09-06T16:56:07Z e0c4c640317943328131a9f087cc4b0f
#> 8  2016-09-06T16:52:04Z 3cb0e8889ca04c8ea6760f32b6c1ba66
#> 9  2016-09-06T16:51:57Z 3811243d06f7401ca906630fbe9da768
#> 10 2016-09-06T16:56:03Z dd8117fc51e948cdbf2e76e77317a2b9
#> # ... with 37 more variables: created_date <chr>,
#> #   bibjson.allows_fulltext_indexing <lgl>, bibjson.keywords <list>,
#> #   bibjson.deposit_policy <list>, bibjson.title <chr>,
#> #   bibjson.publication_time <int>, bibjson.provider <chr>,
#> #   bibjson.subject <list>, bibjson.format <list>, bibjson.apc_url <chr>,
#> #   bibjson.link <list>, bibjson.active <lgl>, bibjson.institution <chr>,
#> #   bibjson.publisher <chr>, bibjson.language <list>,
#> #   bibjson.license <list>, bibjson.country <chr>,
#> #   bibjson.submission_charges_url <chr>, bibjson.identifier <list>,
#> #   bibjson.author_pays <chr>, bibjson.author_pays_url <chr>,
#> #   bibjson.alternative_title <chr>,
#> #   bibjson.persistent_identifier_scheme <list>,
#> #   bibjson.archiving_policy.url <chr>,
#> #   bibjson.archiving_policy.known <list>,
#> #   bibjson.author_publishing_rights.url <chr>,
#> #   bibjson.author_publishing_rights.publishing_rights <chr>,
#> #   bibjson.article_statistics.url <chr>,
#> #   bibjson.article_statistics.statistics <lgl>,
#> #   bibjson.plagiarism_detection.detection <lgl>,
#> #   bibjson.plagiarism_detection.url <chr>, bibjson.oa_start.year <int>,
#> #   bibjson.oa_start.volume <chr>, bibjson.editorial_review.process <chr>,
#> #   bibjson.editorial_review.url <chr>,
#> #   bibjson.author_copyright.url <chr>,
#> #   bibjson.author_copyright.copyright <chr>

get journal by id

out <- jaod_journal(id = "f3f2e7f23d444370ae5f5199f85bc100")
names(out$bibjson)
#>  [1] "allows_fulltext_indexing"     "archiving_policy"            
#>  [3] "persistent_identifier_scheme" "keywords"                    
#>  [5] "apc"                          "deposit_policy"              
#>  [7] "article_statistics"           "title"                       
#>  [9] "publication_time"             "provider"                    
#> [11] "subject"                      "format"                      
#> [13] "plagiarism_detection"         "apc_url"                     
#> [15] "link"                         "oa_start"                    
#> [17] "editorial_review"             "author_copyright"            
#> [19] "publisher"                    "language"                    
#> [21] "license"                      "country"                     
#> [23] "submission_charges_url"       "author_publishing_rights"    
#> [25] "identifier"
out$bibjson$archiving_policy
#> $url
#> [1] "http://journals.plos.org/plosbiology/s/publishing-information"
#> 
#> $policy
#>                        name
#> 1                    LOCKSS
#> 2 PMC/Europe PMC/PMC Canada
out$bibjson$apc
#> $currency
#> [1] "USD"
#> 
#> $average_price
#> [1] 2900
out$bibjson$article_statistics
#> $url
#> [1] "http://www.lagotto.io/plos/"
#> 
#> $statistics
#> [1] TRUE
out$bibjson$author_publishing_rights
#> $url
#> [1] "http://journals.plos.org/plosbiology/s/content-license"
#> 
#> $publishing_rights
#> [1] "True"

search articles

jaod_article_search(query = "license:CC-BY")
#> $timestamp
#> [1] "2016-0909T19:35:07Z"
#> 
#> $page
#> [1] 1
#> 
#> $pageSize
#> [1] 10
#> 
#> $query
#> [1] "license:CC-BY"
#> 
#> $total
#> [1] 1827970
#> 
#> $`next`
#> [1] "https://doaj.org/api/v1/search/articles/license:CC-BY?page=2&pageSize=10"
#> 
#> $last
#> [1] "https://doaj.org/api/v1/search/articles/license:CC-BY?page=182797&pageSize=10"
#> 
#> $results
#> # A tibble: 10 × 22
#>            last_updated                               id
#> *                 <chr>                            <chr>
#> 1  2016-06-24T11:42:49Z 00053c2b16564e92a52dbc38ef581687
#> 2  2016-06-24T11:43:02Z 000640ee3e234790ba13ada1d0cbe4fd
#> 3  2016-06-24T11:43:02Z 00064f73fede477eb95514caab3c730a
#> 4  2016-06-24T11:42:48Z 0004c9e6a3c64ec9848607e51b7edbca
#> 5  2016-06-24T11:42:48Z 0004ecae4704406c8fef57d8b0f28895
#> 6  2016-06-24T11:42:48Z 0004fbb5c0414b6c9f0dc14eb49ee848
#> 7  2016-06-24T11:43:04Z 00077ece9f0149a99cbcb56582474b27
#> 8  2016-06-24T11:42:49Z 00054f6ce32644a987c3f39e4ae1cd0c
#> 9  2016-06-24T11:43:03Z 000718ed0c7b435387a729dbb30cafb8
#> 10 2016-06-24T11:42:50Z 0005e11ec616453f854070069385e057
#> # ... with 20 more variables: created_date <chr>,
#> #   bibjson.start_page <chr>, bibjson.author <list>, bibjson.title <chr>,
#> #   bibjson.subject <list>, bibjson.link <list>, bibjson.year <chr>,
#> #   bibjson.keywords <list>, bibjson.identifier <list>,
#> #   bibjson.abstract <chr>, bibjson.end_page <chr>, bibjson.month <chr>,
#> #   bibjson.journal.publisher <chr>, bibjson.journal.language <list>,
#> #   bibjson.journal.license <list>, bibjson.journal.title <chr>,
#> #   bibjson.journal.country <chr>, bibjson.journal.number <chr>,
#> #   bibjson.journal.volume <chr>, bibjson.journal.issns <list>

get article by id

out <- jaod_article(id = "0004c9e6a3c64ec9848607e51b7edbca")
names(out$bibjson)
#>  [1] "title"      "abstract"   "author"     "month"      "link"      
#>  [6] "year"       "keywords"   "identifier" "journal"    "subject"
out$bibjson$author
#>               name
#> 1    Pradeep Kumar
#> 2 Zachariah C Alex
out$bibjson$link
#>                                                          url     type
#> 1 http://www.enggjournals.com/ijet/docs/IJET13-05-03-375.pdf fulltext
out$bibjson$identifier
#>    type        id
#> 1 pissn 0975-4024
out$bibjson$subject
#>   scheme                                               term     code
#> 1    LCC Engineering (General). Civil engineering (General) TA1-2040
#> 2    LCC                                         Technology        T
#> 3   DOAJ                      General and Civil Engineering     <NA>
#> 4   DOAJ                         Technology and Engineering     <NA>
#> 5    LCC                               Technology (General)   T1-995
#> 6   DOAJ                               Technology (General)     <NA>

Meta

  • Please report any issues or bugs.
  • License: MIT
  • Get citation information for jaod in R doing citation(package = jaod')
  • Please note that this project is CONDUCT.md). By participating in this project you agree to abide by its terms.

ropensci_footer