query-7441ad355390d6b80b69703571dfd63b

rq turtle/ttl

Image gallery of most notable manuscripts

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:ImageGrid
#title:The 100 manuscripts with most sitelinks
SELECT ?q (MIN(?image) AS ?img) ?qLabel ?linkcount WHERE {
  ?q (wdt:P31/wdt:P279*) wd:Q87167.
  ?q wikibase:sitelinks ?linkcount .
  ?q wdt:P18 ?image.
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
    ?q rdfs:label ?qLabel.
  }
}
GROUP BY ?q ?qLabel ?linkcount
ORDER BY DESC(?linkcount)
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?image"):::projected v5("?img") v1("?linkcount"):::projected v2("?q"):::projected v4("?qLabel"):::projected a1((" ")) c3(["wd:Q87167"]):::iri c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v2 --"wikibase:sitelinks"--> v1 v2 --"wdt:P18"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 v2 --"rdfs:label"--> v4 end bind1[/"min(?image)"/] v3 --o bind1 bind1 --as--o v5