The invention discloses a method for converting a graph database into a relational database. Firstly, a structural model of attribute data in the graph database is established based on a generalized directed hypergraph, and a two-dimensional data table is established for each node in the structural model. Then build a data table based on directed edges and additional directed edges; use a generalized directed hypergraph to describe the nodes, directed edges, labels, graph databases, node attributes, and directed edge attributes in the graph database. Establish a data storage feature description model, create a two-dimensional data table for each node in the description model, and then construct the data table according to the directed edge; then organize the constructed data table and construct it in the relational database management system Database and data table, traverse the data in the graph database, and fill in the relevant data information into the two-dimensional data table of the relational database. By adopting the invention, the conversion from the graph database to the relational database can be accurately realized, and the obtained relational database has a reasonable structure.