gremlin

Where to configure GraphSONVersion.V1_0 for JanusGraph Gremlin Server?

纵饮孤独 提交于 2020-01-06 04:40:33
问题 I am using JanusGraph 0.3.1 and gremlin javascript driver from Tinkerpop. I am trying to access the graph and when I try to retrieve the valueMap() in my queries, I am getting type information. Which is not what I was looking for I am looking for plain V1_0 variation of the GraphSON response. Please suggest where I shall update the GraphSON version configuration? on the server? or on the client while creating the client object? In my node js service's package.json I've: "gremlin": "^2.6.0",

Amazon Neptune: Node Properties

烈酒焚心 提交于 2020-01-06 04:34:20
问题 I have ran the gremlin query and get the result but not able to get each vertex properties. Here is the query I have ran: g.V('a6b575a5-e2d3-334d-aa0b-5aa372d71fc0').outE('member').inV().unfold().toList() Here is the result properties are undefined how to get? 2019-05-27T01:21:51.292Z 9f82a2ab-4271-406c-9601-0479899ccb61 [ Vertex { id: '2cb575ab-d398-8a18-4c8c-4d5f6cca6076', label: 'tribe', properties: undefined }, Vertex { id: '5eb575ad-59e5-0878-3d05-297c390b0479', label: 'tribe',

Node.js - Async - multiple innercallbacks within a if statement

孤街浪徒 提交于 2020-01-06 04:34:12
问题 I'm using Node.js and the async library, however I keep seeing the error: Callback was already called . I think I understand why I get the error, however I don't know if it is actually possible to do the following/how can resolve. Basically I want both the innercallbacks to have completed before the outercallback is completed. So the code with which I am facing this issue looks like: async.forEachLimit(inData, 25, function (data, innercallback) { myJson.matches.forEach(function (oMatches) {

Gremlin on Azure CosmosDB: how to project the related vertices' properties?

雨燕双飞 提交于 2020-01-05 07:30:52
问题 I use Microsoft.Azure.Graphs library to connect to a Cosmos DB instance and query the graph database. I'm trying to optimize my Gremlin queries in order to only select those properties that I only require. However, I don't know how to choose which properties to select from edges and vertices. Let's say we start from this query: gremlin> g.V().hasLabel('user'). project('user', 'edges', 'relatedVertices') .by() .by(bothE().fold()) .by(both().fold()) This will return something along the lines of

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 Python in Web Application

浪子不回头ぞ 提交于 2020-01-04 08:15:11
问题 I have a python flask web app, which is querying a Janus graph DB using gremlin_python . One basic question is the correct way to initialize the graph traversal object. Can I initialize my traversal g = traversal().withRemote(DriverRemoteConnection(...) and persist the traversal variable g across requests? (All requests are against the same graph. I tried this and started getting tornado.iostream.StreamClosedError intermittently. Second option is the create a traversal per request. I do not

How to connect Gremlin Server to a remote Neo4j Database?

笑着哭i 提交于 2020-01-03 17:21:05
问题 I have a Question about the Gremlin Server. Is it possible to connect a Gremlin Server to a Neo4j Server (remote database)? At the Moment I have a Neo4j database in my fileysystem and a Gremlin Server which connect to it. Now I want both Servers running with the same Neo4J Database I use: Gremlin Server 3.1.1 Neo4J Community 2.2.8 (can update to 2.3.2) I've found another Question but without answers How to connect Blueprints to a remote neo4j server 回答1: You can use the SteelBridgeLabs/neo4j

gremlin from titan 1.0.0 is not running out of the box on windows

爱⌒轻易说出口 提交于 2020-01-02 05:20:07
问题 I'm following the http://s3.thinkaurelius.com/docs/titan/1.0.0/getting-started.html guide on my windows machine. but i'm getting stuck at the very first step, getting gremlin to run: >bin\gremlin.bat Error opening zip file or JAR manifest missing : ..\lib\jamm-0.3.0.jar Error occurred during initialization of VM agent library failed to init: instrument 回答1: Found a solution in this google group for this issue and more: to run gremlin edit the gremlin.bat file: Change: set LIBDIR=..\lib To:

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

Gremlin date filter approach

谁都会走 提交于 2019-12-31 01:54:12
问题 Is there anyway to query on date in titan/gremlin? e.g. find all results in the last X days Any help would be much appreciated. 回答1: The best approach is to simply store the date as a Long value and to possibly index upon such a field in an edge such that you could take advantage of limit() , interval , etc. See this Titan wiki page on the topic: https://github.com/thinkaurelius/titan/wiki/Vertex-Centric-Indices It maps to your specific request with a Twitter example where it indexes on time