AT
Apache TinkerPoptdgabriel
Multiple labels not working in mergeV() syntax for conditional inserts in AWS Neptune
I know that multiple labels are an AWS Neptune specific feature and TinkerPop model does not allow for multiple labels, but maybe someone else has encountered the same problem.
While attempting to migrate conditional inserts (upserts) to the new mergeV/E() syntax, I encountered an issue with vertices that have multiple labels. It appears that creating a vertex with multiple labels only works with the addV() step, which was present in the fold()/coalesce()/unfold() pattern for conditional inserts. In the new syntax, the label property is specified in a map, and a string such as 'Label1::Label2::Label3' will be treated as a single label.
For example, the following code written in Gremlin-Java, creates a vertex with a single label called 'Label1::Label2', instead of 2 separate labels:
Are there any alternative approaches to this issue that make use of the new syntax for efficient upserts?
S
spmallette•385d ago
I'm sorry to say that qt this time Neptune doesn't support the multi-label syntax in the new
mergeV()
step. For multi-label, i'm afraid that for now you will need to stick to the fold()/coalesce()/unfold()
pattern for now until @neptune can get that rectified.K
kelvinl2816•385d ago
This is really helpful feedback @tdgabriel - it's something we really need to take on in TinkerPop at some point and also good feedback for the Neptune implementation. We will make sure the right folks get to know about the need for multi label support in the Neptune flavor of
mergeV
.T
tdgabriel•383d ago
Great to hear that, thanks!
Apache TinkerPop is an open source graph computing framework and the home of the Gremlin graph query language.
1.3KMembers
View on DiscordWant results from more Discord servers?
More PostsUsing a SeedStrategy in javascript to control shuffle.On my project we are trying to select random vertices from the graph and use a seed to keep the resuHorizontal cache for gremlin server deployment.I have gremlin deployment, which has 3 pods within it. On top of it I have a load balancer to accessworker thread pool of 1, gremlin pool of 1 and boss thread pool of 1 ?Hello - I have an remote gremlin setup backend as cassandra, In my gremlin remote logs I see a log sMultiple next() steps in a traversalIs there a way to exit traversals at different steps? I tried using the `next()` step on a static, btell me writing query this patternvartex(orange): question: {code:string, type: string }
vartex(purple):LeaningElement
What I want toVersion Update differencesHi guys,
We are upgrading from gremlin_python 3.4.11 to 3.6.2. We had some functions break and it What is the ordering of group?For instance (on Tinkerpop modern)
g.V().group().by('age').by('name')
gives
[{32=[josh], 35=[peter],Export to graphml/graphson with PythonHello everyone,
I hope this question has not been asked yet, if so I'm sorry for redundant content.