Proceedings

LLM-powered GraphQL Generator for Data Retrieval

Download BibTeX Cite

Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence. Demo Track. Pages 8657-8660.

https://doi.org/10.24963/ijcai.2024/1002

Abstract

GraphQL offers an efficient, powerful, and flexible alternative to REST APIs. However, application developers writing GraphQL clients need both technical and domain-specific expertise to reap its benefits, and avoid over-fetching or under-fetching data. Automated GraphQL generation has so far proven to be a hard problem because of complex GraphQL schema and lack of benchmark datasets. To address these issues, our work focuses on building an LLM-powered pipeline that can accept user requirements in natural language along with the complex GraphQL schema and automatically produce the GraphQL query needed to retrieve the necessary data. Automated GraphQL generation helps reduce entry barriers to application developers, broadening GraphQL adoption.

  1. [Apollo Graph Inc, 2024] Apollo Graph Inc. Apollo GraphQL. https://www.apollographql.com/, 2024. Ac- cessed: 2024-02-19. Link
  2. [Buna, 2021] Samer Buna. GraphQL in Action. Simon and Schuster, 2021.
  3. [Carrera, 2024] Andre Carrera. SQL to GraphQL [dataset]. https://github.com/andr-ec/sql-to-graphql, 2024. Ac- cessed: 2024-02-19. Link
  4. [Cha et al., 2020] Alan Cha, Erik Wittern, Guillaume Bau- dart, James C. Davis, Louis Mandel, and Jim A. Laredo. A principled approach to graphql query cost analysis. In Proceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering, 2020.
  5. [Cheng and Hartig, 2022] Sijin Cheng and Olaf Hartig. Lingbm: a performance benchmark for approaches to build graphql servers. In International Conference on Web Information Systems Engineering, 2022.
  6. [Feng et al., 2023] Guandong Feng, Guoliang Zhu, Shengze Shi, Yue Sun, Zhongyi Fan, Sulin Gao, and Jun Hu. Ro- bust nl-to-cypher translation for kbqa: Harnessing large language model with chain of prompts. In China Con- ference on Knowledge Graph and Semantic Computing, 2023.
  7. [Hartig and Hidders, 2019] Olaf Hartig and Jan Hidders. Defining schemas for property graphs by using the graphql schema definition language. In Proceedings of the 2nd Joint International Workshop on Graph Data Management Experiences & Systems (GRADES) and Network Data An- alytics (NDA), 2019.
  8. [Hartig and Pérez, 2018] Olaf Hartig and Jorge Pérez. Se- mantics and complexity of graphql. In Proceedings of the 2018 World Wide Web Conference, 2018.
  9. [Hasura, 2024] Hasura. Hasura graphql engine. https:// hasura.io/, 2024. Accessed: 2024-02-19. Link
  10. [Hogan and Hogan, 2020] Aidan Hogan and Aidan Hogan. Sparql query language. The Web of Data, 2020.
  11. [IBM, 2024] IBM. StepZen. https://stepzen.com/, 2024. Ac- cessed: 2024-05-19. Link
  12. [Kothyari et al., 2023] Mayank Kothyari, Dhruva Dhingra, Sunita Sarawagi, and Soumen Chakrabarti. Crush4sql: Collective retrieval using schema hallucination for text2sql. arXiv preprint arXiv:2311.01173, 2023.
  13. [Kovriguina et al., 2023] Liubov Kovriguina, Roman Teucher, Daniil Radyush, and Dmitry Mouromtsev. Sparqlgen: One-shot prompt-based approach for sparql query generation. SEMANTiCS Posters and Demos 2023 CEUR Workshop Proceedings, 2023.
  14. [Li et al., 2023] Huanyu Li, Olaf Hartig, Rickard Armiento, and Patrick Lambrix. Obg-gen: Ontology-based graphql server generation for data integration. In Proceedings of the ISWC, 2023. [Meta, 2012] Meta. Graphql: A data query lan- guage. https://engineering.fb.com/2015/09/14/core-infra/ graphql-a-data-query-language, 2012. Accessed: 2024- 06-08. Link
  15. [Mishra et al., 2024] Mayank Mishra, Matt Stallone, Gaoyuan Zhang, Yikang Shen, Aditya Prasad, et al. Granite code models: A family of open foundation models for code intelligence, 2024.
  16. [Patil et al., 2023] Shishir G Patil, Tianjun Zhang, Xin Wang, and Joseph E Gonzalez. Gorilla: Large lan- guage model connected with massive apis. arXiv preprint arXiv:2305.15334, 2023.
  17. [Pourreza and Rafiei, 2023] Mohammadreza Pourreza and Davood Rafiei. Din-sql: Decomposed in-context learn- ing of text-to-sql with self-correction. arXiv preprint arXiv:2304.11015, 2023.
  18. [Quiña-Mera et al., 2023] Antonio Quiña-Mera, Pablo Fer- nandez, José María García, and Antonio Ruiz-Cortés. Graphql: A systematic mapping study. ACM Computing Surveys, 2023.
  19. [Taelman et al., 2019] Ruben Taelman, Miel Vander Sande, and Ruben Verborgh. Bridges between graphql and rdf. In W3C Workshop on Web Standardization for Graph Data, 2019.
  20. [Tai et al., 2023] Chang-You Tai, Ziru Chen, Tianshu Zhang, Xiang Deng, and Huan Sun. Exploring chain-of- thought style prompting for text-to-sql. arXiv preprint arXiv:2305.14215, 2023.
  21. [TinkerPop, 2020] Apache TinkerPop. The grem- lin graph traversal machine and language. https://tinkerpop.apache.org/gremlin.html, 2020. Link
  22. [Weaver et al., 2021] Jesse Weaver, Eric Paniagua, Tushar Agarwal, Nicholas Guy, and Alexandre Mattos. Introduc- ing pathquery, google's graph query language, 2021. [Weaviate, 2024] Weaviate. Weaviate GraphQL Go- rilla [dataset]. https://huggingface.co/datasets/weaviate/ WeaviateGraphQLGorilla, 2024. Accessed: 2024-02-19. Link
  23. [Wittern et al., 2018] Erik Wittern, Alan Cha, and Jim A Laredo. Generating graphql-wrappers for rest (-like) apis. In International Conference on Web Engineering, 2018.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards