From 54f17d4fbb0cbd3ff06d6ff8aefca6d075ddd344 Mon Sep 17 00:00:00 2001 From: antaldaniel Date: Mon, 24 Feb 2025 14:16:14 +0100 Subject: [PATCH] version 0.1.1019 --- DESCRIPTION | 4 ++-- R/copy_wikidata_item.R | 6 ++++-- R/copy_wikidata_property.R | 3 ++- README.Rmd | 4 +--- README.md | 2 +- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 75eef88..ff4f745 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: wbdataset Title: Making Datasets Truly Interoperable and Reusable in R with Wikibase -Version: 0.1.1018 -Date: 2024-02-21 +Version: 0.1.1019 +Date: 2024-02-24 Authors@R: c(person(given="Daniel", family="Antal", email= "daniel.antal@dataobservatory.eu", diff --git a/R/copy_wikidata_item.R b/R/copy_wikidata_item.R index bf3d67b..8e1f229 100644 --- a/R/copy_wikidata_item.R +++ b/R/copy_wikidata_item.R @@ -113,7 +113,8 @@ copy_wikidata_item <- function( wikibase_api_url = wikibase_api_url, data_curator = data_curator, log_path = log_path, - csrf = csrf + csrf = csrf, + wikibase_session = wikibase_session ) return_log_file$rowid <- defined( @@ -530,7 +531,8 @@ copy_wikidata_items <- function(qid_on_wikidata, wikibase_api_url, data_curator, log_path, - csrf) { + csrf, + wikibase_session) { # Ensure that QIDs are used in the loop ---------------------------- is_qid <- vapply(qid_on_wikidata, is_qid, logical(1)) not_qid <- paste(names(which(!is_qid)), collapse = "|") diff --git a/R/copy_wikidata_property.R b/R/copy_wikidata_property.R index e584480..4fb1664 100644 --- a/R/copy_wikidata_property.R +++ b/R/copy_wikidata_property.R @@ -116,7 +116,8 @@ copy_wikidata_property <- function( wikibase_api_url = wikibase_api_url, data_curator = data_curator, log_path = log_path, - csrf = csrf + csrf = csrf, + wikibase_session = wikibase_session ) return_log_file$rowid <- defined( diff --git a/README.Rmd b/README.Rmd index d3fc29f..dd7fced 100644 --- a/README.Rmd +++ b/README.Rmd @@ -18,7 +18,7 @@ knitr::opts_chunk$set( [![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental) [![CRAN status](https://www.r-pkg.org/badges/version/wbdataset)](https://CRAN.R-project.org/package=wbdataset) -[![devel-version](https://img.shields.io/badge/devel%20version-0.1.1018-blue.svg)](https://github.com/dataobservatory-eu/wbdataset) +[![devel-version](https://img.shields.io/badge/devel%20version-0.1.1019-blue.svg)](https://github.com/dataobservatory-eu/wbdataset) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.13972192.svg) [![Codecov test coverage](https://codecov.io/gh/dataobservatory-eu/wbdataset/graph/badge.svg)](https://app.codecov.io/gh/dataobservatory-eu/wbdataset) @@ -61,5 +61,3 @@ The *wbdataset* package has three tutorial articles: - [Importing from Wikidata or Wikibase](https://wbdataset.dataobservatory.eu/articles/wikidata-import.html) shows you how to import data from Wikidata. - [Authenticated MediaWiki API Access](https://wbdataset.dataobservatory.eu/articles/Wikibase_API.html) shows how you log in to a Wikibase instance. If you use `wbdataset` to retrieve information only from Wikidata, you do not need this. - [Getting Started To Create a Graph on Wikibase](https://wbdataset.dataobservatory.eu/articles/start.html) shows how to add data to a Wikibase graph database. - - diff --git a/README.md b/README.md index 016666f..f1665c1 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental) [![CRAN status](https://www.r-pkg.org/badges/version/wbdataset)](https://CRAN.R-project.org/package=wbdataset) -[![devel-version](https://img.shields.io/badge/devel%20version-0.1.1018-blue.svg)](https://github.com/dataobservatory-eu/wbdataset) +[![devel-version](https://img.shields.io/badge/devel%20version-0.1.1019-blue.svg)](https://github.com/dataobservatory-eu/wbdataset) \[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.13972192.svg) [![Codecov test coverage](https://codecov.io/gh/dataobservatory-eu/wbdataset/graph/badge.svg)](https://app.codecov.io/gh/dataobservatory-eu/wbdataset)