Page MenuHomePhabricator

Wikibase MediaInfo should provide access to page name via query service
Open, Needs TriagePublic

Description

It is currently impossible (or completely undocumented) how you would actually return the file name for results in the Wikimedia Commons query service. This is something you would expect to be a very common need, just as how in the WDQS it is very common to output labels in most queries, since the Q-id is not human-meaningful, just like the MediaInfo M-id.

Users have developed a workarounds for this issue, which require using schema:url and then doing a series of string manipulations and decoding the URI, such as: BIND(CONCAT("File:", STRAFTER(wikibase:decodeUri(STR(?url)), "http://commons.wikimedia.org/wiki/Special:FilePath/")) AS ?fileTitle).

This is not very user-friendly. In the entity JSON, this is already available in title. What would be much easier for users would be if the title were accessible in a straightforward way, such as schema:name (which doesn't seem to do anything for MediaInfo entities yet).

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
dcausse subscribed.

For context schema:url was added to help to join P18 statements from wikidata with commons media items (T277665) which was almost impossible to do without it.
In order to help prioritize this request and justify the extra space usage could you elaborate on what use-cases are not possible in the absence of the triple mentioned in the ticket description?
From a query service (owned by the Search Platform Team) perspective because we are still addressing scalability issues we are generally very conservative when it comes to adding more triples to the RDF dumps.
Process wise the MediaInfo RDF schema is owned by the Structured Data team and is subject to the Stable Interface Policy.