【发布时间】:2014-06-06 17:21:18
【问题描述】:
假设我有这个图表:
+--own--> [made=Renault] --------------is-------------+
[name=Joan] v
+--own--> [made=Citroen] --is--> [type=Gas] [type=Diesel]
+--own--> [made=Peugeot] --is--> [type=Gas] ^
[name=Jacky] --own--> [made=Opel] ------------is-----------+
现在我想生成每个个人拥有的类型燃料列表。
| Person | Type |
+--------+--------+
| Joan | Gas |
| Joan | Diesel |
| Jacky | Diesel |
在 SQL 中,我可能会在 Type 和 Name 上都使用 ORDER BY,但在 Gremlin 中我不明白如何对它们进行分组?
【问题讨论】:
标签: java graph-databases gremlin