Last active
June 22, 2024 09:41
-
-
Save jhpoelen/f4a2a98ebbf13c6675f0e5e196f64a25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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'\ | |
| bzip2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment