query-8002899dd211c6ccf4237c1b957e0a15
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?sitelinks
WHERE {
{ SELECT ?item ?sitelinks WHERE {
#Minimum sitelinks
?item wikibase:sitelinks ?sitelinks .
FILTER (?sitelinks > 20 )
#Random stuff
#BIND(RAND() AS ?random) . # Doesn't work
BIND(SHA512(CONCAT(STR(RAND()), STR(?item))) AS ?random) .
} ORDER BY ?random LIMIT 100 } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE], en" . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v4("?random")
v2("?sitelinks"):::projected
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;, en"]):::literal
f0[["?sitelinks > '20^^xsd:integer'"]]
f0 --> v2
v3 --"wikibase:sitelinks"--> v2
bind1[/"SHA512(concat(str(RAND()),str(?item)))"/]
v3 --o bind1
bind1 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end