JanusGraph/janusgraph

Possible incosistency in chapter 5 documentation

Open

#1573 aperta il 12 mag 2019

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)Java (1137 fork)batch import
good first issuehelp wanted

Metriche repository

Star
 (4985 star)
Metriche merge PR
 (Merge medio 3g 18h) (12 PR mergiate in 30 g)

Descrizione

In Chapter 5. Schema and Data Modeling first there is paragraph:

The default cardinality setting is SINGLE. Note, that property keys used on edges and properties have cardinality SINGLE. Attaching multiple values for a single key on an edge or property is not supported.

and then example:

mgmt = graph.openManagement()
follow = mgmt.makeEdgeLabel('follow').multiplicity(MULTI).make()
name = mgmt.makePropertyKey('name').dataType(String.class).cardinality(Cardinality.SET).make()
mgmt.addProperties(follow, name)
mgmt.commit()

doesn't this example contradict that edges can't have multiple values for a single key?

Guida contributor