I've been playing a little bit with the Wikidata SPARQL page(here), and I was wondering if we can shuffle the order of the results set randomly.
I tried the following example, and I left the random part as a comment cause I couldn't find the correct syntax for it:
SELECT ?partyLabel ?countryLabel ?count WHERE{ ?party wdt:P31 wd:Q7278. ?party wdt:P17 ?country. ?party wdt:P2124 ?count SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".} } order by #random limit 15
Did anyone try the random ordering option? and does it exist?
Aucun commentaire:
Enregistrer un commentaire