application from the labelled nodes of T (UML query)
into labelled nodes of T(class diagram Fig. 1) that
may decrease node labels (Chein and Mugnier, 1997;
Chein et al., 1998; Chein and Mugnier, 2004). A con-
cept node is represented by a rectangle [typeConcept:
individualMarker] or [typeConcept: ∗] that may have
a nested CG into it; a relation node is represented by
an oval (relationConcept).
Proposition 3 (UML Constraint and CG Con-
straint). A UML positive constraint (resp. negative
constraint) is translated into a CG positive constraint
(resp. CG negative constraint)
2
by T that is extended
such as the coloration is preserved (resp. each node
is one colored.).
Let D be a UML class diagram and C a UML con-
straint. D verifies C iff T(D) verifies (Baget et al.,
1999; Baget and Mugnier, 2002) T(C).
A prototype was developed to make an interface
between a EUCD and a CG by using Cogitant (Gen-
est, 2008). It translates UML class diagram, UML
query and UML constraint into CGs. Cogitant opera-
tors (based on projection) compute results of queries
and verifie constraints on CGs. This interface makes
the visual link between CGs and UML class diagram
to display results computed by Cogitant (Raimbault
et al., ) on UML class diagram.
5 FUTURE WORK
We have proposed a way to translate UML queries
and UML constraints − both as EUCD − into the CG
model, and so use projection to query and check class
diagram. By using inverse translation, results can be
displayed in the visual representation of UML.
Due to the importance of visual representation of
knowledge, see for instance (OMG, b; Lukichev and
Wagner, 2006), we will now focus our attention on
how to represent rules into the UML visual environ-
ment by using bi-coloration (white background for
head and black background for conclusion) and how
to infere them by using the CG model.
REFERENCES
Akkerman, H., Anjewierden, A., Hoog, R. D., Shad-
bolt, N., de Welde, W. V., and Wielenga, B. (2000).
Knowledge engineering and management: the Com-
monKads methodology. Cambridge, MIT Press.
2
We recall that a CG constraint is a colored CG (Baget
et al., 1999; Baget and Mugnier, 2002).
Baget, J., Genest, D., and Mugnier, M. (1999). Knowl-
edge Acquisition with a Pure Graph-Based Knowl-
edge Representation Model. In Proc. of KAW’99, vol-
ume 2, pages 7.1.1–7.1.20.
Baget, J. and Mugnier, M. (2002). Extensions of Sim-
ple Conceptual Graphs: the Complexity of Rules and
Constraints. JAIR, 16(12):425–465.
Beckert, B., Keller, U., and Schmitt, P. H. (2002). Translat-
ing the Object Constraint Language into First-order
Predicate Logic. In Proc.of VERIFY, Workshop at
FLoC’02.
Booch, G., Jacobson, C., and Rumbaugh, J. (1998). The
Unified Modeling Language - a reference manual. Ad-
dison Wesley.
Chein, M. and Mugnier, M. (1992). Conceptual Graphs:
Fundamental Notions. Revue d’intelligence artifi-
cielle, 6(4):365–406.
Chein, M. and Mugnier, M. (1997). Positive nested con-
ceptual graphs. In Proc. of ICCS’97, volume 1257 of
LNAI, pages 95–109. Springer.
Chein, M. and Mugnier, M. (2004). Concept types and
coreference in simple conceptual graphs. In Proc. of
ICCS’04, volume 3127 of LNAI. Springer.
Chein, M., Mugnier, M., and Simonet, G. (1998). Nested
Graphs: A Graph-based Knowledge Representation
Model with FOL Semantics. In Proc. of KR’98, pages
524–534. Morgan Kaufmann Publishers.
Genest, D. (2008). Cogitant Reference Manual, version
5.1.92. http://cogitant.sourceforge.net.
Gogolla, M., Bttner, F., and Richters, M. (2007). USE: A
UML-Based Specification Environment for Validating
UML and OCL. Science of Computer Programming,
69:27–34.
Lukichev, S. and Wagner, G. (2006). Visual Rules Model-
ing. In Proc. of ICPSI’06. Springer.
OMG. Object Constraint Language, Version 2.0.
http://www.omg.org/spec/OCL/2.0/.
OMG. Production rule representation. Technical report.
br/2003-09-03.
OMG. Specification for the UML 2 modeling language.
http://www.omg.org/spec/UML/2.1.2/.
Raimbault, T., Genest, D., and Loiseau, S. A New Method
to Interrogate and Check UML Class Diagrams. In
Proc. of ICCS’05. Springer.
Raimbault, T., Genest, D., and Loiseau, S. (2009). A useful
logical semantics of UML for querying and checking
UML class diagram. In Proc. of ICAART’09, pages
179–184. Insticc Press.
Rhem, A. J. (2006). UML for Developing Knowledge Man-
agement Systems. New York, Auerbach Publications.
Sowa, J. (1984). Conceptual Structures: Information Pro-
cessing in Mind and Machine. Addison Wesley.
USING UML CLASS DIAGRAM AS A KNOWLEDGE ENGINEERING TOOL
65