She recently told me a tale of the rivalry between a young stock- protection dog and a burro with the same job over who would control the sheep, especially five sheep the young Anatolian thought she "owned". Look at these photos.
An earlier generation of animal behaviorists breaks everything down into simple units. The herd- protection dog thinks it's a sheep (funny, they prefer dogs as mates); dogs' relation to sheep is subdued prey drive. (Yes, I do mean Ray Coppinger, who pioneered well but has become dogma personified). Perhaps the donkey thinks it is an Alpha.
I am more in the Vicki Hearne mode. Dogs and other intelligent animals have honor and ideas and very individual personalities and ways. And they do love and think they own "their" sheep.