def is_wikidata_entity(entity: str) -> bool:
    """Assert that a string is a wikidata entity"""
    wrong_entity_format = entity and (entity[0] != "Q" or any([j not in "0123456789" for j in entity[1:]]))
    return not wrong_entity_format