From my point of view either SHACL Rule or SPIN rule would be an elegant solution to that. However, to make this work, you would need to export Wikidata (or the required domain sub-graph) to a triple store that supports this feature.
There is a project that tries to solve reasoning for Wikidata which is a reasonably (pun intended) complex endeavor: https://www.wikidata.org/wiki/Wikidata:WikiProject_Reasoning