Wikidata:Fatameh
Summary
[edit]Fatameh is a tool to add items to Wikidata about papers with content generated from places like EuropePMC, PubMed and Crossref.
Usage
[edit]Simple
[edit]- Navigate to the tool and log in using the Wikimedia OAuth
- Make a single item from PMID by using the form on the homepage
- Alternatively just navigate your browser to https://tools.wmflabs.org/fatameh/pmid/add/12345 to add an item from PMID 12345
Don't worry; if the item already exists a new one won't be made. You'll simply be returned the Wikidata item ID for it.
Also for PMCID
[edit]Follow the simple instructions but instead navigate to https://tools.wmflabs.org/fatameh/pmc/add/PMC12345
From the Commandline/Scripts/Bots etc..
[edit]You can use the token on the profile page to add from cURL.
However you need to hit a different URL. They are the same but start with '/token/' after 'fatameh'.
e.g. https://tools.wmflabs.org/fatameh/token/pmc/add/PMC12345
You'll also need to set the HTTP Authorization Header to 'Token <my token>'. In cURL you can do it like this:
curl --header "Authorization: Token mysupersecrettoken123456" tools.wmflabs.org/fatameh/token/pmc/add/PMC98765
Bug Tracking/Code
[edit]Bug Tracking: https://phabricator.wikimedia.org/tag/tool-labs-tools-fatameh/
Code: https://phabricator.wikimedia.org/source/tool-fatameh/
More Info
[edit]It was started at the 2017 Vienna Hackathon and improved at Wikicite-2017 just afterwards.
It was written by User:T Arrow and User:Tobias1984 following the excellent Django OAuth tutorial written by Tobias1984
T Arrow is currently maintaining it as part of the WikiFactMine project which needed a way to frictionlessly make items about papers.
It relies on Wikidataintegrator to do all the heavy lifting.