Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#
# streams Wikidata taxon items (or items containing https://www.wikidata.org/wiki/Q16521)
# from latest data dump in line json (one json object per line)
#
curl --silent "https://dumps.wikimedia.org/wikidatawiki/entities/latest-all.json.bz2"\
| bunzip2\
| grep -E "Q16521[^0-9]"\
| sed 's/,$//g'\
@jhpoelen
jhpoelen / verify-batlit.sh
Created January 16, 2025 15:59
verify BatLit version v0.6
#!/bin/bash
#
# verify-batlit.sh uses Preston [1] to verify the availability of BatLit content on batlit.org (metadata), Zenodo (pdfs).
#
# For background and methods, see Elliott et al. 2023 [2].
#
#
# References
#
# [1] Michael Elliott, Jorrit Poelen, Icaro Alzuru, Emilio Berti, & partha04patel. (2025). bio-guoda/preston: 0.10.5 (0.10.5). Zenodo. https://doi.org/10.5281/zenodo.14662206