O'Reilly logo

Neo4j Graph Data Modeling by Mahesh Lal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Modeling hierarchies

To model employees and access control groups, we need to first modify our existing data to account for hierarchies in regions, countries, and cities. We also need to add hotel chains and their hierarchies. We can then apply the same practices used in modeling hierarchies to model access groups.

Modeling geographical regions

We already have airports and cities, which are geographical entities. We can add a couple of other entities such as country and region.

Modeling geographical regions

Figure 7.1: Country and region

A country or a region is uniquely identified by its name.

We can represent the relationship between airports, cities, countries, and regions in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required