query-ccbc5ca8664aff76178e7dedcfcfcf78
Currently, we think this counts every time a property is used (so if an item has multiple part of statements, that property has a high count). In the future, we would like to try to count how many items use a certain property. . We wanted to randomize the result set instead of taking the first 25 or the digital libraries with the greatest number of sitelinks. Shape Expressions Inference toolWe started exploring ShEX and the to randomize results: found this wayLoren
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item WHERE {
?item wdt:P31 wd:Q212805.
BIND(SHA512(CONCAT(STR(RAND()), STR(?item))) AS ?rand)
} ORDER BY ?rand
LIMIT 25
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v3("?rand")
c2(["wd:Q212805"]):::iri
v2 --"wdt:P31"--> c2
bind0[/"SHA512(concat(str(RAND()),str(?item)))"/]
v2 --o bind0
bind0 --as--o v3