possible to get a simplification or decomposition of
the original schema. However, these works do not
explain the problem from the UD. His work shows
the minimum cardinality, 0, but he does not resolve
the semantic problem of the optionality.
Rafael Camps (Camps, R. 2002) depicts an
excellent analysis about the transformation of
ternary relationships, with and without imposition
binaries from E/R to R Model. In his work he
establishes that the “Look across” cardinality
constrains with the Chen approximation is richer
semantically. We think also it. Furthermore, he
shows the problem that the transformation from E/R
to R using only functional dependencies has
semantic anomalies.
In the R Model Millest W. Vicent (Millist W.
Vincent, 1993, 1994, 1999) describes the semantic
anomalies that have the relationships.
Santos (Santos, I. et al., 2006) depicts the semi-
automatic validation and decomposition of ternary
relationships, however this work does not analyze
the optionality.
4 VERIFICATION AND
VALIDATION OF TERNARY
RELATIONSHIPS WITH
OPTIONALITY
We use the representation of “Look across”
cardinality constraints of Chen and Merise
approximations (Cuadra, 2003), because the
depicted semantic is very good for the automation in
a CASE tool. The Chen approximation can be use
for deriving the functional dependencies. We use the
MX2 rule of McAllister for validating the
Conceptual schema. On the other hand, the “Look
across” cardinality constraint with Merise
approximation shows us the primary key and, the
candidate keys, if they exist. Furthermore, with this
approximation we can get complex rules, because
the value of an attribute in a relationship for a
domain as minimum has to be n and as maximum m
times,
∈∀ mn,
(Al-Jumaily, T. H., 2006).
When there are optional elements in a ternary
relationship, we have problems in its transformation.
A solution is the Complementary binary relationship
(Cuadra, D., 2003). In this work, we propose also
the Complete binary relationship. Both solutions
were defined in the second section. The
Complementary relationship is a good solution,
because it has not redundancy. However, in the
Complete, there is redundancy, but it will be good
solution when there is decomposition.
Next, we show two algorithms of validation and
simplification of ternary relationships. Theses
algorithms are a modification of Santos, I, (Santos, I.
et al., 2006). We begin by checking the schema
semantic consistency. In a next step, we have to
verify if the concepts are according to the definition
and, there are not incompatibilities among the
concepts and the schema.
In this paper, we analyze only the ternary or
higher-grade relationship. For this when we find a
ternary relationship in our model,
i
R
, we have to
look for the SBC relationship with
i
R
. For each
entity
i
related to
i
R
, we have to find other
relationships
j
R
, with
ji
RR
, and the rest of entities
nii
+−
,...,,,...,
111
which are related to
i
R
.
These relationships that we find, they are candidates
to be semantic related relationship to
i
R
, and for this,
they can restrict the cardinality of the
relationship
i
R
. When we have the relationships, we
have to ask to the designer, because he/she has to
decide the relationships, which are SBC.
The step next is to check the optional roles of
the entities in the ternary relationship. Let be
i
,
j
and
Κ
i
R
. If
i
has an optional role, then we
build between
i
and
j
the Complementary binary
relationship. However, if between
i
Ε
and
j
Ε
there is
an implicit ternary relationship, then we can build
the Complete binary relationship and we delete the
implicit binary relationship.
Now we show the algorithm of validation of a
relationship with optionality.
The first algorithm depicted in the figure two
has the follow steps:
1. We get the ternary relationship and SBC
relationships with the ternary to check,
with the help of the designer.
2. Are there some optional elements in the
ternary relationship?
3. If there are optional roles then we build
the Complementary or Complete binary
relationships.
4. We verify the Conceptual Design with
the MX2 rule of McAllister. Do the
relationships carry out MX2? We have
to verify the rule
2/123
1
+−
−nn
times.
ICEIS 2007 - International Conference on Enterprise Information Systems
468