0

I have a few thousand edits that I could do:

  • adding a wikidata id for wikipedia pages that do not gave one
  • editing the instance of property for a number (of those and pre-existing ones)

This is data I have that comes from analysing extracts of pages via NLP.

I am not inclined to do that by hand - is there an API to do that?

simone
  • 4,667
  • 4
  • 25
  • 47
  • Sure, being machine-processing-friendly is the whole point of Wikidata. You can find the docs [here](https://www.mediawiki.org/wiki/Wikibase/API). – Tgr May 22 '20 at 22:40
  • @Tgr thanks! I'd googled for wikidata API until now. They're kinda hidden. If you turn the comment into an answer I can accept it and others will be able to find it too – simone May 23 '20 at 14:05

1 Answers1

0

The software behind Wikidata is called Wikibase; it's API documentation can be found at https://www.mediawiki.org/wiki/Wikibase/API.

Wikibase was designed to be machine-friendly, so any action can be performed via the API (although the syntax is not the most intuitive). There is also a wide array of tools for the API, from client libraries to GUI-based editors to integration with external systems like Google Sheets.

Tgr
  • 27,442
  • 12
  • 81
  • 118