As a user I would like to see all constraint violations in WDQS, so I can fix them.
GIVEN a constraint check is executed
WHEN a constraint violation is detected
THEN I should be able to query it with SPARQL.
GIVEN a constraint check is executed
WHEN no constraint violations is detected
THEN I constraint violations should no longer show up when queried with SPARQL
When T189458: re-enable wdqs kafka poller is working we can create a dedicated event for when a constraint check is finished, so WDQS poller always pulls cached violations.
Tasks:
- Create new event in the kafka data pipeline when a constraint check is finished. The event would include the entity ID that was being checked.
- Listen to event in WDQS and pull the data for that specific item.
Relevant files:
WDQ:
https://github.com/wikimedia/wikidata-query-rdf/blob/728a6cf8665a6535585af3d5805aeda07f3517f6/tools/src/main/java/org/wikidata/query/rdf/tool/change/KafkaPoller.java
Constraints extension:
https://github.com/wikimedia/mediawiki-extensions-WikibaseQualityConstraints