tinkerpop

How can I remotely connect to a JanusGraph server?

别等时光非礼了梦想. 提交于 2019-11-29 04:29:31
I want to use Java API to manipulate graph on a remote server, the server actually hosts in localhost. The code I use to connect server is: JanusGraphFactory.Builder b = JanusGraphFactory.build(); b.set("hosts", "[localhost]"); JanusGraph graph = b.open(); But after I run the program, it throws exception like this: Exception in thread "main" java.lang.IllegalStateException: Need to set configuration value: root.storage.backend So how can I connect to a remote JanusGraph server using Java API? The documentation I've found suggests to create an EmtpyGraph and get a remote traversal from that one

How to import a CSV file into Titan graph database?

跟風遠走 提交于 2019-11-29 02:36:42
Can anyone supply some sample code or hints on how to import a 1MB CSV of nodes, and another 1MB CSV of edges, into Titan graph database running on Cassandra? I've got small CSV files importing via Gremlin, but this doesn't seem appropriate for large files. I've seen Faunus can do this, but I'd like to avoid spending a couple of days setting it up if possible. It looks like BatchGraph might be the way to go ( https://github.com/tinkerpop/blueprints/wiki/Batch-Implementation ) but the example appears to be incomplete. My question was answered at https://groups.google.com/forum/#!topic

Titan Db ignoring index

喜欢而已 提交于 2019-11-28 04:33:52
问题 I have a graph with a couple of indices. They're two composite indices with label restraints. (both are exactly the same just on different properties/labels). One definitely seems to work but the other doesn't. I've done the following profile() to doubled check: One is called KeyOnNode : property uid and label node : gremlin> g.V().hasLabel("node").has("uid", "xxxxxxxx").profile().cap(...) ==>Traversal Metrics Step Count Traversers Time (ms) % Dur =============================================

How can I remotely connect to a JanusGraph server?

試著忘記壹切 提交于 2019-11-27 18:26:08
问题 I want to use Java API to manipulate graph on a remote server, the server actually hosts in localhost. The code I use to connect server is: JanusGraphFactory.Builder b = JanusGraphFactory.build(); b.set("hosts", "[localhost]"); JanusGraph graph = b.open(); But after I run the program, it throws exception like this: Exception in thread "main" java.lang.IllegalStateException: Need to set configuration value: root.storage.backend So how can I connect to a remote JanusGraph server using Java API?