Questions tagged [janusgraph]

JanusGraph is a scalable graph database optimized for storing and querying graphs containing hundreds of billions of vertices and edges distributed across a multi-machine cluster. JanusGraph is a transactional database that can support thousands of concurrent users executing complex graph traversals in real time. When posting questions, please include environment details, such as the storage and indexing backends used.

JanusGraph is a scalable graph database optimized for storing and querying graphs containing hundreds of billions of vertices and edges distributed across a multi-machine cluster. JanusGraph is a transactional database that can support thousands of concurrent users executing complex graph traversals in real time.

When posting questions, please include environment details, such as the storage and indexing backends used.


Resources:


Related tags:

857 questions
0
votes
1 answer

ClassNotFoundException OptionsStrategy

When i connect to remote server and try to modify a graph i get java.lang.ClassNotFoundException: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tinkerpop/gremlin/process/traversal/strategy/decoration/OptionsStrategy I try…
hungryangry
  • 109
  • 1
  • 8
0
votes
1 answer

Where JanusGraph configuration is written?

I am reading the configuration reference for the JanusGraph https://docs.janusgraph.org/0.2.0/config-ref.html and I wonder - in which file should I write those values? Under conf directory of the JanusGraph there is no single common file in which I…
TomR
  • 2,696
  • 6
  • 34
  • 87
0
votes
1 answer

Fetch nodes recursively with Gremlin query

I'd like to define a Gremlin query which returns all the nodes recursively till there are no more nodes available: Node: ProductionEvent Node: Product What I've tried so far is the following...however, I'm not sure if the output is correct. Also,…
0
votes
1 answer

Janusgraph DB not being updated after changing vertex property values using clojure ogre

I'm using Clojure/Ogre to interact with Janusgraph DB from my clojure api application. Since I'm very new to this technologies I think I might have missed something. Below are the problems I'm facing, When I add a new vertex via from my clojure…
Shr4N
  • 435
  • 3
  • 18
0
votes
1 answer

Good and reliable practice to get a Node.js client to connect to a gremlin-server (all running on the same server) for CRUD operations

[On Ubuntu 18.04] I have (and am constrained to use) janusgraph to create a persona repository. I will be using a graphDB, largely because persona relationships are as important as persona attributes and the structure needs to be fluid. I need to…
Greg
  • 195
  • 1
  • 13
0
votes
1 answer

Is there any way to return data from gremlin in the form of hashmap?

I want to know whether I can get data from Gremlin query in the form of HashMap(One vertex as key and another as…
0
votes
1 answer

Get all edges between multiple vertices - JanusGraph

I am trying to write a gremlin query to get all the edges between a list of vertices. Data redacted to protect privacy. User A(42651832) -reports_to-> User B(28729440) -reports_to-> User C(19546208) ids = [19546208, 28729440, 42651832] I need…
Moses
  • 113
  • 8
0
votes
1 answer

Unable to add new vertex

I am trying to add a new vertex with a property whose value is a huge string. This is by using gremlin_python. Sample code: vertex = g.addV(label).next() res = g.V(vertex).property('key', 'this_is_a_huge_string')
sks27
  • 63
  • 2
  • 7
0
votes
1 answer

The results of pattern match gremlin query only returns 64 vertices when there are 91 that match the query

I am running a gremlin match query that limits the results based on the value of some of the properties of the graph. When I run the query in the gremlin console I get 91 vertices that match the pattern. When I run the same query through a…
0
votes
1 answer

How do you test for the value of a Boolean property in a has step of a gremlin query?

I have defined a Vertex with a schema and several of the properties of the vertex are of type boolean. I am trying now to query the vertex and filter the results by the boolean value of these properties. I have…
0
votes
1 answer

Gremlin traversal subtracting value from elements in list

Using the graph of the gods example and adding the following 'amount' property: rand = new Random() g.withSack {rand.nextFloat()}.E().property('amount',sack()) The traversal below is based on…
ebelogay
  • 11
  • 4
0
votes
1 answer

Sort cosine similarity scores before adding edges to graph

I was trying to get the example for jaccard similarity found here to work for cosine similarity but wanted to limit the number of created links to the top 10 scores. I reviewed https://gist.github.com/dkuppitz/79e0b009f0c9ae87db5a but couldn't…
ebelogay
  • 11
  • 4
0
votes
1 answer

Add a property to an already existing vertex in java

I am trying to add a property to an already existing vertex on a remote gremlin server. Here's how the vertex is created: String LABEL = "label"; String NAME = "name"; String ID = "id"; String TEST = "test"; GryoMessageSerializerV3d0 serializer =…
0
votes
1 answer

How to retrieve individual values in the list?

I'm new to Janusgraph database. I have created a property key with cardinality as "LIST" and added that property to a vertex. Now I would like to retrieve individual value of that vertex's property. Currently I'm getting entire list as a…
Shr4N
  • 435
  • 3
  • 18
0
votes
0 answers

How to compute Jaccard Similarity using gremlin

I am learning about Gremlin and JanusGraph and want to compute the Jaccard Similarity similar to this Cypher/Neo4j example. I have case IDs with properties. I would like to compare a give case with all other cases that have a given property A. Below…