Skip to content

Problematic SPARQL queries #29

@jhsoby

Description

@jhsoby

For the current Norwegian contest (2025-03) and Finnish contest (2025-10), the bot intermittently fails because the SPARQL queries time out.

A potential fix for this would be to first compile the list of all articles participants have been contributing to during the contest, get their Wikidata IDs, and then check those articles (via something like [1]) against the query we want to check. This should be much faster, but would also require quite a few changes in how the bot does these queries.

[1]:

SELECT ?item WHERE {
  VALUES ?item { wd:Q57665 wd:Q291644 wd:Q133009 wd:Q207655 } .
  ?item wdt:P21 wd:Q6581072
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions