vaticle-typedb - 无法在 Grakn 中插入带有键的数据
问题描述
我正在将数据摄取到 Grakn 并收到此错误
[person] 类型的事物不止一个拥有 [person-id] 类型的密钥 [949]。
这是我的查询:
insert $a isa customer, has customer-id "94929", has person-id "949";
这是我的架构:
person sub entity,
key person-id;
customer sub person,
key customer-id;
解决方案
这表明存在类型的实体person
或类型的子类型person
,在数据库中已经具有 id "949"
。如果您运行以下查询,您应该会找到 1 个结果。
match $x isa person, has person-id "949"; get;
推荐阅读
- swift - CryptoSwift 未能部分解密
- makefile - 在makefile中链接规则之前编写编译规则不会产生可执行文件
- r - 相当于 R 中的 *args 并将一个函数总结为自身
- database - 哪个数据库更适合存储 GoogleMap API 的业务信息?
- node.js - Jasmine 测试因数据无效而失败
- spring-boot - Spring boot Quartz 跳过一些工作
- javascript - JavaScript:如何获取选定的下拉值?
- javascript - 当另一个电子表格激活时,是否可以提示显示一个电子表格?
- garbage-collection - 如何获取 JSON/XML 格式的 Eclipse MAT 内存泄漏可疑报告?
- c# - FileSystemWatcher - 在 FileSystemWatcher 正在监视时创建一个新文件,然后尝试访问它会给我一个错误