gremlin

How to start Titan graph server and connect with gremlin?

和自甴很熟 提交于 2019-11-30 12:47:14
问题 I've been playing with Titan graph server for a while now. And my feeling is that, despite an extensive documentation, there is a lack of Getting started from scratch tutorial . My final goal is to have a titan running on cassandra and query with StartTheShift/thunderdome. I have seen few ways of starting Titan: Using Rexster from this link, I was able to run a titan server with the following steps: download rexster-server 2.3 download titan 0.3.0 copy all files from titan-all-0.3.0/libs to

Choosing an appropriate way to use Neo4j in Python

房东的猫 提交于 2019-11-30 12:12:55
I am currently using embedded python binding for neo4j. I do not have any issues currently since my graph is very small (sparse and upto 100 nodes). The algorithm I am developing involves quite a lot of traversals on the graph, more specifically DFS on the graph in general as well as on different subgraphs. In the future I intend to run the algorithm on large graphs (supposedly sparse and with millions of nodes). Having read different threads related to the performance of python/neo4j bindings here , here , I wonder whether I should already switch to some REST API client for Python (like

How to start Titan graph server and connect with gremlin?

谁说我不能喝 提交于 2019-11-30 03:08:21
I've been playing with Titan graph server for a while now. And my feeling is that, despite an extensive documentation, there is a lack of Getting started from scratch tutorial . My final goal is to have a titan running on cassandra and query with StartTheShift/thunderdome . I have seen few ways of starting Titan: Using Rexster from this link , I was able to run a titan server with the following steps: download rexster-server 2.3 download titan 0.3.0 copy all files from titan-all-0.3.0/libs to rexster-server-2.3.0/ext/titan edit rexster-server-2.3.0/rexster.xml and add (between a ): <graph>

Choosing an appropriate way to use Neo4j in Python

好久不见. 提交于 2019-11-29 17:59:58
问题 I am currently using embedded python binding for neo4j. I do not have any issues currently since my graph is very small (sparse and upto 100 nodes). The algorithm I am developing involves quite a lot of traversals on the graph, more specifically DFS on the graph in general as well as on different subgraphs. In the future I intend to run the algorithm on large graphs (supposedly sparse and with millions of nodes). Having read different threads related to the performance of python/neo4j

JanusGraph : Please add a key named “ConfigurationManagementGraph” to the “graphs”

≡放荡痞女 提交于 2019-11-29 16:10:15
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: tinkerpop.server plugin activated: tinkerpop.utilities SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/home/cegprakash/workspace/janusgraph-0.2.1-hadoop2/lib/slf4j-log4j12-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/home/cegprakash/workspace/janusgraph-0.2.1-hadoop2/lib/logback-classic-1.1.2.jar!/org/slf4j

store gremlin graph in local dynamodb

家住魔仙堡 提交于 2019-11-29 15:23:54
Hey instead of using aws web I am using its local available database and creating a graph in the gremlin console My PC is using Gremlin-version=3.0.1.incubating and Titan-version=1.0.0 My question: How to save a graph in my local DynamoDB so that i can retrieve it back whenever i wish (after pc restart). I have tried as many and give a lot time by using save() or commit() graph but in order that i always have error g.commit() No signature of method: org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource.commit() is applicable for argument types: () values: [] Possible

Titan Db ignoring index

人盡茶涼 提交于 2019-11-29 11:35:17
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 doubled check: One is called KeyOnNode : property uid and label node : gremlin> g.V().hasLabel("node").has("uid", "xxxxxxxx").profile().cap(...) ==>Traversal Metrics Step Count Traversers Time (ms) % Dur ============================================================================================================= TitanGraphStep([~label.eq(node), uid

gremlin clone a node and its edges

狂风中的少年 提交于 2019-11-29 08:50:40
Does gremlin provide the ability to clone a vertex for instance v1->v2, v1->v3, v1->v4 how can I simply and efficiently create a new vertex v5 that also has edges that point to v2, v3, v4 (the same places that v1's edges point to) without have to explicitly set them and instead saying something like g.createV(v1).clone(v2) . Note that I am using the AWS Neptune version of gremlin, solution must be compatible with that. A clone step doesn't exist (yet), but it can be solved with a single query. Let's start with some sample data: gremlin> g = TinkerFactory.createModern().traversal() ==

GremlinPipeLine java API chain traversal in Titan graph use cases

泪湿孤枕 提交于 2019-11-29 07:48:46
I have use case where in I have to traverse a chain of vertices starting from a particular vertex. Its a linear chain (like a train) with only one vertex connected to the previous.While traversing I have to emit certain vertices based on some criteria until I reach the end of the chain. The second use case is the extension of the above use case but instead of a single chain starting from a single vertex, there are multiple such chains , again starting from a single vertex. I have to traverse each chain and check for a particular property value in the vertices. When that property match is found

Gremlin - only add a vertex if it doesn't exist

佐手、 提交于 2019-11-29 04:43:51
I have an array of usernames (eg. ['abc','def','ghi'] ) to be added under 'user' label in the graph. Now I first want to check if the username already exists ( g.V().hasLabel('user').has('username','def') ) and then add only those for which the username property doesn't match under 'user' label. Also, can this be done in a single gremlin query or groovy script? I am using titan graph database, tinkerpop3 and gremlin REST server. With "scripts" you can always pass a multi-line/command script to the server for processing to get what you want done. This question is then answered with normal