You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/aligner/kge.rst
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,8 +26,15 @@ OntoAligner's KGE-based alignment process involves several key components that w
26
26
27
27
Usage
28
28
------------
29
+
30
+
.. sidebar::
31
+
32
+
Full code is available at `OntoAligner Repository. <https://github.com/sciknoworg/OntoAligner/blob/main/examples/kge.py>`_
33
+
34
+
29
35
This module guides you through a step-by-step process for performing ontology alignment using a KGEs and the OntoAligner library. By the end, you’ll understand how to preprocess data, encode ontologies, generate alignments, evaluate results, and save the outputs in XML and JSON formats.
30
36
37
+
31
38
.. tab:: ➡️ 1: Parser
32
39
33
40
The first step is to prepare the ontology data for the KGE model. The **Parser** transforms raw ontology information into a structured format suitable for KGE models.
@@ -86,7 +93,7 @@ This module guides you through a step-by-step process for performing ontology al
86
93
87
94
.. code-block:: python
88
95
89
-
from ontoaligner.aligner importCovEAligner
96
+
from ontoaligner.aligner importConvEAligner
90
97
91
98
kge_params = {
92
99
'device': 'cpu', # str: Device to use for training ('cpu' or 'cuda')
@@ -124,7 +131,9 @@ This module guides you through a step-by-step process for performing ontology al
124
131
125
132
The following code will compare the generated alignments with reference matchings. Then save the matchings in both XML and JSON formats for further analysis or use. Feel free to use any of the techniques.
The ``ontoaligner.aligner.graph`` module provides a suite of graph embedding-based aligners built on top of popular KGE models. These aligners leverage link prediction objectives and low-dimensional vector spaces to learn semantic representations of entities, facilitating accurate ontology alignment even across heterogeneous structures. Each aligner wraps a specific KGE model implemented through the PyKEEN framework, allowing plug-and-play integration and consistent similarity scoring across models. Some models include custom similarity functions to better capture semantic distance in complex embedding spaces (e.g., complex numbers or quaternions).
158
175
159
176
The following table lists the available KGE aligners:
0 commit comments