bwikidata / README.md
epoz's picture
Upload README.md with huggingface_hub
f2992d7 verified
|
Raw
History Blame Contribute Delete
1 kB

Bikidata

Queries over Wikidata dumps.

For more information, also see: https://github.com/ISE-FIZKarlsruhe/bikidata

Wikidata is an invaluable resource in our research activities. But in many cases we need to do complex queries, or extract large swathes of data. This is an example on how we can convert offline dumps of Wikidata into a format that we can query in a structured manner, or run extractions on.

Summary

We download a "truthy" dump in NT format. Split the uncompressed file into smaller chunks. Index the RDF structure using a fast hash-algorithm into parquet files of 3 unsigned 64-bit columns (subject-predicate-object). Index the IRIs and Literals into another parquet file of two columns, (hash, literal/IRI) and query the resulting files using DuckDB.