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

Create new traversal object from a list of vertices

I want to filter my graph to only include vertices with less than a threshold (e.g. 50) number of edges, as so: g.V().filter(bothE().limit(50).count().is(lt(50))) This gives me the list of vertices that I want to keep. How can I create a traversal…
Ian
  • 3,605
  • 4
  • 31
  • 66
0
votes
1 answer

HBase and Solr Standalone Example Graph Instantiation Error

I'm attempting to use JanusGraph for the first time. I setup a local session of Hbase and Solr but when I try to run the HBase and Solr Standalone example with: mvn exec:java -pl :example-hbase…
0
votes
0 answers

Corrupted data exception when run gremlin script

JanusGraph 0.3.2 + Scylla as storage. gremlin> g.V(24624).valueMap(true) Invalid flag encountered in serialization: -96. Corrupted data. Type ':help' or ':h' for help. Display stack trace? [yN] java.lang.IllegalArgumentException: Invalid…
0
votes
1 answer

Gremlin - how to convert a string to a date?

For a given property, I'm trying to convert a String representation of a date to the actual type Date. The string representation follows the date format: yyyy-MM-dd HH:mm:ss. For example: g.V(1).outE().values('date') returns the following three…
Ian
  • 3,605
  • 4
  • 31
  • 66
0
votes
1 answer

Gremlin - count number of edges where two properties differ

Given a vertex g.V(1), with x outbound edges. Say g.V(1) has the properties prop1 and prop2 on each of its outbound edges. How can I find the number of times where those two properties differ? For example (say there's three outbound edges), if…
Ian
  • 3,605
  • 4
  • 31
  • 66
0
votes
1 answer

How can use math().by() in gremlin while two point has diffrent column name?

I have a graph in janusgrah that has two point, order:id,channel,order_time shipments:id,channel,ship_time how can I realize sql like this using Gremlin grammar? select channel,avg (ship_time - order_time) from order join shipments…
0
votes
1 answer

How can I get the JanusGraph instance in my java code?

I am having trouble accessing a JanusGraph instance. The documents show sample code such as the following: Graph graph = EmptyGraph.instance(); GraphTraversalSource g = graph.traversal().withRemote("conf/remote-graph.properties"); and it works,…
0
votes
1 answer

Gremlin - how to assign a list of values to a new property, for multiple vertices

Say I have a list of three vertices with IDs 123, 456, and 789. g.V([123,456, 789]) How can I add a new property called say testproperty, for which I have a list of values, ['a', 'b', 'c'], which I want to add at the same time? The pseudo gremlin…
Ian
  • 3,605
  • 4
  • 31
  • 66
0
votes
1 answer

JanusGraph graphTraversalSource.next() throws java.util.NoSuchElementException

GraphTraversalSource throws NoSuchElementException when I try to find an edge though a string value id, but i can find the edge with this id. When I use a String value edge id to find the edge in JanusGraph, I declared a GraphTraversalSource…
0
votes
1 answer

Gremlin - if multiple vertices return multiple values each, how to limit the result to one per vertex

Essentially, I'm trying to modify the following piece of Gremlin code such that instead of operating on a single vertex at a time - signified by g.V(1), it will work with multiple vertices at once (e.g. changing to g.V()), while still only limiting…
Ian
  • 3,605
  • 4
  • 31
  • 66
0
votes
1 answer

Are all maven mirrors the same?

I have following error when using mvn clean install to build janusgraph examples [ERROR] Non-resolvable parent POM for org.janusgraph:janusgraph-examples:[unknown-version]: Could not find artifact org.janusgraph:janusgraph:pom:0.4.0 in…
Litchy
  • 623
  • 7
  • 23
0
votes
1 answer

Integration of Graphexp and JanusGraph via Gremlin

I generated one small graph of 3 nodes in gremlin (JanusGraph; in-memory database), I want to visualize this graph using Graphexp. Please let me know how to integrate these two.
Priyanka
  • 11
  • 3
0
votes
1 answer

Could not find a suitable index to answer graph query and graph scans are disabled: [(~label = user)]:VERTEX

I want to count how many vertices (nodes) are in the graph: gremlin>g.V().count().next() Could not find a suitable index to answer graph query and graph scans are disabled: [(~label = user)]:VERTEX Gremlin.version() is 3.2.9 I use janusGraph hbase…
0
votes
1 answer

Janusgraph troubles to understand how to manipulate data from gremlin query

I'm trying to reconstruct the data retrieved with a gremlin query from a graph. Precisely I'm having troubles finding an efficient way to manipulate the data that comes back. The version of JanusGraph I'm using it's the 0.3.1 and it's running on…
Pistacchio
  • 445
  • 4
  • 15
0
votes
1 answer

How to get [a b] as my output when I pass a,b using values(a,b) in the same order?

I am using gremlin console to check my query working or not. I am able to get the required data but in the reverse order. In the end of my query, I am using values.('id','name').fold() But the output I am getting is [name id]. How to get the…
Himabindu
  • 634
  • 8
  • 22