sqlg icon indicating copy to clipboard operation
sqlg copied to clipboard

Virtual Edges

Open pietermartin opened this issue 8 years ago • 0 comments

Think about adding virtual edges. A graph's topology/schema is generally designed upfront and ends up being cast in stone, including ending up being hard-coded in application logic. This means that when writing gremlin queries users are constrained to traverse the graph as is.

However sql does not have this problem being able to join on any column. So the idea is to define a virtual edge in the topology specifying the columns to join on. Then the user will be able to travers the graph via virtual edges.

E.g. For whatever reason all vertex labels include a username name property. Edges are not created to the User vertex label to prevent cluttering the graph with loads of edges. However a virtual edges can be defined to the user vertex label and then the user can do g.V().hasLabel("Whatever").out("user")

pietermartin avatar Nov 16 '16 21:11 pietermartin