Tom (a user) has the recipes for three simple desserts:
- A meringue which requires Eggs and Sugar
- A Victoria sponge cake which requires Eggs, Flour, Sugar, Butter and Jam
- A Chocolate cake which requires Eggs, Flour, Sugar, Butter and Cocoa... (More)
This article explains how, using an "isSubset" expression, you can determine whether a set of concept instances is the subset of another set of concept instances. It also gives you an example knowledge map so you can explore the "isSubset" expression inside the Rainbird Studio.
The isSubset expression is used to compare two sets of concept instances and verify that the first is a subset of the second. This can be used to determine if a set of requirements have been met for particular outcomes.
In the example below Rainbird will use the isSubset expression to determine which recipes are viable based on whether a user has the specific ingredients. In essence, the isSubset expression will determine whether the list of ingredients in a recipe is present in the list of ingredients that a user may have in the pantry.
isSubset(%O, requires ingredients, *, %S , has ingredients in pantry, * )
In the following Build Example Rainbird will determine which desserts a user can make by:
Rainbird will then give the user a list of recipes that are possible to make.
Please continue reading the article following the sub-topics: