As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [gremlin]

Gremlin is the graph traversal language and virtual machine of Apache TinkerPop™

Filter by
Sorted by
Tagged with
0 votes
0 answers
27 views

How to create, register and enable an index in Janusgraph?

I want to create an index to find a vertex by label and a property value. I saw from documentation that i have to Install->Register->Enable the index, but somehow i can't get it to be Register ...
Takis's user avatar
  • 8,234
0 votes
1 answer
45 views

Add incoming and outgoing vertices to Gremlin query

I have a query which needs to satisfy some criteria which works well at the moment. The problem is that I'm also trying to include its incoming and outgoing edges to the response as below. { ...
imp.erial's user avatar
0 votes
1 answer
39 views

Problem installing hadoop-gremlin with janusgraph

We are running into some issues while launching gremlin.sh with hadoop (ref: https://tinkerpop.apache.org/docs/current/reference/#hadoop-gremlin) using janusgraph. Any tips/help appreciated! Thanks! ...
Paritosh Gote's user avatar
0 votes
0 answers
12 views

ArcadeDB | `All hosts are considered unavailable due to previous exceptions. Check the error log to find the actual reason.`

What are the details of your problem? Why is Tinkerpop-Gremlin AnonymousTraversalSource finding ArcadeDB unavailable? I looked at log/arcadedb.log.x files but they're empty. And the Log4j2 logs also ...
Zach's user avatar
  • 519
0 votes
1 answer
34 views

What is the Gremlin query to get connected nodes and vertex labels in Amazon Neptune with TinkerPop3?

Using Apache Tinkerpop Gremlin to query a node database. I need to not only get the out edges but the Vertexes that the edges connect. Here is a diagram of the database I am trying to query. The gray ...
Scott Lewis's user avatar
0 votes
0 answers
29 views

Amazon Neptune Gremlin Query ClassCastException: class java.lang.Integer cannot be cast to class java.lang.Long

I am using the Java client for Neptune provided here: https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-gremlin-java.html And I am trying to execute the following query: List<Map<...
ylizamz's user avatar
0 votes
0 answers
40 views

Tinkerpop-3 Gremlin Not Found For Groovy-Project In IntelliJ IDEA

Why can IntelliJ IDEA not resolve Gremlin for its SimpleExample? I need to make a program that doesn't require intervention / manual steps, so I can't use the gremlin/groovy-shell at time of graph-...
Zach's user avatar
  • 519
-1 votes
1 answer
39 views

How to connect to Azure Cosmos DB Gremlin API via embedded code

For now we are using the very simplified and not near reality approach that Azure officially lets one play: https://learn.microsoft.com/en-us/azure/cosmos-db/gremlin/quickstart-java. But we need to ...
Omar Ghoche's user avatar
0 votes
0 answers
22 views

Remote Gremlin Server and Concurrent Requests for Janus Graph

I am using Embedded Gremlin Server with Janus Graph but I have noticed problem with concurrent requests Consider there are two types of gremlin queries 1- Query that scans related records at hop =1 ...
A R Khan's user avatar
0 votes
1 answer
30 views

Limited connection with Azure Cosmos DB Gremlin

Regarding the previous answer ... the connection that is working for now ... to connect with Gremlin server @ Azure Cosmos DB Gremlin API ... is via a remote.yaml file [check image below]. The ...
Omar Ghoche's user avatar
0 votes
0 answers
31 views

janusGraphManagement.getOrCreatePropertyKey() Causing Could not read messages for timestamp

Problem Why is an empty JanusGraph not able to read messages for timestamp? What message is JanusGraph referring for janusGraphManagement.getOrCreatePropertyKey()? How is this warning fixed and why ...
Zach's user avatar
  • 519
0 votes
1 answer
47 views

Adding edge between 2 vertices in different partitions in Azure Cosmos DB Gremlin

I am trying to add 2 vertices to different logical partitions, then i want to connect them through an edge, but couldn't find anything online! How to do it?! Azure Cosmos DB Gremlin API works via ...
Omar Ghoche's user avatar
0 votes
1 answer
41 views

REGISTER_INDEX() Not Registering SchemaStatus.INSTALLED JanusGraph-Index

Why is JanusGraph not registering an installed-index? The first time the janusGraphManagement.buildIndex() builds and enables fine. Although, second time the janusGraphIndex will be stuck at INSTALLED ...
Zach's user avatar
  • 519
2 votes
1 answer
41 views

Storing graph data with TinkerPop Gremlin run in Docker

I'm trying to use Gremlin server to work with graph based database and docker-compose. The problem is that when I shutdown or restart the container, no static file is saved and the graph is empty with ...
SynStratos's user avatar
0 votes
1 answer
45 views

Why Does Limit-OF-1 Not Record-Drop 1 Vertex?

In JanusGraph-Java, how can you limit dropping vertex records? Here's what the logs show: drop().iterate() does work for a small number limit(1).drop() does nothing drop().limit(1) does nothing drop()...
Zach's user avatar
  • 519
0 votes
1 answer
36 views

Why Is JanusGraph's Iterate-Drop Not Dropping?

Why is JanusGraph saying its dropping all the Vertexes when its looking like its really not? logger.info("g.V().count().next():\t" + g.V().count().next()); g.V().drop()....
Zach's user avatar
  • 519
0 votes
1 answer
64 views

How can I merge two Vertices into one using Apache Gremlin Query Language (Version 3.5.2)?

Take for example this graph model: g.addV("TopVertex").property('id', 4713).property('testProperty1','testProperty1').as('vertex1') .addV("SubVertex").property('name','C1').as('C1')...
r3dup's user avatar
  • 1
0 votes
2 answers
89 views

Thought I Created A JanusGraph Vertex Index But I Guess Not; What Went Wrong? [duplicate]

Why is JanusGraph not finding-and-using the index I made at time of search? Please note, I need this to work with the Java implementation specifically; not Gremlin Console. And this needs to work with ...
Zach's user avatar
  • 519
0 votes
2 answers
36 views

Is There A Better Way To Delete Vertexes In JanusGraph?

Is there a way to just drop() all of the Vertexes in JanusGraph like OrientDB? g.V().drop().iterate() takes about 2 minutes to traverse through 70005 basic vertices. JanusGraph's JanusGraph (interface)...
Zach's user avatar
  • 519
0 votes
1 answer
22 views

Do JanusGraph Cassandra Indexes Need To Be Reindexed?

Do JanusGraph indices need to be reindexed after loading in more data? I know this is a newbie question, but I am a newbie with on this subject. From my understanding right now, OrientDB and Neo4j ...
Zach's user avatar
  • 519
1 vote
1 answer
41 views

Where Are JanusGraph's Vertexes In Cassandra?

Where does Apache Cassandra put its JanusGraph Vertexes? When I look for them I can't find them. I've tried using cqlsh but I'm new to CQL (Cassandra Query Language) and Cassandra in-general. So ...
Zach's user avatar
  • 519
-1 votes
0 answers
15 views

Tinkerpopo gremlin query

I have used Gephy to model some customer data (commercially sensitive, so can't use it here) and I want to drop it into a graph DB and query it but I don't know how to start. The data has several ...
Greg's user avatar
  • 183
1 vote
1 answer
113 views

Gremlin MergeV To Update an Existing Element's property and Single Cardinality

I am using Amazon Neptune with Gremlin-go for our Graph Database needs. I am working on code to insert/update (upsert) an element with g.mergeV(). However, when a match is found, and a property gets ...
newbie123's user avatar
0 votes
1 answer
50 views

Why Is addVertex() Faster Than addV()?

Problem Is there something I'm missing on how to run with g.addV()? Is there some way to speed up g.addV()? If I'm asking this wrong or something else is missing, please let me know so I can correct ...
Zach's user avatar
  • 519
0 votes
0 answers
46 views

Why Is Gremlin Not Allowed Even Though in allowedLanguages?

Problem Why is the Gremlin Language not allowed in OrientDB-Studio when I've set the parameter to allow? I had this working before I recreated, but now when I follow the steps I still get denied ...
Zach's user avatar
  • 519
0 votes
1 answer
63 views

Why Does V().count() Show 0 with gremlin.sh But Not Zero With Code?

Problem Why does bin/gremlin.sh's V().count() not show a non-zero count? I'm new to Gremlin [Query-Language] and Graph-DBs (Graph Databases) in-general. What is the difference between running in ...
Zach's user avatar
  • 519
0 votes
1 answer
59 views

Why Do Vertexes Not Drop With g.V().drop()?

Problem How do you cleanup Vertexes (and Edges) with GraphTraversalSource g? I don't understand why g.V().drop() doesn't work with traversal().withRemote() When I have this working fine with ...
Zach's user avatar
  • 519
-2 votes
1 answer
33 views

addEdge with python gremling GLV - how to get syntax correct

The error: TypeError: The child traversal of [['addV']] was not spawned anonymously - use the __ class rather than a TraversalSource to construct the child traversal appears when trying to run the ...
Wolfgang Fahl's user avatar
0 votes
0 answers
45 views

OpenSearch query with type "term" not returning the same results in Amazon Neptune

I am using Amazon OpenSearch service version 1.3 alongside Amazon Neptune. I followed Neptune docs for integrating full-text search capabilities in Neptune. I needed to use a custom analyzer for one ...
Gabriel Tudor's user avatar
-1 votes
1 answer
40 views

Gremlin and Neptune Db Set Property Max Length

What is the max number of values Gremlin and Neptune supports for set-based array properties? I have searched Tinkerpop and AWS documentation but I am not able to find out what is the limit of set-...
S7H's user avatar
  • 1,359
0 votes
0 answers
36 views

Gremlin update property of a vertex

I have a use need to use gremlin 1)to update a single property within a vertex 2)if a specific property of a parent is updated, update the same property in the children Here is what I have for my ...
EXK's user avatar
  • 23
-1 votes
1 answer
21 views

Is there a way to group a vertex with another vertex property using gremlin in Neptune DB?

I have many vertices on Neptune DB connected with different edges. I want to fetch an entity, for instance Ticket which is edged to an entity Customer which has an attribute firstName. How can i group ...
Avinash 's user avatar
3 votes
1 answer
74 views

Janusgraph OLAP traversal - Connection with cassandra using trusstore config not working

We have a working setup of Janusgraph 0.5.2 version where we are able to insert and query (OLTP) the data as per need. We are exploring JanusGraph OLAP traversal for some reporting and analytical ...
blankCoder's user avatar
0 votes
1 answer
65 views

Connecting To JanusGraph Using Java

Problem How do you get Connecting to JanusGraph > Using Java to work? Connecting to JanusGraph Using Java = Connecting from Java = Getting Started with JanusGraph and Gremlin-Java in this question....
Zach's user avatar
  • 519
1 vote
1 answer
25 views

AWS gremlin - show edge label on graph

I want to get a graph with the label edge. How can do it? I use this my graph_notebook and magic cell code like this, and standard visualization options: %%gremlin g.V().out().path() but it doesn't ...
olyck's user avatar
  • 13
2 votes
1 answer
45 views

Gremlin - The order in which vertices are returned when using limit with range queries with JanusGraph

I am reading the book Practical Gremlin section 3.4.1. :Retrieving a range of vertices" and it is written "There is no guarantee as to which airport vertices will be selected as this ...
A R Khan's user avatar
0 votes
1 answer
31 views

GraphTraversalSource Causing log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter)

Problem How-To-Fix Log4j2 Warnings When Using Tinkerpop-3-Gremlin (Language)-GraphTraveralSource? Tried src/main/java/main.java import org.apache.logging.log4j.LogManager; import org.apache.logging....
Zach's user avatar
  • 519
0 votes
1 answer
22 views

How to load data from RDBMS to Tinkergraph using Gremlin using java code?

I need to load data from RDBMS to Tinkergraph using Gremlin using java code. Ex: Select name,age from employee. There are 1000 rows. How to construct tinkergraph for such data? Tried going through ...
Riya's user avatar
  • 19
1 vote
1 answer
67 views

Gremlin console how to remote connect behind a proxy

I am using gremlin console to interact with an Azure Cosmos database as explained in this Microsoft quickstart tutorial. However I am behind a corporate proxy and the command :remote connect ...
Francois's user avatar
0 votes
1 answer
40 views

gremlin: sack modification in filter has no effect

Im filtering some vertices via their properties and map them with a project() step. In the result I want all vertices which have at least one property that matches my filter, and the amount of ...
Zonko's user avatar
  • 69
1 vote
1 answer
65 views

Neptune gremlin java traversing with hops

We have a model in neptune db for tag and entity relationship as follows: Vertices - tags. id --- 123454 123478 345678 435677 890890 727455 345588 .... .... id | from | to | hash | score -----...
popcoder's user avatar
  • 2,922
1 vote
1 answer
34 views

Find common recommendations in neptune db using gremlin queries

I have to find only common friends for two or more users in a way that both of them have same friend. g.V().has('users','id', within('A', 'B')).out('friend_with').values() This query will give back ...
Aditya's user avatar
  • 15
1 vote
1 answer
26 views

SimplePath to omit certails paths based on vertex property

I have a simple graph where I am trying to generate path() from given vertex g.addV('ORG').as('1'). property(single, 'orgId', 'f5c').addV('COMP'). as('2'). property(single, 'compId', 2112896). ...
Parvesh Kumar's user avatar
0 votes
1 answer
39 views

Query graph db for two values belonging to same type of vertex

I want to query in Amazon Neptune graph db two values belonging to same type of vertex. How can I achieve this in Gremlin ? e.g. If we write a query in sql it would look like this - select * from ...
Aditya's user avatar
  • 15
0 votes
2 answers
64 views

Optimize the Gremlin Query running on Cosmos DB

I am creating a PoC using Azure Cosmos DB for Apache Gremlin to model and query/display the Organization Chart. Given a node, the service needs to traverse the graph and pull all children recursively ...
amit_g's user avatar
  • 30.8k
0 votes
1 answer
22 views

Delete All Vertex Classes on OrientDB

How do you remove all Vertex Classes on an OrientDB Server? I'm cleaning up the graph-database for fresh imports with fixed and simpler names and properties. I'm running an OrientDB with Gremlin ...
Zach's user avatar
  • 519
1 vote
1 answer
40 views

How to use Gremlin.Net to send data in JanusGraph instance to Gephi for visualization?

I just came into contact with the field of graph database or graph data visualization this week. I want to use JanusGraph for graph analysis and visualization. I hope to import and process graph data ...
isnf-uZ4's user avatar
1 vote
0 answers
26 views

How to multiply some values of a groupCount() in gremlin queries if a acertain condition is met

So, imagine a simple graph for a social network, where you have profile nodes and post nodes. Profiles can follow other profiles, and profiles can also watch, like and publish posts. So overall, 4 ...
jvmunhoz's user avatar
0 votes
0 answers
52 views

Gremlin can find an edge, but not traverse it

I'm developing an app built on an Azure Cosmos database through gremlin. Until now, everything went smoothly, but I recently encountered an interesting situation. To summarize, I have three vertices: ...
LFont-TC's user avatar
1 vote
1 answer
64 views

How to submit a Gremlin query with parameter substitution using TinkerPop API

I would like to execute the same gremlin statement millions of times, just changing one parameter. The tinkerpop documentation indicates you should be able to use syntax like: Map<String,Object> ...
Andrew Coulson's user avatar

1
2 3 4 5
70