See [[ https://www.wikidata.org/wiki/Wikidata:WikiProject_ShEx | Wikidata:WikiProject_ShEx ]] and how to validate data sources.....
Maybe this is a tool for this project see
* [[ https://commons.wikimedia.org/w/index.php?title=File%3AWikidataCon_2017_-_Using_Shape_Expressions_for_data_quality_and_consistency_in_Wikidata.webm | presentation in Berlin 2017 ]] / [[ https://www.wikidata.org/wiki/Wikidata:WikidataCon_2017/Submissions/Using_Shape_Expressions_for_data_quality_and_consistency_in_Wikidata | session ]] / [[ https://etherpad.wikimedia.org/p/WikidataCon-68 | Etherpad ]]
* Github [[ https://github.com/andrawaag/ShEx/tree/master/wikidata | ShEx/wikidata/ ]]
* W3C [[https://shexspec.github.io/primer/ | Shape Expressions (ShEx) Primer ]] Draft Community Group Report 08 June 2018