Skip to content

Files

Latest commit

fe9a988 · Sep 9, 2021

History

History
10 lines (7 loc) · 957 Bytes

examples.md

File metadata and controls

10 lines (7 loc) · 957 Bytes

Examples

Get all entities with a Chinese and a French Wikipedia article, keeping only id, labels, and sitelinks matching those languages

The equivalent SPARQL query times out

DUMP='https://dumps.wikimedia.org/wikidatawiki/entities/latest-all.json.gz'
curl $DUMP | gzip -d | wikibase-dump-filter --sitelink 'zhwiki&frwiki' --keep id,labels,sitelinks --languages zh,fr --simplify > subset.ndjson