TITAN

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

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

How to import a CSV file into Titan graph database?

跟風遠走 提交于 2019-11-29 02:36:42
Can anyone supply some sample code or hints on how to import a 1MB CSV of nodes, and another 1MB CSV of edges, into Titan graph database running on Cassandra? I've got small CSV files importing via Gremlin, but this doesn't seem appropriate for large files. I've seen Faunus can do this, but I'd like to avoid spending a couple of days setting it up if possible. It looks like BatchGraph might be the way to go ( https://github.com/tinkerpop/blueprints/wiki/Batch-Implementation ) but the example appears to be incomplete. My question was answered at https://groups.google.com/forum/#!topic

Store Gremlin graph in local DynamoDB

走远了吗. 提交于 2019-11-28 08:50:17
问题 Instead of using AWS, I am using its local available DynamoDB 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? (E.g. after computer restart). I have tried a lot, using save() or commit() graph. But I always got an error: g.commit() No signature of method: org.apache.tinkerpop.gremlin.process.traversal.dsl.graph

Titan Db ignoring index

喜欢而已 提交于 2019-11-28 04:33:52
问题 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 =============================================

GremlinPipeLine java API chain traversal in Titan graph use cases

﹥>﹥吖頭↗ 提交于 2019-11-28 01:35:57
问题 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

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

左心房为你撑大大i 提交于 2019-11-28 01:09:12
问题 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. 回答1: With "scripts" you can always pass a multi-line/command

写给社区的回顾和展望:TiDB 2019, Level Up !

梦想的初衷 提交于 2019-11-27 15:31:09
作者:黄东旭 2018 年对于 TiDB 和 PingCAP 来说是一个由少年向成年的转换的一年,如果用一个关键字来概括就是「蜕变」 。在这一年很欣喜的看到 TiDB 和 TiKV 在越来越多的用户使用在了越来越广泛的场景中,作为一个刚刚 3 岁多的开源项目,没有背后强大的社区的话,是没有办法取得这样的进展的。 同时在技术上,2018 年我觉得也交出了一份令人满意的答卷,TiDB 的几个主要项目今年一共合并了 4380 个提交,这几天在整理 2018 年的 Change Log 时候,对比了一下年初的版本,这 4380 个 Commits 背后代表了什么,这里简单写一个文章总结一下。 回想起来,TiDB 是最早定位为 HTAP 的通用分布式数据库之一,如果熟悉我们的老朋友一定知道,我们最早时候一直都是定位 NewSQL,当然现在也是。但是 NewSQL 这个词有个问题,到底 New 在哪,解决了哪些问题,很难一目了然,其实一开始我们就想解决一个 MySQL 分库分表的问题,但是后来慢慢随着我们的用户越来越多,使用的场景也越来越清晰,很多用户的场景已经开始超出了一个「更大的 MySQL 」的使用范围,于是我们从实验室和学术界找到了我们觉得更加清晰的定义:HTAP,希望能构建一个融合 OLTP 和 OLAP 通用型分布式数据库。但是要达成这个目标非常复杂