<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>DiTTO: Diagrams Transformation inTo OWL</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Aldo Gangemi</string-name>
          <email>aldo.gangemi@cnr.it</email>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Silvio Peroni</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computer Science and Engineering, University of Bologna</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>LIPN</institution>
          ,
          <addr-line>Universit Paris 13</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>STLab-ISTC, Consiglio Nazionale delle Ricerche</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this paper we introduce DiTTO, an online service that allows one to convert an E/R diagram created through the yEd diagram editor into a proper OWL ontology according to three di erent conversion strategies. Ontology design is an activity that involves the use of many di erent languages, resources, and technologies. When dealing with formal or semi-formal languages used by di erent people such as domain experts, knowledge engineers or nal users, a correct transformation strategy can be crucial to guarantee an e ective design. For instance, it seems preferable to adopt intuitive languages when the ontology should be introduced to and/or discussed with an heterogeneous audience, which may not be expert of formal languages and knowledge representation. In these cases, graphical languages seem to support well both ontology understanding and the discussion between knowledge engineers and nal users. The recent project ran by the Italian National Research Council (CNR)4 and SOGEI5, the Information and Communication Technology company owned by the Italian Ministry of Economy and Finance, presents the aforementioned scenario. The aim of the CNR-SOGEI project is twofold. One goal is the reengineering of the E/R (Entity-Relationship) models SOGEI use to describe scal entities (such as taxpayers, laws, deposits, etc.) into standard Semantic Web languages, such as OWL 2. Another goal is to propose tools that facilitate future interactions (changes, re-use in di erent application contexts, etc.) with these semantic models. In this paper we present one of the aforementioned tools called DiTTO, which stands for Diagrams Transformations inTo OWL. As its name suggest, DiTTO is able to translate E/R diagrams expressed in crow's foot notation and created with yEd6, an open source application to quickly and e ectively generate high-quality diagrams, into OWL ontologies.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>In Section 2 we present some relevant diagram models originally developed
for particular purposes (e.g. software engineering, databases, AI), and
progressively adapted to also model OWL ontologies. In Section 3 we introduce DiTTO,
describing its implementation and showing how to use it for diagram
transformation. We also discuss a set of transformation rules to convert E/R diagrams
into OWL. Finally, in Section 4, we present our plans for future developments
of the tool, in terms of both new transforming features and diagrams support.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Related work</title>
      <p>
        One of the most common graphical notations for logical languages is a semantic
network, which can be de ned as a \graphic notation for representing knowledge
in patterns of interconnected nodes and arcs" [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. Ontology classes and
individuals are de ned as nodes of a graph; at the same time, direct and labelled arcs
can interlink nodes in order to represent predicates between them.
      </p>
      <p>
        Gasevic et al. [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] and Brockmans et al. [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] propose another UML pro le that
enables one to de ne OWL entities using an extended set of UML-based graphic
notations. The industry consortium responsible of UML, the Object
Management Group, released an o cial UML pro le [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] for de ning OWL ontologies,
called Ontology De nition Metamodel (ODM). TopBraid Composer7 is a
commercial tool featuring a diagramming component that adopts a proprietary UML
pro le to represent a substantial part (focusing on subclasses and associations,
including restrictions and class constructions) of OWL semantics.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>From E/R to OWL</title>
      <p>DiTTO has been implemented as a Web service8, as shown in Fig. 1.</p>
      <p>The core of DiTTO is a set of XSLT 2.0 documents included in a Java Web
Application Archive (i.e. a WAR le) served as a Tomcat application. These
XSLT documents apply several rewriting templates to the source le of the E/R
diagram created by means of yEd, which is stored in GraphML format9.
7 http://www.topbraidcomposer.com
8 http://www.essepuntato.it/ditto
9 GraphML speci cation: http://graphml.graphdrawing.org/speci cation.html.</p>
      <p>Using the service is quite simple. One needs to specify a URL referring to a
yEd diagram, or, alternatively, to choose such a diagram from the le system.
Then, after choosing among the available options and after specifying the pre x
for naming ontological entities and the full URI of the ontology itself, the
\Generate OWL" button can be used to produce an RDF/XML le containing the
OWL ontology result of the conversion.</p>
      <p>The transformation rules DiTTO implements are as follows. E/R entities,
attributes and relations are converted into OWL classes, data properties and
object properties respectively. All the subtype relations between E/R entities
are converted into rdfs:subClassOf axioms. In addition, DiTTO adds appropriate
restrictions to classes according to the edges that link E/R entities. In particular:
{ a link between an E/R entity and an attribute results in restricting the
related OWL class with a quali ed cardinality;
{ a symbol (i.e. zero-to-many) of a relation results in restricting the domain
class with a universal quanti er. This restriction is also added if any of the
symbols in the following point is speci ed;
{ the symbols (i.e. one-to-many), (i.e. one-to-one) and (i.e.
zero-toone) result in restricting the domain class with an existential quanti er, a
quali ed cardinality and a quali ed maximum cardinality respectively.</p>
      <p>In addition to these rules, DiTTO allows one to chochooose what E/R
semantics to apply for the transformation. We have identi ed three alternative
conversion strategies, which depends on the application of two assumptions:
{ global semantics (GS) is a characteristic of OWL ontologies (but not typically
of E/R), and has the e ect of unifying the formal interpretation of domain
and range axioms, property characteristics, and all the restrictions that act
at a global level. When GS does not hold, one is not allowed to assume such
uni cation, even when the axioms regard two constants with the same name;
{ unique name assumption (UNA), which is a characteristic in E/R
semantics (but not of OWL), and whose consequence is that two objects named
di erently always refer to di erent entities in the world.</p>
      <p>
        In particular, the minimal strategy interprets the semantics of E/R in its
purest form (cf. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]) by not using GS, while using UNA, the intermediate strategy
does not use either GS or UNA, and nally the maximal strategy, which is the
closest to OWL semantics, use GS, but UNA does not hold.
      </p>
      <p>Di erent strategies proved useful in the aforementioned project because they
address di erent requirements. The minimal strategy is of course conservative
with the possible conceptualisations admitted by the original speci cation, while
the maximal one allows us to simulate the consequences of E/R into OWL
semantics, with its pros and cons, e.g. suggesting domains and ranges, or uni cation
of properties, as well as spotting potential issues when applying the simulation.</p>
      <p>In Fig. 2 we illustrate a small E/R diagram based on SIOC10, and an excerpt
of the OWL ontology returned by DiTTO by using the maximal strategy for the
conversion.
10 SIOC Ontology: http://sioc-project.org/ontology.</p>
    </sec>
    <sec id="sec-4">
      <title>Conclusions</title>
      <p>In this paper we presented DiTTO, an online service that converts E/R
diagrams created with the yEd editor into proper OWL ontologies according to
three di erent conversion strategies: minimal, intermediate and maximal. Future
extensions of the tool will address the management of additional E/R features
(such as primary and foreign keys, and multiple and optional attributes), as well
as di erent kinds of diagrams (e.g. UML and Gra oo11) as input.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Berardi</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Giacomo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          (
          <year>2005</year>
          ).
          <article-title>Reasoning on UML class diagrams</article-title>
          .
          <source>In Arti cial Intelligence</source>
          ,
          <volume>168</volume>
          (
          <issue>1-2</issue>
          ):
          <fpage>70</fpage>
          -
          <lpage>118</lpage>
          . DOI:
          <volume>10</volume>
          .1016/j.artint.
          <year>2005</year>
          .
          <volume>05</volume>
          .003
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Brockmans</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Haase</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hitzler</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Studer</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          (
          <year>2006</year>
          )
          <article-title>: A Metamodel and UML Pro le for Rule-Extended OWL DL Ontologies</article-title>
          .
          <source>In Proceedings of the 3rd European Semantic Web Conference. DOI: 10.1007/11762256 24</source>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Gasevic</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Djuric</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Devedzic</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Damjanovic</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          (
          <year>2004</year>
          ).
          <article-title>Converting UML to OWL Ontologies</article-title>
          .
          <source>In Proceedings of the 13th international World Wide Web Conference on Alternate track papers &amp; posters. DOI: 10.1145/1013367</source>
          .1013539
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4. Object Management Group (
          <year>2009</year>
          ). Ontology De nition
          <source>Metamodel (ODM) Version</source>
          <volume>1</volume>
          .0. http://www.omg.org/spec/ODM/1.0/PDF
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Sowa</surname>
            ,
            <given-names>J. F.</given-names>
          </string-name>
          (
          <year>1987</year>
          ).
          <article-title>Semantic Networks</article-title>
          .
          <source>In Encyclopedia of Arti cial Intelligence</source>
          . John Wiley &amp; Sons. ISBN:
          <volume>0471503053</volume>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>