SlideShare a Scribd company logo
Semantic DMN
Formalizing Decision Models with Domain Knowledge
Diego Calvanese1, Marlon Dumas, Fabrizio M. Maggi,
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

Putting decisions in perspective(s)
Putting decisions in perspective(s)Putting decisions in perspective(s)
Material Handling &amp; Warehousing Equipment
Material Handling &amp; Warehousing EquipmentMaterial Handling &amp; Warehousing Equipment
Material Handling &amp; Warehousing Equipment
Heidi Jennings
 
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
 
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 tankopslag
Stork
 
Putting Decisions in Perspective(s)
Putting Decisions in Perspective(s)Putting Decisions in Perspective(s)
Scheduling by Primavera - Training
Scheduling by Primavera - TrainingScheduling by Primavera - Training
Scheduling by Primavera - TrainingMohammed Feroze
 
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
Faculty of Computer Science - Free University of Bozen-Bolzano
 
Century OEM Corporate Profile
Century OEM Corporate ProfileCentury OEM Corporate Profile
Century OEM Corporate Profile
Century Advance Technology Sdn Bhd
 
Adding Value through the Lower Thames Crossing project by "Iain Minns - Partn...
Adding Value through the Lower Thames Crossing project by "Iain Minns - Partn...Adding Value through the Lower Thames Crossing project by "Iain Minns - Partn...
Adding Value through the Lower Thames Crossing project by "Iain Minns - Partn...
Project Controls Expo
 
Traffic Fms 050209
Traffic Fms 050209Traffic Fms 050209
Traffic Fms 050209
Vinay Chaddha
 
2014 Agent Sales Presentation 050714 1st Q results
2014 Agent Sales Presentation 050714 1st Q results2014 Agent Sales Presentation 050714 1st Q results
2014 Agent Sales Presentation 050714 1st Q resultsDan Mitchell
 
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
lugano6
 
5026-Tunnel-Operations-WEB
5026-Tunnel-Operations-WEB5026-Tunnel-Operations-WEB
5026-Tunnel-Operations-WEBRichard Jackson
 
machine-translation-for-translators-and-terminology-applications-in-the-eu1.ppt
machine-translation-for-translators-and-terminology-applications-in-the-eu1.pptmachine-translation-for-translators-and-terminology-applications-in-the-eu1.ppt
machine-translation-for-translators-and-terminology-applications-in-the-eu1.ppt
infojadranska
 
Rail Technical Strategy, Key Capability 6 - More Space on Trains
Rail Technical Strategy, Key Capability 6 - More Space on TrainsRail Technical Strategy, Key Capability 6 - More Space on Trains
Rail Technical Strategy, Key Capability 6 - More Space on Trains
James Brown
 

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)
 
Dmt
DmtDmt
Dmt
 
Material Handling &amp; Warehousing Equipment
Material Handling &amp; Warehousing EquipmentMaterial Handling &amp; Warehousing Equipment
Material Handling &amp; Warehousing Equipment
 
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
 
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)
 
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
 
Putting Decisions in Perspective(s)
Putting Decisions in Perspective(s)Putting Decisions in Perspective(s)
Putting Decisions in Perspective(s)
 
Scheduling by Primavera - Training
Scheduling by Primavera - TrainingScheduling by Primavera - Training
Scheduling by Primavera - Training
 
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
 
ISKRAEMECO presentation v2.0
ISKRAEMECO presentation v2.0ISKRAEMECO presentation v2.0
ISKRAEMECO presentation v2.0
 
Adding Value through the Lower Thames Crossing project by "Iain Minns - Partn...
Adding Value through the Lower Thames Crossing project by "Iain Minns - Partn...Adding Value through the Lower Thames Crossing project by "Iain Minns - Partn...
Adding Value through the Lower Thames Crossing project by "Iain Minns - Partn...
 
Traffic Fms 050209
Traffic Fms 050209Traffic Fms 050209
Traffic Fms 050209
 
2014 Agent Sales Presentation 050714 1st Q results
2014 Agent Sales Presentation 050714 1st Q results2014 Agent Sales Presentation 050714 1st Q results
2014 Agent Sales Presentation 050714 1st Q results
 
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
 
5026-Tunnel-Operations-WEB
5026-Tunnel-Operations-WEB5026-Tunnel-Operations-WEB
5026-Tunnel-Operations-WEB
 
machine-translation-for-translators-and-terminology-applications-in-the-eu1.ppt
machine-translation-for-translators-and-terminology-applications-in-the-eu1.pptmachine-translation-for-translators-and-terminology-applications-in-the-eu1.ppt
machine-translation-for-translators-and-terminology-applications-in-the-eu1.ppt
 
Rail Technical Strategy, Key Capability 6 - More Space on Trains
Rail Technical Strategy, Key Capability 6 - More Space on TrainsRail Technical Strategy, Key Capability 6 - More Space on Trains
Rail Technical Strategy, Key Capability 6 - More Space on Trains
 

More from Marlon Dumas

How GenAI will (not) change your business?
How GenAI will (not)  change your business?How GenAI will (not)  change your business?
How GenAI will (not) change your business?
Marlon Dumas
 
Walking the Way from Process Mining to AI-Driven Process Optimization
Walking the Way from Process Mining to AI-Driven Process OptimizationWalking the Way from Process Mining to AI-Driven Process Optimization
Walking the Way from Process Mining to AI-Driven Process Optimization
Marlon Dumas
 
Discovery and Simulation of Business Processes with Probabilistic Resource Av...
Discovery and Simulation of Business Processes with Probabilistic Resource Av...Discovery and Simulation of Business Processes with Probabilistic Resource Av...
Discovery and Simulation of Business Processes with Probabilistic Resource Av...
Marlon Dumas
 
Can I Trust My Simulation Model? Measuring the Quality of Business Process Si...
Can I Trust My Simulation Model? Measuring the Quality of Business Process Si...Can I Trust My Simulation Model? Measuring the Quality of Business Process Si...
Can I Trust My Simulation Model? Measuring the Quality of Business Process Si...
Marlon Dumas
 
Business Process Optimization: Status and Perspectives
Business Process Optimization: Status and PerspectivesBusiness Process Optimization: Status and Perspectives
Business Process Optimization: Status and Perspectives
Marlon Dumas
 
Learning When to Treat Business Processes: Prescriptive Process Monitoring wi...
Learning When to Treat Business Processes: Prescriptive Process Monitoring wi...Learning When to Treat Business Processes: Prescriptive Process Monitoring wi...
Learning When to Treat Business Processes: Prescriptive Process Monitoring wi...
Marlon Dumas
 
Why am I Waiting Data-Driven Analysis of Waiting Times in Business Processes
Why am I Waiting Data-Driven Analysis of Waiting Times in Business ProcessesWhy am I Waiting Data-Driven Analysis of Waiting Times in Business Processes
Why am I Waiting Data-Driven Analysis of Waiting Times in Business Processes
Marlon Dumas
 
Augmented Business Process Management
Augmented Business Process ManagementAugmented Business Process Management
Augmented Business Process Management
Marlon Dumas
 
Process Mining and Data-Driven Process Simulation
Process Mining and Data-Driven Process SimulationProcess Mining and Data-Driven Process Simulation
Process Mining and Data-Driven Process Simulation
Marlon Dumas
 
Modeling Extraneous Activity Delays in Business Process Simulation
Modeling Extraneous Activity Delays in Business Process SimulationModeling Extraneous Activity Delays in Business Process Simulation
Modeling Extraneous Activity Delays in Business Process Simulation
Marlon Dumas
 
Business Process Simulation with Differentiated Resources: Does it Make a Dif...
Business Process Simulation with Differentiated Resources: Does it Make a Dif...Business Process Simulation with Differentiated Resources: Does it Make a Dif...
Business Process Simulation with Differentiated Resources: Does it Make a Dif...
Marlon Dumas
 
Prescriptive Process Monitoring Under Uncertainty and Resource Constraints
Prescriptive Process Monitoring Under Uncertainty and Resource ConstraintsPrescriptive Process Monitoring Under Uncertainty and Resource Constraints
Prescriptive Process Monitoring Under Uncertainty and Resource Constraints
Marlon Dumas
 
Robotic Process Mining
Robotic Process MiningRobotic Process Mining
Robotic Process Mining
Marlon Dumas
 
Accurate and Reliable What-If Analysis of Business Processes: Is it Achievable?
Accurate and Reliable What-If Analysis of Business Processes: Is it Achievable?Accurate and Reliable What-If Analysis of Business Processes: Is it Achievable?
Accurate and Reliable What-If Analysis of Business Processes: Is it Achievable?
Marlon Dumas
 
Learning Accurate Business Process Simulation Models from Event Logs via Auto...
Learning Accurate Business Process Simulation Models from Event Logs via Auto...Learning Accurate Business Process Simulation Models from Event Logs via Auto...
Learning Accurate Business Process Simulation Models from Event Logs via Auto...
Marlon Dumas
 
Process Mining: A Guide for Practitioners
Process Mining: A Guide for PractitionersProcess Mining: A Guide for Practitioners
Process Mining: A Guide for Practitioners
Marlon Dumas
 
Process Mining for Process Improvement.pptx
Process Mining for Process Improvement.pptxProcess Mining for Process Improvement.pptx
Process Mining for Process Improvement.pptx
Marlon Dumas
 
Data-Driven Analysis of Batch Processing Inefficiencies in Business Processes
Data-Driven Analysis of  Batch Processing Inefficiencies  in Business ProcessesData-Driven Analysis of  Batch Processing Inefficiencies  in Business Processes
Data-Driven Analysis of Batch Processing Inefficiencies in Business Processes
Marlon Dumas
 
Optimización de procesos basada en datos
Optimización de procesos basada en datosOptimización de procesos basada en datos
Optimización de procesos basada en datos
Marlon Dumas
 
Process Mining and AI for Continuous Process Improvement
Process Mining and AI for Continuous Process ImprovementProcess Mining and AI for Continuous Process Improvement
Process Mining and AI for Continuous Process Improvement
Marlon Dumas
 

More from Marlon Dumas (20)

How GenAI will (not) change your business?
How GenAI will (not)  change your business?How GenAI will (not)  change your business?
How GenAI will (not) change your business?
 
Walking the Way from Process Mining to AI-Driven Process Optimization
Walking the Way from Process Mining to AI-Driven Process OptimizationWalking the Way from Process Mining to AI-Driven Process Optimization
Walking the Way from Process Mining to AI-Driven Process Optimization
 
Discovery and Simulation of Business Processes with Probabilistic Resource Av...
Discovery and Simulation of Business Processes with Probabilistic Resource Av...Discovery and Simulation of Business Processes with Probabilistic Resource Av...
Discovery and Simulation of Business Processes with Probabilistic Resource Av...
 
Can I Trust My Simulation Model? Measuring the Quality of Business Process Si...
Can I Trust My Simulation Model? Measuring the Quality of Business Process Si...Can I Trust My Simulation Model? Measuring the Quality of Business Process Si...
Can I Trust My Simulation Model? Measuring the Quality of Business Process Si...
 
Business Process Optimization: Status and Perspectives
Business Process Optimization: Status and PerspectivesBusiness Process Optimization: Status and Perspectives
Business Process Optimization: Status and Perspectives
 
Learning When to Treat Business Processes: Prescriptive Process Monitoring wi...
Learning When to Treat Business Processes: Prescriptive Process Monitoring wi...Learning When to Treat Business Processes: Prescriptive Process Monitoring wi...
Learning When to Treat Business Processes: Prescriptive Process Monitoring wi...
 
Why am I Waiting Data-Driven Analysis of Waiting Times in Business Processes
Why am I Waiting Data-Driven Analysis of Waiting Times in Business ProcessesWhy am I Waiting Data-Driven Analysis of Waiting Times in Business Processes
Why am I Waiting Data-Driven Analysis of Waiting Times in Business Processes
 
Augmented Business Process Management
Augmented Business Process ManagementAugmented Business Process Management
Augmented Business Process Management
 
Process Mining and Data-Driven Process Simulation
Process Mining and Data-Driven Process SimulationProcess Mining and Data-Driven Process Simulation
Process Mining and Data-Driven Process Simulation
 
Modeling Extraneous Activity Delays in Business Process Simulation
Modeling Extraneous Activity Delays in Business Process SimulationModeling Extraneous Activity Delays in Business Process Simulation
Modeling Extraneous Activity Delays in Business Process Simulation
 
Business Process Simulation with Differentiated Resources: Does it Make a Dif...
Business Process Simulation with Differentiated Resources: Does it Make a Dif...Business Process Simulation with Differentiated Resources: Does it Make a Dif...
Business Process Simulation with Differentiated Resources: Does it Make a Dif...
 
Prescriptive Process Monitoring Under Uncertainty and Resource Constraints
Prescriptive Process Monitoring Under Uncertainty and Resource ConstraintsPrescriptive Process Monitoring Under Uncertainty and Resource Constraints
Prescriptive Process Monitoring Under Uncertainty and Resource Constraints
 
Robotic Process Mining
Robotic Process MiningRobotic Process Mining
Robotic Process Mining
 
Accurate and Reliable What-If Analysis of Business Processes: Is it Achievable?
Accurate and Reliable What-If Analysis of Business Processes: Is it Achievable?Accurate and Reliable What-If Analysis of Business Processes: Is it Achievable?
Accurate and Reliable What-If Analysis of Business Processes: Is it Achievable?
 
Learning Accurate Business Process Simulation Models from Event Logs via Auto...
Learning Accurate Business Process Simulation Models from Event Logs via Auto...Learning Accurate Business Process Simulation Models from Event Logs via Auto...
Learning Accurate Business Process Simulation Models from Event Logs via Auto...
 
Process Mining: A Guide for Practitioners
Process Mining: A Guide for PractitionersProcess Mining: A Guide for Practitioners
Process Mining: A Guide for Practitioners
 
Process Mining for Process Improvement.pptx
Process Mining for Process Improvement.pptxProcess Mining for Process Improvement.pptx
Process Mining for Process Improvement.pptx
 
Data-Driven Analysis of Batch Processing Inefficiencies in Business Processes
Data-Driven Analysis of  Batch Processing Inefficiencies  in Business ProcessesData-Driven Analysis of  Batch Processing Inefficiencies  in Business Processes
Data-Driven Analysis of Batch Processing Inefficiencies in Business Processes
 
Optimización de procesos basada en datos
Optimización de procesos basada en datosOptimización de procesos basada en datos
Optimización de procesos basada en datos
 
Process Mining and AI for Continuous Process Improvement
Process Mining and AI for Continuous Process ImprovementProcess Mining and AI for Continuous Process Improvement
Process Mining and AI for Continuous Process Improvement
 

Recently uploaded

BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
JEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questionsJEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questions
ShivajiThube2
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 

Recently uploaded (20)

BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
JEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questionsJEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questions
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 

Semantic DMN: Formalizing Decision Models with Domain Knowledge

  • 1. Semantic DMN Formalizing Decision Models with Domain Knowledge Diego Calvanese1, Marlon Dumas, Fabrizio M. Maggi, 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