官术网_书友最值得收藏!

Looking for n-ary relationships

Sometimes, you will find that the first reading of your user stories will not yield optimal results. There can be many reasons for this, but this is often because there are some hidden model elements in these stories that we did not spot at first.

One of the cases where we often see this is when dealing with the so-called n-ary relationships. These types of relationships are often hidden in the model when we want to associate more than two things; in some cases, the natural and convenient way to represent certain concepts is to use relations to link a concept to more than just one concept. These relations are called n-ary relations because they can serve more than two (in fact, n) things or concepts. It is a very common modeling pattern.

When we discover these types of relationships in a graph model, this typically means that there's an additional node to discover that we have split out a new entity, as illustrated here:


Transforming n-ary relationships into nodes

This is exactly what we have done in the preceding example.

主站蜘蛛池模板: 措勤县| 合山市| 桐城市| 桂东县| 筠连县| 吴桥县| 胶州市| 诏安县| 定远县| 舞钢市| 卢氏县| 亳州市| 玉树县| 当阳市| 抚远县| 张掖市| 拜城县| 上犹县| 佛教| 青川县| 枣阳市| 台湾省| 固始县| 镇江市| 刚察县| 咸丰县| 化州市| 洛南县| 永城市| 南充市| 徐汇区| 滨州市| 新营市| 青龙| 河津市| 肃宁县| 沙雅县| 株洲市| 高邮市| 安西县| 民乐县|