Detective Inspector John Rebus is the protagonist in the Inspector Rebus series of detective novels by the Scottish writer Sir Ian Rankin, ten of which have so far been televised as Rebus. The novels are mostly set in and around Edinburgh.