The document proposes a method called KEWER that learns distributed representations of words, entities, and categories from a knowledge graph in the same embedding space. KEWER first generates random walks from entities, replaces some elements with surface forms, and then learns embeddings by maximizing the likelihood of contexts. These embeddings improve entity retrieval over term-based and existing joint embedding models, especially when combined with entity linking.