**Problem:**
It is possible to restrict a Property to be used only on certain entity types. Currently we only support Item, Property, Lexeme, Sense and Form for this. We should add MediaInfo as well.
See also [[https://www.wikidata.org/wiki/Help:Property_constraints_portal/Allowed_entity_types|allowed entity types documentation]].
**Example:**
Sample use on [[https://www.wikidata.org/wiki/Property:P6731|"Commons quality assessment (P6731)]] meaning the property should only be used on MediaInfo entities.
**BDD**
GIVEN a property with a constraint for allowed entity types
AND the scope is restricted to MediaInfo
WHEN this property is used on an Item, Property, Lexeme, Sense, or Form
THEN a constraint violation is shown
**Note:**
Constraint checks are not run on MediaInfo entities at this point but with this we can at least discourage Commons-only properties from being used on Wikidata.