The city of Edinburgh is the capital of the nation of Scotland.
Edinburgh is a capital city of a country.