2016-09-14 53 views
0

啓動思維導圖,並與Graql外殼連接,我嘗試添加一個類型和實例後:Graql外殼不記得查詢

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

然而,當我打開了Visualiser的我做不到請參閱類型或實例。

如果我在shell中運行匹配查詢,我可以看到它很好。

回答

1

對於您在Graql Shell中編寫的每個insertdelete查詢,您需要在最後編寫commit命令。只有這樣你的類型或實例纔會被保存在圖中。

所以你的情況這將是:

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