The TV Series Rebus is an adaptation of the Inspector Rebus books - which are a series of detective novels by Ian Rankin (a Scottish author). The novels are based on the title character Detective Inspector John Rebus with most set in and around Edinburgh.