问题描述
我是新来的Titan,现在我正尝试连接数据库。
有一个服务器,在这个服务器有一个泰坦图。 / p>
我找到了一些文档:
我想使用下面的代码:
TitanGraph titanGraph = TitanFactory.open(我不知道这里写什么);
BatchGraph bg = new BatchGraph(titanGraph,VertexIDType.STRING,1000);
在此代码块中,我不知道如何配置 TitanFactory。 open()
函数。我应该放什么而不是文本我不知道这里写什么
?
有什么例子使用 TitanFactory
连接到远程钛图?我发现了一些例子,但他们似乎已过时(一些类名和参数现在不同),所以我无法使用它们...
Titan 0.5.4的官方Titan文档位于这里。
如果你是新来的Titan,你应该先去看看。第3章介绍了如何使用TitanFactory.open()。
TitanFactory.open()上的String参数是属性的位置文件,它为图形配置后端存储。在Titan中有几个示例属性文件,您可以尝试。
I'm new to Titan and now I'm trying to connect to database.
There is a server and in this server there is a titan graph.
I found some documentation:
- https://github.com/tinkerpop/blueprints/wiki/Batch-Implementation
- How to import a CSV file into Titan graph database?
And I'm trying to use the following code:
TitanGraph titanGraph = TitanFactory.open("I don't know what to write here");
BatchGraph bg = new BatchGraph(titanGraph, VertexIDType.STRING, 1000);
In this code block I'm not sure how to configure the TitanFactory.open()
function. What should I put instead of the text "I don't know what to write here"
?
Or are there any examples for connecting to a remote titan graph using TitanFactory
? I've found some examples but they seem out of date (some class names and parameters are now different) so I'm unable to use them...
The official Titan documentation for Titan 0.5.4 is located here.http://s3.thinkaurelius.com/docs/titan/0.5.4/
If you're new to Titan, you should start by going through it. Chapter 3 covers getting started with and features an example of how to use TitanFactory.open().http://s3.thinkaurelius.com/docs/titan/0.5.4/getting-started.html#_loading_the_graph_of_the_gods_into_titan
The String parameter on TitanFactory.open() is the location of a properties file which configures the backend storage for the graph. There are several example properties files in the Titan download that you can try out.
这篇关于如何使用TitanFactory.open()?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!