Questions tagged [tinkerpop]

Apache TinkerPop™ is a graph computing framework for both graph databases (OLTP) and graph analytic systems (OLAP).

Apache TinkerPop™ is a graph computing framework for both graph databases (OLTP) and graph analytic systems (OLAP). Graph systems that are TinkerPop-enabled, allow users to the ability to utilize the various aspects of the TinkerPop stack in development of vendor-agnostic graph applications. The key component to the TinkerPop stack is the Gremlin, a graph traversal language, which allows users to query and manage a graph.

974 questions
3
votes
1 answer

Tinkerpop Frames writing to database - newbie

I'm having my first go with Frames and my Java is pretty rusty. I'm stuck on writing information through Frames into the database. I've been following the docs and have a Person interface. public interface Person { @Property("name") public…
user3672265
  • 105
  • 5
3
votes
2 answers

Tinkerpop Blueprints Vertex Query

I've been researching the Tinkerpop stack for quite a while. I think I have a good idea of what it can do and what databases it works well with. I've got a couple of different databases I'm thinking about right now, but haven't decided on a…
GJK
  • 37,023
  • 8
  • 55
  • 74
3
votes
2 answers

What format to use for storing graphs

I am working on a project which involves working with graphs extracted from some other source. Currently we are using python's networkx module for analysing the graph. I am now faced with the task of choosing a format for storing the graphs. Pickle…
nofrills
  • 101
  • 3
2
votes
1 answer

Turn gremlin query result with elementMap into JSON [gremlinpython 3.6.1]

Continuing discussion from here. I've a query that provides list of paths along-with elementMap(). How do I convert this data to JSON to be consumed by rest of the code. I did look here that talks about using GraphSONMapper. However, I am using…
Anil_M
  • 10,893
  • 6
  • 47
  • 74
2
votes
0 answers

Connecting to JanusGraph using ConfiguredGraphFactory

I'm trying to figure out how to connect to JanusGraph server from SpringBoot. JanusGraph was setup with Cassandra and ElasticSearch to run in docker and as each instance of JanusGraph only serves one graph, I've updated gremlin-server.yaml to use…
毛三王
  • 41
  • 3
2
votes
1 answer

Apache Gremlin Filter returns empty when the vertex/edge is not present

Apache Gremlin Filter returns empty when the vertex/edge is not present. g.V('12336', '4128', '155808').as("a").filter( __.V().has('end_time', p.gte('---DATE---')).where(P.neq("a"))).elementMap() In the above query,…
Thirumal
  • 8,280
  • 11
  • 53
  • 103
2
votes
1 answer

TinkerGraph g.V(ids).drop().iterate() is confusingly slow

Have run into an issue with using plain old TinkerGraph to drop a moderate sized number of vertices. In total, there are about 1250 vertices and 2500 edges that will be dropped. When running the following: g.V(ids).drop().iterate() It takes around…
2
votes
1 answer

Which is faster g.V(T.id) or g.V().hasLabel('emaployee').has(T.id, 1) in gremlin

Which is faster g.V(T.id) or g.V().hasLabel('emaployee').has(T.id, 1) in apache tinkerpop gremlin. I have both id as well label which one is better, from a programming perspective g.V(T.id) is simpler but what about the DB performance? is it the…
Thirumal
  • 8,280
  • 11
  • 53
  • 103
2
votes
1 answer

TinkerPop - Retrieving values from multiple vertices give strange output

I have been working on trying to retrieve different values from different vertices from one starting point in my graph (I have a few other related posts, but I have worked out most of my issues). I am using TinkerPop with Neptune DB. I am able to…
Ebad
  • 131
  • 11
2
votes
1 answer

Gremlin / tinkerpop: insert key:value property constant in every vertex and edge traversed then return path

Using AWS Neptune with Gremlin query language (last version). Using sample data inserted this way: g.addV('test_report').property('name', 'REF').property('creationDateTime','2022-07-01 00:00:00.000000') g.addV('test_reportrelease').property('name',…
Cwellan
  • 305
  • 1
  • 3
  • 12
2
votes
2 answers

Can I use the Gremlin Python client in a Jupyter notebook and avoid event loop errors?

I am aware of the graph-notebook project that allows Gremlin queries to be submitted using magic commands. However, sometimes I need to code in Python and connect to the server using code, from within a regular Jupyter notebook cell. If, using the…
2
votes
1 answer

How to use Gremlin to get both node properties and edge names in one query?

I have been thrown into a pool of golang / gremlin / Neptune, and am able to get some things to work. Life is good - enough, but I am hoping there is a simple answer (which I have not been able to find) to what seems like a simple question. I have…
Dave Mich
  • 21
  • 2
2
votes
1 answer

Guarantees of traversal order in AWS Neptune graph database

I'm working with Gremlin and AWS Neptune graph database. I was wondering if any query, when it is applied in different times (but the query stays exactly the same), could potentially result in different traversal order and therefore maybe return the…
2
votes
1 answer

Neptune - RuntimeError: Connection was already closed in pythongremlin

I keep getting the following error even after implementing backoff. connection -> db.py import os import logging import sys from gremlin_python.driver import serializer from gremlin_python.driver.protocol import GremlinServerError from…
Thirumal
  • 8,280
  • 11
  • 53
  • 103
2
votes
2 answers

Get a boolean value if an edge exsists in gremlin

I want to do a simple query in which I have a user and a group. Users have an edge "memberOf" to group vertex. Given a userId and a groupId, I want to write a query that returns true or false if there is an edge between the user and the group.
xeroshogun
  • 1,062
  • 1
  • 18
  • 31