query-f20b675741f86c49c4f270add1bd193c

rq turtle/ttl

عشر صور لوحات عشوائية Ten random painting images Ten random painting images Deset náhodných obrazů Ten random painting images Zehn zufällige Gemäldebilder Ten random painting images Ten random painting images Ten random painting images Ten random painting images Ten random painting images Dix images de tableaux au hasard Ten random painting images Ten random painting images Ten random painting images Dieci immagini di pittura a caso Ten random painting images Ten random painting images Ten random painting images Ten random painting images Ten random painting images Tien willekeurige schilderijafbeeldingen Ten random painting images Ten random painting images Ten random painting images 10 случайных изображений картин Ten random painting images Tio slumpade bilder på målningar Ten random painting images Ten random painting images Ten random painting images Ten random painting images 十幅随机的绘画图像

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# This returns 10 random painting images
# RAND() returns one random number (cached like every query).
# The string representation of the item and the random number are hashed.
# This will give a complete different ordering every time you have a different random number.
# You can change the LIMIT if you want to trigger a new random number
#defaultView:ImageGrid
SELECT ?item ?itemLabel ?image (MD5(CONCAT(str(?item),str(RAND()))) as ?random) WHERE {
  ?item wdt:P31 wd:Q3305213.
  ?item wdt:P18 ?image.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en"}
} ORDER BY ?random
LIMIT 10

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?image"):::projected v2("?item"):::projected v4("?random") c2(["wd:Q3305213"]):::iri c5(["bd:serviceParam"]):::iri c7(["en"]):::literal v2 --"wdt:P31"--> c2 v2 --"wdt:P18"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end bind0[/"MD5(concat(str(?item),str(RAND())))"/] v2 --o bind0 bind0 --as--o v4