Filter wikidata dumps by a specific category

(Spyroula Masiala) #1

I need to extract from the latest dump of Wikidata, all the data related to life sciences.

I have already tried to filter the dump with the Wikidata-filter however without luck. My claim is the following, where Q9585453 is the Category:Life sciences:

curl https://dumps.wikimedia.org/wikidatawiki/entities/latest-all.json.gz | gzip -d | wikidata-filter --claim P31:Q9585453 > life_science.ndjson

Any ideas?