Dragos Ciupureanu
ATApache TinkerPop
•Created by Dragos Ciupureanu on 12/6/2023 in #questions
Testing against AWS Neptune
Yep, that's my thinking too. Thanks for confirming. I'm inclined to have a serverless instance laying around just for integration tests (which is good in theory but as soon as you have multiple tests running on the instance you're screwed). Conversley, the test can spin up its instance but that just takes too much time...
Thanks all for your input
12 replies
ATApache TinkerPop
•Created by Dragos Ciupureanu on 12/6/2023 in #questions
Testing against AWS Neptune
I see, thanks. From your answer, though, I imply that there's no way to test against a real Neptune engine and as soon as some of the configurations for gramlin-server can't be changed to match Neptune we're out of luck and the only solution is to test against a real Neptune cluster.
12 replies
ATApache TinkerPop
•Created by Dragos Ciupureanu on 11/12/2023 in #questions
AWS Neptune and gremlin-javascript versions
Thanks for pointing out that versions table (I didn't actually check the Java page...). I'll give it a go with 3.6.5 and see if it works or not.
5 replies
ATApache TinkerPop
•Created by Dragos Ciupureanu on 11/8/2023 in #questions
Reusing connections
Great, thanks for the nice explanation. Since the volume of queries in my app is not that hight using http for now should be fine.
6 replies
ATApache TinkerPop
•Created by Dragos Ciupureanu on 11/8/2023 in #questions
Reusing connections
To add more context to this: I'm writing a web app that needs to update the graph on events happening inside the web app. For this I'm currently abstracting away the graph by creating a service that takes a gremlin query as string in the form of but those string queries become hard to maintain and debug since there's little to no IDE that supports gremlin syntax (or even knows of). Looking at the example given abot I see how that works in an "gremlin 101" way but I'm wondering if that's the correct approach if I still want to expose the functionality of gremlin through a service that abstracts away all the plumbing required to connect to the database and that only acceps a "query" as input.
6 replies
ATApache TinkerPop
•Created by Andys1814 on 11/7/2023 in #questions
Sequential IDs in Neptune?
If you really want uniqueness you can use this ID as the vertex/edge ID and that's taken care by Neptune for you.
16 replies
ATApache TinkerPop
•Created by Andys1814 on 11/7/2023 in #questions
Sequential IDs in Neptune?
Correct, in which case you retry the call with a different ID.
16 replies
ATApache TinkerPop
•Created by Andys1814 on 11/7/2023 in #questions
Sequential IDs in Neptune?
Another approach would be to generate "readable" ids such as the ones from nanoid https://github.com/ai/nanoid & https://zelark.github.io/nano-id-cc/ . The last link is a calculator of collision probability and for 1k ids/s with only numbers and capital case letters, and the id length of 16 characters, you have ~13 years until you get 1% chance of collision.
I guess what I'm trying to say is that if the UX is not greatly impacted by not having a sequential number perhaps you could do without the headache of having to manage the id yourself.
16 replies
ATApache TinkerPop
•Created by Dragos Ciupureanu on 11/3/2023 in #questions
Gremlin console vs REST API
This is great, thanks for the suggestion.
11 replies
ATApache TinkerPop
•Created by Dragos Ciupureanu on 11/3/2023 in #questions
Gremlin console vs REST API
I'm doing a simple POST request to Neptune's REST API from Javascript right now
11 replies
ATApache TinkerPop
•Created by Dragos Ciupureanu on 11/3/2023 in #questions
Gremlin console vs REST API
I see, thanks for the clarification. Regarding Neptune and GraphSON though, is there a standard way of getting the same response back in graphson format? I see in the docs that TinkerGraph has a different serializer than the rest. For more context here, I'm trying to build a simple UI that shows a very basic subraph to our users. I am using gdotv myself, but that's local and not a good solution for users - and I'm looking for something generic that given any arbitrary query I can construct and vizualize a graph. Is this a matter of me parsing the query before sending it to Neptune and change it to return a path and then ask for the same traversal but with a valueMap in the
by
modulator?11 replies
ATApache TinkerPop
•Created by Dragos Ciupureanu on 10/27/2023 in #questions
Gremlin browser code editor
Thanks @G.V() - Gremlin IDE (Arthur) and @spmallette . That's along the lines of my finding but I hadn't come across the antlr grammar for gremlin until now so thanks for the suggestion.
7 replies
ATApache TinkerPop
•Created by Dragos Ciupureanu on 10/19/2023 in #questions
GraphSON mapper
That's very useful, thanks @triggan
12 replies
ATApache TinkerPop
•Created by Dragos Ciupureanu on 10/19/2023 in #questions
GraphSON mapper
Whilst on the same neptune topic, do you happen to know if I can get graph embeddings out of the graph? I see they use
RotatE
for link predictions but I just want the embeddings. From what I looked I couldn't find anything in their examples. Similarly, does a gremlin response hook up into something that can return embeddings for a subgraph?12 replies
ATApache TinkerPop
•Created by Dragos Ciupureanu on 10/19/2023 in #questions
GraphSON mapper
Nice, didn't know about this. Thanks @triggan
12 replies
ATApache TinkerPop
•Created by Dragos Ciupureanu on 10/19/2023 in #questions
GraphSON mapper
Thanks for the suggestion. Yes, in the end I used the bulk loader as it's easy to export from Pandas to the Gremlin CSV format. 👍
12 replies