| Smalyshev added a comment. |
How random should it be?
What I mean, when you get a result set from WDQS, without sorting, it is in kind of "random" order already, due to multi-threaded nature of query processing in Blazegraph. But this order is not truly random - it just has some randomness in it due to the internals of the engine, but not suitable for, say, statistical sampling.
Theres's a sample service:
SELECT * WHERE {
service bd:sample {
?s wdt:P31 wd:Q5 .
#
# optional service params for the sample
bd:serviceParam bd:sample.limit 200 .
# bd:serviceParam bd:sample.seed 0 .
bd:serviceParam bd:sample.sampleType "RANDOM" .
}
}That produces 200 random items about humans. Would that work for your use case?
TASK DETAIL
EMAIL PREFERENCES
To: Smalyshev
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
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
