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
6
votes
2 answers

Best way to get (millions of rows of) data into Janusgraph via Tinkerpop, with a specific model

Just started out with Tinkerpop and Janusgraph, and I'm trying to figure this out based on the documentation. I have three datasets, each containing about 20 milions rows (csv files) There is a specific model in which the variables and rows need to…
nikolai
  • 63
  • 1
  • 4
6
votes
1 answer

Not able to query using gremlinpython

I'm using gremlinpython to access the data in Janusgraph, but it is throwing an exception whereas the data is accessible from Gremlin shell. Here is the Python code which I'm running remotely: from gremlin_python import statics from…
Samarth
  • 627
  • 6
  • 13
6
votes
1 answer

JanusGraph : Please add a key named "ConfigurationManagementGraph" to the "graphs"

I get the this error in gremlin console cegprakash@cegprakash:~/workspace/janusgraph-0.2.1-hadoop2$ ./bin/gremlin.sh \,,,/ (o o) -----oOOo-(3)-oOOo----- plugin activated: janusgraph.imports plugin activated:…
cegprakash
  • 2,937
  • 33
  • 60
6
votes
5 answers

How to delete graph in amazon Neptune

How to delete Neptune graph or delete all vertex and edges from the graph. Is there also way from the gremlin. Rather than iterating all the nodes and delete single vertex
6
votes
1 answer

Cosmos Db: SQL API + Graph API -- Really multi-model?

This is my scenario: I want to have one single collection where I can insert and query documents using SqlApi and create vertices and edges using Graph Api, all in the same collection. I believed that that was possible taken into account what I've…
6
votes
2 answers

Cosmos Db Graph - Performance and throughput of Gremlin.Net vs Microsoft.Graph

As I'm learning how to use graph with Cosmos DB, I found two Microsoft tutorials: One using Gremlin.Net The other using Microsoft.Azure.Graph pre-release While I use the same query, its execution differs. Using Gremlin.Net, it executes at once. I…
François
  • 3,164
  • 25
  • 58
6
votes
0 answers

Translate Natural English into Gremlin Graph Traversal Language

I am doing some research on how to translate user's input in plain English into Graph Traversal Language, especially Gremlin. However, I cannot find any research papers or source code related with that. Can someone provide me some research papers or…
6
votes
1 answer

Gremlin OLAP queries on AWS Neptune

In the AWS Neptune documentation it says it is Apache TinkerPop Gremlin compatible but it only refers to online transaction processing (OLTP) type of graph traversal queries. I haven't seen anything about long-running online analytical processing…
onurmatik
  • 5,105
  • 7
  • 42
  • 67
6
votes
2 answers

Cosmos DB Graph Edge partitioning

Cosmos DB has pre-announced general availability of Gremlin (Graph API). Probably by the end of 2017 it will get out of preview, so we might consider it stable enough for production. That brings me to the following: We are designing a system with an…
cldons
  • 120
  • 6
6
votes
1 answer

Iterate() step is used in the end of the command when creating nodes and edges through function chaining. What is the use of this step?

Iterate() step is used in the end of the command when creating nodes and edges through function chaining in Tinkerpop 3.3/Gremlin. What is the significance of this iterate() step? I could not find any mention of the iterate() step in the…
livetolearn
  • 221
  • 3
  • 11
6
votes
1 answer

how to escape quotes in gremlin queries

I have this query and as you firstName contains single quote Anthony O'Neil :> g.addV('person') .property('firstName', 'Anthony O'Neil') .property('lastName', 'Andersen') .property('age', 44) Any Ideas how to escape it?
6
votes
5 answers

Insert multiple Vertices at once using Cosmos DB Graph-API

I am looking to quickly insert multiple vertices using Azure Cosmos DB Graph-API. Most of the current Microsoft samples create the vertices one by one and execute a Gremlin query for each, like so: IDocumentQuery query =…
kmcnamee
  • 5,097
  • 2
  • 25
  • 36
6
votes
1 answer

storing a vertex as JSON in CosmosDB

All the examples I've seen using the gremlin API to query a CosmosDB graph use vertices that have one level of properties. But what if we want represent our vertices as JSON documents? user.name = "Mike" user.location.lat =…
mikestaub
  • 2,134
  • 4
  • 24
  • 34
6
votes
2 answers

How to add an edge in Python Gremlin variant

I'm trying to create a graph using gremlin-python, but I can't seem to work out how to add an edge. Using the standard Gremlin console I can do the following: gremlin> a = g.addV().next() ==>v[0] gremlin> b = g.addV().next() ==>v[1] gremlin>…
Matt Hamilton
  • 805
  • 1
  • 9
  • 12
6
votes
2 answers

Create an addEdge() Gremlin query that won't duplicate for Titan

Is there a way to create a unique edge between two vertices on a Titan graph and confirm it can't be created again, unless deleted and recreated? Basically I need to create: vertex1--follows-->vertex2 But I keep creating multiple edges for the same…
brettu
  • 417
  • 1
  • 5
  • 13