Defining RDF Triple Processing Using Decision Tables - Gnorion/BizVR GitHub Wiki
Defining Decision Tables for RDF Triple Processing
Suppose you have some data about relationships between family members:
And we want to implement some rules of the form:
if X is a parent of Y and Y has a sibling Z then X is a parent of Z
Which will deduce some new parent relationships (shown in red):
We could write a decision table like this (BizVR Examples\Ontologies)
Which will produce these results:
You can also express the conditions more concisely as follows:
And the action section can be written like this:
This approach can be useful sometimes as it reveals more detail on the overall decision diagram:
This is most useful when
- the decision table contains a single rule, or
- the decision table contains multiple rules but the action is simply X (i.e. execute the expression in the left most column)