grakn服务器版本为1.3.0。
我有一个4000+行的CSV文件,每行代表一个员工资料记录。 CSV文件有一个称为Reportingline的列,代表员工的行管理的EmployeeID。
我可以成功地将CSV数据迁移到我的Grakn键空间中,但是当我使用以下查询时,我只能返回一条记录。
match
$e isa employee has report-line "00136450";get;
without 'contains' only 1 result returned
当我按如下所示更改上面的查询时,结果是正确的,但这显然对性能造成了很大的影响。
match
$e isa employee has report-line contains "00136450";get;
with 'contains' the result is correct
谁能指出我的查询出了什么问题?如何在没有包含关键字的情况下获得完整结果?
我使用以下架构定义员工
employee sub entity
plays superior
plays subordinate
has employee-id
has employee-name
has report-line
has bu
has email
has phone-number
has division
has title;
employee-id sub attribute datatype string;
employee-name sub attribute datatype string;
report-line sub attribute datatype string;
bu sub attribute datatype string;
email sub attribute datatype string;
phone-number sub attribute datatype string;
division sub attribute datatype string;
title sub attribute datatype string;
我使用以下模板迁移CSV数据。
$x isa employee,
has employee-id <EmployeeID>,
has employee-name <EmployeeName>,
has report-line <ReportLine>,
if(<BU>!=null) do { has bu <BU>,}
has email <Email>,
if(<PhoneNumber>!=null) do { has phone-number <PhoneNumber>,}
if(<Division>!=null) do { has division <Division>,}
has title <Title>;
答案 0 :(得分:0)
感谢您报告此问题。我在这里写信是为了确认该错误已在Grakn 1.4.0中修复。