The current implementation of sparql/query support for pywikibot relies on a hardcoded uri prefix for the entity.
If T153563: Consider switching to HTTPS for Wikidata query service links gets implemented this will break. Since we can get the concept_base_uri via the API using that will make us imune to future changes (and different implementations on different wikis.