EmbedS: Scalable, Ontology-aware Graph Embeddings

Gonzalo I. Diaz, Achille Fokoue, Mohammad Sadoghi

Introduction

Knowledge graphs (KGs) such as DBpedia and Freebase serve as critical backbones for modern AI applications, yet they remain inherently incomplete. Graph embedding techniques, which map entities and relations into continuous vector spaces, have become the standard approach for link prediction. However, most existing models—including TransE and HolE—are "ontology-agnostic." They treat triples as isolated data points, overlooking the rich semantic metadata provided by schema languages like RDFS (Resource Description Framework Schema). This omission leads to predictions that may violate logical constraints, such as assigning a "building" entity to a "friendOf" relation reserved for humans.

Methodology: The EmbedS Model

The authors propose EmbedS, a novel embedding framework that integrates RDFS logic directly into the geometric structure of the vector space. By treating ontological information as "first-class citizens," EmbedS ensures that learned representations adhere to predefined semantic rules.

Geometric Representations

The model utilizes a specific geometric interpretation for different KG components:

  • Entities as Points: Each entity is mapped to a point in $n$-dimensional Euclidean space.
  • Classes as Spheres: Classes are modeled as $n$-spheres, defined by a center vector $c_j$ and a radius $ ho_j$. An entity $e_i$ is considered a member of a class if its point falls within the corresponding sphere.
Extracted figure from page 3 of EmbedS: Scalable, Ontology-aware Graph Embeddings
  • Relations as $2n$-Spheres: Binary relations are represented as spheres in a $2n$-dimensional space with center $(p_k^\alpha, p_k^\beta)$ and radius $\sigma_k$. For a triple $(e_i, relation, e_j)$, the combined vector of the subject and object must reside within the relation's sphere for the relation to hold.
Representation of a relation between entities $(e_i, e_j)$ as a point within a $2n$-dimensional relation sphere.

Enforcing Logical Constraints

EmbedS uses specialized cost functions to enforce RDFS axioms through geometric containment. For example, the subClassOf relationship is modeled by ensuring the sphere of a subclass is entirely contained within the sphere of its superclass. This approach naturally handles transitivity: if an entity is within the Surgeon sphere, and Surgeon is inside Doctor, the entity is automatically classified as a Doctor without requiring explicit triples for every level of the hierarchy. Similar logic is applied to domain, range, and subPropertyOf constraints.

Experimental Evaluation

The performance of EmbedS was evaluated on two distinct benchmarks:

  1. wn18: A standard WordNet-based dataset (151,442 triples) used to assess general link prediction capabilities.
  2. dbpedia32k: A custom, ontology-rich dataset derived from DBpedia, featuring 340,827 triples and 296 relations, specifically designed to test the integration of RDFS constraints.

Results and Analysis

EmbedS demonstrates both competitive performance on general tasks and significant superiority on ontology-heavy data. On the wn18 benchmark, the model achieved a Hits@10 of 94.9%, placing it on par with state-of-the-art models like HolE.

The model's true strength is revealed in the dbpedia32k dataset. EmbedS achieved a Hits@10 of 22.7%, nearly doubling the performance of the classic TransE model (11.6%), and recorded a significantly higher Mean Reciprocal Rank (MRR). Furthermore, the geometric "point-in-sphere" classification method yielded an F-measure of 84.0%, validating that the spatial boundaries effectively capture the underlying data logic.

Conclusion and Future Work

EmbedS provides a scalable bridge between symbolic logic and connectionist machine learning. By moving beyond simple translation vectors, it provides a way to integrate ontologies as geometric guardrails, ensuring logical consistency in high-dimensional space. While currently limited to RDFS, future iterations could expand to more complex OWL2 logic—such as disjointness or inverse properties—and explore non-spherical geometric shapes to better capture intricate data distributions.

Summary updated

BibTeX
@inproceedings{diaz2018embeds,
  author = {Gonzalo I. Diaz and Achille Fokoue and Mohammad Sadoghi},
  title = {{EmbedS: Scalable, Ontology-aware Graph Embeddings}},
  booktitle = {EDBT},
  year = {2018},
  doi = {10.5441/002/edbt.2018.40},
}
Figure