wikimedia-android-data-client

Get depictions from Wikimedia Commons

巧了我就是萌 提交于 2019-12-13 04:26:45
问题 Wikimedia Commons has a new feature to describe what a picture depicts. Example: Question How to get the "depicts" of a given image, as JSON, using either a wikimedia-android-data-client library call or a REST HTTP request? 回答1: You can use some of the Wikibase APIs (exactly which or how is not well-documented at the moment, I think). E.g. https://commons.wikimedia.org/w/api.php?action=wbgetclaims&format=jsonfm&entity=M78893847 { "claims": { "P180": [ { "mainsnak": { "snaktype": "value",