【发布时间】:2019-07-15 09:04:29
【问题描述】:
我正在尝试从 Grakn examples(客户端 Java)复制 phone_calls 示例。尽管我的键空间列表返回了一个有效的键空间列表,其中包含所需的 phone_calls 键空间,但我得到了一个 INVALID_ARGUMENT: grakn.core.server.exception.TransactionException-Keyspace name is invalid: []. Keyspace name cannot start with a number, and can only contain maximum 48 characters of lower case, alphanumeric and underscore characters 服务器日志没有显示任何其他见解......非常感谢任何帮助!
static void connectAndMigrate(Collection<Input> inputs) throws FileNotFoundException {
GraknClient client = new GraknClient("localhost:48555");
List<String> keyspacesList = new ArrayList<String>();
keyspacesList = client.keyspaces().retrieve();
System.out.println(client.keyspaces().retrieve());
GraknClient.Session session = client.session(keyspacesList.get(0));
for (Input input : inputs) {
System.out.println("Loading from [" + input.getDataPath() + "] into Grakn ...");
loadDataIntoGrakn(input, session);
}
session.close();
client.close();
}
【问题讨论】:
-
你能列出你正在使用的 Grakn 和
client-java的版本号吗? -
我使用 Grakn Core 1.5.7 和 Grakn Client for Java 1.5.0 - 不是一个理想的组合...问题解决了!
标签: java vaticle-typedb