Ironholds / WikidataR

An R package for the Wikidata API
Other
53 stars 14 forks source link

Different column names in qid_from_identifier output #35

Closed alexeilutay closed 3 years ago

alexeilutay commented 3 years ago

Hi! Thank you for a great package - it is very helpful.

I noticed that some queries return a bit inconsistent output. This request map_df(c("2075-3470","2311-9446"), ~qid_from_identifier(property = "ISSN", value = .x)) results in this output with different column names:

value qid$value $output 2075-3470 Q4231598 NA
2075-3470 Q73908787 NA
2311-9446 NA Q4231598

Could you possibly look into that? I am using the devtools::install_github("TS404/WikidataR") version. Thank you in advance.

alexeilutay commented 3 years ago

I made a correction https://github.com/alexeilutay/WikidataR/commit/c8f860cb59292d832d8388e03c82cf93ac9f730a via pull request.