I'm trying to insert this rule (data is masked):
when {
$d isa person;
$a isa animal;
$r (role-1: $d, role-2: $a) isa relation-1, has attr $ds;
not {$r1 (role-3: $d, role-4: $a) isa relation-2; };
$ds > 0.5;
}, then {
(role-3: $a, role-4: $d, role-5: $ds) isa relation-2;
};
However I keep getting this structural validation error after I do commit
. Please help
INVALID_ARGUMENT: InvalidKBException-A structural validation error has occurred. Please correct the [`1`] errors found.
The rule graph is not stratifiable - it contains following cycles with negation: [[[Base Type [RELATION_TYPE] - Id [V65648] - Label [relation-2] ]]]
. Please check server logs for the stack trace.
All uncommitted data is cleared