You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding a rule from workbase causes an error, while adding the exact same rule via the console is fine.
Environment
Grakn version: Grakn Core 1.5.2
OS of Grakn server: Ubuntu 16.4
Workbase version: 1.2.1
OS of Workbase: Ubuntu 18.04
Other environment details:
Reproducible Steps
Steps to create the smallest reproducible scenario:
It seems I cant upload screen shots, but one is available in slack.
The following is the text I supplied to the form:
name: gp_rule2
when:
(parent: $a, child: $b) isa parentOf;
(parent: $b, child: $c) isa parentOf;
then:
(gprnt: $a, gc: $c) isa grandparentOf;
Expected Output
rule added without a problem
Actual Output
no viable alternative at input '{(parent: $a, child: $b) isa parentOf;\n(parent: $b, child: $c) isa parentOf;\n}'
syntax error at line 3:
}
^
Additional information
I tried creating this exact same rule via the console and had no problem:
define
------
person sub entity,
plays gc,
plays gprnt,
plays child,
plays parent;
parentOf sub relation,
relates child,
relates parent;
grandparentOf sub relation,
relates gprnt,
relates gc;
gp sub rule,
when{
(parent: $a, child: $b) isa parentOf;
(parent: $b, child: $c) isa parentOf;
}, then {
(gprnt: $a, gc: $c) isa grandparentOf;
};
The text was updated successfully, but these errors were encountered:
Description
Adding a rule from workbase causes an error, while adding the exact same rule via the console is fine.
Environment
Reproducible Steps
Steps to create the smallest reproducible scenario:
It seems I cant upload screen shots, but one is available in slack.
The following is the text I supplied to the form:
name: gp_rule2
when:
then:
Expected Output
rule added without a problem
Actual Output
Additional information
I tried creating this exact same rule via the console and had no problem:
The text was updated successfully, but these errors were encountered: