name: CountriesAndCities
description: A simple model for representing countries and cities
license: CC0
default_prefix: cc
imports:
- linkml:types
types:
string:
base: string
description: A textual string
integer:
base: integer
description: An integer number
classes:
Country:
description: Represents a country
attributes:
name:
type: string
description: The name of the country
population:
type: integer
description: The population of the country
capital:
type: City
description: The capital city of the country
City:
description: Represents a city
attributes:
name:
type: string
description: The name of the city
population:
type: integer
description: The population of the city
country:
type: Country
description: The country to which the city belongs
Country:
- id: country1
name: United States
population: 331000000
capital: city1
- id: country2
name: Canada
population: 37590000
capital: city2
- id: country3
name: United Kingdom
population: 67886011
capital: city3
City:
- id: city1
name: Washington, D.C.
population: 702455
- id: city2
name: Ottawa
population: 994837
- id: city3
name: London
population: 8982000