[Wikidata] Script and API module for constraint checks