Calculation or function in Grakn rules


#1

Hi all,

Fieke here again, still working on the project with ROS interfacing.

Currently we are working on some interactions with rules. There are several thing I tried to put in the then of a rule, which look like they are not possible in Grakn currently. Would they (some of them) be present in Grakn 1.5?

Regards,
Fieke

Functionalities I tried to add in the then of a rule and looked like not working:

  • Adding an attribute value based on another attribute value.
  • Adding an attribute value based on a calculation, count, etc.
  • Calling a (python) function which would start a new process.

#2

The possible scenarios are the following:

  • add a specific attribute based on a set of conditions
  • attach an existing attribute to another entity
  • attach an existing attribute to another entity as its subtype

Attribute arithmetics have no native language support at the moment. However, adding the support is in the road map.

Defining functions other than via defining other rules is not supported.