We could expose the constraint violations to Wikidata-Query-Service, so we could query them.
For this we need to have an interface that allows us to write to Wikidata-Query-Service from Wikibase-Quality.
So when running a constraint check for a specific Item, we could delete its existing violations and create new ones in Wikidata-Query-Service
This would allow queries like:
Give me all
- mandatory constraint violations
- for IMDb ID (P345)
- for actors that live in Germany and are born before 1945
See https://www.mediawiki.org/wiki/Wikibase/Indexing/RDF_Dump_Format#Constraints for the details of RDF implementation (TLDR: wikibase:hasViolationForConstraint predicate).
Demo
All statements with constraint violations:
http://tinyurl.com/yd5t689d
Map/timeline/image grid of items that have a statement with a constraint violation:
http://tinyurl.com/yd62za8q
Bar chart of statements that have a constraint violation
grouped by instance of the regarding item:
http://tinyurl.com/ycb8oswo