J.K. Rowling is from Edinburgh and wrote some of her books while at The Elephant House which is a cute little cafe that has a view of the castle from the back room. It is believed that Rowling got the inspiration for Tom Riddle's name from the nearby cemetery, Greyfriar's Kirkyard, where there is a grave for Thomas Riddell.