We will discuss sub-Markovian semigroups and a specific method to construct superharmonic functions. The construction yields Hardy inequalities and ground state representations; we will mention recent applications obtained with Konstantin Merz (https://arxiv.org/abs/2305.00881).