I would like to implement a version of constraint violations reporting (
https://www.wikidata.org/wiki/Wikidata:Database_reports/Constraint_violatio…
) (example (
https://www.wikidata.org/wiki/Wikidata:Database_reports/Constraint_violatio…
)) using some pre-specified SPARQL queries, to run only on my Talk page.
Basically, I would like to have a page containing a handful of SPARQL
queries, which would get run on a schedule (every week), and the output
included into the page (as a table/list/etc). This seems really similar to
what the constraint violations reporting is doing, but I'm having trouble
figuring out how it works. It looks like there is a bot (
https://www.wikidata.org/wiki/User:KrBot) that is fetching the constraints
from each property's talk page and running the checks on a schedule. Is
that correct? I cannot seem to find any documentation or source code. Has
anyone else implemented something like this? Is there a way to execute a
SPARQL query from a module?