This paper presents a novel system, called Temporal GraphQL, for supporting temporal data in web services. A temporal web service is a service that provides a temporal view of data, that is, a view of the current data as well as past or future states of the data. Capturing the history of the data is important in data forensics, data auditing, and subscriptions, where an application continuously reads data. GraphQL is a technology for improving the development and management of web services. Originally developed by Facebook and widely used in industry, GraphQL is a query language for web services. This paper introduces Temporal GraphQL. We show how to use tree grammars to model GraphQL schemas, data, and queries, and propose temporal tree grammars to model Temporal GraphQL. We extend GraphQL with temporal snapshot, slice, and delta operators. To the best of our knowledge, this is the first work on Temporal GraphQL and temporal tree grammars.
@InProceedings{dyreson_et_al:LIPIcs.TIME.2025.9, author = {Dyreson, Curtis E. and Sarkar, Bishal}, title = {{Temporal GraphQL: A Tree Grammar Approach}}, booktitle = {32nd International Symposium on Temporal Representation and Reasoning (TIME 2025)}, pages = {9:1--9:14}, series = {Leibniz International Proceedings in Informatics (LIPIcs)}, ISBN = {978-3-95977-401-7}, ISSN = {1868-8969}, year = {2025}, volume = {355}, editor = {Vidal, Thierry and Wa{\l}\k{e}ga, Przemys{\l}aw Andrzej}, publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik}, address = {Dagstuhl, Germany}, URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.TIME.2025.9}, URN = {urn:nbn:de:0030-drops-244556}, doi = {10.4230/LIPIcs.TIME.2025.9}, annote = {Keywords: Temporal databases, temporal queries, GraphQL, web services} }