tinkerpop

How to delete graph in Titan with Cassandra storage backend?

∥☆過路亽.° 提交于 2019-12-04 19:12:06
问题 I use Titan 0.4.0 All, running Rexster in shared VM mode on Ubuntu 12.04. How could I properly delete a graph in Titan which is using the Cassandra storage backend? I have tried the TitanCleanup.clear(graph) , but it does not delete everything. The indices are still there. My real issue is that I have an index which I don't want (it crashes every query), however as I understand Titan's documentation it is impossible to remove an index once it is created. 回答1: You can clear all the edges

How to get id and all properties from a vertex in gremlin?

ε祈祈猫儿з 提交于 2019-12-04 12:22:11
I am using AWS Neptune with gremlin and I want to get the id of a vertex with all properties of the vertex in one query. How can I do this? I have tried g.V().hasLabel('file').valueMap(true) but the output is: { "fileSize": [ "9170" ], "Gremlin.Net.Process.Traversal.T": "f1fce58306f85ca7050503160640d735c9919c8fc85881d65de80bfe31b5ca24", "mimeType": [ "text/html" ] } No label and no id is there. The problem with project('id','label',' fileSize', 'mimeType', 'malwareSource'). by(id). by(label). by('fileSize'). by('mimeType'). by('malwareSource') is that the propertie malwareSource is sometimes

TinkerPop: Adding Vertex Graph API v/s Traversal API

旧城冷巷雨未停 提交于 2019-12-04 01:40:59
问题 Background : In one of the SO posts it is recommended to use Traversal API than Graph API to make mutation. So I tried out some tests and found Graph API seemed to be faster, I do totally believe the advice but I am trying to understand how its better. I did try googling but did not find a similar post Testing : Query 1 : Executed in 0.19734525680541992 seconds g.addV('Test').property('title1', 'abc').property('title2', 'abc') Query 2 : Executed in 0.13838958740234375 seconds graph.addVertex

Bulbflow: difference between neo4jserver Graph and neo4jserver Neo4jclient

£可爱£侵袭症+ 提交于 2019-12-03 14:52:47
I am now trying to learn how to connect to Neo4j server and run Cypher queries on it using Bulbflow from Python. And the thing I do not understand is the difference between two possibilities to connect to the neo4j server: 1) Graph from bulbs.neo4jserver import Graph g = Graph() 2) Neo4jClient from bulbs.neo4jserver import Neo4jClient client = Neo4jClient() Could anyone please explain the conceptual difference here? And which way is it better to choose if I then want to execute (quite a lot of) Cypher queries against the server and ultimately in parallel? PS: I do not have enough reputation to

Gremlin - Giraph - GraphX ? On TitanDb

让人想犯罪 __ 提交于 2019-12-03 14:40:43
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 GraphX but I did not found anything or in development in progress... TinkerPop is not ready yet. So I have a look to Giraph. TinkerPop, Titan can communique with Rexster from TinkerPop. My question is : What are the benefit to use Giraph ? Gremlin seems to do the same think and is distributed. Thank you very much to explain me. I think I don't really

How to delete graph in Titan with Cassandra storage backend?

纵然是瞬间 提交于 2019-12-03 12:27:41
I use Titan 0.4.0 All, running Rexster in shared VM mode on Ubuntu 12.04. How could I properly delete a graph in Titan which is using the Cassandra storage backend? I have tried the TitanCleanup.clear(graph) , but it does not delete everything. The indices are still there. My real issue is that I have an index which I don't want (it crashes every query), however as I understand Titan's documentation it is impossible to remove an index once it is created . You can clear all the edges/vertices with: g.V.remove() but as you have found that won't clear the types/indices previously created. The

Getting vertices that are connected to ALL current vertices

左心房为你撑大大i 提交于 2019-12-02 23:07:55
问题 I might be asking an obvious question, but new to the graphs and gremlin language and got a bit stuck. I have a graph setup where I can find N vertices of a particular type. Let's say I find 2 vertices of type X. These vertices have edges to K vertices of type Y. I want to find vertices of type Y that all have connection to the 3 vertices I found of the type X. In this situation, the vertices of type Y could be connected to either of the 3 vertices of type X, but I want to get only common

Gremlin: adding edges between nodes having the same property

烂漫一生 提交于 2019-12-02 10:12:43
问题 I am very new to Gremlin. I am trying to build a graph on DSE graph using Gremlin. I am able to create the vertices: a = graph.addVertex(label, 'label1', 'key', 1) b = graph.addVertex(label, 'label1', 'key', 2) c = graph.addVertex(label, 'label2', 'key', 1) d = graph.addVertex(label, 'label2', 'key', 2) Now i am looking to automatically add edges between two nodes with differents label where the property 'key' matches (i.e create and edge between a and c, and between b and c). I am stuggling

Gremlin: adding edges between nodes having the same property

徘徊边缘 提交于 2019-12-02 05:03:52
I am very new to Gremlin. I am trying to build a graph on DSE graph using Gremlin. I am able to create the vertices: a = graph.addVertex(label, 'label1', 'key', 1) b = graph.addVertex(label, 'label1', 'key', 2) c = graph.addVertex(label, 'label2', 'key', 1) d = graph.addVertex(label, 'label2', 'key', 2) Now i am looking to automatically add edges between two nodes with differents label where the property 'key' matches (i.e create and edge between a and c, and between b and c). I am stuggling to do that. I tried to do the following g.V().hasLabel("label1").sideEffect{g.V().("label2").has("key"

How to collect all vertex and edge properties along path, with Gremlin

会有一股神秘感。 提交于 2019-12-02 02:10:43
问题 Here's a really simple query: g.V('customerId').out().path() The JSON output of this is { "requestId":"96b26c1d-d032-2004-d36e-c700bd6db2a2", "status":{ "message":"", "code":200, "attributes":{ "@type":"g:Map", "@value":[ ] } }, "result":{ "data":{ "@type":"g:List", "@value":[ { "@type":"g:Path", "@value":{ "labels":{ "@type":"g:List", "@value":[ { "@type":"g:Set", "@value":[ ] }, { "@type":"g:Set", "@value":[ ] } ] }, "objects":{ "@type":"g:List", "@value":[ { "@type":"g:Vertex", "@value":{