Knowledge graphs provide an efficient way to represent domain information and are used in a number of real-world applications.
Commonly, knowledge graphs are used to encode domain information by representing them as factual triples of source, relation and target entities.
For example, for the countries domain, the domain knowledge can be encoded by representing the countries as entities (for example, Germany, Poland) and relation between them (Neighbor) as factual triples (Poland, Neighbor, Germany) as well as other information as follows:
This notebook showcases how runtime (latency and throughput) performance of knowledge graph inference or prediction tasks can be further optimized on supported Intel® architectures by using the Intel® Distribution of OpenVINO™ Toolkit for one such knowledge graph embeddings model called ConvE.
The ConvE knowledge graph embeddings model is an implementation of the paper: "Convolutional 2D Knowledge Graph Embeddings" by Tim Dettmers et al.
If you have not installed all required dependencies, follow the Installation Guide.