gremlin-server

Gremlin-Python Connecting to existing JanusGraph

与世无争的帅哥 提交于 2019-12-22 11:14:43
问题 I Have created a graph using gremlin console gremlin> ConfiguredGraphFactory.graphNames ==>MYGRAPH gremlin> ConfiguredGraphFactory.getConfiguration('MYGRAPH') ==>storage.backend=cql ==>graph.graphname=MYGRAPH ==>storage.hostname=127.0.0.1 ==>Template_Configuration=false gremlin> g.V().properties() ==>vp[name->SFO] ==>vp[country->USA] ==>vp[name->ALD] ==>vp[country->IND] ==>vp[name->BLR] ==>vp[country->IND] gremlin> I want to connect with MYGRAPH using gremlin-python. Can someone please tell

JanusGraphException: Could not execute operation due to backend exception

杀马特。学长 韩版系。学妹 提交于 2019-12-22 11:14:37
问题 I'm going crazy because of this exception when starting up JanusGraph. It happened between restarts of the gremlin-server, without even touching the configuration files. This error always appears at the very first startup of gremlin-server. This is the stack trace from the logs: 6911 [main] INFO org.janusgraph.diskstorage.log.kcvs.KCVSLog - Loaded unidentified ReadMarker start time 2019-08-21T17:57:53.794212900Z into org.janusgraph.diskstorage.log.kcvs.KCVSLog$MessagePuller@51efb731 8148

How to get a subgraph consisting of all vertices, that satisfy specific condition

妖精的绣舞 提交于 2019-12-21 21:24:51
问题 The Document and the Revision are two objects that reside in our domain logic specific layer. The Document represents an abstraction around any material piece of paper that you could think of. That is - every contract, invoice or drawing could be called a Document . On the other hand, the material representation of the Document is the Revision : the list of paper, that construction engineer receives on site, represents a Revision of the Document that designer has created. If something in a

gremlin python - add multiple but an unknown number of properties to a vertex

时间秒杀一切 提交于 2019-12-13 16:43:32
问题 I want to add more than one property to a vertex, but from the outset do not explicitly know what those properties might be. For example, say for one person to be added as vertex to the graph, we have the following property dictionary: Person 1 { "id": 1, "first_name": "bob", "age": 25, "height": 177 } Maybe for another vertex to be added, a person has the following properties: Person 2 { "id": 2, "first_name": "joe", "surname": "bloggs", "occupation": "lawyer", "birthday": "12 September" }

Get Gremlin query as a String and execute it in java without submitting it to the GremlinServer

社会主义新天地 提交于 2019-12-13 03:39:06
问题 I have a Gremlin query in the String format (for example "g.V()"). I want to execute this String without submitting it to the GremlinServer. I use the below dependency: <dependency> <groupId>org.apache.tinkerpop</groupId> <artifactId>gremlin-driver</artifactId> <version>3.3.1</version> </dependency> Is there any way? 回答1: You can execute Gremlin string directly in GremlinGroovyScriptEngine or through the GremlinExecutor (which just passes the string to the GremlinGroovyScriptEngine but has

GraphFactory message: GraphFactory could not instantiate this Graph implementation [com.thinkaurelius.titan.core.TitanFactory]

╄→гoц情女王★ 提交于 2019-12-12 03:48:45
问题 I'm trying to make graph queries via a gremlin-shell to a Cassandra backend (locally or remotely). I downloaded a stock Gremlin Server distribution and then installed Titan (as described here in the manual-installation). http://s3.thinkaurelius.com/docs/titan/0.9.0-M1/server.html I added all the property settings and classpath : ~/gremlin-server-3.0.0.M6$ cat conf/titan-cassandra.properties gremlin.graph=com.thinkaurelius.titan.core.TitanFactory storage.backend=cassandrathrift storage

will Gremlin graph queries always perform operations in it's own address space?

我的未来我决定 提交于 2019-12-12 01:29:42
问题 admittedly, most of my database experience is relational. one of the tenets in that space is to avoid moving data over the network. this manifests by using something like: select * from person order by last_name limit 10 which will presumably order and limit within the database engine vs using something like: select * from person and subsequently ordering and taking the top 10 at the client which could have disastrous effects if there are a million person records. so, with Gremlin (from

TinkerPop: Gremlin revisiting visited edges

我的梦境 提交于 2019-12-11 08:46:06
问题 Sample Data: Query to create sample data g.addV("Test1").property("title", "A") g.addV("Test2").property("title", "B") g.addV("Test3").property("title", "C") g.addV("Test4").property("title", "D") g.V().has("Test1", "title", "A").addE("rel").to(g.V().has("Test2", "title", "B")) g.V().has("Test2", "title", "B").addE("rel").to(g.V().has("Test3", "title", "C")) g.V().has("Test3", "title", "C").addE("rel").to(g.V().has("Test4", "title", "D")) Query : Find how A is connected to A Expected answer:

How to Create and Delete edge properties (Titan 1.0) using c# in .net mvc?

僤鯓⒐⒋嵵緔 提交于 2019-12-11 07:59:10
问题 I was using Titan 1.0 with gremlin server to create and delete vertex. I want to implement this logic in my .net project. I wonder if there is any pre build plugin for titan and gremlin server in asp.net? Currently i'm directly using command prompt to create and delete the required vertices and edges. how can I implement it in my .net MVC project? 回答1: I've created one class in my project for interacting with Gremlin server using REST API. you can make small changes to make it work for you.

Programmatically add global variables to gremlin server

强颜欢笑 提交于 2019-12-11 06:01:19
问题 How do I add global variables to an embedded Gremlin server instance? Also, I want to avoid loading the server configuration from a file, although I can load resources from the classpath. 回答1: getGlobalBindings() on GremlinExecutor is indeed deprecated, but the javadoc explains how you should proceed: replaced by getScriptEngineManager() to add global scoped bindings directly to that object. That comes from the 3.2.5 javadoc when it was originally deprecated in preparation for pretty large