1

in my ontology i got a Recipe-Class which got multiple "children", which are of the class Food. Those foods have Nutritions (protein, carbs, fats...).

Recipe->Food->Nutrition->NutritionAmount

Is it possible to calculate the sum of the proteins of Recipe x with reasoning rules? With Sparql its working well.

Jan Ma
  • 31
  • 3
  • The only way I can suggest is https://github.com/protegeproject/swrlapi/wiki/SQWRLCore#Aggregation – Stanislav Kralin Mar 23 '20 at 19:25
  • OWL reasoning is monotonic. Aggregation is not. A workaround in OWL could be https://sourceforge.net/p/meloproject/code/ci/master/tree/OWL/examples/list_sum.owl – UninformedUser Mar 24 '20 at 04:52

0 Answers0