tinkerpop

How to add vertices to gremlin server in a batch from Gremlin.NET?

跟風遠走 提交于 2020-05-12 08:28:38
问题 I am trying to populate a graph running in gremlin server with data from my SQL database. I would like to read the data from the database, iterate over the results and add them to the graph. This is done in a c# program so I am using Gremlin.NET bytecode. I CAN do this by doing the c# equivalent of the example found here: https://github.com/krlawrence/graph/blob/master/sample-code/RemoteAddBatch.java And the c# equivalent of the answer found here: Adding multiple vertices, changing one

Re-running an existing route in a Tinkerpop Graph

不羁的心 提交于 2020-04-18 05:47:23
问题 If i have a pre-run route from the shortestPath which is returned as a list of vertex, how can i then re-run that on a graph with the same set of vertices, to return the edges which it has used. i.e. PATH = (V(1), V(2), V(3), V(4), V(5), V(6)), how would the command look to replay that path on a new graph with the same vertices, returning the edges, which contain different properties. So to confirm i need to input this explicit Path to return the edges? 回答1: If I knew my path was [v[1],v[4],v

将Neo4j数据导入到GDB

泄露秘密 提交于 2020-04-17 14:09:23
【推荐阅读】微服务还能火多久?>>> 本文使用具体示例介绍导入Neo4j数据到GDB流程。 在进行操作前需要您已经准备好以下资源。 Neo4j Server ,保存有待导出数据,能正常提供读写服务。 Cypher Shell ,连接到 Neo4j Server ,控制台命令交互,导出数据到文件。 阿里云 GDB ,数据导入的目的端。 阿里云 OSS ,用于临时存放 Neo4j 导出的中间文件,提供给 GDB 导入使用。 中间文件格式 转换工具 graphml2csv.py ,转换graphML格式文件到 GDB 支持的CSV格式。 阿里云 GDB 导入API 小工具 GdbLoader.py ,也可以直接使用 curl 命令交互。 1. 写入测试数据到Neo4j 如果待导出的数据已经保存在Neo4j,可以跳过此步骤,本文演示可操作的完整流程。 在 Cypher-Shell 执行以下语句,写入测试数据(TinkerPop modern) 来源: oschina 链接: https://my.oschina.net/u/4303818/blog/3238391

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

核能气质少年 提交于 2020-03-22 09:20:10
问题 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 be connected, e.g. what are vertices, what are labels, what are edges, etc. After having everything in a graph, I'd like to of course use some basic Gremlin to see how well the model works. But first I need a way to get the data into Janusgraph.

Using valueMap with match()

假如想象 提交于 2020-01-25 11:23:06
问题 I am calling JanusGraph remote, which returns ReferenceVertex by default. In order to retrieve properties as well, I use valueMap(), which works well for simple queries. However, in my use case I need to build a join, which works well based on ReferenceVertex as follows: // select t1.table2_ID, t2.table2_ID from table1 as t1 inner join table2 as t2 on t1.table2_ID = t2.table2_ID GraphTraversal<?, ?> t1 = __.start().as("table1").out("relatesTo").hasLabel("table2").as("table2"); GraphTraversal<

Why does Gremlin JavaScript use “from_” mapping instead of “from”?

岁酱吖の 提交于 2020-01-11 07:20:09
问题 I struggled with this for hours before finding out that you have to use from_ instead of from when using gremlin javascript. After digging through the source code I finally found out that the code is using from_ instead of from (see code). Since I'm a newbie this comes off as strange because its counterpart to is still to (and not to_ , see code here) I googled everywhere but couldn't find the reason why this works this way, and feel uneasy about using the underscore version since most of the

Following GRAPHSON format not working

巧了我就是萌 提交于 2020-01-07 08:47:22
问题 I Am trying to convert the following graphSon Format into a graph instance using the follwing command graph.io(IoCore.graphson()).reader().create().readGraph(stream, graph); But while running converting the GRaphSON into graph instance given below {"id":0, "label":"buyer", "outE": {"email_is": [{"id":0,"inV":1, "properties":{"weight":1} } ]} ,"properties": {"buyer": [{ "id":0,"value":"buyer0" }] ,"age": [{ "id":1,"value":10}] }} {"id":1, "label":"email", "inE": { "email_is": [{"id":1,"outV":0

Gremlin text comparison predicates

ぐ巨炮叔叔 提交于 2020-01-05 05:28:07
问题 My vertice properties partly contain objects like e.g. a File object. When searching with "has" I would like to search for Files by path. I think some kind of text comparison predicates that would do the "toString()" conversion might be helpful here. Are there any standard predicates like this in gremlin/tinkerpop or do I have to implement these my self? I found two related questions in stackoverflow: Gremlin.net textContains equivalent How Gremlin query same sql like for search feature And

Gremlin - Giraph - GraphX ? On TitanDb

橙三吉。 提交于 2020-01-01 05:38:08
问题 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

Learning Blueprints, should I move directly to Tinkerpop 3? [closed]

笑着哭i 提交于 2019-12-25 14:48:30
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I need to learn Gremlin etc. and possibly use it within a public facing production-ready system I'm working on. As any release of my system is, at a minimum, 6 months away (say end Q1 2015), should I switch directly to the new, still pre-release, Tinkerpop 3 implementation,