Does graph notebook still work after changes to serializers?
%%gremlin
now results in an error of
```...Implementing Graph Filter for Sub-Graph Loading in Spark Cluster with JanusGraph
Testing against AWS Neptune
graphs
in this file, which you can use to specify the path to a custom property file.
This property file is where you define your graph properties, and in your case the defaultCardinality
....Janusgraph vertex property with cardinality as SET type
Error: `Failed to authenticate`, when connection pool size is >1 for GremlinServer with ArcadeDB
How can I use the .io("filename.json").write() pattern to append to an existing graphson file?
withSideEffect()
to give it your own graph instance and then reuse that across multiple traversals to subgraph:
```gremlin> g = TinkerFactory.createModern().traversal()
==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard]
gremlin> sub = TinkerGraph.open()
==>tinkergraph[vertices:0 edges:0]...using tinkerpop 3.6.x on a jdk 21 project
Is the following use of next() allowed?
changes
is a non-empty object. No error is raised, and when I printed the result, it has { value : null, done : true }
.
```const changes = { ... } let v0 = g.V(0); if (!(await v0.next()).value) {...
done: true
signifies that the traversal sequence was already committed and I'm doing basically nothing.Gremlin-go cannot bring out props when querying Vertex with Neptune
search for vertices where multiple properties
repeat and until methods in Javascript Gremlin:
const org = await g.V().until((r) => r.hasLabel('')).repeat({...}).path().by('name').next()
const org = await g.V().until((r) => r.hasLabel('')).repeat({...}).path().by('name').next()
Gremlin driver setup for Amazon Neptune behind a Load balancer
Gremlin (with Python + Neptune) Out of Memory Error with .toList()[0], .next() Fixes It. But Why?
path_v
is a single well defined V. I am expecting it is returning a single V....AWS Neptune and gremlin-javascript versions
option()
is being called with two Map
arguments, but your example does not seem to indicate that you are doing that. It's interesting that 3.7.0 "fixes" it because I can't think of any reason why that would matter. Perhaps you could try 3.6.5 to see if there were somehow changes after 3.6.2 that solved this problem?
Regarding your more general question of:
My question is: does the version of the javascript client match the version of the server (or should it)? Or should I always strive to use the latest client?Generally speaking you should follow the version table here https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-gremlin-client.html - While it is possible that versions outside of those ranges in that table will work with one another, those are the versions that Neptune tests against and that are supported....
Docker Janusgraph Custom ID Values
Reusing connections
Can I surpress gremlin console's warnings?
gremlin -l ERROR
```
% gremlin
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/usr/local/apache-tinkerpop-gremlin-console-3.6.2/lib/groovy-2.5.15-indy.jar) to method java.lang.Object.finalize()...export JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --illegal-access=deny"
produces the following
```
% export JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --illegal-access=deny"
% gremlin
NOTE: Picked up JDK_JAVA_OPTIONS: --illegal-access=deny...Sequential IDs in Neptune?
vertexNumber
, which will store the numeric sequential ID for each vertex. Then, before saving a vertex to the database, I run a simple query to retrieve the current highest vertex number, increment it, and store the new vertexNumber
to that vertex. Pseudo-code examples found below.
```...This helps to minimize the single point of failure and additional overhead of having to go to a single coordinator to get an id value for each request. It does however means that inserts will not be in sequential order and that you may have gaps in the number. This may or may not be an issue depending on your use case....
Gremlin console vs REST API
Queries sent over HTTP will return the response using GraphSON (GraphSONv3, be default with Neptune) which includes all of the extra type information....
Cryptic Neptune Gremlin Error Rate Creeping - What Would You Recommend?