| This user has basic understanding of the Pywikibot software library. |
|
- Data Harvest: Gathering data from one Wikidata-item;
- Winter Storage: Writing data into a file or database
- Big Data: Iterating over large sets of items
The program runs through all the elements of the Periodic Table (118). It starts with Hydrogen (Q556), by default, and iterates the atomic number, through qualifier P156 in the property P31 with the value Q11344, until a chosen element. By construction, the cycle program will only alter the programs inside the cycle, meaning the first needs to be edit manually. It takes around 9 seconds to make an edit, so it will edit the entire list (118 elements minus hydrogen) in around 17,50 min. I've used the program to:
- Create a list of the elements by identifier (Q...), which might be used instead of the cycle to achieve better performances.
- Translate the description to Portuguese and Brazilian Portuguese.
- Add the aliases 'elemento Z' (Z, atomic number) and the Chemical Symbol of the element in several languages. (Note: It doesn't change aliases that are already there. It only checks which aliases exist and adds a new one if needed.)
Wikidata Query Service Code
edit