How to record multiple values of one attribute?

In actual operation one attribute is always associated with a set of values. If we want to record all names of a person (including nickname, pre-marital name, etc.), in janusgraph we can use set of Cardinality, name = mgmt.makePropertyKey(‘name’).dataType(String.class).cardinality(Cardinality.SET).make() in janusgraph to record all names of a person, how can i record this key-value in dgraph?

An Edge can be a list name: [String] . But I don’t think this is the case. An edge can’t have multiple values (except if it’s a list). So ideally you make edges for each type of name.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.