Introduction
In the Semantic Web, knowledge is often distributed across heterogeneous ontologies developed by different organizations. While these ontologies may describe the same domain, they frequently use different naming conventions and structural hierarchies. Ontology Alignment (OA)—the process of identifying equivalent concepts across these disparate silos—is essential for data integration and interoperability.
Recent advancements in Knowledge Graph Embeddings (KGE), such as the original OWL2Vec, have attempted to represent concepts as vectors to facilitate alignment. However, these methods typically process each ontology in isolation. Because the random walks used to generate embeddings never transition between ontologies, equivalent concepts end up in disjoint regions of the vector space. This paper introduces OWL2Vec4OA*, a framework specifically tailored to bridge this gap by creating a shared embedding space through biased random walks and seed mappings.
Methodology
OWL2Vec4OA extends the OWL2Vec* architecture by introducing a mechanism to connect separate ontologies during the training phase. The workflow is divided into five distinct stages:
- Ontology Projection: Complex logical axioms are converted into a graph of RDF triples, transforming the ontology into a format suitable for graph-based traversal.
- Seed Mapping Generation: The system utilizes traditional alignment tools, such as LogMap or AML, to identify an initial set of potential connections (seed mappings) between the target ontologies. These mappings may be incomplete or contain noise, but they serve as the necessary "bridges" between graphs.
- Graph Merging & Edge Weighting: The two ontologies are merged into a single unified graph. Internal edges derived from the original axioms are assigned a maximum confidence weight of 1.0. The bridge edges (seed mappings) are weighted according to their confidence scores ($c$) provided by the alignment tools.
- Biased Random Walks: This is the framework's core innovation. The system performs random walks starting from seed entities. When a walker reaches a node, the probability of selecting the next edge is proportional to its weight. This bias forces the walker to frequently cross the bridges between ontologies, ensuring that equivalent entities from different sources appear in the same sequences.
- Embedding Training: The resulting sequences, which include both URIs and text labels, are processed using a Word2Vec (skip-gram) model. This produces final vectors where semantically equivalent entities across different ontologies are positioned closely together.
Experimental Evaluation
The researchers evaluated OWL2Vec4OA using the OAEI 2023 Bio-ML track, a rigorous benchmark for machine learning-based ontology matching in the biomedical sector. The evaluation covered several complex tasks:
- OMIM-ORDO (Rare diseases)
- NCIT-DOID (Cancer and infectious diseases)
- SNOMED-NCIT-Pharm (Pharmacology)
- SNOMED-NCI-Neoplas (Neoplasms)
Performance was measured using "local ranking" metrics, specifically Mean Reciprocal Rank (MRR) and Hits@K, which assess how effectively the model ranks the true match among a list of candidates.
Key Results and Insights
Performance Gains
OWL2Vec4OA demonstrated massive performance improvements over the baseline OWL2Vec. In the SNOMED-NCIT-Neoplas task, the Hits@1 (the accuracy of the top-ranked result) exceeded 80%*, whereas the original version, which lacked cross-ontology walks, yielded results near zero. The MRR and Hits@10 scores similarly confirmed that the tailored embeddings are significantly more effective at identifying semantic equivalents.
Robustness to Noise
A critical finding was the system's tolerance for noise. Even when using "overestimated" or noisy seed mappings from tools like LogMap, the biased random walk strategy effectively filtered the signal from the noise. By aggregating context from multiple walks, the model learned to prioritize consistent semantic relationships over erroneous individual mappings.
Structural and Textual Context
By incorporating unique URIs into the training sequences, the system maintains contextual clarity. Even when different entities share the same text label (e.g., "Salt" as a chemical vs. "Salt" as a seasoning), their URI-based vectors remain distinct because they are grounded in different structural neighborhoods within the graph.
Conclusion and Future Work
OWL2Vec4OA addresses a fundamental limitation in KGE-based ontology alignment by ensuring that embeddings are trained on a connected, multi-ontology graph. The use of biased random walks to bridge semantic silos represents a significant step forward in creating shared vector spaces for the Semantic Web.
While highly effective, the system currently relies on external tools for seed mappings. Future research may explore methods to reduce this dependency or integrate supervised classifiers, such as Siamese Neural Networks, to further refine the alignment process. Additionally, managing the computational cost of deep random walks on massive, web-scale ontologies remains an area for optimization.
Summary updated