Questions tagged [gremlin]

Gremlin is the graph traversal language and virtual machine of Apache TinkerPop™

Gremlin is a graph traversal language and virtual machine, developed by Apache TinkerPop. Gremlin is designed to work with any TinkerPop-enabled graph system, such as Titan, OrientDB, Neo4j, RDF stores like Stardog and Blazegraph, and others.

For more information, see the most recent reference documentation for TinkerPop.

3522 questions
7
votes
1 answer

Tinkerpop3 connect to remote TitanDB server

I am trying to obtain Graph object using Tinkerpop3 in Java as client from already running TitanDB server (I do not want to create server). In other words, I am trying to implement such function: public Graph obtainGraph(String serverIp, String…
spam
  • 1,853
  • 2
  • 13
  • 33
7
votes
2 answers

How can I delete a Vertex in Gremlin Server Titan 1.0

I'm using Titan 1.0 Version and Gremlin Server with REST Api for creating and updating Vertex details. How can I delete the vertex using vertexId?
user6323650
7
votes
2 answers

How to Update the Value of Vertex in Gremlin Server ( Titan 1.0)

I'm having a vertex with following details: http://localhost:8182/?gremlin=g.V(4192) { "requestId": "6ce01f3b-f623-41f6-bb03-dd56014e0701", "status": { "message": "", "code": ​200, "attributes": { } }, "result": { "data": [ { "id":…
Sumit Chourasia
  • 2,394
  • 7
  • 30
  • 57
7
votes
2 answers

Can't delete/remove multiple property keys on Vertex Titan 1.0 Tinkerpop 3

Very basic question, I just upgraded my Titan from 0.54 to Titan 1.0 Hadoop 1 / TP3 version 3.01. I encounter a problem with deleting values of Property key: Cardinality.LIST/SET Maybe it is due to upgrade process or just my TP3 misunderstanding. …
VitalyT
  • 1,671
  • 3
  • 21
  • 49
7
votes
2 answers

Gremlin - Giraph - GraphX ? On TitanDb

I need some help to be confirm my choice... and to learn if you can give me some information. My storage database is TitanDb with Cassandra. I have a very large graph. My goal is to use Mllib on the graph latter. My first idea : use Titan with…
dede
  • 91
  • 1
  • 7
7
votes
4 answers

Gremlin: How do you find vertices without a particular edge?

I've been looking at the Gremlin graph language, and it appears very powerful. However, whilst running through what it can do to evaluate it against requirements, I came across a case that I can't seem to complete. Assuming Gremlin is started, and…
7
votes
2 answers

node degree query on Neo4j with huge graph ( million nodes and links)

How can I get the degree of every single node on Neo4j, and then find out which node has the biggest degree in a very huge graph (2 million nodes and 5 million relationships)? I know I can use Cypher or Gremlin to achieve that, like: start n =…
Arvin
  • 405
  • 1
  • 8
  • 18
6
votes
2 answers

Passing dynamic value inside sample method in gremlin is not working

I am a newbie to the gremlin. I am trying to get some random vertices based on some condition. But if I am using sample method with some mathematical computation it is not working. But if I give integer values it is working fine. The following query…
rajashekar
  • 609
  • 5
  • 19
6
votes
1 answer

Merging maps in Gremlin

I'm trying to write a single query that satisfies two requirements in the response object: Must include all properties of a vertex, without specifying individual fields in the query. Must flatten results at the same level on the object. As…
user839040
6
votes
1 answer

Amazon Neptune Full Text Search - specify fields

So SPARQL documentation contains examples how to specify multiple fields to search for: PREFIX foaf: PREFIX neptune-fts: SELECT * WHERE { SERVICE…
Vojto
  • 6,901
  • 4
  • 27
  • 33
6
votes
2 answers

How to do pagination in NeptuneDB to achieve high performance

Hi I am now building a website using aws NeptuneDB(Gremlin), NodeJs as Backend and Angular as Frontend. Now I am facing a problem, I want to do pagination on my website because without pagination I may load and display 5000 items one query. I know…
Hongli Bu
  • 461
  • 12
  • 37
6
votes
2 answers

Where can I find out what version of Tinkerpop Gremlin, AWS Neptune is using

I am trying to use .valueMap().with(WithOptions.tokens) in my query against AWS Neptune. I get MalformedQueryException. I suspect that this is a new feature in Gremlin 3.4.* I have not been able to find a page that outlines what version of the…
James Render
  • 1,490
  • 1
  • 14
  • 26
6
votes
2 answers

Javascript how to retrieve value from a Map that has an EnumValue as key

I'm querying a database in Javascript where I get back a Map object. The problem is that the key of some entry in the map is an object, an EnumValue to be precise. I can't seem to find a way to directly retrieve this kind of entries. The only that…
Pistacchio
  • 445
  • 4
  • 15
6
votes
2 answers

How to handle vertices with a large number of edges?

In our graph, there are a lot of vertices which have more than 100k of outgoing edges. I would like to know what are the approaches to handle all palettes of situation which come out of this. Let's say that we have a group_1 defined in our graph.…
Michał
  • 616
  • 1
  • 7
  • 22
6
votes
1 answer

Tinkerpop & Python - Setting an array property via gremlin

I'm using JanusGraph with the standard python gremlin binding, and I'd like to set a float[] property on a vertex/edge. However, the Tinkerpop driver for Python doesn't seem able to do so. For example, here is an example with a script running…
Barak Itkin
  • 4,872
  • 1
  • 22
  • 29