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

Why is JanusGraph's addVertex() much slower than addV() with a graph traversal?

I'm using JanusGraph to add vertices to a cassandra backed database, and I noticed a large performance discrepancy when it comes to adding a vertex with (1) the addVertex() method provided by the JanusGraph java libraries vs (2) the addV() gremlin…
havenwang
  • 153
  • 9
3
votes
1 answer

How to use Gremlin in Neo4j for Windows or better alternatives?

Currently I am doing research about graph databases. A requirement was that it must have stable bindings with C#/.NET, and should have the possibility to use in production. So I stumbled on Neo4j with the .NET community driver. Which is great, but I…
M1sterPl0w
  • 193
  • 3
  • 14
3
votes
1 answer

Apache Tinkerpop Gremlin Returns Query Results using Select Values As

I have this query that it is working as expected for…
user962206
  • 15,637
  • 61
  • 177
  • 270
3
votes
1 answer

gremlin order by with coalesce duplicates some values

In some cases, I get inexplicable result when I use order().by(...) with coalesce(...). Using the standard Modern graph, gremlin> g.V() .hasLabel("person") .out("created") .coalesce(values("name"), constant("x")) …
To-om
  • 75
  • 6
3
votes
1 answer

Gremlin Query to return multiple Result in a ResultSet

May be my understanding of gremlin query is wrong :). I am trying to execute a query from Java client and the query is: g.V().hasLabel('MYLABEL'). Have multiple (say 20) vertices that match the label and the ResultSet just have one Result with the…
Sony Joseph
  • 189
  • 2
  • 13
3
votes
1 answer

Setting up ScyllaDB + Janusgraph + Tinkerpop

About to start using ScyllaDB with JanusGraph, and Tinperpop3. For now, I'll work with <200 gb data, so I want to do everything on my own (xeon based) computer. My question is mostly: are some versions incompatible with each other? For ScyllaDB I'd…
nick88
  • 118
  • 1
  • 8
3
votes
2 answers

Get array's first item as object in TinkerPop3 Gremlin query and JanusGraph

I faced this issue during a migration of gremlin queries from v2 to v3. V2-way: inE().has(some condition).outV().map().toList()[0] will return an object. This is wrapped in transform{label: it./etc/} step. V3-way, still WIP: inE().has(some…
amankkg
  • 4,503
  • 1
  • 19
  • 30
3
votes
1 answer

TinkerPop: Generic Query to combine and filter multiple traversals

Sample data: TinkerPop Modern Graph Conditions: Is vadas connected to lop within 2 hops Is vadas connected to peter within 3 hops Is vadas connected to does-not-exists in 1 hops (a search that wont give any results) Dummy searches with expected…
Srinath Ganesh
  • 2,496
  • 2
  • 30
  • 60
3
votes
2 answers

Gremlin.Net Get an edges Id, InV, OutV, and properties all in one traversal

Currently, with a single traversal, I can either do: Edge edge = g.E().Next(); var inv = edge.InV; var outv = edge.OutV; var id = edge.Id; which allows me to get an edge's id, as well as the ids of the vertices the edge goes between. Or, I could…
Samuel Barr
  • 434
  • 4
  • 12
3
votes
1 answer

How can I query a remote Apache Tinkerpop Graph Database with Gremlin and Java?

I haven't been able to find a comprehensive example of connecting to and then querying a remote Apache Tinkerpop Graph Database with Gremlin and Java. And I can't quite get it to work. Can anyone that's done something like this before offer any…
SnoopDougg
  • 1,467
  • 2
  • 19
  • 35
3
votes
1 answer

TinkerPop: Adding Vertex Graph API v/s Traversal API

Background: In one of the SO posts it is recommended to use Traversal API than Graph API to make mutation. So I tried out some tests and found Graph API seemed to be faster, I do totally believe the advice but I am trying to understand how its…
Srinath Ganesh
  • 2,496
  • 2
  • 30
  • 60
3
votes
1 answer

SimpleGraph PowerPoint module does not work as expected

I tried this simple unit test but got not what I expected: @Test public void testReadPowerpoint() throws Exception { PowerPointSystem pps=new PowerPointSystem(); pps.connect(); SimpleNode slideShowNode = …
3
votes
1 answer

Graph OLAP processing - Giraph vs. Tinkerpop3 GraphComputer

My use case is a graph of several hundreds of millions of vertices (say 100M to 1B). Each vertex has a set of 10 properties which are basically scores that are computed based on the weights of the vertex's edges and the scores of the adjacent…
Fabien Coppens
  • 273
  • 4
  • 12
3
votes
1 answer

gremlin intersection operation

I'm using the gremlin console v3.3.1. Using the "Modern" graph from the tutorial: http://tinkerpop.apache.org/docs/current/tutorials/getting-started/ Creating the graph with this: gremlin>graph = TinkerFactory.createModern() gremlin>g =…
crig
  • 859
  • 6
  • 19
3
votes
1 answer

Can SWI Prolog program get its facts from the external database?

I am planning SWI Prolog program (semantic natural language parser) which has huge and dynamic set of facts (lexicon with some 30.000 entries). Is it possible to store those facts in external database. Due to other requirements I am considering…
TomR
  • 2,696
  • 6
  • 34
  • 87