tinkerpop

Adding multiple vertices, changing one property-value (tinkerpop3 + python GLV)

守給你的承諾、 提交于 2019-12-08 12:03:46
问题 I'm trying to size down my code, but I need several instances of data of this type: g.addV('A').property('a-type','thing-x').property('a-value',1).next() g.addV('A').property('a-type','thing-x').property('a-value',2).next() ... g.addV('A').property('a-type','thing-x').property('a-value',n).next() Up to 'a-value' being n (for instance 50). # I tried a version of a loop I found here # https://stackoverflow.com/questions/40907529/create-multiple-edges-having-vertex-id-number-0-to-49 # g.inject(

“Permanent Exception” connecting Titan 0.4.0 to Datastax AMI

依然范特西╮ 提交于 2019-12-08 04:26:10
问题 I'm new in the Titan realm so I'll keep this question as simple as possible. Using the instructions provided here, I am able to successfully connect 1 linux node running Titan 0.3.2 to the Datastax/Cassandra instance as a backend. I then downloaded Titan 0.4.0 and attempted the same, but receive a backend exception. For good measure, I changed the keyspace to in my .properties file to "titan4", which I then see reflected in the Cassandra backend. However, despite successfully seeing the

TitanDB Index not changing state

只谈情不闲聊 提交于 2019-12-07 16:42:40
问题 I wanted to drop an existing index and followed the steps in the documentation so far. I have no separate indexing backend configured for now. However, when I get to the step where you have to wait for the index status to change using m.awaitGraphIndexStatus it waits forever for the change and times out with the following error: GraphIndexStatusReport[success=false, indexName='usernameComposite', targetStatus=DISABLED, notConverged={username=INSTALLED}, converged={}, elapsed=PT1M0.092S] The

Tinkerpop Frames writing to database - newbie

荒凉一梦 提交于 2019-12-07 12:23:43
问题 I'm having my first go with Frames and my Java is pretty rusty. I'm stuck on writing information through Frames into the database. I've been following the docs and have a Person interface. public interface Person { @Property("name") public String getName(); @Adjacency(label="knows") public Iterable<Person> getKnowsPeople(); @Adjacency(label="knows") public void addKnowsPerson(final Person person); @GremlinGroovy("it.out('knows').out('knows').dedup") //Make sure you use the GremlinGroovy

How do I connect to a remote Neo4j database using gremlin python?

随声附和 提交于 2019-12-07 03:26:45
问题 From what I've read Neo4j implements apache tinkerpop which leads me to think I can use gremlin python and rather than connect to a gremlin server I can point the python code at a neo4j server and treat it like a gremlin server. However I can't find any information online which shows how to do this so I'm thinking maybe I've misunderstood something. a) Can I use gremlin python directly with a neo4j db instance? b) If yes to (a) then how? Thanks Alex 回答1: You can not connect gremlin-python to

TitanDB Index not changing state

风格不统一 提交于 2019-12-05 21:45:08
I wanted to drop an existing index and followed the steps in the documentation so far. I have no separate indexing backend configured for now. However, when I get to the step where you have to wait for the index status to change using m.awaitGraphIndexStatus it waits forever for the change and times out with the following error: GraphIndexStatusReport[success=false, indexName='usernameComposite', targetStatus=DISABLED, notConverged={username=INSTALLED}, converged={}, elapsed=PT1M0.092S] The very same happens when I try to create a new one. Any ideas what could cause this? I'm creating indizes

Tinkerpop Frames writing to database - newbie

China☆狼群 提交于 2019-12-05 21:26:04
I'm having my first go with Frames and my Java is pretty rusty. I'm stuck on writing information through Frames into the database. I've been following the docs and have a Person interface. public interface Person { @Property("name") public String getName(); @Adjacency(label="knows") public Iterable<Person> getKnowsPeople(); @Adjacency(label="knows") public void addKnowsPerson(final Person person); @GremlinGroovy("it.out('knows').out('knows').dedup") //Make sure you use the GremlinGroovy module! #1 public Iterable<Person> getFriendsOfAFriend() } Which is taken from the docs. I can use this

How do I connect to a remote Neo4j database using gremlin python?

こ雲淡風輕ζ 提交于 2019-12-05 10:45:34
From what I've read Neo4j implements apache tinkerpop which leads me to think I can use gremlin python and rather than connect to a gremlin server I can point the python code at a neo4j server and treat it like a gremlin server. However I can't find any information online which shows how to do this so I'm thinking maybe I've misunderstood something. a) Can I use gremlin python directly with a neo4j db instance? b) If yes to (a) then how? Thanks Alex You can not connect gremlin-python to Neo4j Server. gremlin-python contains drivers that connect to Gremlin Server so you must have that installed

Neo4j Multi-tenancy

…衆ロ難τιáo~ 提交于 2019-12-05 04:37:16
What is the best way to achieve multi-tenancy in neo4j? I have seen Tinkerpop and Spring Data. I'm have multiple clients and I would like to store client info in its own database to ensure security. I do not want to use labels or indexes to solve this problem. stephen mallette You mention that you've "seen TinkerPop" but I couldn't tell if that meant you've seen it, considered it and dismissed it as a solution here, so apologies if that is the case and I'm not answering your question. I've successfully used PartitionStrategy (formerly PartitionGraph ) from TinkerPop to achieve multi-tenancy in

Bulbflow: difference between neo4jserver Graph and neo4jserver Neo4jclient

☆樱花仙子☆ 提交于 2019-12-04 22:43:06
问题 I am now trying to learn how to connect to Neo4j server and run Cypher queries on it using Bulbflow from Python. And the thing I do not understand is the difference between two possibilities to connect to the neo4j server: 1) Graph from bulbs.neo4jserver import Graph g = Graph() 2) Neo4jClient from bulbs.neo4jserver import Neo4jClient client = Neo4jClient() Could anyone please explain the conceptual difference here? And which way is it better to choose if I then want to execute (quite a lot