This is a fast, but incomplete, parser for JSON-based wikibase dump files that I wrote to extract large amounts of info without having to load them into a database. I don't think I'll have enough time to turn this into a full-fledged Rust library for the wikibase format, so I'm posting it as a Gist in case it's useful to someone in its current state.
It can be used to filter entries based on a claim, and extract out only desired properties. By default, it reads from stdin as a single page per line.
For example, to select the birth and death time (properties P569, P570) for all instances of (claim Q5) human-being (property P31):
$ zcat latest-all.json.gz | head -6 | cargo run --release -- --filter-property P31 --filter-claim Q5 --select-properties P569 P570