1. A device, comprising: one or more memories; and one or more processors, communicatively coupled to the one or more memories, to: receive training data and an ontology for the training data, the training data including information associated with a subject of the ontology; generate a knowledge graph based on the training data and the ontology; convert the knowledge graph into knowledge graph embeddings, the knowledge graph embeddings including points in a k-dimensional metric space; receive additional ontology information; identify a new entity, in the additional ontology information, that is not present in the knowledge graph embeddings, the additional ontology information including an entity related to a particular knowledge graph embedding of the knowledge graph embeddings; generate a new embedding of the new entity based on: a first average quantity of entities that are related to the knowledge graph and the new entity, and a second average quantity of entities that are related to the new entity and are not related to the knowledge graph; add the new embedding to the knowledge graph embeddings by associating the new embedding with the particular knowledge graph embedding; and utilize the knowledge graph embeddings, with the new embedding, to perform an action.