In order to solve the problems of long data switching time, low information utilization rate, and low switching accuracy in traditional data switching methods, a data switching method between heterogeneous power information system databases based on knowledge graphs is proposed. Based on the knowledge graph technology and its ternary structure, the data of the heterogeneous power information system is processed, and the N‐Gram model is used to realize the knowledge extraction, and the data error correction is established through the model. Through ODBC technology to complete the link between heterogeneous power information system databases, and then select the data access interface and determine the data extraction task, and finally realize the data exchange between the heterogeneous power information system databases. Experimental results show that the average communication channel bandwidth during the data switching process is 1.8 Gb/s, the highest value of data switching accuracy reaches 82%, and the information utilization rate after data switching is relatively high, indicating that the method has certain effectiveness.