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

TinkerPop Gremlin How to serealize Predicate passed in Until step

I have a traversal where I need to repeat till no more new edges are found. In gremlin console/groovy I achieve this by passing a lambda that always returns false. g.V(7). repeat(out().not(hasLabel('region', 'business')).simplePath()). …
sas1138
  • 338
  • 5
  • 16
3
votes
2 answers

Gremlin filter by max property

new to gremlin and I've been having trouble filtering vertices by a max value. the simple graph looks something like this: source.addV("x").property("id", "1").property("version", 1.0) .addV("x").property("id", "1").property("version",…
sean loyola
  • 1,739
  • 1
  • 11
  • 11
3
votes
2 answers

How do I produce output even when there is no edge and when using select for projection

Can someone help me please with this simple query...Many thanks in advance... I am using the following gremlin query and it works well giving me the original vertex (v) (with id-=12345), its edges (e) and the child vertex (id property). However, say…
nDev
  • 97
  • 2
  • 9
3
votes
2 answers

Java GraphTraversal output Gremlin query

How to output Gremlin query from a Java GraphTraversal object? The default output (graphTraversal.toString()) looks like [HasStep([~label.eq(brand), name.eq(Nike), status.within([VALID])])] which is not easy to read.
coderz
  • 4,847
  • 11
  • 47
  • 70
3
votes
1 answer

Is there a way to store more information on the Edges of Amazon Neptune Graph?

I am doing a small POC project where I want to represent the road network of a village using Amazon's Neptune Graph. I have intersections that I intend to use as Vertex in this graph, and streets as the Edges. A simple representation…
3
votes
1 answer

Add a HashMap of Properties in Tinkerpop

I have a Map of Properties for Example: map[0] = { ("name";"lux"); ("lang";"german") } map[1]= { ("name";"lux") } As you can see map[1] has no property "lang". Now I want to add a Vertex without hard Coding the keys. Is there a way how…
lucas
  • 197
  • 4
  • 14
3
votes
0 answers

Janus Graph Export and Import using GraphJson

I am using the Gremlin I/O library ( GraphSONMapper + GraphSONWriter ) to export already existing Janus graph to a GraphJson. The json file content after export is (export.json) { "id": { "@type": "g:Int64", "@value": 2289864 }, …
roma_user
  • 31
  • 2
3
votes
0 answers

How do I create vertex centric index in JanusGraph

I am trying to build vertex centric Index in Janusgraph. foo = mgmt.makePropertyKey('foo').dataType(String.class).cardinality(org.janusgraph.core.Cardinality.SINGLE).make(); foo_bar = mgmt.makeEdgeLabel('foo_bar').make(); byfoo_bar =…
3
votes
1 answer

Geolocation distance with AWS Neptune?

I'm trying to use Amazon Neptune, in my gremlin query I need to filter nearby users and also filter by other relationships, similar to what Tinder (a dating app) does. So I need a geolocation distance calculation into the query. I can't find that…
fermmm
  • 1,078
  • 1
  • 9
  • 17
3
votes
2 answers

TinkerPop gremlin count vertices only in a path()

When I make a query of a path e.g.: g.V(1).inE().outV().inE().outV().inE().outV().path() There are both vertices and edges in the path(), is there any way to count the number of vertices in the path only and ignore edges?
Henry Bai
  • 367
  • 1
  • 3
  • 17
3
votes
1 answer

graph is not saved

First, I follow these steps to create a graph in JanusGraph. add the following to conf/janusgraph-cassandra-configurationgraph.properties index.search.backend = elasticsearch index.search.hostname =…
Robert Huang
  • 109
  • 1
  • 7
3
votes
2 answers

Sort paths based on Edge properties

Sorting traversal paths based on Edge property and Dedup Hello, I'm having a in memory graph and I want to sort paths based on Edge property and also dedup where paths leading to same destination. E.g. String NAME = "name"; String id =…
Ketan Dhamasana
  • 61
  • 1
  • 1
  • 7
3
votes
1 answer

Janusgraph - How to make case insensitive search with spaces - textContainsRegex not working with spaces

I'm new to the Janusgraph Database. I have a requirement where I need to search the jansugraph with a query parameter. Example I have name with a value, "Janus Graph Engine". To search this, I'm using below predicate with regex…
Shr4N
  • 435
  • 3
  • 18
3
votes
1 answer

How do I get all the edges, associated vertices, and the respective id, label and properties via gremlin-python?

I want to fetch all the edges and associated vertices from my AWS Neptune DB. In addition, I want the id, labels and properties for the nodes as well as edges. My data is a stored as a property graph and I'm using gremlin-python to query it. Below…
Analytical Monk
  • 369
  • 3
  • 14
3
votes
1 answer

Gremlin find highest match

I am planning to use a Graph Database (AWS Neptune) that can be queried with Gremlin as a sort of Knowledge base. The KB would be used as a classification tool on with entities with multiple features. For simplicity, I am using geometric shapes to…
Sanandrea
  • 2,112
  • 1
  • 27
  • 45