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
4
votes
4 answers

Valuemap returns array

In Tinkerpop3 valueMap is returning an array, how can I get a real key value pair (without Array)? gremlin> Gremlin.version() ==>3.0.1-incubating :> def trav = g.V().hasLabel('Group'); trav.valueMap() ==>{joinTime=[2016-12-05T22:27:01.088Z],…
Vibgy
  • 577
  • 6
  • 15
4
votes
2 answers

Titan Db ignoring index

I have a graph with a couple of indices. They're two composite indices with label restraints. (both are exactly the same just on different properties/labels). One definitely seems to work but the other doesn't. I've done the following profile() to…
Pomme.Verte
  • 1,782
  • 1
  • 15
  • 32
4
votes
1 answer

Setup and configuration of Titan for a Spark cluster and Cassandra

There are already several questions on the aurelius mailing list as well as here on stackoverflow about specific problems with configuring Titan to get it working with Spark. But what is missing in my opinion is a high-level description of a simple…
Florian Hockmann
  • 2,634
  • 13
  • 24
4
votes
1 answer

How to find all vertices that have no incoming edges in TinkerPop 3?

How would write a traversal in use Gremlin TinkerPop 3 to find all vertices that have no incoming edges? As a follow up I also need to find a vertices that have no outgoing edges as well.
4
votes
2 answers

DSE Graph - Host did not respond in a timely fashion

Gremlin console seems to connect correctly, but it replies "Host did not respond in a timely fashion" after any query. Already checked: - remote.yaml - netstat --listen | grep 8182 (returns nothing) Gremlin lines: plugin activated:…
peleitor
  • 459
  • 7
  • 24
4
votes
1 answer

Orientdb Cant open Database from Java

I created a database out of the orientdb console: create database plocal:/C:/Development/orientdb/databases/testdb root root plocal graph I started the server to make sure my database was created successfully. I opened the…
Mulgard
  • 9,877
  • 34
  • 129
  • 232
4
votes
1 answer

How to import a CSV file into Titan graph database?

Can anyone supply some sample code or hints on how to import a 1MB CSV of nodes, and another 1MB CSV of edges, into Titan graph database running on Cassandra? I've got small CSV files importing via Gremlin, but this doesn't seem appropriate for…
chris
  • 581
  • 10
  • 25
4
votes
2 answers

Titan Graph Database Modularity/Community Detection

Is anyone aware of an existing way to execute a modularity (community detection) algorithm on a Titan graph? I'm looking for something like Gephi's modularity feature which I believe uses https://sites.google.com/site/findcommunities/. The Gephi…
Bob B
  • 4,484
  • 3
  • 24
  • 32
3
votes
1 answer

Gremlin group all returned edges with its vertices

I am a beginner in gremlin with Tinker pop. I have a graph where a cuisine has multiple inE("serves") from restaurants: From these restaurants, I want only two restaurants which have location "Karachi". These are: For this, I've written the query…
plutolaser
  • 448
  • 4
  • 17
3
votes
1 answer

Janusgraph Cache

I was reading about Janusgraph Cache in Janusgraph documentation. I have few doubts Regarding the transaction cache. I'm using an embedded janusgrah server in my application. If I'm only doing a read query for eg. - g. V().has("name","ABC") using…
3
votes
1 answer

How to emit() only complete path or terminated by repeat loop?

My Graph looks like above image. It is simplified form of optical communication network. each vertex transmits one color. when two colors joins ("Mux") then it creates new color and transmits new light. At remote end colours are demuxed and passed…
defender
  • 353
  • 2
  • 11
3
votes
0 answers

Janusgraph SimplePath query is slower on 6 node vs 3 node Cassandra cluster

I am currently using Janusgraph version 0.5.2. I have a graph with about 18 million vertices and 25 million edges. I have two versions of this graph, one backed by a 3 node Cassandra cluster and another backed by 6 Cassandra nodes (both with 3x…
3
votes
2 answers

Gremlin: ConcurrentModificationException and multithreading

My application is not live yet, so I'm testing the performance of my Gremlin queries before it gets into production. To test I'm using a query that adds edges from one vertex to 300 other vertices. It does more things but that's the simple…
fermmm
  • 1,078
  • 1
  • 9
  • 17
3
votes
1 answer

Is there a way to reuse aggregate steps?

I have a graph database storing different types of entities and I am building an API to fetch entities from the graph. It is however a bit more complicated since for each type of entity there is a set of rules that are used for fetching related…
3
votes
1 answer

Tinkerpop Gremlin - How to aggregate variables into traversal independant collections

I'm currently reading The Practitioner's Guide to Graph Data and am trying to solve the following problem (just for learning purposes). The following is in the context of the books movie dataset, which in this example makes use of a "Tag" vertex, a…