<!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>Towards Searching for Transformation Patterns in Support of Language Pro ling</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Alexander Simko</string-name>
          <email>simko@fmph.uniba.sk</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ondrej Zamazal</string-name>
          <email>ondrej.zamazal@vse.cz</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Comenius University in Bratislava</institution>
          ,
          <country country="SK">Slovakia</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University of Economics</institution>
          ,
          <addr-line>Prague</addr-line>
          ,
          <country country="CZ">Czech Republic</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Motivation Semantic web ontology tools usually support a certain set of logical operators. In many cases this set of operators is not su cient to completely capture the semantics of the OWL language. Thus, these tools cannot be used on certain ontologies or they provide incomplete reasoning results. In both cases, the transformation of the input ontology can improve the situation. In particular, the ontology can be transformed into a version that only uses the supported operators. Although construct replacement can be done inside the ontology tools, doing this outside the tools gives the user more exibility because (s)he can design a transformation that is not directly hard-coded into the tool. Since it is hard to manually design a suitable transformation pattern, we try to automatically search for suitable transformation patterns (TPs) by evolutionary algorithm (EA) to support ontology pro ling. The paper extends our previous work of general construct replacing approach [1]. An Evolutionary Algorithm for Searching of TPs At the head of our automatic transformation of forbidden language constructs in ontology is the evolutionary algorithm3 searching the space of all TPs for a TP that keeps the most of the logical meaning. The EA keeps a population of TPs, which are generated randomly at the beginning. At each step, the algorithm creates a new population by quasi-randomly selecting TPs from the old population. Better TPs have bigger probability to enter into a new population. Moreover, TPs that are added to the new population are crossed and mutated with a given probability. After the maximal number of steps is reached, the best TP found so far is returned. For EA a TP is represented as a triple (op1; op2; pt), where op1 and op2 are lists of axioms within a source (resp. target) OP and a pattern transformation pt is a list of transformation links. Axioms are written in a frame-based variant of Manchester syntax,4 and are represented using syntax trees allowing us to easily mutate axioms. A transformation link is simply a pair of placeholders from corresponding OPs. Numbers of axioms in source/target OPs and transformation links are randomly generated but considering their respective assigned maxima. A crossover of two TPs tp1 = (op11; op12; pt1) and tp2 = (op21; op22; pt2) is done in component-wise manner, i.e. op11 is crossed with op21 etc. Two OPs are 3 Implementation is available at https://code.google.com/p/tpgen/ 4 http://www.w3.org/TR/owl2-manchester-syntax/</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>crossed by generating an index and switching the elements of the lists (similarly
for two PTs). A TP is mutated by mutating each axiom in both OPs and each
transformation link with a given probability. Since an axiom is represented as a
syntactic tree it is mutated by visiting each node starting from the root and
regenerating the sub-tree using the grammar rules corresponding to the symbol in
the node. A transformation link is mutated by randomly switching a placeholder.</p>
      <p>Fitness value is computed for each TP and given ontology so that the ontology
is transformed accordingly and then we compute averaged F1-measure on results
of ve simple SPARQL queries (e.g. equivalency, subsumption, instantiation)
considering results from original ontology as expected results and results from
transformed ontology as returned results. By employing Pellet reasoner,5 tness
value also includes inferred axioms. TPs with higher tness are better since they
preserve more semantic properties of an original ontology. If TP does not contain
constructs to be replaced in source OP, tness value is zero.6</p>
      <p>A set of forbidden language constructs is given as an input to the EA. The
respective probabilities of a target OP are set to zero. This ensures that the
forbidden language constructs are not present after the generated TP is applied
to an input ontology. In order to reduce search space, input ontology is analyzed
and, as a result, language constructs not present in the input ontology are zeroed
in a source OP.</p>
      <p>Future Work We plan to restrict generations of transformation patterns in terms
of axioms present in given ontology wrt. source ontology pattern and in terms
of some background knowledge about possible construct substitutes regarding
target ontology pattern. Next, we also plan to test more sophisticated
computation of tness value, e.g., considering semantic ontology di . In all, our work
needs a substantial amount of experimentation (and parameters tuning) with
highlighted planned features.</p>
      <p>Although our work is still in its early phase, we think that this approach
can make sense for an automatic transformation of complex axioms rather than
transformation of simple axioms with one construct which can be easily done by
manually tailored transformation patterns.</p>
      <p>Acknowledgement This work was supported from the Czecho-Slovak bilateral
project nos. 7AMB12SK020 (AIP) and SK-CZ-0208-11 (APVV). Ondrej
Zamazal has been supported by the CSF grant no. 14-14076P.
5 http://pellet.owldl.com/
6 The equation for tness measure, examples of its computation, examples for
mutation/crossover operations etc. are at the supplementary web: http://owl.vse.cz:
8080/OWLED-2014/</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Svab-Zamazal</surname>
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schlicht</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stuckenschmidt</surname>
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Svatek</surname>
            <given-names>V</given-names>
          </string-name>
          .
          <article-title>Constructs Replacing and Complexity Downgrading via a Generic OWL Ontology</article-title>
          .
          <source>In: SOFSEM</source>
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>