gremlin-server

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

JanusGraph .net C#

前提是你 提交于 2020-05-09 05:32:32
问题 Hey Can anyone help me figure out how I can connect to remote JanusGraph server hosting several graphs and query a specific graph (by graph name) using C# JanusGraph.net ? I can connect to the server but I can't query a specific graph. var c = JanusGraph.Net.JanusGraphClientBuilder.BuildClientForServer(server).Create(); var connection = new DriverRemoteConnection(c); var g = Traversal().WithRemote(connection); How we can implement ConfiguredGraphFactory.create("graphName") or

Measure serialization and deserialization time

情到浓时终转凉″ 提交于 2020-03-16 08:18:42
问题 In addition to my previous question please, is there a way to measure the time it takes gremlin server to serialize and deserialize a query request from the client? For example, if the client is a java application that sends query request to gremlin server running on a remote server, is there a way to measure the time from the point gremlin server receives the request, deserializes it, before running the query? Many thanks 回答1: No - I can't think of how to do that directly, but when you write

create multiple vertices in gremlin graph in local dynamodb

蹲街弑〆低调 提交于 2020-03-06 04:28:59
问题 I have to create multiple vertices in gremlin graph in its console using local DynamoDB few commands. Uses := TitanDB Storage Backend := DynamoDB Server := Gremlin server 回答1: Here's the same example I provided previously gremlin> graph = TitanFactory.open('conf/gremlin-server/dynamodb-local.properties') ==>standardtitangraph[com.amazon.titan.diskstorage.dynamodb.DynamoDBStoreManager:[127.0.0.1]] gremlin> v0 = graph.addVertex('name', 'jason'); v1 = graph.addVertex('name', 'mustaffa'); v0

create multiple vertices in gremlin graph in local dynamodb

大城市里の小女人 提交于 2020-03-06 04:28:04
问题 I have to create multiple vertices in gremlin graph in its console using local DynamoDB few commands. Uses := TitanDB Storage Backend := DynamoDB Server := Gremlin server 回答1: Here's the same example I provided previously gremlin> graph = TitanFactory.open('conf/gremlin-server/dynamodb-local.properties') ==>standardtitangraph[com.amazon.titan.diskstorage.dynamodb.DynamoDBStoreManager:[127.0.0.1]] gremlin> v0 = graph.addVertex('name', 'jason'); v1 = graph.addVertex('name', 'mustaffa'); v0

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<

Bulk load data in titan db from nodejs

南楼画角 提交于 2020-01-06 08:13:06
问题 My current scenario is like I have a rabbit mq which gives me the details of the order placed. On the other side I have my titan db (cassandra storage, es index backends and gremlin server). Yet another I have nodejs application which can interact with gremlin server through http api using https://www.npmjs.com/package/gremlin . I am able to make hits to my graph database from here. Now what I am trying to do is load data from rabbit mq into titan db. What I have been able to do till now is

Gremlin.Net System.InvalidOperationException: 'Deserializer for “janusgraph:RelationIdentifier” not found' exception

北慕城南 提交于 2019-12-24 17:12:54
问题 I am new in janusgraph and tinkerpop. I am using Gremlin.Net 3.2.7 to connect to janusgraph and all the request that return vertexes work fine for me but when I run any operation that return edges like "g.V(61464).outE('father').toList()" an exception in the library: System.InvalidOperationException: 'Deserializer for "janusgraph:RelationIdentifier" not found' the server didn't throw any exception, the serializes configuration are the default: serializers: - { className: org.apache.tinkerpop

Connecting gremlin CLI to a remote tinkerpop gremlin-server

只谈情不闲聊 提交于 2019-12-24 08:17:27
问题 Using gremlin-javascript , I'm connecting to a remote server using: const gremlin = require('gremlin') const Graph = gremlin.structure.Graph const DriverRemoteConnection = gremlin.driver.DriverRemoteConnection const graph = new Graph() const g = graph .traversal() .withRemote(new DriverRemoteConnection('ws://localhost:8182/gremlin')) From the gremlin CLI, I can setup a TinkerGraph using gremlin> graph = TinkerGraph.open() gremlin> g = graph.traversal() However, I'd like to connect to my Graph

ClassCastException while fetching edge property value bewteen two vertices

不问归期 提交于 2019-12-24 01:41:39
问题 I am trying to fetch edge property value between two vertices and getting below exception java.lang.ClassCastException: java.lang.String cannot be cast to scala.runtime.Nothing$ Env: Titan InMemory Code : val age = Key[Int]("age") A ---("knows",age -> 10) --> B Gremlin query: graph.traversal().V().has("ID", "A").bothE("knows").as("x").otherV() .has("ID", "B").select("x").properties("age").headOption().get output : p[age->10] graph.traversal().V().has("ID", "A").bothE("knows").as("x").otherV()