【问题标题】:Graql shell doesn't remember queriesGraql shell 不记得查询
【发布时间】:2016-09-15 02:19:12
【问题描述】:

在启动思维导图并与 Graql shell 连接后,我尝试添加类型和实例:

insert person isa entity-type;
insert 'carl' isa person;

但是,当我打开可视化器时,我看不到类型或实例。

如果我在 shell 中运行匹配查询,我可以正常查看。

【问题讨论】:

    标签: vaticle-typeql


    【解决方案1】:

    对于您在 Graql Shell 中编写的每个 insertdelete 查询,您需要在末尾编写 commit 命令。只有这样,您的类型或实例才会保留在图表中。

    所以你的情况是:

    insert person isa entity-type;
    insert 'carl' isa person;
    commit
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-04-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-29
      • 2014-09-08
      • 2015-11-20
      相关资源
      最近更新 更多