<!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>
      <journal-title-group>
        <journal-title>Journal of Modern Computing (BJMC), Vol.</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Advanced UML Style Visualization of OWL Ontologies</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Jūlija Ovčiņņikova</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Kārlis Čerāns</string-name>
        </contrib>
      </contrib-group>
      <pub-date>
        <year>2008</year>
      </pub-date>
      <volume>3</volume>
      <issue>2014</issue>
      <fpage>89</fpage>
      <lpage>102</lpage>
      <abstract>
        <p>The OWLGrEd ontology editor allows graphical visualization and authoring of OWL 2.0 ontologies using a compact yet intuitive presentation that combines UML class diagram notation with textual OWL Manchester syntax for expressions. We describe here the approaches available for ontology presentation fine tuning within the OWLGrEd editor, namely the ontology visualization option framework and the editor plug-in mechanism together with concrete plugins aimed to enhance the ontology presenting and editing experience.</p>
      </abstract>
      <kwd-group>
        <kwd>OWL</kwd>
        <kwd>OWLGrEd</kwd>
        <kwd>UML-style ontology visualization</kwd>
        <kwd>ontology visualization options</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Presenting OWL ontologies [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] in a comprehensible form is important for ontology
designers and their users alike. The graphical form in general and UML class diagram
notation in particular offers an option of basic visual ontology construct presentation
that allows linking together constructs that are related in the ontology (e.g. an object
property can be depicted as a line connecting its domain and range class boxes). UML
class diagrams need to be extended to cope with full OWL 2.0 construct modeling. This
is solved in different graphical notations in different ways. So, ODM [2], defines a
UML profile for ontology presentation and OWLGrEd [3] and TopBraid Composer [4]
integrate OWL Manchester Syntax [5] for presenting advanced OWL constructs in
textual form. The uniqueness of OWLGrEd lies in its combined ability to lay out an
ontology that is imported or created in the editor in a compact graphical UML-style form,
and make further manual ontology editing/adjustment. VOWL [6] visualizes ontologies
by another approach using graphical primitives both for object and data property
presentation, so obtaining a more uniform ontology presentation in a dynamic, yet
readonly, graph-like form. The VOWL presentation of the same ontology will also typically
require more graphical elements, than OWLGrEd.
      </p>
      <p>The real strength of ontology presentation in an editor like OWLGrEd comes from
the user’s ability to fine-tune the ontology diagram after its automated rendering to
obtain documentation-ready ontology presentations. Such a fine tuning may involve the
diagram object repositioning, as well as its re-structuring up to full ontology editing
facilities available in the tool (including e.g. manual deletion of irrelevant information).</p>
      <p>In order to achieve a high quality ontology presentation in the tool, even in the
presence of manual fine tuning options available, the quality of first ontology diagram
created upon the import of the ontology into the tool still remains very important. Since
the UML diagrams, as well as the OWLGrEd notation allow for different presentations
of the same semantic elements (e.g. a graphical and textual one), and different
ontologies may correspond to different desirable ontology presentation options, we describe
here a re-factored ontology visualization option framework offering a number of
choices that the user can make already before importing the ontology into the tool.</p>
      <p>We describe here also a number of OWLGrEd plugins that can be used for diagram
refactoring services, as well as its structural and semantics extensions. This part of work
extends the earlier authors’ work on domain specific ontology visualizations [7,8] (this
paper describes new re-factoring services plug-in, as well as reviews the plug-in
mechanism and concrete plugin architecture from the ontology visual presentation
perspective). The editor plugins described here are included in the OWLGrEd tool download
and can be activated on-demand for concrete projects. The OWLGrEd editor with
preinstalled configuration, as described here, is available at http://owlgred.lumii.lv/pp.
2</p>
    </sec>
    <sec id="sec-2">
      <title>OWLGrEd Notation and Editor</title>
      <p>
        OWLGrEd (http://owlgred.lumii.lv/) provides a graphical notation for OWL 2 [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ],
based on UML class diagrams. OWL classes are typically visualized as UML classes,
data properties as class attributes, object properties as association roles, individuals as
objects, cardinality restrictions on association domain class as UML cardinalities, etc.
The UML class diagrams are enriched with new extension notations, e.g. (cf. [3,9]):
 fields in classes for equivalent class, superclass and disjoint class expressions
written in Manchester OWL syntax [5];
 fields in association roles and attributes for equivalent, disjoint and super properties
and fields for property characteristics, e.g., functional, transitive, etc.;
 anonymous classes containing equivalent class expression but no name;
 connectors (as lines) for visualizing binary disjoint, equivalent, etc. axioms;
 boxes with connectors for n-ary disjoint, equivalent, etc. axioms;
 connectors (lines) for visualizing object property restrictions some, only, exactly, as
well as cardinality restrictions.
      </p>
      <sec id="sec-2-1">
        <title>IllnessTreatment</title>
        <p>{disjoint}</p>
      </sec>
      <sec id="sec-2-2">
        <title>TraumaTreatment</title>
      </sec>
      <sec id="sec-2-3">
        <title>CancerTreatment</title>
      </sec>
      <sec id="sec-2-4">
        <title>DiabetesTreatment</title>
      </sec>
      <sec id="sec-2-5">
        <title>Person</title>
        <p>personID:string
dateOfBirth:dateTime
traumaPatient cancerPatient
{&lt;patient} {&lt;patient}</p>
      </sec>
      <sec id="sec-2-6">
        <title>Trauma</title>
        <p>"Trauma illness case"
treatedIllnessCase
only
treatedIllnessCase
IllnessCase
patient
diabPatient {&lt;patient}
&lt;&lt;comment&gt;&gt;
"Illness case
and patient
ontology
fragment"</p>
      </sec>
      <sec id="sec-2-7">
        <title>Cancer</title>
        <p>"Cancer illness case"
treatedIllnessCase
only
&lt;&lt;disjoint&gt;&gt;</p>
      </sec>
      <sec id="sec-2-8">
        <title>Diabetes</title>
        <p>"Diabetes ilness
case"
treatedIllnessCase
only
The UML notation provides several options for presenting its semantic elements in
different visual ways. This principle is kept also in OWLGrEd by including both graphical
and textual notations for such semantic elements as subclass relations, object property
relations, annotations and object properties as association roles or as attributes.</p>
        <p>The automatic ontology visualization in OWLGrEd by default shall use the graphical
notation, if there is no clear reason for switching to textual one. Fig. 2 shows a larger
fragment of Medicine Registries Ontology in a graphical notation for all object
properties and object property restrictions, and with separate disjoint classes axiom rendering.</p>
        <p>Person
treatingDoctor pdeatresOonfBI Dir:tsht:rdinatgeTime
ddooccttoorrCND&lt;oa&lt;odmEcene:tus:osmtrrtCirnilnaggss&gt;&gt; idllinaebsRseRgeDgoDctoocrto{r&lt;illness RetrgaDuom{c&lt;taopPra}atiteiennt}t canc{e&lt;rpPaatiteiennt}t
cancerRegDoctor {&lt;illness RegDoctor}
traumaRegDoctor {&lt;illness RegDoctor}
workplace
MedicalEsta&lt;&lt;bElinsuhmeCmlases&gt;n&gt;t treatedIllnessCase only Trauma
estNam e:string
estType:string
treatmentPlace
IllnessTreatment
TraumaTreatment</p>
        <p>&lt;&lt;disjoint&gt;&gt;</p>
        <p>CancerTreatment
DiabetesTreatment
patient
diabPatient {&lt;patient}</p>
        <p>Cancer
treatedIllnessCase
only
treatedIllnessCase</p>
        <p>IllnessCase</p>
        <p>Diabetes
treatedIllnessCase</p>
        <p>only
&lt;&lt;disjoint&gt;&gt;
diagnCode:string
diagnDescr:string
cancerTrDiagnosis diabTrDiagnosis
{&lt;treatedDiagnosis} {&lt;treatedDiagnosis}</p>
        <p>traumaDiagnosis cancerDiagnosis
treatedDiagnosis {&lt;illness Diagnosis} {&lt;illness Diagnosis}</p>
        <p>Diagnosis &lt;&lt;EnumClass&gt;&gt; idllinaebsDsiaDgiangonsoissi{s&lt;illness Diagnosis}
traumaTrDiagnosis {&lt;treatedDiagnosis}
For different ontologies and their parts, the appropriate element visualization
methods may differ depending on the ontology content, e.g. if the ontology contains a small
number of object property restrictions, a better way to display object property
restrictions would be graphical. However, it would not carry much information to display
graphically object property restrictions that are based on owl:Thing as the target class.
A textual form object property restriction visualization may be favorable also in the
presence of a large number of these restrictions in the ontology.</p>
        <p>The ontology visualization parameter framework offers parameters for inclusion /
not inclusion of different object types in ontology visualization (e.g. one can choose to
visualize ontology without data property annotations or without disjoint class axioms).
Most of the framework parameters, however, refer to different ways (e.g. a graphical,
or a textual form) of different type entity and axiom information visualization.</p>
        <p>Figure 3 illustrates parameter setting interface including the option to represent
subclass relations as text or graphically. In graphical mode there is a possibility to draw
subclass relations as lines or combine them through forks, if there are more than one
subclass for a given class.</p>
        <p>There are also parameters for disjoint class axiom rendering in Fig. 3. Along with
disjoint classes representation as text or graphically (in a separate graphical node), there
is a possibility to group disjointness relations, into boxes if there are more than two
disjoint classes, and it is possible to hide information if it is not presented graphically.</p>
        <p>An important option in UML is a possibility to mark the generalization sets as
disjoint. This notation is brought also over to OWLGrEd since it can greatly simplify the
graphical diagram appearance, if the disjointness axiom matches a level within the class
hierarchy. If the ‘Use Disjoint mark at forks’ box is checked in the import parameter
form, the ontology importer is able to identify the cases when all class subclasses are
disjoint and add specific {disjoint} mark to the generalization element (cf. the
generalization set notation for the subclasses of the IllnessTreatment class in Fig. 1).</p>
        <p>Figure 3 also shows possible extra choices that can be made for the subclass
relations, such as “Mark top-level named classes as subclasses of ‘Thing’”, “Draw subclass
relations to named class A from expression ‘A and ...’”, “Draw subclass relations from
named classes to their union”, “Hide subclass information, if not presented graphically”
and an option to choose whether to create anonymous subclasses as boxes, or not. The
extra parameters are left unchecked by default to obtain less loaded graphical
presentation, however they can be turned on to show more clear class hierarchy, if desired.
To enhance the ontology visualization fine tuning experience after the ontology initial
loading into the tool, as well as to support different custom ontology visualization
means and the ontology editing work in general, the OWLGrEd ontology editor can be
extended by means of plugins. The ontology editor plugins offer editor notation and
environment extension means, in a similar manner, as profiles do for UML class
diagrams [11,12]. A plugin to the ontology editor, may include structural editor symbol
extensions with fields and visual effects, as well as editor behavior extensions.</p>
        <p>The OLWGrEd plugin for ontology re-structuring includes transformations for
adjusting the ontology visual presentation after its automatic visual rendering. It allows
switching between the textual and graphical presentation form for concrete object
property and object property restriction presentations within the ontology diagram, as well
as re-factoring individual disjoint classes axiom presentation (e.g. from a separate
disjoint-box to the ‘disjoint’ mark at the sub-class form symbol). The plugin can be used
to transform e.g. the ontology diagram of Fig. 2 or Fig. 4 into the one of Fig. 5, where
certain object properties (in the concrete example – the ones not having
super-properties) are displayed in a graphical form to balance the structure presentation and
compactness requirements. For an experienced OWLGrEd user it should take about 5
minutes to change manually the ontology diagram of e.g. Fig. 2 into the one of Fig. 5.</p>
        <p>The ontology presentation in Fig. 5, as well as the presentation in Fig. 2 and Fig. 4
uses also a custom “enumerated class” boolean user field presentation.</p>
        <p>In general, the editor extensions with symbol fields and graphical effects enhance
the ontology presentation options by introducing domain-specific notations into the
ontology presentation (the extensions can be configured to take into account the domain
specific notations also during the ontology import); they are handled by a generic User
Fields plugin [8] that is currently part of the default OWLGrEd editor configuration.</p>
        <p>The available editor enhancements, supported by the User Fields plugin [8] include:
 custom fields, together with their semantics mappings (e.g. “enumerated class”);
 custom visual effects for text and choice fields and symbols dependent on
concrete text or choice field values (e.g. a brown/darker enumerated class color);
 views applying certain visual effects to the entire diagram (e.g. hiding certain
information from the presentation). The default OWLGrEd configuration includes
views for horizontal and vertical alignment, and hiding all annotations.</p>
        <p>An example of ontology editor plugin that involves both the user fields and custom
functionality definition is the data ontology support plugin [13]; it contains the above
considered “enumerated class” field definition. It also adds extra maximum cardinality
1 axioms to all data and object properties that are rendered in the editor in the textual
form and do not have explicit cardinality specification. The plugin also records the class
attribute ordering into an annotation so that this ordering could be further used in
automated user interface generation for ontology-conformant data browsing (cf. [13]).</p>
        <p>The other currently maintained OWLGrEd editor plugins are: (i) Controlled Natural
Language (CNL) interface support plugin (used to augment the ontology with lexical
information in [14]) and (ii) database to ontology mapping support plugin DBExpr [13].
5</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Conclusions</title>
      <p>The UML style visualization and authoring of OWL ontologies has been proven to be
a successful alternative to other ontology visualization and authoring means. The
OWLGrEd editor is able to offer a compact ontology notation by using OWL
Manchester syntax [5] for textual presentation of advanced ontology constructs.</p>
      <p>We have described three mechanisms that can be applied to enhance the ontology
visual presentation and editing experience: (i) ontology visualization parameters; (ii)
ontology profiles that may enhance the user experience in creating comprehensible and
visually appealing ontology presentations; (iii) ontology visualization transformation
means. Each of them can be further developed and enhanced to reflect new ontology
rendering patterns, as well as to respond to the needs of concreate use cases.</p>
      <p>A future work direction is also to move the OWLGrEd editor to the web
environment, this depends on suitable tool definition framework availability providing the
necessary editor definition infrastructure; this is work in progress in itself, as well.
5. OWL
2</p>
      <p>Manchester Syntax, htp:/w.3orgTRl2</p>
      <p>m-ances</p>
      <p>Ontology Visualization with OWLGrEd. In: ESWC 2012 Satellite Events, Springer LNCS,</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Motik</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Patel-Schneider</surname>
            ,
            <given-names>P.F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Parsia</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>OWL 2 Web Ontology Language Structural Specification</article-title>
          and
          <string-name>
            <surname>Functional-Style Syntax</surname>
          </string-name>
          (
          <year>2009</year>
          )
          <article-title>2</article-title>
          .
          <string-name>
            <surname>ODM UML profile for</surname>
            <given-names>OWL</given-names>
          </string-name>
          , htp:/w.omgrsecODM10PF 3.
          <string-name>
            <surname>Barzdins</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Barzdins</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cerans</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Liepins</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sprogis</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>OWLGrEd: a UML Style Graphical Notation and Editor for OWL 2</article-title>
          .
          <source>In: Proc. of OWLED</source>
          <year>2010</year>
          (
          <year>2010</year>
          )
          <article-title>4</article-title>
          .
          <string-name>
            <given-names>TopBraid</given-names>
            <surname>Composer</surname>
          </string-name>
          . htp:/w.oquadrncmlseig6.
          <string-name>
            <surname>Lohmann</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Negru</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Haag</surname>
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ertl</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Visualizing Ontologies with VOWL. Semantic 7</article-title>
          .
          <string-name>
            <surname>Cerans</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Liepins</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sprogis</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ovcinnikova</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Barzdins</surname>
          </string-name>
          , G.:
          <article-title>Domain-Specific OWL 8</article-title>
          .
          <string-name>
            <surname>Cerans</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ovcinnikova</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Liepins</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sprogis</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <source>Advanced OWL 2</source>
          .0 Ontology Visu-
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>