Since somebody just asked upstream: this can be resolved by simply adding python3-breezy and python3-ruamel.yaml to the Depends line for the binary package in debian/control. See https://salsa.debian.org/jelmer/upstream-ontologist/-/blob/debian/master/debian/control
Unless somebody beats me to it, I'll probably make this change this weekend.