Novak Djokovic beat Denis Shapovalov 6-3, 6-4 at the Adelaide International to set up a semifinal with Daniil Medvedev.