SlideShare a Scribd company logo
1 of 45
Download to read offline
Semantic DMN
Formalizing Decision Models with Domain Knowledge
Diego Calvanese1, Marlon Dumas2, Fabrizio M. Maggi2,
Marco Montali1
1Free University of Bozen-Bolzano, Italy
2University of Tartu, Estonia
KRDB
1
montali@inf.unibz.it
RuleML+RR 2017, London, UK
Marco Montali Semantic DMN RuleML+RR 2017 1 / 25
The New Youth of Decision Models
Decision Model and Notation (DMN) standard by OMG:
• Supports elicitation and clean representation of decision models.
• Decision: set of business rules for a single decision with fixed
inputs/outputs. Captured in a table.
• Decision Requirements Diagram: composition of multiple decisions.
Increasingly being adopted in the industry.
• Many tools for modeling, checking, refactoring, applying DMN
models.
Marco Montali Semantic DMN RuleML+RR 2017 2 / 25
Success Factor #1: Timeliness
Organisations are increasingly process-oriented.
• DMN encourages separation of concerns between the process logic
and the decision logic.
• Clarity, modularity, reusability.
Marco Montali Semantic DMN RuleML+RR 2017 3 / 25
Success Factor #1: Timeliness
Organisations are increasingly process-oriented.
• DMN encourages separation of concerns between the process logic
and the decision logic.
• Clarity, modularity, reusability.
From BPMN. . .
Marco Montali Semantic DMN RuleML+RR 2017 3 / 25
Success Factor #1: Timeliness
Organisations are increasingly process-oriented.
• DMN encourages separation of concerns between the process logic
and the decision logic.
• Clarity, modularity, reusability.
. . . to BPMN+DMN
Marco Montali Semantic DMN RuleML+RR 2017 3 / 25
Success Factor #2: Understandability
hereby call a facet. Each row has an identifier, one expression for each input
column (a.k.a. the input entries), and one specific value for each output column
(the output entries). For example, Table 1 shows a DMN table with two input
columns, one output column and four rules.
Loan Grade
U C Annual Loan Grade
Income Size
0 0 VG,G,F,P
A [0..1000] [0..1000] VG
B [250..750] [4000..5000] G
C [500..1500] [500..3000] F
D [2000..2500] [0..2000] P
Table name
Hit indicator
Completeness
indicator
Input attributes
Facet
Output
attribute
Rule
Priority
indicator
Input entries Output entry
Table 1: Sample decision table with its constitutive elements
Given an input configuration consisting of a vector of values (one entry per
column), if every input entry of a row holds true for this input vector, then the
3
Rule conditions specified using the Friendly Enough Expression Language,
coming in two flavours:
• S-FEEL - simple and graphical.
• (full) FEEL - powerful and textual.
We focus on S-FEEL.
Marco Montali Semantic DMN RuleML+RR 2017 4 / 25
Research Questions
Formal semantics:
• What is the semantics of DMN Decision Tables?
• How to efficiently check the correctness of tables and their indicators?
−→ [ ,BPM2016]
Marco Montali Semantic DMN RuleML+RR 2017 5 / 25
Research Questions
Formal semantics:
• What is the semantics of DMN Decision Tables?
• How to efficiently check the correctness of tables and their indicators?
−→ [ ,BPM2016]
Model integration:
• How to assess the overall correctness of processes+decision models?
−→ [Hewelt and Weske,BPMForum2017]
Marco Montali Semantic DMN RuleML+RR 2017 5 / 25
Research Questions
Formal semantics:
• What is the semantics of DMN Decision Tables?
• How to efficiently check the correctness of tables and their indicators?
−→ [ ,BPM2016]
Model integration:
• How to assess the overall correctness of processes+decision models?
−→ [Hewelt and Weske,BPMForum2017]
• How to integrate decision models and background knowledge? DMN
works under the assumption of complete information!
• How to formalise the semantics of such an integrated model?
• How to reassess correctness in this richer setting?
−→ This work!
Marco Montali Semantic DMN RuleML+RR 2017 5 / 25
A Concrete Example
Inspired by the Ship and Port Facility Security Code:
• Ship clearance in the Netherlands.
• March 2016 challenge at dmcommunity.org.
Marco Montali Semantic DMN RuleML+RR 2017 6 / 25
Knowledge of Ships
There are several types of ships, characterised by:
• length (in m);
• draft size (in m);
• capacity (in TEU).
Marco Montali Semantic DMN RuleML+RR 2017 7 / 25
Knowledge of Ships
There are several types of ships, characterised by:
• length (in m);
• draft size (in m);
• capacity (in TEU).
Ship Type Short Length (m) Draft (m) Capacity (TEU)
Converted Cargo Vessel CCV 135 0 – 9 500
Converted Tanker CT 200 0 – 9 800
Cellular Containership CC 215 10 1000 – 2500
Small Panamax Class SPC 250 11 – 12 3000
Large Panamax Class LPC 290 11 – 12 4000
Post Panamax PP 275 – 305 11 – 13 4000 – 5000
Post Panamax Plus PPP 335 13 – 14 5000 – 8000
New Panamax NP 397 15.5 11 000 – 14 500
Marco Montali Semantic DMN RuleML+RR 2017 7 / 25
Knowledge of Ships
There are several types of ships, characterised by:
• length (in m);
• draft size (in m);
• capacity (in TEU).
Ship Type Short Length (m) Draft (m) Capacity (TEU)
Converted Cargo Vessel CCV 135 0 – 9 500
Converted Tanker CT 200 0 – 9 800
Cellular Containership CC 215 10 1000 – 2500
Small Panamax Class SPC 250 11 – 12 3000
Large Panamax Class LPC 290 11 – 12 4000
Post Panamax PP 275 – 305 11 – 13 4000 – 5000
Post Panamax Plus PPP 335 13 – 14 5000 – 8000
New Panamax NP 397 15.5 11 000 – 14 500
Warning!
This is not a decision table. This is a set of constraints relating the ship
types with corresponding possible dimensions.
Marco Montali Semantic DMN RuleML+RR 2017 7 / 25
Clearance Rules
A vessel may enter a port if:
• it is equipped with a valid certificate of registry;
• it meets the safety requirements.
Marco Montali Semantic DMN RuleML+RR 2017 8 / 25
Clearance Rules
A vessel may enter a port if:
• it is equipped with a valid certificate of registry;
• it meets the safety requirements.
Valid certificate of registry
Certificate expiration date > current date.
Safety Requirements
Based on ship characteristics and the amount of residual cargo:
• small ships (with length ≤ 260 m and draft ≤ 10 m) may enter only if their capacity is
≤ 1000 TEU.
• Ships with a small length (≤ 260 m), medium draft > 10 and ≤ 12 m, and capacity
≤ 4000 TEU, may enter only if cargo residuals have ≤ 0.75 mg dry weight per cm2
.
• Medium-sized ships (with length > 260 m and < 320 m, and draft > 10 m and
≤ 13 m), and with a cargo capacity < 6000 TEU, may enter only if their residuals have
≤ 0.5 mg dry weight per cm2
.
• Big ships with length between 320 m and 400 m, draft > 13 m, and capacity
> 4000 TEU, may enter only if their carried residuals have ≤ 0.25 mg dry weight per
cm2
.
Marco Montali Semantic DMN RuleML+RR 2017 8 / 25
Clearance Rules in DMNTable 2: Decision table for determining vessel clearance in Dutch ports; symbol today
is a shortcut for the milliseconds representing time 00:00:00 of the current date.
Vessel Clearance
C U Cer. Exp. Length Draft Capacity Cargo Enter
(date) (m) (m) (TEU) (mg/cm2
)
0 0 0 0 0 Y,N
1  today N
2 > today <260 <10 <1000 Y
3 > today <260 <10 1000 N
4 > today <260 [10,12] <4000 0.75 Y
5 > today <260 [10,12] <4000 >0.75 N
6 > today [260,320) (10,13] <6000 0.5 Y
7 > today [260,320) (10,13] <6000 >0.5 N
8 > today [320,400) 13 >4000 0.25 Y
9 > today [320,400) 13 >4000 >0.25 N
• “ ” is an S-FEEL condition representing any value (i.e., it evaluates to true for every
object in D);
• given a constant v, expressions “v” and “not(v)” are S-FEEL conditions respectively
denoting that the value shall (not) match with v.
• if D is a numerical datatype, given two numbers v1, v2 2 D, the interval expres-
Marco Montali Semantic DMN RuleML+RR 2017 9 / 25
Clearance Rules in DMNTable 2: Decision table for determining vessel clearance in Dutch ports; symbol today
is a shortcut for the milliseconds representing time 00:00:00 of the current date.
Vessel Clearance
C U Cer. Exp. Length Draft Capacity Cargo Enter
(date) (m) (m) (TEU) (mg/cm2
)
0 0 0 0 0 Y,N
1  today N
2 > today <260 <10 <1000 Y
3 > today <260 <10 1000 N
4 > today <260 [10,12] <4000 0.75 Y
5 > today <260 [10,12] <4000 >0.75 N
6 > today [260,320) (10,13] <6000 0.5 Y
7 > today [260,320) (10,13] <6000 >0.5 N
8 > today [320,400) 13 >4000 0.25 Y
9 > today [320,400) 13 >4000 >0.25 N
• “ ” is an S-FEEL condition representing any value (i.e., it evaluates to true for every
object in D);
• given a constant v, expressions “v” and “not(v)” are S-FEEL conditions respectively
denoting that the value shall (not) match with v.
• if D is a numerical datatype, given two numbers v1, v2 2 D, the interval expres-
Key Questions
• Are the table indicators correct?
• Do we need complete information about ships to apply the table? Is it
enough to know certificate expiration, ship type, cargo residuals?
Marco Montali Semantic DMN RuleML+RR 2017 9 / 25
Clearance Rules in DMNTable 2: Decision table for determining vessel clearance in Dutch ports; symbol today
is a shortcut for the milliseconds representing time 00:00:00 of the current date.
Vessel Clearance
C U Cer. Exp. Length Draft Capacity Cargo Enter
(date) (m) (m) (TEU) (mg/cm2
)
0 0 0 0 0 Y,N
1  today N
2 > today <260 <10 <1000 Y
3 > today <260 <10 1000 N
4 > today <260 [10,12] <4000 0.75 Y
5 > today <260 [10,12] <4000 >0.75 N
6 > today [260,320) (10,13] <6000 0.5 Y
7 > today [260,320) (10,13] <6000 >0.5 N
8 > today [320,400) 13 >4000 0.25 Y
9 > today [320,400) 13 >4000 >0.25 N
• “ ” is an S-FEEL condition representing any value (i.e., it evaluates to true for every
object in D);
• given a constant v, expressions “v” and “not(v)” are S-FEEL conditions respectively
denoting that the value shall (not) match with v.
• if D is a numerical datatype, given two numbers v1, v2 2 D, the interval expres-
sions “[v1, v2]”, “[v1, v2)”, “(v1, v2]”, and “(v1, v2)” are S-FEEL conditions (inter-
Correctness of table indicators
• Unique hit: yes!
• Completeness:
no if table considered in isolation;
yes if understood in the context of background knowledge about ships.
Marco Montali Semantic DMN RuleML+RR 2017 9 / 25
Clearance Rules in DMNTable 2: Decision table for determining vessel clearance in Dutch ports; symbol today
is a shortcut for the milliseconds representing time 00:00:00 of the current date.
Vessel Clearance
C U Cer. Exp. Length Draft Capacity Cargo Enter
(date) (m) (m) (TEU) (mg/cm2
)
0 0 0 0 0 Y,N
1  today N
2 > today <260 <10 <1000 Y
3 > today <260 <10 1000 N
4 > today <260 [10,12] <4000 0.75 Y
5 > today <260 [10,12] <4000 >0.75 N
6 > today [260,320) (10,13] <6000 0.5 Y
7 > today [260,320) (10,13] <6000 >0.5 N
8 > today [320,400) 13 >4000 0.25 Y
9 > today [320,400) 13 >4000 >0.25 N
• “ ” is an S-FEEL condition representing any value (i.e., it evaluates to true for every
object in D);
• given a constant v, expressions “v” and “not(v)” are S-FEEL conditions respectively
denoting that the value shall (not) match with v.
• if D is a numerical datatype, given two numbers v1, v2 2 D, the interval expres-
sions “[v1, v2]”, “[v1, v2)”, “(v1, v2]”, and “(v1, v2)” are S-FEEL conditions (inter-
Table application from certificate expiration, ship type, cargo residuals
• From ship type, one can infer partial information about ship
characteristics, using background knowledge.
• Combined with certificate expiration and cargo residuals, this is enough
to unambiguously apply the decision table!
Marco Montali Semantic DMN RuleML+RR 2017 9 / 25
Sources of Decision Knowledge
• DMN Decisions. Defined by the standard.
• Knowledge Base. Multi-sorted FOL theory FOL(D):
◦ Sorts D: correspond to the S-FEEL data types (strings, numbers,
with their comparison predicates).
◦ Concept: unary predicate interpreted over abstract object domain ∆.
◦ Role: Binary predicate relating pairs of objects from ∆.
◦ Feature: Binary predicate relating objects from ∆ to data values from
a selected data type in D.
Marco Montali Semantic DMN RuleML+RR 2017 10 / 25
Sources of Decision Knowledge
• DMN Decisions. Defined by the standard.
• Knowledge Base. Multi-sorted FOL theory FOL(D):
◦ Sorts D: correspond to the S-FEEL data types (strings, numbers,
with their comparison predicates).
◦ Concept: unary predicate interpreted over abstract object domain ∆.
◦ Role: Binary predicate relating pairs of objects from ∆.
◦ Feature: Binary predicate relating objects from ∆ to data values from
a selected data type in D.
Example
Ship Type Short Length (m) Draft (m) Capacity (TEU)
. . . CCV 135 0 – 9 500
∀s.CCV(s) → Ship(s) ∧ ∀l.(length(s, l) → l = 135) ∧
∀d.(draft(s, d) → d ≥ 0 ∧ d ≤ 9) ∧ ∀c.(capacity(s, c) → c = 500)
Marco Montali Semantic DMN RuleML+RR 2017 10 / 25
Combining Decisions and Background Knowledge
Marco Montali Semantic DMN RuleML+RR 2017 11 / 25
Combining Decisions and Background Knowledge
Marco Montali Semantic DMN RuleML+RR 2017 11 / 25
Combining Decisions and Background Knowledge
Marco Montali Semantic DMN RuleML+RR 2017 11 / 25
Combining Decisions and Background Knowledge
Marco Montali Semantic DMN RuleML+RR 2017 11 / 25
Decision Knowledge Bases
Definition (DKB)
A decision knowledge base over datatypes D (D-DKB, or DKB for short)
is a tuple Σ, T , M, C, A , where:
• T is a FOL(D) IKB with signature Σ.
• M is a DMN decision that satisfies the following two typing conditions:
(output uniqueness) M.O ∩ Σ = ∅;
(input type compatibility) for every binary predicate P ∈ Σ whose name
appears in M.I, their types are compatible, i.e.,
M.AType(P) = SigP (2).
• C ∈ ΣC is a bridge concept: a concept from Σ that links T with M.
• A is an ABox over the extended signature Σ ∪ M.I.
Example
The combination of the knowledge base of ships with the vessel clearance
DMN decision, using Ship as bridge concept.
Marco Montali Semantic DMN RuleML+RR 2017 12 / 25
Formalising DKBs
Encode the DMN decision in FOL(D):
• Using the bridge concept as reference concept.
• Then simply enriching the original KB with the so-obtained additional
axioms.
Marco Montali Semantic DMN RuleML+RR 2017 13 / 25
Formalising DKBs
Encode the DMN decision in FOL(D):
• Using the bridge concept as reference concept.
• Then simply enriching the original KB with the so-obtained additional
axioms.
Marco Montali Semantic DMN RuleML+RR 2017 13 / 25
Encoding of Attributes (1)
Signature extended by introducing:
• A feature for each input attribute of the decision that is not already
used in the KB.
• A feature for each combination of output attribute-rule: output feature
+ its provenance.
Example
8 D. Calvanese, M. Dumas, F.M. Maggi, M. Montali
Table 2: Decision table for determining vessel clearance in Dutch ports; symbol today
is a shortcut for the milliseconds representing time 00:00:00 of the current date.
Vessel Clearance
C U Cer. Exp. Length Draft Capacity Cargo Enter
(date) (m) (m) (TEU) (mg/cm2
)
0 0 0 0 0 Y,N
1  today N
2 > today <260 <10 <1000 Y
3 > today <260 <10 1000 N
4 > today <260 [10,12] <4000 0.75 Y
5 > today <260 [10,12] <4000 >0.75 N
6 > today [260,320) (10,13] <6000 0.5 Y
7 > today [260,320) (10,13] <6000 >0.5 N
8 > today [320,400) 13 >4000 0.25 Y
9 > today [320,400) 13 >4000 >0.25 N
• 2 new features for CerExp and Cargo;
• 9 new features for Enter, i.e., Enteri for rule i (i ∈ {1, . . . , 9}).
Marco Montali Semantic DMN RuleML+RR 2017 14 / 25
Encoding of Attributes (2)
For each input/output feature, add 2 axioms:
• Typing axiom: the domain of the feature is the bridge concept.
• Functionality axiom: no two attributes of the same kind.
◦ For input features: non-ambiguous application of rules.
◦ For output features: simply asserts that an output cell contains a
single value.
Example
8 D. Calvanese, M. Dumas, F.M. Maggi, M. Montali
Table 2: Decision table for determining vessel clearance in Dutch ports; symbol today
is a shortcut for the milliseconds representing time 00:00:00 of the current date.
Vessel Clearance
C U Cer. Exp. Length Draft Capacity Cargo Enter
(date) (m) (m) (TEU) (mg/cm2
)
0 0 0 0 0 Y,N
1  today N
2 > today <260 <10 <1000 Y
3 > today <260 <10 1000 N
4 > today <260 [10,12] <4000 0.75 Y
5 > today <260 [10,12] <4000 >0.75 N
6 > today [260,320) (10,13] <6000 0.5 Y
7 > today [260,320) (10,13] <6000 >0.5 N
8 > today [320,400) 13 >4000 0.25 Y
For the Length attribute:
∀x, y.length(x, y) → Ship(x). ∀x, y, z.length(x, y)∧length(x, z) → y = z.
Marco Montali Semantic DMN RuleML+RR 2017 15 / 25
Encoding Attributes
Extended by introducing:
• A feature for each input attribute of the decision that is not already
used in the KB.
• A feature for each combination of output attribute-rule: output feature
+ its provenance.
Example
8 D. Calvanese, M. Dumas, F.M. Maggi, M. Montali
Table 2: Decision table for determining vessel clearance in Dutch ports; symbol today
is a shortcut for the milliseconds representing time 00:00:00 of the current date.
Vessel Clearance
C U Cer. Exp. Length Draft Capacity Cargo Enter
(date) (m) (m) (TEU) (mg/cm2
)
0 0 0 0 0 Y,N
1  today N
2 > today <260 <10 <1000 Y
3 > today <260 <10 1000 N
4 > today <260 [10,12] <4000 0.75 Y
5 > today <260 [10,12] <4000 >0.75 N
6 > today [260,320) (10,13] <6000 0.5 Y
7 > today [260,320) (10,13] <6000 >0.5 N
8 > today [320,400) 13 >4000 0.25 Y
9 > today [320,400) 13 >4000 >0.25 N
• 2 new features for CerExp and Cargo;
• 9 new features for Enter: Enteri for rule i (i ∈ {1, . . . , 9}).
Marco Montali Semantic DMN RuleML+RR 2017 16 / 25
Encoding of S-FEEL Conditions
Quite straightforward: an S-FEEL condition is nothing else than a unary
FOL(D) formula.
S-FEEL Translation Function
Given an S-FEEL condition Q, function τx(Q) builds a unary FOL(D)
formula that encodes the application of Q to x.
τx
(Q)



true if Q = “−”
x v if Q = “not(v)”
x = v if Q = “v”
x ≈ v if Q = “≈ v” and ≈ ∈ {<, >, ≤, ≥}
x > v1 ∧ x < v2 if Q = “(v1..v2)”
. . . (similarly for the other types of intervals)
τx(Q1) ∨ τx(Q2) if Q = “Q1,Q2”
Marco Montali Semantic DMN RuleML+RR 2017 17 / 25
Encoding of Attribute Facets
Each attribute facet becomes an axiom:
• The facet constrains the range of the corresponding feature.
• The facet is an S-FEEL condition: just translate it to get the constraint.
Example
8 D. Calvanese, M. Dumas, F.M. Maggi, M. Montali
Table 2: Decision table for determining vessel clearance in Dutch ports; symbol today
is a shortcut for the milliseconds representing time 00:00:00 of the current date.
Vessel Clearance
C U Cer. Exp. Length Draft Capacity Cargo Enter
(date) (m) (m) (TEU) (mg/cm2
)
0 0 0 0 0 Y,N
1  today N
2 > today <260 <10 <1000 Y
3 > today <260 <10 1000 N
4 > today <260 [10,12] <4000 0.75 Y
5 > today <260 [10,12] <4000 >0.75 N
6 > today [260,320) (10,13] <6000 0.5 Y
7 > today [260,320) (10,13] <6000 >0.5 N
8 > today [320,400) 13 >4000 0.25 Y
9 > today [320,400) 13 >4000 >0.25 N
For Length: ∀x, y.length(x, y) → y ≥ 0.
Marco Montali Semantic DMN RuleML+RR 2017 18 / 25
Encoding of Rules
DMN rule as an implication: whenever an instance of the bridge concept
satisfies all input conditions, then it must be related to the output values.
Marco Montali Semantic DMN RuleML+RR 2017 19 / 25
Encoding of Rules
DMN rule as an implication: whenever an instance of the bridge concept
satisfies all input conditions, then it must be related to the output values.
Marco Montali Semantic DMN RuleML+RR 2017 19 / 25
Encoding of Rules
DMN rule as an implication: whenever an instance of the bridge concept
satisfies all input conditions, then it must be related to the output values.
Marco Montali Semantic DMN RuleML+RR 2017 19 / 25
Encoding of Rules: ExampleTable 2: Decision table for determining vessel clearance in Dutch ports; symbol today
is a shortcut for the milliseconds representing time 00:00:00 of the current date.
Vessel Clearance
C U Cer. Exp. Length Draft Capacity Cargo Enter
(date) (m) (m) (TEU) (mg/cm2
)
0 0 0 0 0 Y,N
1  today N
2 > today <260 <10 <1000 Y
3 > today <260 <10 1000 N
4 > today <260 [10,12] <4000 0.75 Y
5 > today <260 [10,12] <4000 >0.75 N
6 > today [260,320) (10,13] <6000 0.5 Y
7 > today [260,320) (10,13] <6000 >0.5 N
8 > today [320,400) 13 >4000 0.25 Y
9 > today [320,400) 13 >4000 >0.25 N
• “ ” is an S-FEEL condition representing any value (i.e., it evaluates to true for every
object in D);
• given a constant v, expressions “v” and “not(v)” are S-FEEL conditions respectively
denoting that the value shall (not) match with v.
• if D is a numerical datatype, given two numbers v1, v2 2 D, the interval expres-
Encoding of rule #2:
∀x,e, l, d, c. exp(x, e) ∧ e > today ∧ length(x, l) ∧ l < 260
∧ draft(x, d) ∧ d < 10 ∧ cap(x, c) ∧ c < 1000 → ∃o.enter2(x, o) ∧ o = Y.
Marco Montali Semantic DMN RuleML+RR 2017 20 / 25
Fundamental Reasoning Tasks for DKBs
I/O Relationship
Input:
• DKB X,
• object c ∈ ∆ of type C,
• output attribute Po ∈ M.O,
• value v ∈ M.AType(Po).
Question: Is it the case that X assigns output v?
Table Completeness (C indicator)
Input: IDKB X (intensional, no data).
Question: Is it the case that, for every possible input, at least one rule of
the decision in X is guaranteed to trigger?
Correctness of Unique Hit (U indicator)
Input: IDKB X (intensional, no data).
Question: Is it the case that rules in the decision of X do not overlap?
Marco Montali Semantic DMN RuleML+RR 2017 21 / 25
Reasoning on DKBs
Fact
All such reasoning tasks can be encoded as logical implication checks in
FOL(D).
This is of no help.
Marco Montali Semantic DMN RuleML+RR 2017 22 / 25
Reasoning on DKBs
Fact
All such reasoning tasks can be encoded as logical implication checks in
FOL(D).
This is of no help.
Idea
Investigate suitable fragments of FOL(D) that:
• Are expressive enough to encode DMN decisions.
• Have decidable reasoning (understanding its complexity).
Description logics with data types are the natural candidate for this!
Marco Montali Semantic DMN RuleML+RR 2017 22 / 25
Reasoning on DKBs
Fact
All such reasoning tasks can be encoded as logical implication checks in
FOL(D).
This is of no help.
Idea
Investigate suitable fragments of FOL(D) that:
• Are expressive enough to encode DMN decisions.
• Have decidable reasoning (understanding its complexity).
Description logics with data types are the natural candidate for this!
We investigate in particular the usage of ALC(D):
• Well-known ALC extended with data types (not interacting with each
other).
• Reasoning (e.g., subsumption): ExpTime-complete.
• Goes well with S-FEEL!
Marco Montali Semantic DMN RuleML+RR 2017 22 / 25
Encoding DMN Decisions into ALC(D)
We reconstruct the encoding of DMN decisions into FOL(D), using
ALC(D).
8 D. Calvanese, M. Dumas, F.M. Maggi, M. Montali
Table 2: Decision table for determining vessel clearance in Dutch ports; symbol today
is a shortcut for the milliseconds representing time 00:00:00 of the current date.
Vessel Clearance
C U Cer. Exp. Length Draft Capacity Cargo Enter
(date) (m) (m) (TEU) (mg/cm2
)
0 0 0 0 0 Y,N
1  today N
2 > today <260 <10 <1000 Y
3 > today <260 <10 1000 N
4 > today <260 [10,12] <4000 0.75 Y
5 > today <260 [10,12] <4000 >0.75 N
6 > today [260,320) (10,13] <6000 0.5 Y
7 > today [260,320) (10,13] <6000 >0.5 N
8 > today [320,400) 13 >4000 0.25 Y
9 > today [320,400) 13 >4000 >0.25 N
• “ ” is an S-FEEL condition representing any value (i.e., it evaluates to true for every
object in D);
• given a constant v, expressions “v” and “not(v)” are S-FEEL conditions respectively
denoting that the value shall (not) match with v.
Encoding of rule #2:
∀x,e, l, d, c. exp(x, e) ∧ e > today ∧ length(x, l) ∧ l < 260
∧ draft(x, d) ∧ d < 10 ∧ cap(x, c) ∧ c < 1000 → ∃o.enter2(x, o) ∧ o = Y.
Encoding of rule #2 in ALC(D):
∀exp.real[>today] ∀length.real[<260] ∀draft.real[<10] ∀cap.real[<1000]
∃enter2 ∀enter2.stri
Marco Montali Semantic DMN RuleML+RR 2017 23 / 25
Main Results
Consider now an ALC(D) DKB, where the background knowledge is
expressed in ALC(D) (e.g., ship types).
Theorem
The translation into FOL(D) is logically equivalent to the translation into
ALC(D).
Marco Montali Semantic DMN RuleML+RR 2017 24 / 25
Main Results
Consider now an ALC(D) DKB, where the background knowledge is
expressed in ALC(D) (e.g., ship types).
Theorem
The translation into FOL(D) is logically equivalent to the translation into
ALC(D).
Theorem
The I/O relationship, table completeness, and correctness of unique hit
problems can all be decided in ExpTime for ALC(D) DKBs.
Proof.
The proof is based on a reduction from the three decision problems to a
polynomial number of instance or subsumption checks w.r.t. an ALC(D)
KB, which can be decided in ExpTime.
Marco Montali Semantic DMN RuleML+RR 2017 24 / 25
Conclusions
• Importance of combining DMN decisions with other models.
• In this work: combination with background knowledge, reasoning under
incomplete information.
Many future avenues:
• Combination with (data-aware) process models, reconstructing
verification in this richer setting.
• Lightweight DKBs: DMN Decisions can be expressed in the logic
DL-Lite
(HN)
bool (D) (conjecture: reasoning in CoNP).
• Closed-open models.
• Identification of minimal set of inputs you need to know for
non-ambiguously applying the decision logic (interpolation, epistemic
interpretation, . . . ).
Marco Montali Semantic DMN RuleML+RR 2017 25 / 25

More Related Content

Similar to Semantic DMN: Formalizing Decision Models with Domain Knowledge

LOGISTIC SOLUTIONS FOR ITC
LOGISTIC SOLUTIONS FOR ITCLOGISTIC SOLUTIONS FOR ITC
LOGISTIC SOLUTIONS FOR ITCSaurav Mann
 
A Maritime Technology Partner for Growth and Innovation - ST Engineering iDirect
A Maritime Technology Partner for Growth and Innovation - ST Engineering iDirectA Maritime Technology Partner for Growth and Innovation - ST Engineering iDirect
A Maritime Technology Partner for Growth and Innovation - ST Engineering iDirectST Engineering iDirect
 
MPV Update – Issue 2016
MPV Update – Issue 2016MPV Update – Issue 2016
MPV Update – Issue 2016Jost Bergmann
 
Scandinavian Rail Development 2013 - Elisabeth Lindgren
Scandinavian Rail Development 2013 - Elisabeth LindgrenScandinavian Rail Development 2013 - Elisabeth Lindgren
Scandinavian Rail Development 2013 - Elisabeth LindgrenRussell Publishing
 
Material Handling &amp; Warehousing Equipment
Material Handling &amp; Warehousing EquipmentMaterial Handling &amp; Warehousing Equipment
Material Handling &amp; Warehousing EquipmentHeidi Jennings
 
171130 Dimanex MSc project (Pieter Ruijssenaars-Elise Kok)
171130 Dimanex MSc project (Pieter Ruijssenaars-Elise Kok)171130 Dimanex MSc project (Pieter Ruijssenaars-Elise Kok)
171130 Dimanex MSc project (Pieter Ruijssenaars-Elise Kok)SINTAS
 
Webinar - Innovatie en Asset Management in de tankopslag
Webinar - Innovatie en Asset Management in de tankopslagWebinar - Innovatie en Asset Management in de tankopslag
Webinar - Innovatie en Asset Management in de tankopslagStork
 
Scheduling by Primavera - Training
Scheduling by Primavera - TrainingScheduling by Primavera - Training
Scheduling by Primavera - TrainingMohammed Feroze
 
Advanced Econometrics L13-14.pptx
Advanced Econometrics L13-14.pptxAdvanced Econometrics L13-14.pptx
Advanced Econometrics L13-14.pptxakashayosha
 
dokumen.tips_ce-utilization-calculation-for-ericsson-566f3b8aa9131.pdf
dokumen.tips_ce-utilization-calculation-for-ericsson-566f3b8aa9131.pdfdokumen.tips_ce-utilization-calculation-for-ericsson-566f3b8aa9131.pdf
dokumen.tips_ce-utilization-calculation-for-ericsson-566f3b8aa9131.pdflugano6
 

Similar to Semantic DMN: Formalizing Decision Models with Domain Knowledge (20)

Putting decisions in perspective(s)
Putting decisions in perspective(s)Putting decisions in perspective(s)
Putting decisions in perspective(s)
 
LOGISTIC SOLUTIONS FOR ITC
LOGISTIC SOLUTIONS FOR ITCLOGISTIC SOLUTIONS FOR ITC
LOGISTIC SOLUTIONS FOR ITC
 
Dmt
DmtDmt
Dmt
 
A Maritime Technology Partner for Growth and Innovation - ST Engineering iDirect
A Maritime Technology Partner for Growth and Innovation - ST Engineering iDirectA Maritime Technology Partner for Growth and Innovation - ST Engineering iDirect
A Maritime Technology Partner for Growth and Innovation - ST Engineering iDirect
 
MPV Update – Issue 2016
MPV Update – Issue 2016MPV Update – Issue 2016
MPV Update – Issue 2016
 
Scandinavian Rail Development 2013 - Elisabeth Lindgren
Scandinavian Rail Development 2013 - Elisabeth LindgrenScandinavian Rail Development 2013 - Elisabeth Lindgren
Scandinavian Rail Development 2013 - Elisabeth Lindgren
 
Material Handling &amp; Warehousing Equipment
Material Handling &amp; Warehousing EquipmentMaterial Handling &amp; Warehousing Equipment
Material Handling &amp; Warehousing Equipment
 
171130 Dimanex MSc project (Pieter Ruijssenaars-Elise Kok)
171130 Dimanex MSc project (Pieter Ruijssenaars-Elise Kok)171130 Dimanex MSc project (Pieter Ruijssenaars-Elise Kok)
171130 Dimanex MSc project (Pieter Ruijssenaars-Elise Kok)
 
Mark Leja & Mike Ghilotti: Partnering in Construction
Mark Leja & Mike Ghilotti: Partnering in ConstructionMark Leja & Mike Ghilotti: Partnering in Construction
Mark Leja & Mike Ghilotti: Partnering in Construction
 
Putting Decisions in Perspective(s)
Putting Decisions in Perspective(s)Putting Decisions in Perspective(s)
Putting Decisions in Perspective(s)
 
Webinar - Innovatie en Asset Management in de tankopslag
Webinar - Innovatie en Asset Management in de tankopslagWebinar - Innovatie en Asset Management in de tankopslag
Webinar - Innovatie en Asset Management in de tankopslag
 
Scheduling by Primavera - Training
Scheduling by Primavera - TrainingScheduling by Primavera - Training
Scheduling by Primavera - Training
 
ISKRAEMECO presentation v2.0
ISKRAEMECO presentation v2.0ISKRAEMECO presentation v2.0
ISKRAEMECO presentation v2.0
 
From Case-Isolated to Object-Centric Processes
From Case-Isolated to Object-Centric ProcessesFrom Case-Isolated to Object-Centric Processes
From Case-Isolated to Object-Centric Processes
 
Century OEM Corporate Profile
Century OEM Corporate ProfileCentury OEM Corporate Profile
Century OEM Corporate Profile
 
SINORT TRADING PROFILE LATEST
SINORT TRADING PROFILE LATESTSINORT TRADING PROFILE LATEST
SINORT TRADING PROFILE LATEST
 
Advanced Econometrics L13-14.pptx
Advanced Econometrics L13-14.pptxAdvanced Econometrics L13-14.pptx
Advanced Econometrics L13-14.pptx
 
dokumen.tips_ce-utilization-calculation-for-ericsson-566f3b8aa9131.pdf
dokumen.tips_ce-utilization-calculation-for-ericsson-566f3b8aa9131.pdfdokumen.tips_ce-utilization-calculation-for-ericsson-566f3b8aa9131.pdf
dokumen.tips_ce-utilization-calculation-for-ericsson-566f3b8aa9131.pdf
 
Traffic Fms 050209
Traffic Fms 050209Traffic Fms 050209
Traffic Fms 050209
 
2011 - WCECS2011
2011 - WCECS20112011 - WCECS2011
2011 - WCECS2011
 

More from Faculty of Computer Science - Free University of Bozen-Bolzano

More from Faculty of Computer Science - Free University of Bozen-Bolzano (20)

From Case-Isolated to Object-Centric Processes - A Tale of two Models
From Case-Isolated to Object-Centric Processes - A Tale of two ModelsFrom Case-Isolated to Object-Centric Processes - A Tale of two Models
From Case-Isolated to Object-Centric Processes - A Tale of two Models
 
Reasoning on Labelled Petri Nets and Their Dynamics in a Stochastic Setting
Reasoning on Labelled Petri Nets and Their Dynamics in a Stochastic SettingReasoning on Labelled Petri Nets and Their Dynamics in a Stochastic Setting
Reasoning on Labelled Petri Nets and Their Dynamics in a Stochastic Setting
 
Constraints for Process Framing in Augmented BPM
Constraints for Process Framing in Augmented BPMConstraints for Process Framing in Augmented BPM
Constraints for Process Framing in Augmented BPM
 
Intelligent Systems for Process Mining
Intelligent Systems for Process MiningIntelligent Systems for Process Mining
Intelligent Systems for Process Mining
 
Declarative process mining
Declarative process miningDeclarative process mining
Declarative process mining
 
Process Reasoning and Mining with Uncertainty
Process Reasoning and Mining with UncertaintyProcess Reasoning and Mining with Uncertainty
Process Reasoning and Mining with Uncertainty
 
Modeling and Reasoning over Declarative Data-Aware Processes
Modeling and Reasoning over Declarative Data-Aware ProcessesModeling and Reasoning over Declarative Data-Aware Processes
Modeling and Reasoning over Declarative Data-Aware Processes
 
Soundness of Data-Aware Processes with Arithmetic Conditions
Soundness of Data-Aware Processes with Arithmetic ConditionsSoundness of Data-Aware Processes with Arithmetic Conditions
Soundness of Data-Aware Processes with Arithmetic Conditions
 
Probabilistic Trace Alignment
Probabilistic Trace AlignmentProbabilistic Trace Alignment
Probabilistic Trace Alignment
 
Strategy Synthesis for Data-Aware Dynamic Systems with Multiple Actors
Strategy Synthesis for Data-Aware Dynamic Systems with Multiple ActorsStrategy Synthesis for Data-Aware Dynamic Systems with Multiple Actors
Strategy Synthesis for Data-Aware Dynamic Systems with Multiple Actors
 
Extending Temporal Business Constraints with Uncertainty
Extending Temporal Business Constraints with UncertaintyExtending Temporal Business Constraints with Uncertainty
Extending Temporal Business Constraints with Uncertainty
 
Extending Temporal Business Constraints with Uncertainty
Extending Temporal Business Constraints with UncertaintyExtending Temporal Business Constraints with Uncertainty
Extending Temporal Business Constraints with Uncertainty
 
Modeling and Reasoning over Declarative Data-Aware Processes with Object-Cent...
Modeling and Reasoning over Declarative Data-Aware Processes with Object-Cent...Modeling and Reasoning over Declarative Data-Aware Processes with Object-Cent...
Modeling and Reasoning over Declarative Data-Aware Processes with Object-Cent...
 
From legacy data to event data
From legacy data to event dataFrom legacy data to event data
From legacy data to event data
 
Enriching Data Models with Behavioral Constraints
Enriching Data Models with Behavioral ConstraintsEnriching Data Models with Behavioral Constraints
Enriching Data Models with Behavioral Constraints
 
Representing and querying norm states using temporal ontology-based data access
Representing and querying norm states using temporal ontology-based data accessRepresenting and querying norm states using temporal ontology-based data access
Representing and querying norm states using temporal ontology-based data access
 
Compliance monitoring of multi-perspective declarative process models
Compliance monitoring of multi-perspective declarative process modelsCompliance monitoring of multi-perspective declarative process models
Compliance monitoring of multi-perspective declarative process models
 
Formal modeling and SMT-based parameterized verification of Data-Aware BPMN
Formal modeling and SMT-based parameterized verification of Data-Aware BPMNFormal modeling and SMT-based parameterized verification of Data-Aware BPMN
Formal modeling and SMT-based parameterized verification of Data-Aware BPMN
 
Modeling and reasoning over declarative data-aware processes with object-cent...
Modeling and reasoning over declarative data-aware processes with object-cent...Modeling and reasoning over declarative data-aware processes with object-cent...
Modeling and reasoning over declarative data-aware processes with object-cent...
 
How to Present Scientific Work
How to Present Scientific WorkHow to Present Scientific Work
How to Present Scientific Work
 

Recently uploaded

Caco-2 cell permeability assay for drug absorption
Caco-2 cell permeability assay for drug absorptionCaco-2 cell permeability assay for drug absorption
Caco-2 cell permeability assay for drug absorptionPriyansha Singh
 
Work, Energy and Power for class 10 ICSE Physics
Work, Energy and Power for class 10 ICSE PhysicsWork, Energy and Power for class 10 ICSE Physics
Work, Energy and Power for class 10 ICSE Physicsvishikhakeshava1
 
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCE
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCESTERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCE
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCEPRINCE C P
 
A relative description on Sonoporation.pdf
A relative description on Sonoporation.pdfA relative description on Sonoporation.pdf
A relative description on Sonoporation.pdfnehabiju2046
 
Orientation, design and principles of polyhouse
Orientation, design and principles of polyhouseOrientation, design and principles of polyhouse
Orientation, design and principles of polyhousejana861314
 
Animal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxAnimal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxUmerFayaz5
 
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxSOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxkessiyaTpeter
 
Isotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on IoIsotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on IoSérgio Sacani
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsAArockiyaNisha
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...RohitNehra6
 
Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Nistarini College, Purulia (W.B) India
 
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...jana861314
 
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRDelhi Call girls
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Sérgio Sacani
 
Cultivation of KODO MILLET . made by Ghanshyam pptx
Cultivation of KODO MILLET . made by Ghanshyam pptxCultivation of KODO MILLET . made by Ghanshyam pptx
Cultivation of KODO MILLET . made by Ghanshyam pptxpradhanghanshyam7136
 
Analytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptxAnalytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptxSwapnil Therkar
 
GFP in rDNA Technology (Biotechnology).pptx
GFP in rDNA Technology (Biotechnology).pptxGFP in rDNA Technology (Biotechnology).pptx
GFP in rDNA Technology (Biotechnology).pptxAleenaTreesaSaji
 
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSpermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSarthak Sekhar Mondal
 

Recently uploaded (20)

Caco-2 cell permeability assay for drug absorption
Caco-2 cell permeability assay for drug absorptionCaco-2 cell permeability assay for drug absorption
Caco-2 cell permeability assay for drug absorption
 
Work, Energy and Power for class 10 ICSE Physics
Work, Energy and Power for class 10 ICSE PhysicsWork, Energy and Power for class 10 ICSE Physics
Work, Energy and Power for class 10 ICSE Physics
 
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCE
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCESTERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCE
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCE
 
A relative description on Sonoporation.pdf
A relative description on Sonoporation.pdfA relative description on Sonoporation.pdf
A relative description on Sonoporation.pdf
 
Orientation, design and principles of polyhouse
Orientation, design and principles of polyhouseOrientation, design and principles of polyhouse
Orientation, design and principles of polyhouse
 
CELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdfCELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdf
 
Animal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxAnimal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptx
 
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxSOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
 
Isotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on IoIsotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on Io
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based Nanomaterials
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
 
Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...
 
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
 
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
 
Cultivation of KODO MILLET . made by Ghanshyam pptx
Cultivation of KODO MILLET . made by Ghanshyam pptxCultivation of KODO MILLET . made by Ghanshyam pptx
Cultivation of KODO MILLET . made by Ghanshyam pptx
 
9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service
9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service
9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service
 
Analytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptxAnalytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptx
 
GFP in rDNA Technology (Biotechnology).pptx
GFP in rDNA Technology (Biotechnology).pptxGFP in rDNA Technology (Biotechnology).pptx
GFP in rDNA Technology (Biotechnology).pptx
 
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSpermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
 

Semantic DMN: Formalizing Decision Models with Domain Knowledge

  • 1. Semantic DMN Formalizing Decision Models with Domain Knowledge Diego Calvanese1, Marlon Dumas2, Fabrizio M. Maggi2, Marco Montali1 1Free University of Bozen-Bolzano, Italy 2University of Tartu, Estonia KRDB 1 montali@inf.unibz.it RuleML+RR 2017, London, UK Marco Montali Semantic DMN RuleML+RR 2017 1 / 25
  • 2. The New Youth of Decision Models Decision Model and Notation (DMN) standard by OMG: • Supports elicitation and clean representation of decision models. • Decision: set of business rules for a single decision with fixed inputs/outputs. Captured in a table. • Decision Requirements Diagram: composition of multiple decisions. Increasingly being adopted in the industry. • Many tools for modeling, checking, refactoring, applying DMN models. Marco Montali Semantic DMN RuleML+RR 2017 2 / 25
  • 3. Success Factor #1: Timeliness Organisations are increasingly process-oriented. • DMN encourages separation of concerns between the process logic and the decision logic. • Clarity, modularity, reusability. Marco Montali Semantic DMN RuleML+RR 2017 3 / 25
  • 4. Success Factor #1: Timeliness Organisations are increasingly process-oriented. • DMN encourages separation of concerns between the process logic and the decision logic. • Clarity, modularity, reusability. From BPMN. . . Marco Montali Semantic DMN RuleML+RR 2017 3 / 25
  • 5. Success Factor #1: Timeliness Organisations are increasingly process-oriented. • DMN encourages separation of concerns between the process logic and the decision logic. • Clarity, modularity, reusability. . . . to BPMN+DMN Marco Montali Semantic DMN RuleML+RR 2017 3 / 25
  • 6. Success Factor #2: Understandability hereby call a facet. Each row has an identifier, one expression for each input column (a.k.a. the input entries), and one specific value for each output column (the output entries). For example, Table 1 shows a DMN table with two input columns, one output column and four rules. Loan Grade U C Annual Loan Grade Income Size 0 0 VG,G,F,P A [0..1000] [0..1000] VG B [250..750] [4000..5000] G C [500..1500] [500..3000] F D [2000..2500] [0..2000] P Table name Hit indicator Completeness indicator Input attributes Facet Output attribute Rule Priority indicator Input entries Output entry Table 1: Sample decision table with its constitutive elements Given an input configuration consisting of a vector of values (one entry per column), if every input entry of a row holds true for this input vector, then the 3 Rule conditions specified using the Friendly Enough Expression Language, coming in two flavours: • S-FEEL - simple and graphical. • (full) FEEL - powerful and textual. We focus on S-FEEL. Marco Montali Semantic DMN RuleML+RR 2017 4 / 25
  • 7. Research Questions Formal semantics: • What is the semantics of DMN Decision Tables? • How to efficiently check the correctness of tables and their indicators? −→ [ ,BPM2016] Marco Montali Semantic DMN RuleML+RR 2017 5 / 25
  • 8. Research Questions Formal semantics: • What is the semantics of DMN Decision Tables? • How to efficiently check the correctness of tables and their indicators? −→ [ ,BPM2016] Model integration: • How to assess the overall correctness of processes+decision models? −→ [Hewelt and Weske,BPMForum2017] Marco Montali Semantic DMN RuleML+RR 2017 5 / 25
  • 9. Research Questions Formal semantics: • What is the semantics of DMN Decision Tables? • How to efficiently check the correctness of tables and their indicators? −→ [ ,BPM2016] Model integration: • How to assess the overall correctness of processes+decision models? −→ [Hewelt and Weske,BPMForum2017] • How to integrate decision models and background knowledge? DMN works under the assumption of complete information! • How to formalise the semantics of such an integrated model? • How to reassess correctness in this richer setting? −→ This work! Marco Montali Semantic DMN RuleML+RR 2017 5 / 25
  • 10. A Concrete Example Inspired by the Ship and Port Facility Security Code: • Ship clearance in the Netherlands. • March 2016 challenge at dmcommunity.org. Marco Montali Semantic DMN RuleML+RR 2017 6 / 25
  • 11. Knowledge of Ships There are several types of ships, characterised by: • length (in m); • draft size (in m); • capacity (in TEU). Marco Montali Semantic DMN RuleML+RR 2017 7 / 25
  • 12. Knowledge of Ships There are several types of ships, characterised by: • length (in m); • draft size (in m); • capacity (in TEU). Ship Type Short Length (m) Draft (m) Capacity (TEU) Converted Cargo Vessel CCV 135 0 – 9 500 Converted Tanker CT 200 0 – 9 800 Cellular Containership CC 215 10 1000 – 2500 Small Panamax Class SPC 250 11 – 12 3000 Large Panamax Class LPC 290 11 – 12 4000 Post Panamax PP 275 – 305 11 – 13 4000 – 5000 Post Panamax Plus PPP 335 13 – 14 5000 – 8000 New Panamax NP 397 15.5 11 000 – 14 500 Marco Montali Semantic DMN RuleML+RR 2017 7 / 25
  • 13. Knowledge of Ships There are several types of ships, characterised by: • length (in m); • draft size (in m); • capacity (in TEU). Ship Type Short Length (m) Draft (m) Capacity (TEU) Converted Cargo Vessel CCV 135 0 – 9 500 Converted Tanker CT 200 0 – 9 800 Cellular Containership CC 215 10 1000 – 2500 Small Panamax Class SPC 250 11 – 12 3000 Large Panamax Class LPC 290 11 – 12 4000 Post Panamax PP 275 – 305 11 – 13 4000 – 5000 Post Panamax Plus PPP 335 13 – 14 5000 – 8000 New Panamax NP 397 15.5 11 000 – 14 500 Warning! This is not a decision table. This is a set of constraints relating the ship types with corresponding possible dimensions. Marco Montali Semantic DMN RuleML+RR 2017 7 / 25
  • 14. Clearance Rules A vessel may enter a port if: • it is equipped with a valid certificate of registry; • it meets the safety requirements. Marco Montali Semantic DMN RuleML+RR 2017 8 / 25
  • 15. Clearance Rules A vessel may enter a port if: • it is equipped with a valid certificate of registry; • it meets the safety requirements. Valid certificate of registry Certificate expiration date > current date. Safety Requirements Based on ship characteristics and the amount of residual cargo: • small ships (with length ≤ 260 m and draft ≤ 10 m) may enter only if their capacity is ≤ 1000 TEU. • Ships with a small length (≤ 260 m), medium draft > 10 and ≤ 12 m, and capacity ≤ 4000 TEU, may enter only if cargo residuals have ≤ 0.75 mg dry weight per cm2 . • Medium-sized ships (with length > 260 m and < 320 m, and draft > 10 m and ≤ 13 m), and with a cargo capacity < 6000 TEU, may enter only if their residuals have ≤ 0.5 mg dry weight per cm2 . • Big ships with length between 320 m and 400 m, draft > 13 m, and capacity > 4000 TEU, may enter only if their carried residuals have ≤ 0.25 mg dry weight per cm2 . Marco Montali Semantic DMN RuleML+RR 2017 8 / 25
  • 16. Clearance Rules in DMNTable 2: Decision table for determining vessel clearance in Dutch ports; symbol today is a shortcut for the milliseconds representing time 00:00:00 of the current date. Vessel Clearance C U Cer. Exp. Length Draft Capacity Cargo Enter (date) (m) (m) (TEU) (mg/cm2 ) 0 0 0 0 0 Y,N 1  today N 2 > today <260 <10 <1000 Y 3 > today <260 <10 1000 N 4 > today <260 [10,12] <4000 0.75 Y 5 > today <260 [10,12] <4000 >0.75 N 6 > today [260,320) (10,13] <6000 0.5 Y 7 > today [260,320) (10,13] <6000 >0.5 N 8 > today [320,400) 13 >4000 0.25 Y 9 > today [320,400) 13 >4000 >0.25 N • “ ” is an S-FEEL condition representing any value (i.e., it evaluates to true for every object in D); • given a constant v, expressions “v” and “not(v)” are S-FEEL conditions respectively denoting that the value shall (not) match with v. • if D is a numerical datatype, given two numbers v1, v2 2 D, the interval expres- Marco Montali Semantic DMN RuleML+RR 2017 9 / 25
  • 17. Clearance Rules in DMNTable 2: Decision table for determining vessel clearance in Dutch ports; symbol today is a shortcut for the milliseconds representing time 00:00:00 of the current date. Vessel Clearance C U Cer. Exp. Length Draft Capacity Cargo Enter (date) (m) (m) (TEU) (mg/cm2 ) 0 0 0 0 0 Y,N 1  today N 2 > today <260 <10 <1000 Y 3 > today <260 <10 1000 N 4 > today <260 [10,12] <4000 0.75 Y 5 > today <260 [10,12] <4000 >0.75 N 6 > today [260,320) (10,13] <6000 0.5 Y 7 > today [260,320) (10,13] <6000 >0.5 N 8 > today [320,400) 13 >4000 0.25 Y 9 > today [320,400) 13 >4000 >0.25 N • “ ” is an S-FEEL condition representing any value (i.e., it evaluates to true for every object in D); • given a constant v, expressions “v” and “not(v)” are S-FEEL conditions respectively denoting that the value shall (not) match with v. • if D is a numerical datatype, given two numbers v1, v2 2 D, the interval expres- Key Questions • Are the table indicators correct? • Do we need complete information about ships to apply the table? Is it enough to know certificate expiration, ship type, cargo residuals? Marco Montali Semantic DMN RuleML+RR 2017 9 / 25
  • 18. Clearance Rules in DMNTable 2: Decision table for determining vessel clearance in Dutch ports; symbol today is a shortcut for the milliseconds representing time 00:00:00 of the current date. Vessel Clearance C U Cer. Exp. Length Draft Capacity Cargo Enter (date) (m) (m) (TEU) (mg/cm2 ) 0 0 0 0 0 Y,N 1  today N 2 > today <260 <10 <1000 Y 3 > today <260 <10 1000 N 4 > today <260 [10,12] <4000 0.75 Y 5 > today <260 [10,12] <4000 >0.75 N 6 > today [260,320) (10,13] <6000 0.5 Y 7 > today [260,320) (10,13] <6000 >0.5 N 8 > today [320,400) 13 >4000 0.25 Y 9 > today [320,400) 13 >4000 >0.25 N • “ ” is an S-FEEL condition representing any value (i.e., it evaluates to true for every object in D); • given a constant v, expressions “v” and “not(v)” are S-FEEL conditions respectively denoting that the value shall (not) match with v. • if D is a numerical datatype, given two numbers v1, v2 2 D, the interval expres- sions “[v1, v2]”, “[v1, v2)”, “(v1, v2]”, and “(v1, v2)” are S-FEEL conditions (inter- Correctness of table indicators • Unique hit: yes! • Completeness: no if table considered in isolation; yes if understood in the context of background knowledge about ships. Marco Montali Semantic DMN RuleML+RR 2017 9 / 25
  • 19. Clearance Rules in DMNTable 2: Decision table for determining vessel clearance in Dutch ports; symbol today is a shortcut for the milliseconds representing time 00:00:00 of the current date. Vessel Clearance C U Cer. Exp. Length Draft Capacity Cargo Enter (date) (m) (m) (TEU) (mg/cm2 ) 0 0 0 0 0 Y,N 1  today N 2 > today <260 <10 <1000 Y 3 > today <260 <10 1000 N 4 > today <260 [10,12] <4000 0.75 Y 5 > today <260 [10,12] <4000 >0.75 N 6 > today [260,320) (10,13] <6000 0.5 Y 7 > today [260,320) (10,13] <6000 >0.5 N 8 > today [320,400) 13 >4000 0.25 Y 9 > today [320,400) 13 >4000 >0.25 N • “ ” is an S-FEEL condition representing any value (i.e., it evaluates to true for every object in D); • given a constant v, expressions “v” and “not(v)” are S-FEEL conditions respectively denoting that the value shall (not) match with v. • if D is a numerical datatype, given two numbers v1, v2 2 D, the interval expres- sions “[v1, v2]”, “[v1, v2)”, “(v1, v2]”, and “(v1, v2)” are S-FEEL conditions (inter- Table application from certificate expiration, ship type, cargo residuals • From ship type, one can infer partial information about ship characteristics, using background knowledge. • Combined with certificate expiration and cargo residuals, this is enough to unambiguously apply the decision table! Marco Montali Semantic DMN RuleML+RR 2017 9 / 25
  • 20. Sources of Decision Knowledge • DMN Decisions. Defined by the standard. • Knowledge Base. Multi-sorted FOL theory FOL(D): ◦ Sorts D: correspond to the S-FEEL data types (strings, numbers, with their comparison predicates). ◦ Concept: unary predicate interpreted over abstract object domain ∆. ◦ Role: Binary predicate relating pairs of objects from ∆. ◦ Feature: Binary predicate relating objects from ∆ to data values from a selected data type in D. Marco Montali Semantic DMN RuleML+RR 2017 10 / 25
  • 21. Sources of Decision Knowledge • DMN Decisions. Defined by the standard. • Knowledge Base. Multi-sorted FOL theory FOL(D): ◦ Sorts D: correspond to the S-FEEL data types (strings, numbers, with their comparison predicates). ◦ Concept: unary predicate interpreted over abstract object domain ∆. ◦ Role: Binary predicate relating pairs of objects from ∆. ◦ Feature: Binary predicate relating objects from ∆ to data values from a selected data type in D. Example Ship Type Short Length (m) Draft (m) Capacity (TEU) . . . CCV 135 0 – 9 500 ∀s.CCV(s) → Ship(s) ∧ ∀l.(length(s, l) → l = 135) ∧ ∀d.(draft(s, d) → d ≥ 0 ∧ d ≤ 9) ∧ ∀c.(capacity(s, c) → c = 500) Marco Montali Semantic DMN RuleML+RR 2017 10 / 25
  • 22. Combining Decisions and Background Knowledge Marco Montali Semantic DMN RuleML+RR 2017 11 / 25
  • 23. Combining Decisions and Background Knowledge Marco Montali Semantic DMN RuleML+RR 2017 11 / 25
  • 24. Combining Decisions and Background Knowledge Marco Montali Semantic DMN RuleML+RR 2017 11 / 25
  • 25. Combining Decisions and Background Knowledge Marco Montali Semantic DMN RuleML+RR 2017 11 / 25
  • 26. Decision Knowledge Bases Definition (DKB) A decision knowledge base over datatypes D (D-DKB, or DKB for short) is a tuple Σ, T , M, C, A , where: • T is a FOL(D) IKB with signature Σ. • M is a DMN decision that satisfies the following two typing conditions: (output uniqueness) M.O ∩ Σ = ∅; (input type compatibility) for every binary predicate P ∈ Σ whose name appears in M.I, their types are compatible, i.e., M.AType(P) = SigP (2). • C ∈ ΣC is a bridge concept: a concept from Σ that links T with M. • A is an ABox over the extended signature Σ ∪ M.I. Example The combination of the knowledge base of ships with the vessel clearance DMN decision, using Ship as bridge concept. Marco Montali Semantic DMN RuleML+RR 2017 12 / 25
  • 27. Formalising DKBs Encode the DMN decision in FOL(D): • Using the bridge concept as reference concept. • Then simply enriching the original KB with the so-obtained additional axioms. Marco Montali Semantic DMN RuleML+RR 2017 13 / 25
  • 28. Formalising DKBs Encode the DMN decision in FOL(D): • Using the bridge concept as reference concept. • Then simply enriching the original KB with the so-obtained additional axioms. Marco Montali Semantic DMN RuleML+RR 2017 13 / 25
  • 29. Encoding of Attributes (1) Signature extended by introducing: • A feature for each input attribute of the decision that is not already used in the KB. • A feature for each combination of output attribute-rule: output feature + its provenance. Example 8 D. Calvanese, M. Dumas, F.M. Maggi, M. Montali Table 2: Decision table for determining vessel clearance in Dutch ports; symbol today is a shortcut for the milliseconds representing time 00:00:00 of the current date. Vessel Clearance C U Cer. Exp. Length Draft Capacity Cargo Enter (date) (m) (m) (TEU) (mg/cm2 ) 0 0 0 0 0 Y,N 1  today N 2 > today <260 <10 <1000 Y 3 > today <260 <10 1000 N 4 > today <260 [10,12] <4000 0.75 Y 5 > today <260 [10,12] <4000 >0.75 N 6 > today [260,320) (10,13] <6000 0.5 Y 7 > today [260,320) (10,13] <6000 >0.5 N 8 > today [320,400) 13 >4000 0.25 Y 9 > today [320,400) 13 >4000 >0.25 N • 2 new features for CerExp and Cargo; • 9 new features for Enter, i.e., Enteri for rule i (i ∈ {1, . . . , 9}). Marco Montali Semantic DMN RuleML+RR 2017 14 / 25
  • 30. Encoding of Attributes (2) For each input/output feature, add 2 axioms: • Typing axiom: the domain of the feature is the bridge concept. • Functionality axiom: no two attributes of the same kind. ◦ For input features: non-ambiguous application of rules. ◦ For output features: simply asserts that an output cell contains a single value. Example 8 D. Calvanese, M. Dumas, F.M. Maggi, M. Montali Table 2: Decision table for determining vessel clearance in Dutch ports; symbol today is a shortcut for the milliseconds representing time 00:00:00 of the current date. Vessel Clearance C U Cer. Exp. Length Draft Capacity Cargo Enter (date) (m) (m) (TEU) (mg/cm2 ) 0 0 0 0 0 Y,N 1  today N 2 > today <260 <10 <1000 Y 3 > today <260 <10 1000 N 4 > today <260 [10,12] <4000 0.75 Y 5 > today <260 [10,12] <4000 >0.75 N 6 > today [260,320) (10,13] <6000 0.5 Y 7 > today [260,320) (10,13] <6000 >0.5 N 8 > today [320,400) 13 >4000 0.25 Y For the Length attribute: ∀x, y.length(x, y) → Ship(x). ∀x, y, z.length(x, y)∧length(x, z) → y = z. Marco Montali Semantic DMN RuleML+RR 2017 15 / 25
  • 31. Encoding Attributes Extended by introducing: • A feature for each input attribute of the decision that is not already used in the KB. • A feature for each combination of output attribute-rule: output feature + its provenance. Example 8 D. Calvanese, M. Dumas, F.M. Maggi, M. Montali Table 2: Decision table for determining vessel clearance in Dutch ports; symbol today is a shortcut for the milliseconds representing time 00:00:00 of the current date. Vessel Clearance C U Cer. Exp. Length Draft Capacity Cargo Enter (date) (m) (m) (TEU) (mg/cm2 ) 0 0 0 0 0 Y,N 1  today N 2 > today <260 <10 <1000 Y 3 > today <260 <10 1000 N 4 > today <260 [10,12] <4000 0.75 Y 5 > today <260 [10,12] <4000 >0.75 N 6 > today [260,320) (10,13] <6000 0.5 Y 7 > today [260,320) (10,13] <6000 >0.5 N 8 > today [320,400) 13 >4000 0.25 Y 9 > today [320,400) 13 >4000 >0.25 N • 2 new features for CerExp and Cargo; • 9 new features for Enter: Enteri for rule i (i ∈ {1, . . . , 9}). Marco Montali Semantic DMN RuleML+RR 2017 16 / 25
  • 32. Encoding of S-FEEL Conditions Quite straightforward: an S-FEEL condition is nothing else than a unary FOL(D) formula. S-FEEL Translation Function Given an S-FEEL condition Q, function τx(Q) builds a unary FOL(D) formula that encodes the application of Q to x. τx (Q)    true if Q = “−” x v if Q = “not(v)” x = v if Q = “v” x ≈ v if Q = “≈ v” and ≈ ∈ {<, >, ≤, ≥} x > v1 ∧ x < v2 if Q = “(v1..v2)” . . . (similarly for the other types of intervals) τx(Q1) ∨ τx(Q2) if Q = “Q1,Q2” Marco Montali Semantic DMN RuleML+RR 2017 17 / 25
  • 33. Encoding of Attribute Facets Each attribute facet becomes an axiom: • The facet constrains the range of the corresponding feature. • The facet is an S-FEEL condition: just translate it to get the constraint. Example 8 D. Calvanese, M. Dumas, F.M. Maggi, M. Montali Table 2: Decision table for determining vessel clearance in Dutch ports; symbol today is a shortcut for the milliseconds representing time 00:00:00 of the current date. Vessel Clearance C U Cer. Exp. Length Draft Capacity Cargo Enter (date) (m) (m) (TEU) (mg/cm2 ) 0 0 0 0 0 Y,N 1  today N 2 > today <260 <10 <1000 Y 3 > today <260 <10 1000 N 4 > today <260 [10,12] <4000 0.75 Y 5 > today <260 [10,12] <4000 >0.75 N 6 > today [260,320) (10,13] <6000 0.5 Y 7 > today [260,320) (10,13] <6000 >0.5 N 8 > today [320,400) 13 >4000 0.25 Y 9 > today [320,400) 13 >4000 >0.25 N For Length: ∀x, y.length(x, y) → y ≥ 0. Marco Montali Semantic DMN RuleML+RR 2017 18 / 25
  • 34. Encoding of Rules DMN rule as an implication: whenever an instance of the bridge concept satisfies all input conditions, then it must be related to the output values. Marco Montali Semantic DMN RuleML+RR 2017 19 / 25
  • 35. Encoding of Rules DMN rule as an implication: whenever an instance of the bridge concept satisfies all input conditions, then it must be related to the output values. Marco Montali Semantic DMN RuleML+RR 2017 19 / 25
  • 36. Encoding of Rules DMN rule as an implication: whenever an instance of the bridge concept satisfies all input conditions, then it must be related to the output values. Marco Montali Semantic DMN RuleML+RR 2017 19 / 25
  • 37. Encoding of Rules: ExampleTable 2: Decision table for determining vessel clearance in Dutch ports; symbol today is a shortcut for the milliseconds representing time 00:00:00 of the current date. Vessel Clearance C U Cer. Exp. Length Draft Capacity Cargo Enter (date) (m) (m) (TEU) (mg/cm2 ) 0 0 0 0 0 Y,N 1  today N 2 > today <260 <10 <1000 Y 3 > today <260 <10 1000 N 4 > today <260 [10,12] <4000 0.75 Y 5 > today <260 [10,12] <4000 >0.75 N 6 > today [260,320) (10,13] <6000 0.5 Y 7 > today [260,320) (10,13] <6000 >0.5 N 8 > today [320,400) 13 >4000 0.25 Y 9 > today [320,400) 13 >4000 >0.25 N • “ ” is an S-FEEL condition representing any value (i.e., it evaluates to true for every object in D); • given a constant v, expressions “v” and “not(v)” are S-FEEL conditions respectively denoting that the value shall (not) match with v. • if D is a numerical datatype, given two numbers v1, v2 2 D, the interval expres- Encoding of rule #2: ∀x,e, l, d, c. exp(x, e) ∧ e > today ∧ length(x, l) ∧ l < 260 ∧ draft(x, d) ∧ d < 10 ∧ cap(x, c) ∧ c < 1000 → ∃o.enter2(x, o) ∧ o = Y. Marco Montali Semantic DMN RuleML+RR 2017 20 / 25
  • 38. Fundamental Reasoning Tasks for DKBs I/O Relationship Input: • DKB X, • object c ∈ ∆ of type C, • output attribute Po ∈ M.O, • value v ∈ M.AType(Po). Question: Is it the case that X assigns output v? Table Completeness (C indicator) Input: IDKB X (intensional, no data). Question: Is it the case that, for every possible input, at least one rule of the decision in X is guaranteed to trigger? Correctness of Unique Hit (U indicator) Input: IDKB X (intensional, no data). Question: Is it the case that rules in the decision of X do not overlap? Marco Montali Semantic DMN RuleML+RR 2017 21 / 25
  • 39. Reasoning on DKBs Fact All such reasoning tasks can be encoded as logical implication checks in FOL(D). This is of no help. Marco Montali Semantic DMN RuleML+RR 2017 22 / 25
  • 40. Reasoning on DKBs Fact All such reasoning tasks can be encoded as logical implication checks in FOL(D). This is of no help. Idea Investigate suitable fragments of FOL(D) that: • Are expressive enough to encode DMN decisions. • Have decidable reasoning (understanding its complexity). Description logics with data types are the natural candidate for this! Marco Montali Semantic DMN RuleML+RR 2017 22 / 25
  • 41. Reasoning on DKBs Fact All such reasoning tasks can be encoded as logical implication checks in FOL(D). This is of no help. Idea Investigate suitable fragments of FOL(D) that: • Are expressive enough to encode DMN decisions. • Have decidable reasoning (understanding its complexity). Description logics with data types are the natural candidate for this! We investigate in particular the usage of ALC(D): • Well-known ALC extended with data types (not interacting with each other). • Reasoning (e.g., subsumption): ExpTime-complete. • Goes well with S-FEEL! Marco Montali Semantic DMN RuleML+RR 2017 22 / 25
  • 42. Encoding DMN Decisions into ALC(D) We reconstruct the encoding of DMN decisions into FOL(D), using ALC(D). 8 D. Calvanese, M. Dumas, F.M. Maggi, M. Montali Table 2: Decision table for determining vessel clearance in Dutch ports; symbol today is a shortcut for the milliseconds representing time 00:00:00 of the current date. Vessel Clearance C U Cer. Exp. Length Draft Capacity Cargo Enter (date) (m) (m) (TEU) (mg/cm2 ) 0 0 0 0 0 Y,N 1  today N 2 > today <260 <10 <1000 Y 3 > today <260 <10 1000 N 4 > today <260 [10,12] <4000 0.75 Y 5 > today <260 [10,12] <4000 >0.75 N 6 > today [260,320) (10,13] <6000 0.5 Y 7 > today [260,320) (10,13] <6000 >0.5 N 8 > today [320,400) 13 >4000 0.25 Y 9 > today [320,400) 13 >4000 >0.25 N • “ ” is an S-FEEL condition representing any value (i.e., it evaluates to true for every object in D); • given a constant v, expressions “v” and “not(v)” are S-FEEL conditions respectively denoting that the value shall (not) match with v. Encoding of rule #2: ∀x,e, l, d, c. exp(x, e) ∧ e > today ∧ length(x, l) ∧ l < 260 ∧ draft(x, d) ∧ d < 10 ∧ cap(x, c) ∧ c < 1000 → ∃o.enter2(x, o) ∧ o = Y. Encoding of rule #2 in ALC(D): ∀exp.real[>today] ∀length.real[<260] ∀draft.real[<10] ∀cap.real[<1000] ∃enter2 ∀enter2.stri Marco Montali Semantic DMN RuleML+RR 2017 23 / 25
  • 43. Main Results Consider now an ALC(D) DKB, where the background knowledge is expressed in ALC(D) (e.g., ship types). Theorem The translation into FOL(D) is logically equivalent to the translation into ALC(D). Marco Montali Semantic DMN RuleML+RR 2017 24 / 25
  • 44. Main Results Consider now an ALC(D) DKB, where the background knowledge is expressed in ALC(D) (e.g., ship types). Theorem The translation into FOL(D) is logically equivalent to the translation into ALC(D). Theorem The I/O relationship, table completeness, and correctness of unique hit problems can all be decided in ExpTime for ALC(D) DKBs. Proof. The proof is based on a reduction from the three decision problems to a polynomial number of instance or subsumption checks w.r.t. an ALC(D) KB, which can be decided in ExpTime. Marco Montali Semantic DMN RuleML+RR 2017 24 / 25
  • 45. Conclusions • Importance of combining DMN decisions with other models. • In this work: combination with background knowledge, reasoning under incomplete information. Many future avenues: • Combination with (data-aware) process models, reconstructing verification in this richer setting. • Lightweight DKBs: DMN Decisions can be expressed in the logic DL-Lite (HN) bool (D) (conjecture: reasoning in CoNP). • Closed-open models. • Identification of minimal set of inputs you need to know for non-ambiguously applying the decision logic (interpolation, epistemic interpretation, . . . ). Marco Montali Semantic DMN RuleML+RR 2017 25 / 25