<!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>Advanced ontology visualization with OWLGrEd</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Jānis Bārzdiņš</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Kārlis Čerāns</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Renārs Liepiņš</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Artūrs Sproģis</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Institute of Mathematics and Computer Science, University of Latvia</institution>
          ,
          <addr-line>Raina blvd. 29, LV-1459, Riga</addr-line>
          ,
          <country country="LV">Latvia</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Intuitive ontology visualization is a key for their learning, exchange, as well as their usage in conceptual modeling. OWLGrEd is a visual tool for compact graphical UML-style rendering and editing of OWL 2.0 ontologies. Here we introduce into OWLGrEd visualization annotations that allow defining custom visual presentations of ontology entities on the basis of annotations attached to these entities. The introduced mechanism of attaching visual annotations to annotation properties used in the ontology, besides being convenient for attaching graphical shape to user-defined annotations, appears to be powerful enough to cover visualization of e.g. UML stereotypes and other UML constructs that do not have direct counterpart in the "logic" part of OWL.</p>
      </abstract>
      <kwd-group>
        <kwd>OWL ontologies</kwd>
        <kwd>visualization</kwd>
        <kwd>annotations</kwd>
        <kwd>OWLGrEd</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Intuitive ontology visualization is a key for their learning, exchange, as well as their
usage in conceptual modeling. There are a number of tools (e.g. [
        <xref ref-type="bibr" rid="ref1 ref2 ref3 ref4">1,2,3,4</xref>
        ]) for
rendering and/or editing OWL ontologies in a graphical form. ODM [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] and OWLGrEd [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]
are oriented on visualization of OWL ontologies in the style of UML [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] class
diagrams. The main idea of OWLGrEd has been to provide compact graphical
notation for OWL ontologies, by combining the graphical visualization facilities of
UML class diagrams with textual facilities of OWL Manchester encoding [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
      <p>
        Although OWLGrEd can be successfully used for ontology presentation and
editing in a UML-style graphical form (cf. [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]), the practical task of ontology-based
modeling suggests further facilities that would be welcome in a graphical ontology
editor. The ontology designer may attach certain specific meaning to some ontology
entities by user-defined annotation properties and then may wish to create specific
visualization patterns for the introduced properties. For instance, if an annotation
assertion relates an OWL class to a database table expression, a database icon besides
the table expression field may be appropriate in rendering this annotation assertion.
      </p>
      <p>There are also natural modeling constructs in UML that do not have direct
counterpart in OWL, such as stereotypes, composition relation and derived union of
properties (or “abstract” property A, not having other subject-object pairs than those
of union of B and C). The visual annotation framework that we introduce in this paper
allows both visual effect specification for user-defined annotations and visual
modeling of the mentioned “advanced” UML concepts (these concepts may be said to
correspond to “user-defined” annotations from OWL perspective, as well).</p>
      <p>In what follows, after brief reviewing of basic OWLGrEd ontology modeling
facilities we proceed to the main point of outlining the visual annotation framework
and some its usage examples, including advanced UML construct modeling.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Basic OWLGrEd constructs</title>
      <p>
        OWLGrEd provides graphical notation for OWL, based on UML class diagrams. We
show OWL classes as UML classes, data properties as class attributes, object
properties as associations, individuals as objects, etc. We enrich the UML class
diagrams with the following new extension notations (cf. [
        <xref ref-type="bibr" rid="ref4 ref8">4, 8</xref>
        ]):
• fields in classes for equivalent class, superclass and disjoint class expressions
written in Manchester OWL syntax [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ];
• fields in associations 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 for visualizing disjoint, equivalent, etc. axioms;
• boxes with connectors for n-ary disjoint, equivalent, etc. axioms;
• connectors for visualizing object property restrictions some, only, exactly, etc.
OWLGrEd provides option to specify class expressions in compact textual form
rather than using separate graphical element for each logical item within class
expression. If an expression is referenced in multiple places, it can optionally be
shown as an anonymous class. An anonymous class is also used as a base for property
domain/range specification, if this domain/range is not a class.
      </p>
      <p>Plant</p>
      <p>Tree
is-part-of
only
Leaf
is-part-of</p>
      <p>{tran}</p>
      <p>Tasty-plant
eats only</p>
      <p>Thing {owl}
eaten-by
eats
eaten-by-animal
{&lt;eaten-by}</p>
      <p>Animal
weight:integer
&lt;&lt;disjoint&gt;&gt;
eaten-by some [1..*] = AnimaClarnivore</p>
      <p>and (eats some Animal)
&lt;&lt;Label&gt;&gt;
"Panthera leo"</p>
      <p>
        Lion
= Animal Herbivore
and (eats only
(Plant
or (is-part-of only Plant)))
eats eaten-by
only some Giraffe
[1..*] Label("giraffa
camelopardalis")
Figure 1 depicts a variation of the popular African wildlife ontology [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] using
OWLGrEd notation. More detailed explanation of the notation used in the example
and its correspondence to OWL Manchester encoding is available in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. We note also
that OWLGrEd allows ontology interoperability with Protégé ontology editor [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].
      </p>
    </sec>
    <sec id="sec-3">
      <title>Annotation Visualization Framework</title>
      <p>The OWLGrEd’s annotation visualization framework allows mapping the built-in and
user-defined annotation properties onto editor’s visual styles and behavior patterns,
thus allowing customizable annotation assertion visualization.</p>
      <p>An annotation assertion for an OWL entity (e.g. OWL class or OWL property) can
be visualized in OWLGrEd either textually within the visual representation object for
the entity (Inside mode, cf. Giraffe class label in Fig.1), or by a separate box
connected to the box/line with entity representation (Outside mode, cf. Lion class label).</p>
      <p>In order to determine the visualization mode for an annotation property, say P, we
introduce a (visual) annotation property aShowMode in og namespace denoting
http://owlgred.lumii.lv/2011/visual/1.0/, and annotate P itself with this property, as in
AA(og:aShowMode :P og:modeInside)1. We introduce also annotation properties
og:aClassShowMode and og:aPropertyShowMode to describe visual modes for
Passertion visualization for subjects that are OWL classes and properties respectively.</p>
      <p>
        The advanced annotation visualization framework allows adding specific visual
style and behavior annotations to aShowMode-assertions (cf. Fig. 2) that are
interpretted by OWLGrEd. The style/behavior annotations in the case of Inside showing mode
may set the visual style of the annotation P field (og:displayStyle-annotation)2 and of
the diagram element (box or line) containing the annotation field
(og:displayElemStyle). The style annotation value is a string with encoded values of style items
from visual style metamodel of [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. It may define e.g. shape and color for a box;
dash length and start/end shape for a line; font name/style, placement and visibility
for a compartment (field); a box or field may also have a picture (icon) attached to it.
      </p>
      <p>The type of showing annotation’s assertions may be set by
og:prSheetTypeannotation. Its value og:Text (the default) denotes using text field for representing the
annotation value; og:Item denotes representing the annotation via placing its property
name (URI) in a designated single-valued compartment (only one og:Item-type
annotation can be shown visually for any subject).</p>
      <p>The prefix/suffix for annotation assertion presentation in the diagram can be
specified by og:displayValuePrefix and og:displayValueSuffix annotations.
AA(
AA(</p>
      <p>A(og:prSheetType og:Item)
A(og:displayElemStyle “bkgColor=’blue’”)
og:aClassShowMode :ClassDB og:Inside)
A(og:aDependency :ClassDB)
A(og:displayStyle “picture=’db.jpg’”)
og:aClassShowMode :DBExpr og:Inside)</p>
      <p>Fig. 2. Visual annotation specification and application example
A(og:aDependency :Q) annotation of P’s aShowMode-assertion states that the
specified P visualization effects apply only to subjects that are annotated also by Q, and
A(og:aDomainDependency :Q) states the dependence of P-assertion visualization
features from its subject’s domain annotation by Q. Fig. 2 shows OWL class Person,
with ClassDB and DBExpr annotations, before and after visual annotation application.
1 We let here and in the following examples A to stand for Annotation and AA for AnnotationAssertion
2 An inner-level og:compID-assertion may specify relation of visual properties to another compartment.</p>
      <p>We note that A(og:prSheetType og:Item) annotations are sufficient to state that an
annotation property (e.g. ClassDB) behaves like UML stereotype; og:aDependency
provides visual framework for stereotype’s tagged values (e.g. a DBExpr-annotation
is visualized in a field with database icon only for ClassDB-annotated classes).
Let for Mini-University ontology (Fig.3) there be assertions AA(user:isComposition
:includes “True”) and AA(user:isDerivedUnion :relates “True”) with user-defined
annotation properties isComposition and isDerivedUnion that are used for encoding
UML composition and property derived union constructs, not expressible in OWL.
The following visual annotations allow creating typical UML representations for
these constructs in OWLGrEd (cf. representation of :includes and :relates in Fig.3):
AA( A(og:displayElemStyle “line_start=’diamond’”) og:aShowMode user:isComposition og:Inside)
AA( A(A(og:compID “name”) og:displayValuePrefix “/”) A(og:displayStyle “visible=False”)
og:aShowMode user:isDerivedUnion og:Inside)</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>ODM</given-names>
            <surname>UML profile for</surname>
          </string-name>
          <string-name>
            <surname>OWL</surname>
          </string-name>
          , http://www.omg.org/spec/ODM/1.0/PDF/
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>TopBraid</given-names>
            <surname>Composer</surname>
          </string-name>
          , http://www.topquadrant.com/products/TB_Composer.html
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Brockmans</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Volz</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Eberhart</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Löffler</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          <article-title>Visual Modeling of OWL DL Ontologies Using UML</article-title>
          ,
          <source>Proc. of ISWC</source>
          <year>2004</year>
          , LNCS 3298,
          <year>2004</year>
          , pp.
          <fpage>198</fpage>
          -
          <lpage>213</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>J.</given-names>
            <surname>Barzdins</surname>
          </string-name>
          , G.Barzdins,
          <string-name>
            <given-names>K.</given-names>
            <surname>Cerans</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Liepins</surname>
          </string-name>
          ,
          <string-name>
            <surname>A.Sprogis.</surname>
          </string-name>
          <article-title>OWLGrEd: a UML Style Graphical Notation and Editor for OWL 2</article-title>
          . // K.Clark and E.Sirin (eds.),
          <source>OWLED</source>
          <year>2010</year>
          :
          <article-title>OWL: Experiences and Directions, 7th Intl</article-title>
          . Workshop, San Francisco, CA, USA
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Unified</given-names>
            <surname>Modeling</surname>
          </string-name>
          <article-title>Language</article-title>
          . http://www.omg.org/spec/UML/2.3/.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>6. OWL 2 Manchester Syntax, http://www.w3.org/TR/owl2-manchester-syntax/</mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>7. OWLGrEd, http://owlgred.lumii.lv/</mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>J.</given-names>
            <surname>Barzdins</surname>
          </string-name>
          , G.Barzdins,
          <string-name>
            <given-names>K.</given-names>
            <surname>Cerans</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Liepins</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Sprogis</surname>
          </string-name>
          .
          <source>UML Style Graphical Notation and Editor for OWL 2. // Proc. of BIR'</source>
          <year>2010</year>
          , LNBIP, Springer
          <year>2010</year>
          , vol.
          <volume>64</volume>
          , p.
          <fpage>102</fpage>
          -
          <lpage>113</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9. Antoniou G.,
          <string-name>
            <given-names>van Harmelen F. A Semantic</given-names>
            <surname>Web</surname>
          </string-name>
          <string-name>
            <surname>Primer</surname>
          </string-name>
          , Second Edition, MIT Press,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Protégé</surname>
          </string-name>
          , http://protege.stanford.edu/
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>J.Barzdins</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          <string-name>
            <surname>Cerans</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Kozlovics</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          <string-name>
            <surname>Rencis</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Zarins</surname>
          </string-name>
          .
          <article-title>A Graph Diagram Engine for the Transformation-Driven Architecture</article-title>
          ,
          <source>Proc. of 4th MDDAUI. Florida, USA</source>
          ,
          <year>2009</year>
          , pp.
          <fpage>29</fpage>
          -
          <lpage>32</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>