wikidata core
This new feature involves reading a dump file and adding descriptions to new Wikidata items.
This feature generates a table that displays the number of labels, descriptions, and aliases for items per language. The data is retrieved from a JSON file that stores old data. If the JSON file does not exist, it is created and updated with the current data.
python3 core8/pwb.py dump/labels/do_text: This command runs the feature.python3 core8/pwb.py dump/labels/do_text test: This command runs the feature in test mode.
-
dump/labels/do_text.py: This file contains the main code for the feature. -
dump/labels/labels_old_values.py: This file contains the code for handling the JSON file that stores old data. -
Python 3.6 or higher
-
cython
-
numpy
read_dump: This command reads a dump file.add_descriptions: This command adds descriptions to new Wikidata items.
- Run the
read_dumpcommand to read a dump file. - Run the
add_descriptionscommand to add descriptions to new Wikidata items.
- The
read_dumpcommand may take a long time to run for large dump files. - The
add_descriptionscommand may not add descriptions to all new Wikidata items if there are too many new items.