Last active
August 13, 2021 18:23
-
-
Save dpriskorn/d1c4773a59ab61e470b330b1bdf23ca1 to your computer and use it in GitHub Desktop.
Presentation for Writing a bot - Wikimania Hackathon 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Presentation | |
Writing a bot | |
Start by having a good usecase | |
Talk to others about the usecase e.g. in the Wikidata Telegram Chat | |
Think about how to break down the problem in smaller steps | |
E.g. I want to enrich Wikidata items with data from OpenCitations | |
Subquestions: | |
- Where is the Scholarly data on Wikidata and how is it modelled? | |
- WDQS not suitable | |
- How can I look up a specific DOI in OpenCitations? | |
- How can I look up a specific DOI in Wikidata? | |
- How can we add missing information to Wikidata? | |
Next step is pseudo code | |
E.g | |
- log in to Wikidata | |
- Opening the list of Wikidata items with DOI | |
- loop for each line in the file | |
- parse the line | |
- lookup data in the OpenCitations API | |
- parse the data | |
- prepare adding to Wikidata | |
- upload | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment