bitnine-oss / agensgraph

AgensGraph, a transactional graph database based on PostgreSQL
http://www.agensgraph.org
Other
1.34k stars 148 forks source link

Multiple labels on a vertex #625

Open ghost opened 1 year ago

ghost commented 1 year ago

I see that you currently allow only one label for each vertex. Is there any plans to allow for multiple labels?

I see that you do allow for label inheritance but that is not sufficient for our project as we want to be able to assign multiple unrelated labels to a vertex.

If I cannot create multiple labels, is there a way to simulate this using attributes? What I am hoping for is some way of creating a multi-valued attribute where I can assign one or more values to it and then when I am doing a match check to see if one of the values for this attribute equals some value. Of course, this would need to be indexed in some form for performance.