Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
fetch unpaywall data from nov dump
Browse files Browse the repository at this point in the history
  • Loading branch information
njahn82 committed Jan 7, 2020
1 parent 962c075 commit e788792
Show file tree
Hide file tree
Showing 2 changed files with 10,944 additions and 6,929 deletions.
4 changes: 2 additions & 2 deletions R/unpaywall_integration.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ con <- dbConnect(bigrquery::bigquery(),
project = "api-project-764811344545",
dataset = "oadoi_full")
#' test connection
oadoi <- tbl(con, "mongo_export_apr19_2013_Apr2019_full_macos")
oadoi <- tbl(con, "mongo_export_upwNov19_13_19")
#' my bq query
sql_unnested <-
"SELECT doi, evidence, publisher, journal_name, journal_issns, year, is_best, license, host_type
FROM `mongo_export_apr19_2013_Apr2019_full_macos` , UNNEST(oa_locations)
FROM `mongo_export_upwNov19_13_19` , UNNEST(oa_locations)
WHERE `journal_is_in_doaj`= false AND data_standard=2 AND EXISTS (
SELECT evidence FROM UNNEST(oa_locations)
WHERE evidence = 'open (via crossref license)' OR evidence = 'open (via page says license)')
Expand Down
Loading

0 comments on commit e788792

Please sign in to comment.