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
| Property | Description | Type |
|---|---|---|
| id | string | |
| name | The full name of the country | string |
| isoCode | The ISO 3166-1 alpha-3 code for the country | string |
| bboxMin | The southwest (minimum latitude and longitude) corner of the bounding box | Point |
| bboxMax | The northeastcorner of the bounding box | Point |
| centroid | The centroid of the country | Point |
| createdBy | the person or process that created the node | string |
| createdDate | dateTime | |
| modifiedBy | the person or process who last modified the node | string |
| modifiedDate | dateTime |
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 CountryNamecypher
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;