 The dog faces many perils because of this, and has to endure much in his struggle to be allowed to live his life.The film is loosely based on a real dog known as Greyfriars Bobby.John Gray, the local policeman, owns Bobby the Westie, but allows a shy boy called Ewan to befriend his dog.