Optimizing named entities for knowledge graph alignment