Skip to content

Country

Description

A country.

Disputed Territories

  • Kosovo (XK): Not officially assigned an ISO code but commonly uses 'XK' for practical purposes.
  • Taiwan (TW): Recognized with ISO code 'TW'.
  • Palestine (PS): Has the ISO code 'PS'.

Updates: Country statuses and ISO codes can change. Always verify the current list.

Label

:Country

Properties

PropertyDescriptionType
idstring
nameThe full name of the countrystring
isoCodeThe ISO 3166-1 alpha-3 code for the countrystring
bboxMinThe southwest (minimum latitude and longitude) corner of the bounding boxPoint
bboxMaxThe northeastcorner of the bounding boxPoint
centroidThe centroid of the countryPoint
createdBythe person or process that created the nodestring
createdDatedateTime
modifiedBythe person or process who last modified the nodestring
modifiedDatedateTime

Bounding Box

Instead of storing latitude and longitude as separate numeric properties, we store them as a single Point property.

Example for a Country Node:

cypher
MERGE     (country:Country {name: 'United States', isoCode: 'US'})
SET       country.bboxMin = point({latitude: 18.7763, longitude: -179.1473, crs: 'WGS-84'}),
          country.bboxMax = point({latitude: 71.5388, longitude: 179.1489, crs: 'WGS-84'}),
          country.centroid = point({latitude: 39.8283, longitude: -98.5795, crs: 'WGS-84'}),

Key

name

Relationships

The IS_IN relationship connects countries to continents.

Examples

cypher
MATCH (country:Country)
RETURN country.name AS CountryName
cypher
MATCH (c:Country)-[:IS_IN]->(continent:Continent {name: 'Europe'})
RETURN c.name AS Country;
cypher
MATCH (c:Country {name: 'Brazil'})-[:IS_IN]->(continent)
RETURN continent.name AS Continent;

Confidential. For internal use only.