未找到 GraqlSemanticException 标签 'database'。请检查服务器日志中的堆栈跟踪

GraqlSemanticException-label 'database' not found. Please check server logs for the stack trace

所以我试图获取 Biograkn usecase for BLAST working , following the steps as per this 视频系列。我能够加载架构,但之后我们需要执行 python migrate.py 将数据加载到其中。我执行了命令,但收到以下错误回溯

Traceback (most recent call last):
  File "/home/aditya/anaconda3/envs/RD/lib/python3.7/site-packages/grakn/service/Session/TransactionService.py", line 161, in send
    response = next(self._response_iterator)
  File "/home/aditya/anaconda3/envs/RD/lib/python3.7/site-packages/grpc/_channel.py", line 364, in __next__
    return self._next()
  File "/home/aditya/anaconda3/envs/RD/lib/python3.7/site-packages/grpc/_channel.py", line 358, in _next
    raise self
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with:
    status = StatusCode.INVALID_ARGUMENT
    details = "GraqlSemanticException-label 'database' not found. Please check server logs for the stack trace."
    debug_error_string = "{"created":"@1582269484.666990683","description":"Error received from peer","file":"src/core/lib/surface/call.cc","file_line":1017,"grpc_message":"GraqlSemanticException-label 'database' not found. Please check server logs for the stack trace.","grpc_status":3}"
>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "migrate.py", line 92, in <module>
    init(data_path="uniprot-asthma-proteins.fasta")
  File "migrate.py", line 23, in init
    session, q_get_database, q_insert_database, "$db"
  File "/home/aditya/Projects/RD/biograkn/blast/util.py", line 14, in insert_if_non_existent
    found_list = list(read_transaction.query(get_query))
  File "/home/aditya/anaconda3/envs/RD/lib/python3.7/site-packages/grakn/client.py", line 131, in query
    return self._tx_service.query(query, infer)
  File "/home/aditya/anaconda3/envs/RD/lib/python3.7/site-packages/grakn/service/Session/TransactionService.py", line 49, in query
    response = self._communicator.send(request)
  File "/home/aditya/anaconda3/envs/RD/lib/python3.7/site-packages/grakn/service/Session/TransactionService.py", line 165, in send
    raise GraknError("Server/network error: {0}\n\n generated from request: {1}".format(e, request))
grakn.exception.GraknError.GraknError: Server/network error: <_Rendezvous of RPC that terminated with:
    status = StatusCode.INVALID_ARGUMENT
    details = "GraqlSemanticException-label 'database' not found. Please check server logs for the stack trace."
    debug_error_string = "{"created":"@1582269484.666990683","description":"Error received from peer","file":"src/core/lib/surface/call.cc","file_line":1017,"grpc_message":"GraqlSemanticException-label 'database' not found. Please check server logs for the stack trace.","grpc_status":3}"
>

 generated from request: query_req {
  query: "match $db isa database, has name \"uniprot\"; get $db;"
}

现在无法理解为什么无法加载。因此请求协助。

架构似乎已经有问题,因为 graql 正在尝试查找标签 "database" 但找不到它。

您可以使用工作库检查您的架构: 1. 连接到您的本地服务器 (localhost:48555) 2. select 你的键空间 ("proteins") 3. 单击左上角 grakn 徽标旁边的层次结构符号

如果模式存在,它将自动可视化。