mpopov added a comment.

Unfortunately, the mediawiki snapshot doesn't has the image table which describes images and other uploaded files.

Ah, yeah. I missed the reference to image in your query. But looks like we can use img_timestamp, although those queries will take some time.

Also something to note is that img_major_mime shows up as "application" for .ogg files (which are audio files) and .pdf files:

SELECT DISTINCT img_major_mime, img_minor_mime
FROM commonswiki.image;



img_major_mimeimg_minor_mime
imagegif
imagejpeg
imagepng
imagetiff
imagevnd.djvu
imagewebp
imagex-xcf
imagesvg+xml
applicationogg
audiomidi
audiowav
audiowebm
audiox-flac
videowebm
applicationpdf

I recommend adding a CASE that returns "audio" for ogg files and "document" (for example) for PDFs.


TASK DETAIL
https://phabricator.wikimedia.org/T177354

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: chelsyx, mpopov
Cc: Aklapper, mpopov, chelsyx, Abit, SandraF_WMF, Ramsey-WMF, Capt_Swing, debt, E1presidente, Jmmuguerza, GoranSMilovanovic, QZanden, EBjune, Acer, Avner, Gehel, FloNight, Susannaanas, Wikidata-bugs, PKM, Base, matthiasmullie, aude, Ricordisamoa, Fabrice_Florin, Raymond, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to