query-e2d3e9af0740560e9a496bc4f0264438

rq turtle/ttl

Page for thumbnail 06:22, 4 December 2019 (UTC) Jura instead of the first page? (compare sample above). Ideally, any P7668 on a Commons property displaying images would do that. The default first page isn't necessarily the ideal one. --- (P7668)file page , would it be possible to display the page indicated by the qualifier (P996)document file on Wikimedia Commons , when displaying the thumbnail for Q75803176#P996On 12:05, 9 December 2019 (UTC)) talk (Lea Lacroix (WMDE)After discussing about it with Lydia, our assumption is that this doesn't happen often enough to be worth a specific development for now, as we have plenty of other priorities. If more people disagree and want to support thi, feel free to do it here. Maybe this could be done through a user script. Hello,

Use at

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT *
{
    ?item p:P996 ?st .
    ?st ps:P996 ?scan .
    ?st pq:P304 ?pqvalue .
    FILTER( contains(str(?scan), "djvu") ) 
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v4("?pqvalue"):::projected v1("?scan"):::projected v3("?st"):::projected f0[["contains(str(?scan),'djvu')"]] f0 --> v1 v2 --"p:P996"--> v3 v3 --"p:statement/P996"--> v1 v3 --"p:qualifier/P304"--> v4