Apache TinkerPop

AT

Apache TinkerPop

Apache TinkerPop is an open source graph computing framework and the home of the Gremlin graph query language.

Join

Can't do explain() traversal step using Gremlin-Python ..

Hi I just started messing around in gremlin-python this week, so likely to be doing something wrong with g, but as mentioned on twitch, I'm unable to add an explain() step to one of my first traversals. i start with g a connected graphTraversalSource and perform the following ```groovy vertex = g.add_v("my_vertex").next() vertex = (...

Gremlin Query for amount of time and return all results?

Is there a way to make gremlin keep running until time elapses then return the results? I have a query that I am working on that looks for paths of a size, i want this to run for a length of time and return all the paths it can find in that time. Right now I have it set to stop at paths of size N, which I'd like to be instead run for time X.

How do I make a ssl connection using only ARN from neptune (AWS)

I have a simple connection in my project using remotecon = DriverRemoteConnection(neptune_url) But now I need to implement a solution using SSL Connection, I dont have username and password, only the arn of neptune. Does someone know how to implement it ? Thanks in advance!...

Can gremlin-server be started via its Java package

I'm considering exposing the G.V() Playground graphs, which runs on TinkerGraph, to the network via Gremlin Server. Can the GremlinServer Java class be instantiated to expose a TinkerGraph instance (or have the TinkerGraph data exposed on the GremlinServer by loading a graph instance that shares its "gremlin.tinkergraph.graphLocation" value?)...

Getting Property Out of a Variable in Python Gremlin Query

I've been working on attempting to find a performance way to route from point A to point B. Right now my schema is as follows Vertex Labels:...

The Cascading Coalescing - Create a V then Create an E in One Shot

I have been struggling with this and perhaps I can ask some expert on how to approach this type of issue. What I want to do: 1. Find a V...
Solution:
mergeV/E() should be the best approach for upsert that we have right now and should cover most coalesce() patterns that people do. ```groovy g.mergeV([name:'manabububu']).as('v') // gets or creates a vertex with name="manubububu" property('x', 1) // adds x=1 irrespective of whether the vertex is created or not mergeE([(label):'link',(from):outV,(to): 'dac4de07-1371-a1f7-7409-ad28d75069a5'). // find edge from "v" to a vertex with the uuid specified...

Toolset

Hi all, Im in a bit of a dilemma. Want to start using a graphdb for a new application however ik strugling will the toolsets. My company hosts all om azure and doing so it pretty much means our best option is to use Cosmosdb here. All is fine even though cosmosdb is some sort of subset of thinkerpop with gremlin so that should be ok. For local development at linux however cosmosdb is not supported. This means i have to run gremlin-server locally....

Gremlin query has strange behavior with range() and limit()

Hey everyone, I have a Neptune database and use gremlin to query it. I have user vertices that could be connected with edges like "friends", "follows", "blocks", "reports". I want to make a query that gives "suggestions" to the user by presenting him with users that the people he follows follow. These users shouldn't be followed, blocked, or reported by the the current user and also should be up to 3 suggestions per user he follows. I have constructed the following query :...

User-Agent Metric Not Exposed in Gremlin Server - Need Help Troubleshooting

Hey everyone, I've been working with Gremlin and noticed that we can pass the User-Agent in requests to the Gremlin server. According to the documentation (reference: https://tinkerpop.apache.org/docs/current/reference/#metrics), the server should maintain a metric called user-agent.*, which counts the number of connection requests from clients providing a specific user agent. We have already implemented sending the User-Agent in our HTTP requests to the Gremlin server, but the metric mentioned in the documentation doesn't seem to be exposed or working as expected. ...

Gremlin Syntax Highlighter

I want to implement an Gremlin Synthax highlighter (displayed in HTML) via javascript/typescript. How do i have to achieve something like this ? Do we highlight just the variables , methods, lambdas seperatly or do we highlight the individual gremlin methods ?...

neo4j-gremlin plugin support

Hi team, I'm currently using tinkerpop-server 3.6.4 docker image with the neo4j-gremlin plugin for backend (https://tinkerpop.apache.org/docs/current/reference/#neo4j-gremlin). I Recently grype scanned the image and I'm seeing lots of vulnerabilities. Vulnerabilities are introduced only when the neo4j-gremlin plugin is installed. Is there any way to update some of these vulnerable dependencies? Are you guys maintaining the plugin? https://mvnrepository.com/artifact/org.apache.tinkerpop/neo4j-gremlin/3.6.4 Grype scan results attached....
No description

Is it possible to apply `by` modulator to not last step?

I have TheCrew graph. I'm trying to get 2 properties and unfold values only for second one, query is like g.V().valueMap("location", "name").by(__.unfold()).by() but property order after valueMap can be random, so I added sorting to get expected result g.V().valueMap("location", "name").order(local).by(keys)...

Complete Instruction Set?

Hello there! I'm working on a gremlin to SQL implementation and was wondering if there is a specification of the "instruction set" language? E.g. wikipedia states that ``` g.V().as("a").out("knows").as("b"). select("a","b"). by("name")....

Best Testing Practices?

Hi! I'm using Gremlin for the 1st time in one of my projects and one of the goals is to do TDD. What would be the best practices in what comes to using gremlin? I've tried to look into having a memory database but I couldn't find an official one that works without Java and I would like to avoid using docker so that the tests can just run anywhere, anytime. Basically, I would like to know if there is a ThinkerGraph-Gremlin (https://tinkerpop.apache.org/docs/current/reference/#tinkergraph-gremlin) for javascript. ...

Route from origin to destination between two datetimes

Hey, I'm attempting to create a graph DB that will allow me to efficiently find a route from origin to destination between two times stamps. I've created two different graph DBs were different levels of success. I have one graph that has AirportDay vertices and Flight edges between them. This was my first attempt, and while it worked, since the Flights were edges I was not able to guarantee that the next flight in the route took off before the previous one landed. This caused me to create my second graph, which is Flights as vertices and a connects_to edge to connect Flights to other Flights. This one works very well (besides inserting into the DB but that's not too big of a problem)....

migrating from Azure Cosmos DB Gremlin to another Gremlin platform such as Google BigTable

Has anyone tried, or have any idea if something like this is possible, thinking about potentially changing cloud providers and wanted to see if it was possible to keep all of the queries in gremlin but move the data. It looks like Google Big Table shows how the JanusGraph data is stored in the table, but I can't seem to find such documentation on Microsoft's side.

What does Setting Write Buffer Watermark do?

int writeBufferHighWaterMark If the number of bytes in the network send buffer exceeds this value then the channel is no longer writeable, accepting no additional writes until buffer is drained and the writeBufferLowWaterMark is met. int writeBufferLowWaterMark Once the number of bytes queued in the network send buffer exceeds the high water mark, the channel will not become writeable again until the buffer is drained and it drops below this value. ...

How can I filter by property type

Some time ago, we discovered that a certain timestamp property was being stored as a String instead of a Long in our database. This issue is now fixed, but some of the old data is still hanging around and I want to filter it out of a query that I'm writing. How can I exclude all the vertices that contain the property with type String? I tried using a lambda but I think they are disallowed and always return errors in Neptune.
No description

Deleting X nodes when there is no incoming Y nodes to them

Hello, In my case, a team has many Member and each member works only for one company. a company can also works for another company. I want to delete all companies that no member of team works for them. In the following example company W and Z must be deleted but company Y should not. because member A works for X and X works for Y....

User Defined Steps for orientDB Handlers (Server Plugins)

OrientDB has Handlers (Server Plugins). Handlers allow writing custom functions. For example, there is a step union in Gremlin. In OrientDB, I can write my own function called customUnion using the handlers. Question: How can I call the custom function of OrientDB (or step of Gremlin) in the Gremlin console? Also, I am using the Gremlin Java API, so I need to call the custom function customUnion in Gremlin Java API. I have created the same question on OrientDB: https://github.com/orientechnologies/orientdb/issues/10003...