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
Ontology alignment involves finding correspondences between entities in different ontologies. OntoAligner addresses this challenge by leveraging **Knowledge Graph Embedding (KGE)** models. The core idea of KGE is to represent entities (like classes, properties, individuals) and relations within an ontology as **low-dimensional vectors** in a continuous vector space. These numerical representations (embeddings) are learned to preserve semantic relationships from the original ontology geometrically in the embedding space.
8
13
9
14
.. hint::
@@ -263,3 +268,74 @@ Here ``RESCAL`` is our custom KGE model.
263
268
.. note::
264
269
265
270
For possible models please take a look at `PyKEEN > Models <https://pykeen.readthedocs.io/en/latest/reference/models.html#classes>`_.
271
+
272
+
KGE Retriever
273
+
----------------------
274
+
275
+
.. sidebar:: Key Parameters:
276
+
277
+
- ``retruever``: boolean
278
+
- ``top_K``: integer
279
+
280
+
In addition to one-to-one alignments, OntoAligner also supports retriever-based alignment. When retriever mode is enabled (``retriever=True``), the aligner returns the top-k candidate target entities for each source entity, along with their similarity scores (similar to retriever aligner). This model is useful if you want to build downstream candidate filtering pipelines, apply human-in-the-loop validation, or integrate with reranking modules (e.g., LLMs or supervised classifiers).
281
+
282
+
Here is the example on how to use KGE Aligner as a retriever model:
283
+
284
+
.. code-block:: python
285
+
286
+
from ontoaligner.aligner import TransEAligner
287
+
288
+
# Enable retriever mode and request top-3 candidates per source entity
- In KGE aligners, the default mode is ``retriever=False``, where it produces **one-to-one** alignments, where each source entity is matched to the single most similar target entity.
302
+
* - **KGE Retriever mode**
303
+
- In KGE aligners, the default mode is ``retriever=True``, where it produces **one-to-many** alignments, where each source entity is matched to multiple target entities. Example output:
0 commit comments