Skip to main content

SQL2Cypher: Automated Data and Query Migration from RDBMS to GDBMS

  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNISA,volume 13081))

Abstract

There are many real-world application domains where data can be naturally modelled as a graph, such as social networks and computer networks. Relational Database Management Systems (RDBMS) find it hard to capture the relationships and inherent graph structure of data and are inappropriate for storing highly connected data; thus, graph databases have emerged to address the challenges of high data connectivity. As the performance of querying highly connected data in relational query statements is usually worse than that in the graph database. Transforming data from a relational database to a graph database is imperative for improving the performance of graph queries. In this paper, we demonstrate SQL2Cypher, a system for migrating data from a relational database to a graph database automatically. This system also supports translating SQL queries into Cypher queries. SQL2Cypher is open-source (https://github.com/UNSW-database/SQL2Cypher) to allow researchers and programmers to migrate data efficiently. Our demonstration video can be found here: https://www.youtube.com/watch?v=eGaeBrVTJws.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   99.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   129.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    https://github.com/neo4j-contrib/neo4j-etl/issues.

  2. 2.

    https://d3js.org/.

  3. 3.

    https://www.layui.com/.

  4. 4.

    https://codemirror.net/.

  5. 5.

    https://docs.python.org/3/library/pickle.html.

References

  1. Bizer, C.: D2R map-a database to RDF mapping language (2003)

    Google Scholar 

  2. Cypher (2021). https://neo4j.com/developer/cypher

  3. Database trend (2020). https://db-engines.com/en/ranking_categories

  4. De Virgilio, R., Maccioni, A., Torlone, R.: Converting relational to graph databases. In: 1st International Workshop on Graph Data Management Experiences and Systems, pp. 1–6 (2013)

    Google Scholar 

  5. Elmagarmid, A.K., Ipeirotis, P.G., Verykios, V.S.: Duplicate record detection: a survey. IEEE Trans. Knowl. Data Eng. 19(1), 1–16 (2006)

    Article  Google Scholar 

  6. Färber, F., Cha, S.K., Primsch, J., Bornhövd, C., Sigg, S., Lehner, W.: SAP HANA database: data management for modern business applications. ACM SIGMOD Rec. 40(4), 45–51 (2012)

    Article  Google Scholar 

  7. Hao, K., Yang, Z., Lai, L., Lai, Z., Jin, X., Lin, X.: PatMat: a distributed pattern matching engine with cypher. In: Proceedings of the 28th ACM International Conference on Information and Knowledge Management, pp. 2921–2924 (2019)

    Google Scholar 

  8. Heer, J., Hellerstein, J.M., Kandel, S.: Predictive interaction for data transformation. In: CIDR (2015)

    Google Scholar 

  9. Neo4j ETL. https://neo4j.com/developer/neo4j-etl/

  10. ODBC (2021). https://docs.microsoft.com/en-us/sql/odbc

  11. Sahu, S., Mhedhbi, A., Salihoglu, S., Lin, J., Özsu, M.T.: The ubiquity of large graphs and surprising challenges of graph processing. Proc. VLDB Endow. 11(4), 420–431 (2017). https://doi.org/10.1145/3186728.3164139

    Article  Google Scholar 

  12. Wang, R., Yang, Z., Zhang, W., Lin, X.: An empirical study on recent graph database systems. In: Li, G., Shen, H.T., Yuan, Y., Wang, X., Liu, H., Zhao, X. (eds.) KSEM 2020. LNCS (LNAI), vol. 12274, pp. 328–340. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-55130-8_29

    Chapter  Google Scholar 

Download references

Acknowledgements

Wenjie Zhang is supported by DP200101116. Xuemin Lin is supported by DP200101338.

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Shunyang Li , Zhengyi Yang , Xianhang Zhang , Wenjie Zhang or Xuemin Lin .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Li, S., Yang, Z., Zhang, X., Zhang, W., Lin, X. (2021). SQL2Cypher: Automated Data and Query Migration from RDBMS to GDBMS. In: Zhang, W., Zou, L., Maamar, Z., Chen, L. (eds) Web Information Systems Engineering – WISE 2021. WISE 2021. Lecture Notes in Computer Science(), vol 13081. Springer, Cham. https://doi.org/10.1007/978-3-030-91560-5_39

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-91560-5_39

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-91559-9

  • Online ISBN: 978-3-030-91560-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics