Page MenuHomePhabricator

Make RDF base URIs of media files (geo shapes, tabular data) configurable
Open, MediumPublic

Description

Currently URIs in RDF output use hard-coded base parts: http://commons.wikimedia.org/wiki/Special:FilePath/ and http://commons.wikimedia.org/data/main/.

It is however possible to configure non-RDF parts of Wikibase to use custom URLs for Geo Shapes/Tabular Data (see geoShapeStorageApiEndpointUrl, geoShapeStorageBaseUrl and relevant tabular-data config settings). This leads to inconsistencies/wrong data in RDF output.

Base URIs for RDF should be configurable as well as non-RDF paths are already customizable.

Event Timeline

Change 369699 had a related patch set uploaded (by Ladsgroup; owner: Amir Sarabadani):
[mediawiki/extensions/Wikibase@master] Rename RdfVocabulary::COMMONS_DATA_URI constant to RdfVocabulary::MEDIA_DATA_URI

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

Change 369699 abandoned by Ladsgroup:
Rename RdfVocabulary::COMMONS_DATA_URI constant to RdfVocabulary::MEDIA_DATA_URI

Reason:
Nah

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