As the author of some MW client library, I cannot find the doc, either. Neither have I
looked into lexicographical data, but I had some trials-and-fails on Wikibase
entity/properties, and perhaps they can help ^_^
For Wikibase items, I think the essential part of the problem is how to compose
"data=" parameter of the request. Basically you need to send a partial of
serialized Wikibase Entity (see https://www.mediawiki.org/wiki/Wikibase/DataModel/JSON
data parameter. Just put in the names/aliases/claims that you want to append/update, send
the request, and it's done.
The tricky part is, when you want to remove a claim/qualifier or an alias, you need to
specify "remove" attribute, along with some identifiable attributes (language,
id, etc.) like this
"value": "alias 1",
When you are removing a claim/qualifier, you need to identify them by snak id, like
You can actually combine all these components above in a single request, to change
multiple traits of a Wikibase item. However, you may prefer wbset* actions (e.g.
wbsetclaim) sometimes, because they generates user-friendly edit summary on what has been
changed, at the expense of only being able to edit 1 aspect of the Wikibase item in 1
If it's possible, perhaps you can refer to my C# code for composing data parameter for
Hope that helps.
From: Wikidata-tech <wikidata-tech-bounces(a)lists.wikimedia.org> On Behalf Of Michael
Sent: Wednesday, April 1, 2020 8:15 AM
Subject: [Wikidata-tech] Wikidata API documentation
Is there any documentation to "wbeditentity", except from the few examples on
Any documentation about the format/grammar of the data?
And is there any API-documentation for lexicographical data at al?
The few bits on the source-code generated page aren't sufficient.
Michael F. Schönitzer
Tel: 089/37918949 - Mobil: 017657895702