You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is a minimal example of a query that could support a random button:
SELECT ?item
WHERE
{
SERVICE bd:sample { ?samplepub wdt:P50 ?item. bd:serviceParam bd:sample.limit 1 }
}
# timestamp X
The timestamp X part is there to circumvent the WDQS cache and would have to be added via Python or JavaScript, in terms of Unix time or similar.
This setup is easily modifiable for other aspects but I chose author here because that is our current implementation and also discussed in #586 and #1062 .
Depending on how random we would want the button (or variants thereof) to be, we could also add some filtering or prioritizing, e.g. as per this query variant:
E.g. we currently have it at
https://tools.wmflabs.org/scholia/author/
but not at
https://tools.wmflabs.org/scholia/work/ .
The text was updated successfully, but these errors were encountered: