<!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>Axiom Dependency Hypergraphs for Fast Modularisation and Atomic Decomposition</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Francisco Mart n-Recuerda</string-name>
          <email>fmartinrecuerda@fi.upm.es</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dirk Walther</string-name>
          <email>Dirk.Walther@tu-dresden.de</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>TU Dresden, Theoretical Computer Science Center for Advancing Electronics Dresden</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Universidad Politecnica de Madrid</institution>
          ,
          <country country="ES">Spain</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this paper we use directed hypergraphs to represent the locality-based dependencies between the axioms of an OWL ontology. We de ne a notion of an axiom dependency hypergraph, where axioms are represented as nodes and dependencies between axioms as hyperedges connecting possibly several nodes with one node. We show that a locality-based module of an ontology corresponds to a connected component in the hypergraph, and an atom of an ontology to a strongly connected component. Collapsing the strongly connected components into single nodes yields a condensed axiom dependency hypergraph, which contains the atomic decomposition of the ontology. To condense the axiom dependency hypergraph we exploit linear time graph algorithms on its graph fragment. This optimization can signi cantly reduce the time needed to compute the atomic decomposition of an ontology. We provide an experimental evaluation for computing the atomic decomposition of large biomedical ontologies, and for computing syntactic locality-based modules using the condensed axiom dependency hypergraph.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        An axiom dependency hypergraph (ADH) for OWL ontologies is a directed
hypergraph which explicitly represents the locality-based dependencies between
axioms. This graph can be used to compute the atomic decomposition (AD) of
an ontology [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. Di erent to other hypergraph representations of ontologies [
        <xref ref-type="bibr" rid="ref10 ref12">12,
10</xref>
        ], the nodes represent axioms that are connected by hyperedges which
explicitly describe the locality-based dependencies between axioms. These hyperedges
mimic the order in which axiom are included in a locality-based module by
the module extraction algorithm [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Due to this particular hypergraph
representation the correspondence between atoms of an ontology and the strongly
connected components (SCCs) of its hypergraph becomes apparent. This allows
us to employ standard algorithms from graph theory to compute atoms.
Similarly, modules can be characterized as connected components in an ADH. The
notion of an ADH provides a new perspective on previous work on locality and
atomic decomposition from the point of view of graph theory.
      </p>
      <p>
        Computing all SCCs in a directed hypergraph is an inherently quadratic
process [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], whereas in a directed graph, it can be done in linear time wrt. the size of
the graph [
        <xref ref-type="bibr" rid="ref11 ref13">11, 13</xref>
        ]. For several well-known biomedical ontologies from the NCBO
Bioportal,1 many (if not all) of the locality-based dependencies between axioms
can be represented by simple edges [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. In the case that all dependencies between
axioms of an ontology can be represented using simple edges only, the ADH is
a directed graph, and its SCCs can be computed very e ciently. For ontologies
containing axioms that exhibit dependencies which can only be represented using
complex hyperedges, we can still bene t from the use of linear-time algorithm
for computing SCCs in the graph fragment of the ADH.
      </p>
      <p>
        We have implemented a Java prototype for computing the atomic
decomposition and syntactic locality-based modules. We con rm a signi cant improvement
in running time for prominent biomedical ontologies from the NCBO Bioportal
compared against state-of-the-art implementations [
        <xref ref-type="bibr" rid="ref14 ref15">14, 15</xref>
        ].
      </p>
      <p>The paper is organised as follows. In Section 2, we introduce the notion of
minimal non-locality signature of an axiom which can be used to check whether
an axiom is non-local wrt. a signature. In Section 3, we introduce the notion of an
axiom dependency hypergraph, and we show how to characterize locality-based
modules as well as atoms together with their dependencies. We demonstrate the
applicability of the hypergraph-based approach with an evaluation of our Java
prototype in Section 4. The paper is concluded in a nal section.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Non-locality of Axioms</title>
      <p>
        In this paper, we consider ontologies formulated in the expressive description
logic SROIQ [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] which underlies the Web Ontology Language OWL 2.2 For the
evaluation, we consider prominent biomedical ontologies that are formulated in
the light-weight description logic E L++ [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] which is at the core of the OWL 2 EL
pro le.3 For a detailed introduction to description logics, we refer to [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
      </p>
      <p>
        A module M of an ontology O wrt. a signature is a subset of O that
preserves all entailments formulated using symbols from only. More formally,
M O is a module of O wrt. if for all axioms with sig( ) : M j= i
O j= , where sig( ) denotes the signature of . The notion of syntactic locality
has been suggested as a practical approach to computing approximations of
minimal modules in polynomial time [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Syntactic locality for a signature
de nes a set of axioms that are syntactically local wrt. . We consider the
syntactic locality-based notions ?-locality and &gt;-locality, and we do not consider
any semantic locality notion. An axiom is local wrt. if is equivalent to a
tautology after all symbols in that are not in have been replaced by either
&gt; or ?, respectively. Intuitively, is local wrt. if it does not state anything
1 http://bioportal.bioontology.org/
2 http://www.w3.org/TR/owl2-overview/
3 http://www.w3.org/TR/owl2-profiles/#OWL_2_EL
about the symbols in . An ontology can safely be extended with or it can
safely import , where `safe' means not changing the meaning of terms in . We
denote with ModOx ( ), for x 2 f?;&gt;g, the x-local module of ontology O wrt.
the signature consisting of axioms that are not x-local wrt. .
      </p>
      <p>We can check for the state of syntactic non-locality of an axiom in terms of
signature containment. To this end, we introduce the notion of minimal
nonlocality signature for SROIQ axioms.</p>
      <p>
        De nition 1. Let be an axiom, and let x 2 f?;&gt;g denote a locality notion.
A Minimal non-x-Locality Signature for an axiom is a signature sig( )
such that is not x-local wrt. , and is minimal (wrt. set inclusion) with
this property. The set of minimal non-x-locality signatures of is denoted by
MLS x( ).
a
The notion of minimal non-locality signature turns out to be equivalent to the
notion of minimal globalising signatures, which where introduced speci cally for
computing modules from an atomic decomposition [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
      </p>
      <p>The following example shows that there can be exponentially many minimal
non-locality signatures for axioms formulated in a simple concept description
language using merely conjunction and disjunction as operators.
Example 1. Let = (X11 t X12 t t X1m) u u (Xn1 t Xn2 t
be an axiom. The minimal non-?-locality signature MLS?( ) of
t Xnm) v Y
is as follows:</p>
      <p>MLS?( ) = ffX1i1 ; X2i2 ; : : : ; Xnin g j i1; i2; : : : ; in 2 f1; :::; mgg
Then: jMLS?( )j = mn.</p>
      <p>
        However, exponentially many minimal non-locality signatures can be avoided
if the axiom is normalised. An ontology O is normalised by applying the
normalisation rules presented in [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], which are an extension of the
normalisation for E L in [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. Axioms of a normalised ontology have one of the
following forms, where Ai 2 NC [ f&gt;g, Bi 2 NC [ f?g, Ri 2 NR [ inv(NR), X; Y 2
f9R:B; ( n R:B); 9R:Self j B 2 NC; R 2 NR [ inv(NR); n 0g and `; m 0:
1 : A1 u : : : u A` v B1 t : : : t Bm
2 : X v B1 t : : : t Bm
3 : A1 u : : : u A` v Y
4 : R1 : : : R` v R`+1
5 : X v Y
6 : R1 v R2
7 : Dis(R1; R2)
where NC, NR are mutually disjoint sets of concept names and role names, inv(NR)
is the set of inverse roles r , for r 2 NR, and 9R:Self expresses the local
reexivity of R. The normalisation of O runs in linear time in the size of O. The
normalised ontology is a conservative extension of O wrt. sig(O) [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].4
      </p>
      <p>
        The following proposition can readily be seen.
4 The normalisation in [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] can straightforwardly be extended to SROIQ-ontologies.
      </p>
      <p>Then a normalised axiom can be of the forms as described, where Ai and Bi
additionally range over nominals. However, nominals are not contained in any minimal
non-locality signature of a normalised axiom.</p>
      <p>Then:
holds:</p>
      <p>be a normalised axiom. Then: jMLS?( )j = 1 and</p>
      <sec id="sec-2-1">
        <title>Proposition 1. Let</title>
        <p>jMLS&gt;( )j 2.</p>
        <p>Proposition 2 (Non-locality via Signature Containment). Let
normalised axiom. Let be a signature. Then: is not ?-local wrt.
of the following holds:
is not &gt;-local wrt.</p>
        <p>i
is of the form
7 or one of the following
{ sig(RHS( )) \
{ sig(RHS( ))
6= ; if is of the form
if is of the form</p>
        <p>3, 4, 5, 6;
1; 2.
a
3</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Axiom Dependency Hypergraph</title>
      <p>
        A directed hypergraph [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] is a tuple H = (V; E ), where V is a non-empty set
of nodes (vertices), and E is a set of hyperedges (hyperarcs). A hyperedge e is
a pair (T (e); H(e)), where T (e) and H(e) are non-empty disjoint subsets of V.
H(e) (T (e)) is known as the head (tail ) and represents a set of nodes where
the hyperedge ends (starts). A B-hyperedge is a directed hyperedge with only
one node in the head. Directed Hypergraphs with only B-hyperedges are called
Directed B-hypergraphs. This is the only type of hypergraphs that we consider
in this paper.
      </p>
      <p>A node v is B-connected (or forward reachable) from a set of nodes V 0
(written V0 B v) if (i) v 2 V 0, or (ii) there is a B-hyperedge e such that v 2 H(e)
and all tail nodes in T (e) are B-connected from V 0. For a set of nodes V0 V,
we denote with B(V0) the set B(V0) = fv 2 V j V 0 B vg of B-connected
nodes from V0.</p>
      <p>
        In a directed hypergraph H, two nodes v1 and v2 are strongly B-connected if
v2 is B-connected to v1 and vice versa. In other words, both nodes, v1 and v2,
are mutually reachable. A strongly B-connected component (SCC) is the set of
all nodes from H which are all mutually reachable [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. We allow an SCC to be a
singleton set as the reachability relation is re exive, i.e., any axiom is mutually
reachable from itself.
      </p>
      <p>Directed B-hypergraphs can be used to explicitly represent the locality-based
dependencies between axioms. Axiom dependency hypergraphs for ontologies wrt.
the locality-based modularity notions are de ned as follows. We use sig(S) to
denote the signature of a set S of axioms.</p>
      <p>De nition 2 (Axiom Dependency Hypergraph). Let O be an ontology.
Let x 2 f?;&gt;g denote a locality notion. The Axiom Dependency Hypergraph
x for O wrt. x-locality (x-ADH) is de ned as the directed B-hypergraph HOx =
HO
( x
V ; E x), where</p>
      <p>Vx and H(e) = f g, for some
2 Vx,
a
{ Vx = O; and
{ e = (T (e); H(e)) 2 E x i T (e)
such that:
(i) 2= T (e), and
(ii) is not x-local wrt. sig(T (e)).</p>
      <p>The nodes of the axiom dependency hypergraph are the axioms in the
ontology. Hyperedges are directed and they connect possibly many tail nodes with
one head node. Note that a head node of a hyperedge is not allowed to occur in
its tail. Intuitively, the tail nodes of an hyperedge e correspond to axioms that
provide the signature symbols wrt. which the axiom represented by the head
node of e is non-local. We can think of walking along hyperedges to access
Bconnected nodes as part of the process of how the module extraction algorithm
computes a module by successively including axioms into the module.</p>
      <p>The notion of ADH for ontologies depends on the notion of syntactic locality.
Using Prop. 2, we can equivalently de ne this notion using minimal non-locality
signatures by replacing Item (ii) of Def. 2 with:
(iib)
sig(T (e)), for some</p>
      <p>2 MLS x( ).</p>
      <p>An ADH HO contains all locality-based dependencies between di erent
axioms of the ontology O. These dependencies are represented by the hyperedges
in HO. Note that HO contains exponentially many hyperedges, many of which
can be considered redundant in the following sense.</p>
      <p>De nition 3. A hyperedge e in a directed B-hypergraph H is called redundant
if there is a hyperedge e0 in H such that H(e) = H(e0) and T (e0) ( T (e). a
A compact version of a directed B-hypergraph H is obtained from H by removing
all redundant hyperedges while the B-connectivity relation between axioms is
preserved. In the remainder of the paper, we consider ADHs that are compact.
Notice that compact ADHs are unique and they may still contain exponentially
many hyperedges. The number of hyperedges can be reduced to polynomially
many by rst normalising the ontology as discussed in Section 2. In the following,
we characterise modules and atoms together with their dependencies in terms of
ADHs for which B-reachability is crucial.
3.1</p>
      <sec id="sec-3-1">
        <title>Locality-based modules in an ADH</title>
        <p>
          B-connectivity in an ADH can be used to specify locality-based modules in
the corresponding ontology. A locality-based module of an ontology O for the
signature of an axiom (or a subset of axioms O0 O) corresponds to the
B-connected component in the ADH for O from (or O0) [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ].
        </p>
        <p>Proposition 3. Let O be an ontology, O0 O and = sig(O0). Let B
be the B-connectivity relation of the x-ADH for O, where x 2 f?; &gt;g. Then:
ModOx ( ) = B(O0). a</p>
        <p>However, ADHs do not contain su cient information for computing a module
for an arbitrary signature as the following simple example shows.
Example 2. Let O = f 1 = A v C; 2 = C u B v D; 3 = D v Ag and
= fA; Bg. We have that Mod?O( ) = f 1; 2; 3g. The ?-ADH for O contains
no hyperedge e with H(e) = f 2g and, consequently, 2 cannot be reached via
a hyperedge.</p>
        <p>The problem can be solved by incorporating the signature into the ADH.
The -extension HOx; of an x-ADH HOx for an ontology O wrt. x-locality,
x 2 f?;&gt;g, is de ned as the ADH according Def. 2 but with Item (ii) replaced
with:
(iii)</p>
        <p>is not x-local wrt. [ sig(T (e)).</p>
        <p>Intuitively, no symbol in contributes to the dependencies between axioms.
Consequently, less axioms in the tail are needed to provide the signature for
nonlocality of . Note that hyperedges that are non-redundant in the original ADH
may become redundant in the -extended ADH. The remaining hyperedges
represent the dependencies between axioms modulo .</p>
        <p>Example 3. Let O and as in Ex. 2. The -extension of ?-ADH for O contains
the edge e = ff 1g; f 2gg. Hence, 2 can be reached via the hyperedge e. Axiom
1 is the only axiom that is not-? local wrt. . The B-connected nodes from
1 are the axioms in Mod?O( ).</p>
        <p>Given the -extension of an ADH for an ontology, B-connectivity can be
used to determine the axioms that are not local wrt. to and to compute the
corresponding locality-based module.</p>
        <p>Proposition 4. Let O be an ontology, a signature and x 2 f?;&gt;g. Let Ox be
the set of axioms from O that are not x-local wrt. . Let B be the B-connectivity
relation of the -extension of the x-ADH for O. Then: ModOx ( ) = B(Ox ). a
3.2</p>
      </sec>
      <sec id="sec-3-2">
        <title>ADH Atomic Decomposition</title>
        <p>
          Atoms represent sets of highly related axioms in the sense that they always
cooccur in modules [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. We denote with AtomsxO the set of all atoms of O wrt.
x-locality modules, for x 2 f?;&gt;g. The atoms of an ontology partition the set of
its axioms (i.e., every axiom occurs in exactly one atom). A dependency relation
between atoms can be established: an atom a2 depends on an atom a1 in an
ontology O (written a1 &lt;O a2) if a2 occurs in every module of O containing
a1. The binary relation &lt;O is a partial order. For a given ontology, the poset
hAtomsx ; &lt;Oi was introduced as Atomic Decomposition (AD ) and it represents
        </p>
        <p>
          O
the modular structure of the ontology [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ].
        </p>
        <p>
          In the previous section, we have established that locality-based modules of
an ontology O correspond to sets of B-connected nodes in the axiom
dependency hypergraph for O. An atom of O consists of axioms that share the same
modules wrt. the signature of . It holds that for every x-local atom a O with
x 2 f?;&gt;g: ; 2 a if, and only if, ModOx (sig( )) = ModOx (sig( )) [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. Together
with Proposition 3, we can now characterise the notion of an atom with a
corresponding notion in axiom dependency hypergraphs. We have that two nodes in
an ADH represent axioms that are contained in the same atom if, and only if,
the nodes agree on the set of nodes that are B-connected from them. Formally:
; 2 a if, and only if, B( ) = B( ), where B be the B-connectivity
relation of the ADH HO for O. It follows that all axioms of an atom are mutually
B-connected in HO. Axioms that are mutually B-connected constitute strongly
B-connected components of HO. Consequently, the set of atoms for an
ontology O corresponds to the set of strongly B-connected components in the axiom
x ) be the set of strongly connected
dependency hypergraph for O. Let SCCs(HO
components of the hypergraph HOx, where x 2 f?; &gt;g.
        </p>
        <p>Proposition 5. Let O be an ontology and let x 2 f?;&gt;g denote a locality
notion. Then: AtomsOx = SCCs(HOx). a</p>
        <p>The condensed ADH is formed by collapsing the strongly B-connected
components into single nodes and turning hyperedges between axioms into
hyperedges between sets of axioms. The condensed ADH corresponds to the quotient
hypergraph HO='B of HO under the mutual B-connectivity relation 'B in HO.
The 'B-equivalence classes are the strongly B-connected components of HO.
The partition of a hypergraph under an equivalence relation is de ned as
follows.</p>
        <p>De nition 4 (Quotient Hypergraph). Let H = (V; E) be a hypergraph. Let
' be an equivalence relation over V. The quotient of H under ', written H=',
is the graph H=' = (V='; E'), where
{ V=' = f[x]' j x 2 Vg; and
{ e = (T (e); H(e)) 2 E' i there is an e0 2 E such that T (e) = f[x]' j x 2
T (e0)g, H(e) = f[x]' j x 2 H(e0)g and T (e) \ H(e) = ;. a
We can now de ne the notion of a condensed ADH as the partition of the
ADH under the mutual B-reachability relation.</p>
        <p>De nition 5 (Condensed Axiom Dependency Hypergraph). Let HOx =
( x
V ; Ex) be the x-ADH for an ontology O, where x 2 f?;&gt;g. Let 'B be the
x . The condensed axiom dependency
hymutual B-connectivity relation in HO
pergraph for O wrt. x-locality (x-cADH) is de ned as the quotient HOx='B of
HOx under 'B. a</p>
        <p>
          The dependency relation &lt;xO between x-local atoms of O, for x 2 f?; &gt;g, is
de ned as follows [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. For atoms a; b 2 AtomsOx and axioms 2 a and 2 b:
a &lt;xO b if, and only if, b ModOx ( ) if, and only if, ModOx ( ) ModOx ( ).
e5 = (f 3g; f 4g)
e9 = (f 5g; f 4g)
Proposition 6. Let O be an ontology with ; 2 O. Let a; b 2 AtomsOx such
that 2 a and 2 b, where x 2 f?;&gt;g. Let ' be the mutual B-connectivity
relation in the x-ADH for O and the B-connectivity relation in the x-cADH
for O. Then: a &lt;xO b i [ ]' [ ]'. a
Example 4. Let O = f 1; :::; 5g, where 1 = A v B, 2 = B u C u D v E,
3 = E v A u C u D, 4 = A v X, 5 = X v A. The ?-ADH HO? contains the
following hyperedges:
e1 = (f 1; 3g; f 2g) e2 = (f 1g; f 4g) e3 = (f 2g; f 3g) e4 = (f 3g; f 1g)
e6 = (f 4g; f 1g) e7 = (f 4g; f 5g) e8 = (f 5g; f 1g)
We obtain the following ?-local modules for the axioms:
        </p>
        <p>Mod?O( 1) = Mod?O( 4) = Mod?O( 5) = f 1; 4; 5g</p>
        <p>Mod?O( 2) = Mod?O( 3) = f 1; 2; 3; 4; 5g</p>
        <p>The resulting atoms in Atoms?O are a1 = f 2; 3g and a2 = f 1; 4; 5g,
where a1 &lt; a2, i.e. a2 depends on a1. The ADH HO? with the SCCs and the
condensed ADH HO?='B is depicted in Figure 1.</p>
        <p>SCC1
e3
2
3
e1
e4
1
e6</p>
        <p>SCC2
e8
e2
e5
(a) HO?
5
4
e9
e7
scc1</p>
        <p>e4=5
scc2
(b) HO?='B</p>
        <p>The strongly connected components of HO? are SCC1 = f 2; 3g and SCC2 =
f 1; 4; 5g. Moreover, SCC2 depends on SCC1 as any axiom in SCC2 is
Bconnected from any axiom in SCC1. Note that the atoms a1 and a2 of O and
their dependency coincide with the strongly connected components of HO?.</p>
        <p>Analogously to the previous section, we can characterise modules in terms of
B-reachability in condensed axiom dependency hypergraphs. Proposition 3 can
be lifted to cADHs as follows.</p>
        <p>Proposition 7. Let O be an ontology, O0 O and = sig(O0). Let ' be the
mutual B-connectivity relation of the x-ADH for O and B the B-connectivity
relation of the -extension of the x-cADH for O, where x 2 f?; &gt;g. Then:
ModOx ( ) = S B(f[ ]' j 2 O0g). a
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Implementation and Evaluation</title>
      <p>
        For a collection of well-known biomedical ontologies from the NCBO Bioportal,
we observe that for many (if not all) axioms, the locality-based dependencies
to other axioms can be represented using only simple directed hyperedges (i.e.,
hyperedges with only one tail node) [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. For instance, the ADH for ontologies
like CHEBI can be seen as a directed graph without complex hyperedges (i.e.,
hyperedges with more than one tail node). Computing strongly connected
components in a graph can be done in linear-time using standard algorithms from
graph theory [
        <xref ref-type="bibr" rid="ref11 ref13">11, 13</xref>
        ]. That is, for ontologies like CHEBI we compute the strongly
connected components of the respective ADH in linear time.
      </p>
      <p>
        For ADHs of ontologies O like SNOMED CT that contain both, simple and
complex hyperedges, we compute the strongly connected components in four
steps. First, we build the axiom dependency graph GO, which is the fragment
of the ADH HO for O without complex hyperedges. Second, we compute the
strongly connected components of GO using a linear-time algorithm [
        <xref ref-type="bibr" rid="ref11 ref13">11, 13</xref>
        ]. Note
that the strongly connected components give rise to an equivalence relation 'GO
on the nodes in GO. In the third step, we reduce HO by computing the quotient
graph HO='GO of HO using 'GO (cf. Def. 4). Finally, in step four, we obtain
the strongly connected components of HO by determining for any two nodes
in HO whether they are mutually reachable. Note that computing mutual
reacha=b'ilGitOy this way is a quadratic process. However, using HO instead of
HO it is usually more e cient as the number of nodes is typical=ly'GrOeduced.
      </p>
      <p>The number of hyperedges may be exponential in the size of the ontology,
which makes it impractical to represent the entire ADH explicitly. We implement
an ADH H = (V; E ) as a directed labelled graph GH = (V; E 0; L) containing
the simple hyperedges of H and encoding the complex hyperedges in the node
labels as follows. A node v in GH for an axiom is labelled with the pair
L(v ) = (MLS?( ); sig( )) consisting of the minimal non-?-locality signatures
of and the signature of . Reachable nodes in GH can be computed by walking
along the edges in E 0 and via signature containment checks. Condensed ADHs
are implemented in a similar way with the di erence that nodes represent sets
of axioms. For a set S of axioms, we set MLS?(S) = S 2S MLS?( ). We note
that when computing modules for an arbitrary signature using GH, it is not
necessary to compute the -extension of GH (cf. Prop. 4 and 7). Reachable nodes
in the -extension of GH can be computed via a modi ed signature containment
check that accounts for using the node labels in GH.</p>
      <p>We have implemented a Java prototype that computes the atomic
decomposition and locality-based modules of several prominent biomedical ontologies. The
implementation takes an E L++-ontology as an input and computes the atomic
decomposition wrt. ?-locality, and the ?-local module of an arbitrary input
signature. The current version of our prototype does not normalize the input
ontology. For the evaluation of our prototype, we have selected nine well-known
biomedical ontologies that are available (with the exception of Snomed CT)
in the NCBO Bioportal and in the ORE 2013 repository.5 We divide the
ontologies into two groups. The rst group of six ontologies only contains axioms
whose dependencies wrt. ?-locality can be represented using simple hyperedges,
whereas the second group of three ontologies requires both, simple and complex
hyperedges.</p>
      <p>
        We compare the performance of our prototype against the performance of
two systems for computing the atomic decomposition of OWL2 ontologies which
implement the same algorithm [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]: FaCT++ v1.6.2 which is implemented in
C++ [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]6 and OWLAPITOOLS v1.0.0 which is implemented in Java [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]7 as
an extension of the OWLAPI.8 All experiments were conducted on an Intel
Xeon E5-2640 2.50GHz with 100GB RAM running Debian GNU/Linux 7.3. We
use Java 1.7.0 51 and the OWLAPI version 3.4.8. The following table lists the
results, where each time is the average of 10 executions.
      </p>
      <p>Properties of O AD time for O
jsig(O)j #axioms #axioms #role FaCT++ OWLAPI ADH</p>
      <p>A v C C D axioms TOOLS
We applied a timeout of 24h, which aborted the executions of the
OWLAPITOOLS on the ontologies Gazetteer and NCBI.</p>
      <p>Our prototype consistently outperforms FaCT++ which in turn
(considerably) outperforms the OWLAPITOOLS, with the exception of FMA-lite. In the
case of the rst group of six ontologies, an over 1 000-fold speedup could be
achieved compared to the performance of FaCT++ on FMA-lite and Gazetteer.
For the smallest ontology in this group, which is GO, the prototype is 13 times
faster than FaCT++. The prototype also scales better than the other systems.
For the second group of three ontologies, the speedup is reduced but our
prototype is still 4{7 times faster than FaCT++, and 11{23 faster than the
OWLAPITOOLS. Collapsing the strongly connected components of the graph fragment of
5 http://ore2013.cs.manchester.ac.uk/
6 http://code.google.com/p/factplusplus/
7 http://owlapitools.sourceforge.net/
8 http://owlapi.sourceforge.net/
the ADH helps reducing the number of nodes by nearly 50% in some cases. The
use of a tree datastructure to represent the set of reachable nodes computed for
each node of the ADH reduces the time needed to identify mutually reachable
nodes.</p>
      <p>We also compare the performance of our prototype for extracting ?-locality
modules with the performance of FaCT++ and the OWLAPI. The following
table presents for every implementation the time needed to extract a module
from an ontology for a signature consisting of 500 symbols selected at random.
Our prototype outperforms FaCT++ and the OWLAPI in all cases. For the
rst group of six ontologies, the best speedup of over 95 times wrt. FaCT++
was achieved in the case of FMA-lite. For the second group of three ontologies,
the best performance improvement was realised in the case of Full-Galen with a
speedup of over 25-times. The speedup wrt. the OWLAPI is even higher.
5</p>
    </sec>
    <sec id="sec-5">
      <title>Conclusion</title>
      <p>We have introduced the notion of an axiom dependency hypergraph that
represents explicitly the locality-based dependencies between axioms. We have shown
that locality-based modules of an ontology correspond to a set of connected
nodes in the hypergraph, and atoms of an ontology to strongly connected
components. We have implemented a prototype in Java that computes, based on
axiom dependency hypergraphs, the atomic decomposition of E L++-ontologies
wrt. ?-locality. Our prototype outperforms FaCT++ and the OWLAPITOOLS
in computing the atomic decomposition of all biomedical ontologies tested. In
some cases a staggering speedup of over 1 000 times could be realised. Moreover,
our prototype outperforms FaCT++ and the OWLAPI in extracting syntactic
?-locality modules. Here a speedup of over 95 times could be realised.</p>
      <p>We plan to extend the prototype implementation to support both &gt;-locality
and full SROIQ-ontologies. Moreover, it would be interesting to investigate the
possibility of computing strongly connected components in hypergraphs in less
than quadratic time. Such a result would improve the performance of computing
mutual reachability in the axiom dependency hypergraph for ontologies whose
locality-based dependencies can only be represented by complex hyperedges.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Allamigeon</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          :
          <article-title>Strongly connected components of directed hypergraphs</article-title>
          .
          <source>CoRR abs/1112</source>
          .1444 (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Brandt</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lutz</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Pushing the EL envelope further</article-title>
          .
          <source>In: Proc. of OWLED'08</source>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>McGuinness</surname>
            ,
            <given-names>D.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nardi</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Patel-Schneider</surname>
            ,
            <given-names>P.F</given-names>
          </string-name>
          . (eds.):
          <article-title>The description logic handbook: theory, implementation, and applications</article-title>
          . Cambridge University Press (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>Del</given-names>
            <surname>Vescovo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            ,
            <surname>Gessler</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.D.G.</given-names>
            ,
            <surname>Klinov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            ,
            <surname>Parsia</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            ,
            <surname>Sattler</surname>
          </string-name>
          ,
          <string-name>
            <given-names>U.</given-names>
            ,
            <surname>Schneider</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            ,
            <surname>Winget</surname>
          </string-name>
          ,
          <string-name>
            <surname>A.</surname>
          </string-name>
          :
          <article-title>Decomposition and modular structure of bioportal ontologies</article-title>
          .
          <source>In: Proc. of ISWC'11</source>
          , pp.
          <volume>130</volume>
          {
          <fpage>145</fpage>
          . Springer-Verlag (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Del</given-names>
            <surname>Vescovo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            ,
            <surname>Parsia</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            ,
            <surname>Sattler</surname>
          </string-name>
          ,
          <string-name>
            <given-names>U.</given-names>
            ,
            <surname>Schneider</surname>
          </string-name>
          ,
          <string-name>
            <surname>T.</surname>
          </string-name>
          :
          <article-title>The modular structure of an ontology: Atomic decomposition</article-title>
          .
          <source>In: Proc. of IJCAI'11</source>
          , pp.
          <volume>2232</volume>
          {
          <issue>2237</issue>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Gallo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Longo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pallottino</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nguyen</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Directed hypergraphs and applications</article-title>
          .
          <source>Discrete Applied Mathematics</source>
          <volume>42</volume>
          (
          <issue>23</issue>
          ),
          <volume>177</volume>
          {
          <fpage>201</fpage>
          (
          <year>1993</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Grau</surname>
            ,
            <given-names>B.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Horrocks</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kazakov</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sattler</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          :
          <article-title>Modular reuse of ontologies: theory and practice</article-title>
          .
          <source>JAIR 31</source>
          ,
          <issue>273</issue>
          {
          <fpage>318</fpage>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Horrocks</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kutz</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sattler</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          :
          <article-title>The even more irresistible SROIQ</article-title>
          .
          <source>In: Proc. of KR'06</source>
          , pp.
          <volume>57</volume>
          {
          <fpage>67</fpage>
          . AAAI Press (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Mart</surname>
            n-Recuerda,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Walther</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Towards fast atomic decomposition using axiom dependency hypergraphs</article-title>
          .
          <source>In: Proc. of WoMO'13. CEUR Workshop Proceedings</source>
          , vol.
          <volume>1081</volume>
          .
          <string-name>
            <surname>CEUR-WS.org</surname>
          </string-name>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Nortje</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Britz</surname>
          </string-name>
          , A., Meyer, T.:
          <article-title>Reachability modules for the description logic SRIQ</article-title>
          .
          <source>In: Proc. of LPAR-13</source>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Sharir</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>A strong connectivity algorithm and its applications to data ow analysis</article-title>
          .
          <source>Computers &amp; Mathematics with Applications</source>
          <volume>7</volume>
          (
          <issue>1</issue>
          ),
          <volume>67</volume>
          {
          <fpage>72</fpage>
          (
          <year>1981</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Suntisrivaraporn</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>Polynomial time reasoning support for design and maintenance of large-scale biomedical ontologies</article-title>
          .
          <source>Ph.D. thesis</source>
          , TU Dresden, Germany (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Tarjan</surname>
          </string-name>
          , R.E.:
          <article-title>Depth- rst search and linear graph algorithms</article-title>
          .
          <source>SIAM J. Comput</source>
          .
          <volume>1</volume>
          (
          <issue>2</issue>
          ),
          <volume>146</volume>
          {
          <fpage>160</fpage>
          (
          <year>1972</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Tsarkov</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Improved algorithms for module extraction and atomic decomposition</article-title>
          .
          <source>In: Proc. of DL'12. CEUR Workshop Proceedings</source>
          , vol.
          <volume>846</volume>
          .
          <string-name>
            <surname>CEUR-WS.org</surname>
          </string-name>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Tsarkov</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vescovo</surname>
            ,
            <given-names>C.D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Palmisano</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          :
          <article-title>Instrumenting atomic decomposition: Software apis for owl</article-title>
          .
          <source>In: Proc. of OWLED'13. CEUR Workshop Proceedings</source>
          , vol.
          <volume>1080</volume>
          .
          <string-name>
            <surname>CEUR-WS.org</surname>
          </string-name>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>