Role Choices

Role Choices enable you to add more than one Role to an Ontology, when writing Rules.

This means you don’t have to duplicate rules for each possible role an ontology might take up. You can simply combine all possible roles for the ontology into one declaration.

These can be used in all declarations where you can mention roles.


VARIABLE is [all] ONTOLOGY, ROLE_1, ... ROLE_N or ROLE_1, ... ROLE_M

A match with the name variable is created for an Instance that has the Ontology ONTOLOGY and either all the Roles before the or (ROLE_1 to ROLE_N), or all the roles after the or (ROLE_1, ... ROLE_M).

In case the optional all is used in the declaration, VARIABLE will hold a list of matching Instances.

Example: single Instance

p is Person, Settlor or BeneficiaryOfTrust

If there is a Person Instance in the Case, with the Role Settlor or BeneficiaryOfTrust, this Instance will be available in the variable p.

Example: list of Instance

ps is all Person, AccountHolder or BeneficialOwner

All Person Instances that have either the Role AccountHolder or BeneficialOwner in the Case, will be will be available in the variable ps.

Last updated