/wikidata-simplequestions

Mapping of the SimpleQuestions dataset to Wikidata

Primary LanguageJupyter NotebookOtherNOASSERTION

Wikidata SimpleQuestions dataset

This repository provides a version of the SimpleQuestions dataset mapped to Wikidata.

Data is organized in 3 files: annotated_wd_data_{train, valid, test}.txt . Each file contains one example per line with the following format: subject [tab] property [tab] object [tab] question, with subject, property and object being identifiers of Wikidata items or properties. Rxxx property identifiers encode the inverse property of the Wikidata property Pxxx. For example R19 encodes the properties "born here", i.e. the inverse of P19 ("birth place").

The mapping code is in the build.ipynb file. The mapping of Freebase topics to Wikidata items is done using the mid_to_qid.tsv file and the one between properties is the one stored on Wikidata. Contributions to these mappings are welcome.

  • annotated_wd_data_train.txt contains 34374 questions converted from the 75910 original questions.
  • annotated_wd_data_test.txt contains 9961 questions converted from the 21687 original questions.
  • annotated_wd_data_valid.txt contains 4867 questions converted from the 10845 original questions.