Page MenuHomePhabricator

Add structured data to api response
Open, LowPublic

Description

The commons app uses the following action api call to get data about an image

/w/api.php?action=query&format=json&prop=imageinfo&titles=File%3APhoto_on_08-02-2019_at_16.35.jpg&iiprop=extmetadata%7Curl&iiurlwidth=640&iiextmetadatafilter=DateTime%7CCategories%7CGPSLatitude%7CGPSLongitude%20%7CImageDescription%7CDateTimeOriginal%7CArtist%7CLicenseShortName%7CLicenseUrl

It would be great to return captions and statements too so they don't have to run many http queries to get the data. Can use the onGetExtendedMetadata hook to add the data in the WikibaseMediaInfo extension

Event Timeline

Change 511320 had a related patch set uploaded (by Cparle; owner: Cparle):
[mediawiki/extensions/WikibaseMediaInfo@master] WIP add structured data to ImageInfo action api response

https://gerrit.wikimedia.org/r/511320

I'm gonna take this out of the backlog as the commons app is already working around it and it's not high on our priority list

Change 511320 abandoned by Cparle:

[mediawiki/extensions/WikibaseMediaInfo@master] WIP add structured data to ImageInfo action api response

Reason:

https://gerrit.wikimedia.org/r/511320

Removing task assignee due to inactivity, as this open task has been assigned for more than two years. See the email sent to the task assignee on February 06th 2022 (and T295729).

Please assign this task to yourself again if you still realistically [plan to] work on this task - it would be welcome.

If this task has been resolved in the meantime, or should not be worked on ("declined"), please update its task status via "Add Action… 🡒 Change Status".

Also see https://www.mediawiki.org/wiki/Bug_management/Assignee_cleanup for tips how to best manage your individual work in Phabricator.