Page MenuHomePhabricator

🧶 Consider including additional data for certain "string" data types
Closed, ResolvedPublic5 Estimated Story Points

Description

There are many data types that use "string" as the underlying value type, such as external ID, commons media, URL and others, which we all currently handle in the same way.

For some of these, it would be convenient for users to provide some additional data, like a URL for external ID values pointing to the resource on the external database, or the URL pointing to the File for commons media.

Here are the data types we'd want additional information (in all of these cases it's a URL, either external or to commons) for:

  • external-id: create a new ExternalIdValue type with fields id and url.
  • commons media type
  • url
  • geo-shape
  • tabular-data

Event Timeline

WMDE-leszek set the point value for this task to 5.Feb 26 2026, 11:29 AM
WMDE-leszek moved this task from Polished to Ready for planning on the Wikibase Reuse Team board.
kimpham renamed this task from Consider including additional data for certain "string" data types to 🧶 Consider including additional data for certain "string" data types.Mar 9 2026, 7:35 AM
kimpham removed kimpham as the assignee of this task.
kimpham subscribed.

examples
tabular case data commons media exti-w https://www.wikidata.org/wiki/Q84146057

Berlin example has https://www.wikidata.org/wiki/Q64:
coordinate location
geoshape (exti-w css class)
audio/video commons media
described at URL (external free css)

additional edge cases
musical notation https://www.wikidata.org/wiki/Q20640627

Change #1249900 had a related patch set uploaded (by Kim.pham; author: Kim.pham):

[mediawiki/extensions/Wikibase@master] GQL: add stringcontentprovider and urlprovider

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

Change #1249900 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] GQL: add stringcontentprovider and urlprovider

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