<!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>GraphMatcher: A Graph Representation Learning Approach for Ontology Matching</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Sefika Efeoglu</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Free University of Berlin, Department of Computer Science</institution>
          ,
          <addr-line>Takustraße 9, 14195 Berlin</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Ontology matching is defined as finding a relationship or correspondence between two or more entities in two or more ontologies. To solve the interoperability problem of the domain ontologies, semantically similar entities in these ontologies must be found and aligned before merging them. GraphMatcher, developed in this study, is an ontology matching system using a graph attention approach to compute higher-level representation of a class together with its surrounding terms. The GraphMatcher has obtained remarkable results in in the Ontology Alignment Evaluation Initiative (OAEI) 2022 conference track. Its codes are available at https://github.com/sefeoglu/gat_ontology_matching.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;graph attention</kwd>
        <kwd>graph representation</kwd>
        <kwd>ontology matching</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Networks of Bento et al. (2020) [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] apply machine learning (ML) for matching. Nevertheless,
according to OAEI’s 1 conference track results, these ML approaches cannot achieve a better
performance than traditional tools such as AML and LogMAP. The weakness of these ML
approaches might be due to the lack of contextual information about the property and class.
Another limitation is in how to represent the ontology’s data as a convolutional graph - such
as an image in which each pixel in the image data has the same number as its neighbouring
pixels - whereas each class in ontology has a diferent number of its neighboring terms like an
arbitrary graph [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. The most appropriate way of representing the data in the ontology is the
arbitrary graph.
      </p>
      <p>
        Since the ontology represents the data with the arbitrary graph, we aim to develop a graph
representation learning model based on a graph attention mechanism [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] using Siamese
networks [
        <xref ref-type="bibr" rid="ref6 ref7 ref8">7, 8, 6</xref>
        ] to find the semantically similar concepts within the ontologies. The graph
attention mechanism computes the higher-level representation of a concept and its surrounding
concepts (features). The model then finds similarity scores between the concept pairs among
the aligned ontology pairs and determines the concept alignments.
      </p>
    </sec>
    <sec id="sec-2">
      <title>1.2. Specific techniques used</title>
      <p>
        GraphMatcher utilises a graph representation learning approach that uses the graph attention [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
Its network consists of five layers. The main contribution is the adaptation of the graph attention
to the Siamese network in the third layer.
1Ontology Alignment Evaluation Initiative (OAEI):
http://oaei.ontologymatching.org/
2The orders of the layers in the network is similar to the VeeAlign [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], since this work’s extended version has also
increased the performance of the VeeAlign with our neighborhood aggregation algorithm in “ Efeoglu, S. (2021). A
Deep Learning Approach for Domain-Specific Ontology Construction. University of Potsdam. [Master’s Thesis]”.
      </p>
      <sec id="sec-2-1">
        <title>1.2.1. Preprocessing</title>
        <p>Data preprocessing is one of the most significant parts of developing a ML model and is
required to explain the variability of features in a sample. In this study, we have handled data
preprocessing of an ontology in six steps: (i) an ontology parsing, (ii) tokenization, (iii) finding
the abbreviations, (iv) cleaning from stop words, (v) neighbourhood aggregation for creating
the context, and (vi) finding the embedding of the terms.</p>
      </sec>
      <sec id="sec-2-2">
        <title>1.2.2. Embedding layer</title>
        <p>
          We used the pre-trained Universal Sentence Encoder (USE) to obtain the word embedding vector
of the class and property. According to benchmark results [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ], the USE outperforms the BERT
encoder in semantic sentence encoding. Therefore, we chose the USE for word embeddings.
        </p>
      </sec>
      <sec id="sec-2-3">
        <title>1.2.3. Heterogeneous graph attention layer</title>
        <p>
          The graph attention introduced in graph attention networks is used to cluster and classify the
citation graphs [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ]. It provides inductive and transactive learning approaches. Its inductive
learning approach computes contextual information by applying an attention centred on the
centre class in the neighbourhood graph in our system. The centre class has five homogeneous
graphs consisting of its neighbouring terms, and these five graphs refer to one heterogeneous
graph.
        </p>
        <p>The relation between the centre class and other terms in each homogeneous graph is the same.
For example, the relation between the centre node and other terms in Figure 2 is ‘subClassOf’.
ℎ = {︁ℎ⃗1, ℎ⃗2, ℎ⃗3......ℎ⃗ , }︁
ℎ′ =
︂{ ⃗ ⃗ ⃗</p>
        <p>ℎ′1, ℎ′2, ℎ′3......ℎ⃗′ , ︂}
ℎ′ = ||=1 ︁( ∑︁    ℎ⃗ )︁</p>
        <p>
          =  ( ⃗ℎ,  ⃗ℎ )
Using features in Eq. 1, we have obtained the higher-level representation of the class’ neighbours,
namely its contextual information in this layer. The new features are computed by Eq. 3, and
 indicates the linear activation function like sigmoid or softmax in the Eq. 3. To indicate the
higher-level representation of the set of features,   R ′ is used as a learnable parameter,
and shared linear transformation is applied to each feature. “K” is the number of independent
heads, and “K” equals five in our system.
(1)
(2)
(3)
(4)
However, some homogeneous graphs having ‘equivalentClass’ or ‘subClassOf’ relationships
might contain some terms regarding restrictions defined with ‘ObjectProperty’ in the
neighbourhood aggregation. The figure explains how the centre class’ contextual information is computed
by the graph attention in one of its homogeneous neighbourhood graphs. The main diference
between the original graph attention approach and our graph attention is that this attention
mechanism is applied to the heterogeneous graph containing five homogeneous subgraphs. The
attention in this layer runs the following various attention mechanisms [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ].
        </p>
        <p>A set of features (the centre class and its neighbouring terms), which is inputs of the graph
attention layer, is denoted in Eq. 1 where ℎ⃗ R .</p>
        <p>The layer converts the input features to the new higher-level representation of the feature
⃗′
list like defined in Eq. 2 where ℎ R ′
 R ′ R ′ denotes a shared attention mechanism and a layer using the self-attention. The
following equation computes attention coeficients (  ):</p>
        <p>To compute the   for ℎ′ in the Eq. 2, this coeficient attention mechanism is applied in Eq. 5
where ⃗ R2 , and   is attention mechanism parameterized by ⃗ weight vector.
  =  ( ) =</p>
        <p>exp( (⃗ [ ℎ⃗|| ℎ⃗ ]))
∑︀  exp( (⃗ [ ℎ⃗|| ℎ⃗]))
(5)</p>
        <p>Using the formula in the Eq. 3 in this layer, we have obtained the higher-level representation
of the class’ neighbours, namely its contextual information in this layer.</p>
      </sec>
      <sec id="sec-2-4">
        <title>1.2.4. Output layer</title>
        <p>The output layer provides down sampling (dimensional reduction) of the contextual information,
which is the concatenation of the class embedding and higher representations of the class’
neighbours.</p>
      </sec>
      <sec id="sec-2-5">
        <title>1.2.5. Cosine similarity layer</title>
        <p>The cosine similarity layer measures the cosine similarity of output in the previous layer.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>1.3. Adaptations made for the evaluation</title>
      <p>
        The GraphMatcher’s framework has been developed in Python with PyTorch and Ontospy, and
is packed by SEALS using MELT [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].
      </p>
    </sec>
    <sec id="sec-4">
      <title>1.4. Parameter settings</title>
      <p>
        The model’s parameters 3 are 0.01 of learning rate, 5 epochs, 0.001 of weight decay and 16 of
batch size. The threshold is computed from false positive alignments in the validation data as
how the VeeAlign [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] system proposes 4.
      </p>
      <sec id="sec-4-1">
        <title>2. Results</title>
        <p>The conference track consists of sixteen ontologies, but only seven ontologies have (twenty-one)
reference alignment cases. These reference alignments have been utilized as ground truths
to use true positive alignments. Besides, negative alignment cases have been computed by
oversampling from all the possible class and property alignments. Therefore, once we apply
a supervised machine learning approach, we can use only these seven ontologies from this
dataset.</p>
        <p>The Table 1 shows the GraphMatcher results in the conference track. The performance of
the GraphMatcher is better in M1 variants than in M2 in terms of F1-measure. Therefore, its
F1-measure has been decreased in M3 variants. As a result, the model has a weakness in the M2
variants, namely property alignments.
3These parameters do not give the optimum model. The best model has diferent parameters, but we mistakenly
submitted the model using these parameters to the conference track challenge.
4The project uses VeeAlign’s approach directly to compute the threshold with the permission of the first author.</p>
        <sec id="sec-4-1-1">
          <title>Matcher</title>
          <p>LogMap</p>
        </sec>
        <sec id="sec-4-1-2">
          <title>GraphMatcher</title>
          <p>SEBMatcher
ATMatcher
ALIN
LogMapLt
LSMatch
AMD
KGMatcher+
ALIOn
Matcha</p>
        </sec>
      </sec>
      <sec id="sec-4-2">
        <title>3. General Comments</title>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>3.1. Comments on the results</title>
      <p>The GraphMatcher is the new ontology matching system participating in OAEI 2022 and is
evaluated in the conference track. The GraphMatcher demonstrates remarkable performance in
the M1 and M3 evaluation variants in terms of F1-measure, even though it does not have high
performance in the M2 evaluation variant. However, all other matchers do not show remarkable
results in this M2 evaluation variant.</p>
      <p>On the other hand, it is also evaluated in the uncertain reference alignments in OAEI 2022
conference track. It has the highest F1-measure (72% in both of them) in the discrete and
continuous metrics 5 among all other matchers evaluated in this track. This means that the
GraphMatcher’s confidence is higher than the other matchers evaluated in the OAEI 2022
conference track.</p>
    </sec>
    <sec id="sec-6">
      <title>3.2. Improvements</title>
      <p>The GraphMatcher should be improved to match the properties, since it does not perform well
in the M2 evaluation variants. Its current version does not apply the graph attention to align the
properties because of the lack of properties’ neighbours, especially datatype properties. These
object type and data type properties might not have enough neighbouring terms to construct
contextual information in the ontology. In this case, the property’s context might be improved
with the external information in its next version, and the graph attention can also be applied
to align the properties. In addition to these improvements, we will train the model with its
optimum parameter settings in its further version.
5The evaluation based on the uncertain reference alignments: http://oaei.ontologymatching.org/2022/results/
conference/index.html</p>
      <sec id="sec-6-1">
        <title>4. Conclusion</title>
        <p>In this study, we have introduced the new ontology-matching system called GraphMatcher. The
GraphMatcher adapted the graph attention to the homogeneous subgraphs of the centre class’
neighbours to obtain the contextual information about the centre class. The graph attention
has computed the higher-level representation of each class and its surrounding classes and
properties. The results demonstrate promising performances in M1 and M3 evaluation variants.
The future work of this study will be to increase its performance in M2 evaluation variants.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>P.</given-names>
            <surname>Veličković</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Cucurull</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Casanova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Romero</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Liò</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Bengio</surname>
          </string-name>
          , Graph attention networks (
          <year>2018</year>
          ). arXiv:
          <volume>1710</volume>
          .
          <fpage>10903</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>É.</given-names>
            <surname>Thiéblin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Haemmerlé</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Hernandez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Trojahn</surname>
          </string-name>
          , Survey on complex ontology matching,
          <source>Semantic Web</source>
          <volume>11</volume>
          (
          <year>2020</year>
          )
          <fpage>689</fpage>
          -
          <lpage>727</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>E.</given-names>
            <surname>Jiménez-Ruiz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B. Cuenca</given-names>
            <surname>Grau</surname>
          </string-name>
          ,
          <article-title>Logmap: Logic-based and scalable ontology matching</article-title>
          , in: L.
          <string-name>
            <surname>Aroyo</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Welty</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          <string-name>
            <surname>Alani</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Taylor</surname>
          </string-name>
          , A.
          <string-name>
            <surname>Bernstein</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          <string-name>
            <surname>Kagal</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          <string-name>
            <surname>Noy</surname>
          </string-name>
          , E. Blomqvist (Eds.),
          <source>The Semantic Web - ISWC</source>
          <year>2011</year>
          , SBH, Berlin, Heidelberg,
          <year>2011</year>
          , pp.
          <fpage>273</fpage>
          -
          <lpage>288</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>D.</given-names>
            <surname>Faria</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Pesquita</surname>
          </string-name>
          , E. Santos,
          <string-name>
            <given-names>M.</given-names>
            <surname>Palmonari</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I. F.</given-names>
            <surname>Cruz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F. M.</given-names>
            <surname>Couto</surname>
          </string-name>
          ,
          <article-title>The agreementmakerlight ontology matching system</article-title>
          , in: R. Meersman,
          <string-name>
            <given-names>H.</given-names>
            <surname>Panetto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Dillon</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Eder</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Bellahsene</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Ritter</surname>
          </string-name>
          ,
          <string-name>
            <surname>P. De Leenheer</surname>
          </string-name>
          , D. Dou (Eds.),
          <article-title>On the Move to Meaningful Internet Systems: OTM 2013 Conferences</article-title>
          ,
          <string-name>
            <surname>SBH</surname>
          </string-name>
          ,
          <year>2013</year>
          , pp.
          <fpage>527</fpage>
          -
          <lpage>541</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>P.</given-names>
            <surname>Kolyvakis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Kalousis</surname>
          </string-name>
          , D. Kiritsis,
          <article-title>DeepAlignment: Unsupervised ontology matching with refined word vectors</article-title>
          ,
          <source>in: Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies</source>
          , Volume
          <volume>1</volume>
          (
          <string-name>
            <surname>Long</surname>
            <given-names>Papers)</given-names>
          </string-name>
          ,
          <source>ACL</source>
          ,
          <year>2018</year>
          , pp.
          <fpage>787</fpage>
          -
          <lpage>798</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>V.</given-names>
            <surname>Iyer1</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Agarwal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Kumar</surname>
          </string-name>
          ,
          <article-title>Veealign: A supervised deep learning approach to ontology alignment (</article-title>
          <year>2020</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>A.</given-names>
            <surname>Bento</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Zouaq</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Gagnon</surname>
          </string-name>
          ,
          <article-title>Ontology matching using convolutional neural networks</article-title>
          ,
          <source>in: Proceedings of the 12th Language Resources and Evaluation Conference</source>
          , ELRA, Marseille, France,
          <year>2020</year>
          , pp.
          <fpage>5648</fpage>
          -
          <lpage>5653</lpage>
          . URL: https://www.aclweb.org/anthology/2020.lrec-
          <volume>1</volume>
          .
          <fpage>693</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>J.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Gu</surname>
          </string-name>
          ,
          <article-title>Adol: a novel framework for automatic domain ontology learning</article-title>
          ,
          <source>Super Computing</source>
          (
          <year>2021</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>H.</given-names>
            <surname>Hassan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Sansonetti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Gasparetti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Micarelli</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Beel</surname>
          </string-name>
          , Bert, elmo, use
          <article-title>and infersent sentence encoders: The panacea for research-paper recommendation?</article-title>
          , in: RecSys, WS,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>S.</given-names>
            <surname>Hertling</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Portisch</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Paulheim</surname>
          </string-name>
          ,
          <article-title>Melt - matching evaluation toolkit</article-title>
          , in: M.
          <string-name>
            <surname>Acosta</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          <string-name>
            <surname>Cudré-Mauroux</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Maleshkova</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          <string-name>
            <surname>Pellegrini</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          <string-name>
            <surname>Sack</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          <string-name>
            <surname>Sure-Vetter</surname>
          </string-name>
          (Eds.),
          <source>Semantic Systems. The Power of AI and Knowledge Graphs</source>
          , Springer International Publishing, Cham,
          <year>2019</year>
          , pp.
          <fpage>231</fpage>
          -
          <lpage>245</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>