JanusGraph .net C#

前端 未结 1 607
星月不相逢
星月不相逢 2021-01-21 07:59

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 ?

相关标签:
1条回答
  • 2021-01-21 08:14

    DriverRemoteConnection can take another parameter in addition to the GremlinClient argument:

    var c = JanusGraph.Net.JanusGraphClientBuilder.BuildClientForServer(server).Create();
    var connection = new DriverRemoteConnection(c, "graphTraversalSourceName");
    var g = Traversal().WithRemote(connection);
    

    Note that remote traversals do not bind against Graph instances. They bind against a GraphTraversalSource, so you must change "graphTraversalSourceName" to the name of one of those configured objects on the server. When you don't supply this argument, it just defaults to "g" by the way. Also, please note that .NET API documentation can be found here.

    0 讨论(0)
提交回复
热议问题