abian closed this task as "Resolved".
abian claimed this task.
abian added a comment.

This query...

SELECT ?s WHERE { ?s wdt:P31 ?o } LIMIT 200

... gives us the following distribution of QIDs...

F23242279: non-random.png

... while this query...

SELECT ?s WHERE {
  SERVICE bd:sample {
    ?s wdt:P31 ?o .
    bd:serviceParam bd:sample.limit 200 .
    bd:serviceParam bd:sample.sampleType "RANDOM" .
  }
}

... gives us the following distribution of QIDs. <3

F23242256: random.png

This is great, @Smalyshev! We could prepare an example query so that people can see this trick (and so that we don't forget it). :-)


TASK DETAIL
https://phabricator.wikimedia.org/T194884

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: abian
Cc: Smalyshev, Aklapper, abian, Lahi, Gq86, Darkminds3113, Lucas_Werkmeister_WMDE, GoranSMilovanovic, QZanden, EBjune, merbst, LawExplorer, Avner, Gehel, Jonas, FloNight, Xmlizer, jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to