








|
Library
|
Your profile |
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.|
Software systems and computational methods
Reference:
Eremeev, A.P., Kutdusov, R.K. (2026). Temporal Graph in Neo4j: Comparing Storage Structures and Incrementally Constructing an Allen Interval Relation Network. Software systems and computational methods, 3, 77–95. https://doi.org/10.7256/2454-0714.2026.3.80997
Temporal Graph in Neo4j: Comparing Storage Structures and Incrementally Constructing an Allen Interval Relation Network
DOI: 10.7256/2454-0714.2026.3.80997EDN: HNXUPZReceived: 07/05/2026First review received: 07/12/2026 19:24 — manuscript returned for revisionRevised manuscript submitted: 07/15/2026 00:11Final review received: 07/15/2026 20:40 — recommendation for publication.The article is published in its final version as approved following the last positive peer review recommending acceptance for publication. It incorporates revisions made by the author in response to prior negative peer review reports that did not recommend publication. All peer review reports, including initial negative reviews, are published in open access alongside the article. All versions of the author’s revisions are archived in the publisher’s repository and may be made available upon reasonable request in accordance with Elsevier’s editorial policies and applicable data availability requirements. Read all reviews on this article Published: 07/16/2026Abstract: The subject is a temporal graph in the Neo4j DBMS designed to store interval facts, Allen temporal dependencies, and derived objects of a temporal knowledge base. The aim of the study is to compare compact and extended storage structures for interval relations when temporal queries are executed and events are received in batches. Two graph schemas are considered. In the first schema, intervals are stored as properties of contacts. In the second schema, contacts and intervals are represented by separate nodes, computed Allen relations are stored as typed relationships. Relational schemas, including a table of temporal dependencies, are used as a control model. Special attention is given to the relationship between the storage method, query execution time, graph size, and construction of derived objects in the temporal knowledge base. The research methods include processing open data of contacts between students, transforming discrete observations into intervals, building graph and relational structures, checking local consistency of Allen relations, executing control queries, and processing event batches. This processing records the formation of derived knowledge-base objects and decision-support situations. The novelty of the study lies in the experimental comparison of compact and extended representations of Allen relations in Neo4j and in the relational model. The effect of precomputed temporal links on different classes of queries is examined separately. The results show that the extended structure accelerates queries over specific relations, but increases graph density and slows down multi-step traversals. The compact structure requires less storage and is suitable for filtering, aggregation, and short chains. The extended structure is useful for repeated queries over Allen relations, temporal rules, and tracing derived objects back to source facts. The storage structure should be selected according to the query class, the acceptable number of stored links, the temporal horizon, and the transaction size. Keywords: temporal database, temporal knowledge base, Allen’s interval algebra, graph structure, Neo4j graph DBMS, Cypher, temporal rules, decision-making, incremental processing, PythonThis article is automatically translated. You can find original text of the article here. Introduction Tasks where the state of an object is inextricably linked to the time of its existence are becoming more common in practice. The Neo4j graph model allows you to store objects, relationships, and their attributes, including the time boundaries of events, but it does not specify the semantics of interval relationships. The relationships of Allen's interval logic between events either have to be recalculated with each request, or fixed in advance by separate connections. The choice between these strategies for the ISPR RV component determines the query execution time, storage capacity, and the logic of the temporal Knowledge Base (TBB) rules. Previously, graph data models were used to unify structures and convert formats in the Neo4j environment [1]. A temporal database (TBD) for intelligent real-time decision support systems was built on this technological basis [2]. The temporal graph in such an architecture combines interval facts, connections between events, and derived objects that the decision support component works with. Research on temporal graph models with attributes is developing in several interrelated areas, including the integration of the time dimension into the data model, the expansion of query languages, the preservation of the history of changes and the physical organization of time versions of the graph. Route queries to temporal graphs, equipped with temporal predicates and aggregates, were created specifically for distributed processing [3]. Bitemporal graph models draw a boundary between actual and transactional time, which makes it possible to separately track the history of changes in subject facts and the history of their registration in the system [4]. Temporal regular route queries formalize navigation through time graphs [5]. They distinguish between point timestamps and interval representation. The AeonG system transfers time support to the graph database layer, linking the acceleration of time queries with the separate organization of current and historical versions [6]. Temporal knowledge graphs and temporal reasoning form a related research area. Time in a Box suggests analyzing the time domain of the truth of statements in the process of replenishing the knowledge base [7]. The TEILP method is based on logical rules that allow predicting the time of events in temporal graphs [8]. The existing methods of representation, data sets and applied tasks in this field are systematized in the review of methods of teaching representations of temporal knowledge graphs [9]. IA-RAG refers to Allen's interval algebra: this approach provides search and reasoning over dynamic knowledge, the boundaries of which are set by time intervals [10]. Research [3-10] touches on the languages of temporal queries, ways of storing current and historical versions of the graph, bitemporal representations and reasoning mechanisms in temporal knowledge graphs. The authors of these papers, however, do not directly compare the two strategies for processing Allen's relationships: calculating the relationship along the boundaries of the intervals immediately at the time of query execution and first saving this relationship (as a typed relationship in a Neo4j schema or writing a table in a relational schema). This paper compares these strategies in relation to queries with temporary filters, queries targeting individual Allen relationships, and multi-link crawls. The incremental construction of a temporary network and derived TBZ objects is analyzed separately. TBDs record the initial facts along with their truth intervals and provide tools for analyzing the relative location of events in time [2, 11]. TBPS extend this functionality: they include rules of logical inference, time constraints, and derived results that are based on basic facts. It is essential for the ISPR RV to preserve the relationship between the results of temporal reasoning and primary data, since the scenario component relies on this relationship when forming decision support situations [12, 13]. The formal basis is Allen's interval logic with 13 basic relations, inversion and composition operations [14]; deduction algorithms for extended versions of this logic are studied in detail in [15]. Two strategies are applicable to the implementation of TBD. In a compact structure, the time ratio is calculated along the boundaries of the intervals during query execution. In the extended structure, calculated dependencies are stored as separate typed relationships. This choice is associated with a compromise between the query time, storage volume, and the number of pre-stored temporary links [3-6]. The purpose of the work is to determine the conditions for using a compact and extended temporal graph structure when executing queries and incremental events. The research covers the construction of temporal relationships, consistency checking, comparison of graph and relational representations, the implementation of TBD rules and the work of the scenario component of the ISPR RV. The scientific novelty lies in the experimental comparison of compact and extended representations of Allen interval relations in graph and relational models; identification of the multidirectional influence of pre-preservation of temporary relationships on different classes of queries; incremental formation of a temporary network, the results of triggering rules and decision support objects; determining the conditions for the use of a compact structure and a structure with pre-stored temporary relationships in the ISPR component RV. The results obtained are of practical importance for the development of temporal components of graph databases and knowledge bases. When designing such a component, it is necessary to choose in advance what to store in the graph: only the boundaries of the intervals or also the calculated relationships between the intervals. The comparison shows for what purposes a compact structure is sufficient, and in which cases the preliminary preservation of temporary connections is justified. These conclusions are also used when choosing the package size, time window, and order of fixation of derived objects in the decision support component. 1. Organization of the temporal graph and experimental scheme 1.1. The initial set of contacts The open set High School 2013 of the SocioPatterns project, containing student contacts registered by wearable sensors, was used as an experimental basis [16, 17]. The research was conducted within 5 working days. The source string includes the timestamp and the IDs of the participant pair. One observation corresponds to a twenty-second window of interaction. The set contains 188,508 rows and the data of 327 participants in nine classes (ID, gender, and class). The transformation of discrete observations into interval facts corresponds to the TBD representation of events with duration [1, 2, 11]. 1.2. Storage structures Let In option A, a contact is represented by a CONTACT link between the Person nodes. The connection properties contain start_time, end_time, and duration. Option B uses separate Contact and Interval nodes. The participants are connected to the PARTICIPATES_IN Contact, and the contact is connected to the interval by the HAS_INTERVAL relation. The calculated time dependencies are stored as typed connections between Interval nodes. This separation of data and relationships corresponds to the TBD graph representation developed in [1, 2], and is associated with a line of work on temporal graph models with attributes, where time is included in the data structure and query language [3-6]. The diagrams are shown in Fig. 1. Fig. 1. Structures of graph representation of interval contacts The relational analogue of option A contains the Person and Contact tables with temporary attributes. The extended relational schema is complemented by the AllenRelation table(interval_id_1, interval_id_2, relation_type), which stores the same set of time dependencies as option B. The comparison allows you to separate the impact of the storage model from the cost of calculating the time ratio. Unlike bitemporal graph models with attributes [4], the prototype captures the actual time of the interval contact and does not store a separate transactional time axis. In a compact representation (both graphically and relational), the relation 1.3. Building time links and checking consistency The ratio between the two intervals was calculated by the conditions above their boundaries corresponding to the 13 basic Allen relations [14]. The comparison was limited to one calendar day. If The problem of matching time constraints is represented by an interval algebra network (IA-network), the vertices of which are intervals, and the edges are mapped to a set of acceptable relations The operation is repeated until a fixed point is reached. An empty set In the implemented TBD, the interval boundaries are known, so each constraint is a single-element set of relations.: With this formulation, the algorithm does not narrow down the set of acceptable relationships and does not derive an alternative scenario. It compares the type of direct relationship, feedback, and the result of the composition, so it detects errors in calculating the relationship, inconsistent inversion, incorrect entry in the composition table, or an error in saving the type of relationship. Verification (2) is of a local nature. It does not solve a general problem with vague or disjunctive constraints, does not search for a matching scenario, and does not guarantee global consistency. Networks outside of solvable subclasses require multiple constraint propagation and, in the general case, backtracking [12]. The daily window excludes triples containing intervals of different calendar days. 1.4. Control temporal queries The experimental set included queries on a time window, participant's history, a socio-temporal sample, overlapping intervals (Allen's ratio), a short chain through an intermediate participant, and an aggregated profile. These classes cover filtering, graph navigation, and aggregation used in TBD [1-6, 11]. The average time for ten measurements was compared with the same number of returned objects. The arithmetic mean, sample standard deviation, minimum and maximum time were recorded for each query; the time of data preparation and the construction of pre-stored relationships were taken into account separately. For queries based on stored relationships, the relationship type was used, and in compact schemes, the same condition was calculated using start_time and end_time. 1.5. Temporal knowledge base, rules and scenario layer A validation-type TBZ is formed on top of the TBD. TBD stores the original contacts, intervals, participant attributes, and time dependencies, while TBZ adds rules and derived facts. Based on control queries, the rules of long-term contact, repetitive interaction of the couple, inter-class contact, high activity of the participant and intersection with the external scenario interval are implemented. The conditions of the rules are set by predicates over contact properties, aggregates, participant attributes, and stored temporary relationships. This layer differs from approaches to temporal knowledge graphs based on vector representations [7-9]: it preserves verifiable interval dependencies and the result of the rule operation in an explicit graph form. The rule trigger is saved by the RuleResult node. It is a derived TBZ fact, not a service log entry. RuleResult contains the rule ID, the actual value of the metric, the threshold, the time of detection, and the connection to the source objects. The rules do not perform automatic transitive inference of new Allen relations and do not change the IA network; they verify the conditions over the TBD facts and record the verification result. The scenario layer refers to the components of the ISPR RV that transform the results of reasoning into decision support objects [13]. The ScenarioEvent node sets the external time context: the control period, the monitoring mode, or the interval of the external event. The combination of ScenarioEvent and RuleResult forms a DecisionSituation with properties of the situation status, significance level, and direction of reaction or further verification. DecisionSituation is not an automatically made decision; it is a structured situation with a recommendation and a stored basis for formation. The BASED_ON_RESULT and BASED_ON_EVENT links provide a trace from the situation to the derived TBD fact and an external event. The initial set does not contain management events, so the scenario intervals were set synthetically. This mode checks the interaction of TBD, TBZ and the scenario component of the ISPR RV, but does not assess the substantive validity of recommendations for a real organization. 1.6. Batch pipeline In incremental processing, Python manages the sequential submission of contacts and the collection of metrics. Cypher performs loading and fetching, and APOC creates links with a dynamically set type. Package processing includes adding Contact and Interval, calculating local time relationships, running TBZ rules, creating RuleResult and DecisionSituation. This sequence corresponds to the separation of data, knowledge, and scenario objects in the prototype of the ISPR RV [2, 13]. Horizon limitation and subbatches refer to engineering means of controlling the cost of pre-maintaining temporary connections, which are close in formulation to the problem of built-in temporal support and storage of graph history [4, 6]. The first launch used large packages and a single transaction for related operations. After stopping due to the transactional memory limit, the packet size was reduced, new intervals were processed in sub-batches, and the comparison was limited to the local time horizon within a calendar day. The window and transaction parameters act as limiters of the computing load during the incremental update of TBD and TBZ. The conveyor diagram is shown in Fig. 2. Fig. 2. The pipeline of incremental processing of interval events 2. Experimental evaluation of graph representations 2.1. Hardware and software configuration of the experiment All measurements were performed on the same computer. On the same configuration, data was loaded, temporary connections were built, control requests were launched, and batch processing was performed. The main parameters of the environment are given in Table 1. Table 1. Hardware and software configuration of the experiment
2.2. Formation of intervals and basic structures The identifiers of each pair were brought to the canonical order After combining the elementary windows, 67,613 interval contacts were formed. The minimum duration is 20 seconds, the maximum is 7080 seconds, and the average is 55.76 seconds. Reducing the number of records relative to the original set is associated with combining consecutive observations of one pair. Loading the basic structure took from 3,179 to 5,482 seconds. Option A and the Contact relational table had a similar volume. Option B, before creating links between intervals, took up more space due to the Contact, Interval, and service edges nodes. The technical loading parameters are shown in Table 2. Table 2. Technical indicators for loading storage structures
2.3. Building temporary links and checking local consistency There are 935,176,338 directional links stored in the daily windows, each of which corresponds to one exact Allen relation. Relational construction was performed 2.18 times faster than graph construction. The size of the structures was measured by the volume of the database files after the download and linking were completed. The AllenRelation table took about 85 GB, and the graph with typed links took about 30 GB. With the same number of facts, the graph representation turned out to be more compact than a flat relational table. On the entire control set of The check confirmed the consistency of the relationship calculation, the composition table used, and the types of relationships stored in the control subgraph. The single-element constraints did not change, and no new relationships were derived. The result does not characterize networks with indeterminate boundaries, disjunctive constraints, day-to-day dependencies, or contradictions that are found only in a global search. 2.4. Execution of temporal queries Before the measurement series, each query was performed twice to warm up. Then 10 measurement runs were carried out for four circuits. The time was measured on the side of the Python control script from sending the request to receiving the aggregated result. For Q1, the window was used on December 2, 2013 from 11:00 a.m. to 12:00 p.m., for Q2 – participant with ID 1, for Q3–Q6 – data for December 2, 2013. The maximum time gap in Q5 was 600 seconds. Statistical indicators of the execution time of control queries are given in Table 3 and in Fig. 3. Table 3. Statistical indicators of the execution time of control queries for 10 measurements
Fig. 3. Average execution time of control queries and standard deviation in the log scale Queries Q1–Q3 and Q6 consist of filtering, connecting with participants, and grouping. For Q1, the minimum average time is obtained in column A – 0.002111 s. In queries Q2, Q3, and Q6, the minimum values were obtained in relational schemas and were 0.000173, 0.007837, and 0.019979 s, respectively. The time ratio of graphs A and B depends on the query structure: graph B is slower in Q1 and Q2, but faster in Q3 and Q6. Therefore, additional transitions through the Contact and Interval nodes in scheme B do not determine the execution time independently of the rest of the query operations. The Q4 query uses the same interval overlap condition. In column A, the ratio was calculated along the boundaries of the contact pairs in 7.859439 ± 0.080971 s. In column B, the sampling based on the stored OVERLAPS connection was performed in 0.017793 ± 0.007836 s. The average time ratio was 441.7 times in favor of the extended structure. The Q5 query verifies a multi-link chain through an intermediate participant. In column A, the average time was 0.504094 ± 0.051499 s. In graph B, the path through Person, Contact, Interval, and time connections was completed in 241.576489 ± 8.178880 s. The average time ratio was 479.2 times in favor of the compact structure. 2.5. The results of the construction of temporal rules and the scenario layer In the full run, TBZ generated 69,769 RuleResult nodes. Each node records a separate rule trigger and keeps in touch with the contact, interval, or participant for whom the condition was calculated. The actual value of the indicator and the applied threshold allow you to re-check the basis of the derived fact without referring to an external journal. The ISPR RV scenario layer formed 191,997 DecisionSituation nodes. The number of situations does not match the number of RuleResult, since one derived fact can enter into several scenario contexts and be associated with several objects. The status, level of significance, recommendation, and basis of formation are preserved for each situation. The BASED_ON_RESULT and BASED_ON_EVENT links preserved the path from DecisionSituation to the TBT fact and the external time context. The sequence of Contact/Interval, RuleResult, and DecisionSituation was performed during the processing of each package, so derived objects were created incrementally, and not after the download of the entire set was completed. Table 4 shows the results of constructing rules and scenario events. Table 4. Formation of derived objects
2.6. Results of pipelined batch processing The figures for the two launches are shown in Table 5. Table 5. Batch processing results
The first launch showed the scale of the problem: the system tried to create 1,229,921 connections for one packet. A single transaction combined a package of contacts with temporary connections and derived objects, which led to the exhaustion of Neo4j transactional memory. After processing part of the set, the database stopped executing. The second launch was structured differently: the package contained 100 contacts, connections were formed in sub-patches of 20 new intervals, and the time horizon was limited to 600 seconds within a day. This configuration made it possible to process the entire data set, although shortening the horizon reduced the number of candidates and the size of the transaction. At the same time, the dependencies between events spaced over a longer period of time fell out of the analysis. 3. Conditions of use and limitations of the study Neo4j is chosen as a single graph platform in which relationships are represented by directional typed relationships and can contain properties. This allows you to compare the storage of interval boundaries in the contact properties with the representation of the interval by a separate node and the preservation of calculated time dependencies as relationships. Comparing graph databases is not part of the job; a fixed platform is used to evaluate two storage structures on the same dataset. The compact TBD and its variant with pre-stored temporary connections solve different tasks. The first approach does not create a separate layer of links between intervals, which reduces the storage volume, eliminating an increase in the density of the time subgraph. This representation is suitable for temporary filters, aggregate calculations, and processing of short chains of dependencies. The second approach significantly reduces costs for repeated queries to a specific type of relationship and generates ready-made facts for the rules of the temporal knowledge base, but the computational load is transferred to the data preparation stage [1-6]. Relational databases show high efficiency in scenarios with simple filters and aggregates [11], whereas the expanded AllenRelation table eliminates the need to recalculate the time dependence, although its volume exceeds the size of the graph representation of similar facts. The choice between SQL and a graph database is determined by the nature of the queries, the allowable amount of storage, and the need to convert temporary relationships into derived knowledge. The distinction between TBD and TBZ prevents the source data from being confused with the results of logical inference. RuleResult captures the verifiable derived fact, and DecisionSituation associates it with an external scenario and decision support parameters [13]. With this approach, the scenario layer keeps the initial intervals unchanged, does not introduce additional Allen relations, but forms an independent level of knowledge containing a recommendation along with a path to the basis of its formation. The local horizon reduces the computational load, but limits the completeness of the temporary network. For TBZ rules that operate on events that are close in time, such a compromise is acceptable. Long-term dependencies require a different solution: a separate archive layer, background linking, or multiple windows of different widths. The size of the subbatch affects memory consumption, while maintaining the quadratic nature of the pairwise comparison inside the window. The APOC library is used only to create a relationship with a type calculated from interval boundaries. The conditions of the 13 Allen relations, the limitation of the pairwise comparison area, the organization of packages and sub-matches, the verification of local consistency, the launch of TBZ rules and the formation of decision support situations are implemented in the developed software pipeline. Consistency in the prototype is checked through single-element constraints calculated using known boundaries, which makes it possible to control the local compatibility of triples, however, this approach does not reveal all the contradictions of the overall SSO in cases where the network is locally consistent, and a global search is required for full verification. Working with TBZ containing incomplete or contradictory time information requires a different approach: each constraint must store a set of valid relationships, after which an iterative narrowing is performed, and a backtracking search is applied outside of the solvable subclasses [12, 15]. At the same time, verification is not able to correct erroneous initial timestamps, since a consistent network may well be built along incorrectly registered borders. The prototype supports incremental batch processing that simulates the arrival of events in real time, but the logic of transactional time has not yet been implemented. The bitemporal expansion, covering both time layers, is planned as an independent stage in the development of the model [4]. Experimental results were obtained on a single data set with a fixed hardware configuration, which narrows the possibilities of transferring them to other operating conditions. Inter-day time connections were not built within the framework of this study. Scenario events were added artificially, since the initial data set does not include information about external management impacts on participants. The combination of these limitations outlines the boundaries of the applicability of the formulated recommendations and determines the directions of subsequent experiments. The obtained ratios of time and storage volume relate to the network of the scale and density under consideration. For sets with a different distribution of the number of events over time windows, the cost of building relationships and executing queries may change. Conclusion The purpose of the work has been achieved: a graph TBD has been developed and investigated, combined with TBD and the scenario component of the ISPR RV. The comparison of storage structures made it possible to determine which operations should be performed along the boundaries of the intervals, and which rely on previously stored time relationships. Consistency checking is included in the prototype as a means of checking the local correctness of the exact relationships. For a query with respect to OVERLAPS, the pre-stored relationship changed the average execution time from 7,859439 to 0.017793 seconds, that is, approximately 441.7 times. For multi-step traversal, the average time changed from 0.504094 to 241.576489 s, approximately 479.2 times in favor of compact storage. The graph with 935,176,338 typed temporary relationships took up about 30 GB, and the relational table with the same set of relationships took up about 85 GB. Relational connection construction was performed 2.18 times faster than graph construction. A compact representation is recommended for temporary filters, aggregations, and short chains. The extended view is useful for repeated queries on a limited set of relationships, active TBD rules, and scenarios that require tracing back to the original facts. With the same number of stored time relationships, the extended graph representation turned out to be more compact than the extended SQL representation. The result obtained is consistent with the general problem of temporal graph models with attributes: acceleration of time and route queries is associated with additional storage, indexing, or preliminary formation of historical links [3-6]. In streaming mode, the time horizon, packet size, and transaction volume must be set taking into account the allowable latency and memory. It is possible to develop the system in several directions: support for transactional time, storage of sets of acceptable relationships, search for matching scenarios, adaptive choice of a time window and partial preservation of the most demanded types of relationships. A separate line of research is the integration of Allen's interval relations with the methods of reasoning and search in temporal knowledge graphs, where interval boundaries become part of logical inference [7-10]. Separating the operational and archive layers will allow combining local stream processing with long-term dependency analysis. The final limits of the prototype's applicability have yet to be clarified through experiments on other subject sets and hardware configurations. Subsequent experiments should cover larger networks, sets of different densities, and additional hardware configurations.
The article is published in its final version as approved following the last positive peer review recommending acceptance for publication. It incorporates revisions made by the author in response to prior negative peer review reports that did not recommend publication. All peer review reports, including initial negative reviews, are published in open access alongside the article. All versions of the author’s revisions are archived in the publisher’s repository and may be made available upon reasonable request in accordance with Elsevier’s editorial policies and applicable data availability requirements. References
1. Yremeev, A. P., & Panyavin, N. A. (2022). Unification of data representation model and format transformation based on the non-relational DBMS Neo4j. Software Products and Systems, 35(4), 549-556. https://doi.org/10.15827/0236-235X.140.549-556
2. Yremeev, A. P., Panyavin, N. A., & Marenkov, M. A. (2024). Implementation of a temporal database for intelligent real-time decision support systems based on the example of the educational process at a university. Software Products and Systems, 37(4), 539-546. https://doi.org/10.15827/0236-235X.148.539-546 3. Ramesh, S., Baranawal, A., & Simmhan, Y. (2020). A Distributed Path Query Engine for Temporal Property Graphs. In 2020 IEEE/ACM International Symposium on Cluster, Cloud and Internet Computing (CCGRID) (pp. 499-508). IEEE. https://doi.org/10.1109/CCGrid49817.2020.00-43 4. Rost, C., Fritzsche, P., Schons, L., Zimmer, M., Gawlick, D., & Rahm, E. (2021). Bitemporal Property Graphs to Organize Evolving Systems. Technical Report, University of Leipzig. arXiv:2111.13499. https://doi.org/10.48550/arXiv.2111.13499 5. Arenas, M., Bahamondes, P., Aghasadeghi, A., & Stoyanovich, J. (2022). Temporal Regular Path Queries. In 2022 IEEE 38th International Conference on Data Engineering (ICDE) (pp. 2412–2425). IEEE. https://doi.org/10.1109/ICDE53745.2022.00226 6. Hou, J., Zhao, Z., Wang, Z., Lu, W., Jin, G., Wen, D., & Du, X. (2024). AeonG: An Efficient Built-in Temporal Support in Graph Databases. Proceedings of the VLDB Endowment, 17(6), 1515-1527. https://doi.org/10.14778/3648160.3648187 7. Cai, L., Janowicz, K., Yan, B., Zhu, R., & Mai, G. (2021). Time in a Box: Advancing Knowledge Graph Completion with Temporal Scopes. In Proceedings of the 11th Knowledge Capture Conference (K-CAP '21) (pp. 121-128). ACM. https://doi.org/10.1145/3460210.3493566 8. Xiong, S., Yang, Y., Payani, A., Kerce, J. C., & Fekri, F. (2024). TEILP: Time Prediction over Knowledge Graphs via Logical Reasoning. Proceedings of the AAAI Conference on Artificial Intelligence, 38(14), 16112-16119. https://doi.org/10.1609/aaai.v38i14.29544 9. Cai, L., Mao, X., Zhou, Y., Long, Z., Wu, C., & Lan, M. (2024). A Survey on Temporal Knowledge Graph: Representation Learning and Applications. arXiv:2403.04782. https://doi.org/10.48550/arXiv.2403.04782 10. Wang, X., Zhang, Y., Fan, W., Zhang, H., Wang, D., Yan, G., Mao, S., Shi, B., Lan, Y., & Cai, P. (2026). IA-RAG: Interval-Algebra-Driven Temporal Reasoning for Dynamic Knowledge Retrieval. arXiv:2606.06044. https://doi.org/10.48550/arXiv.2606.06044 11. Bazarakin, A. N. (2009). Development of a temporal data model in a medical information system. Software Products and Systems, 2, 34-40. 12. Yremeev, A. P., & Kurilenko, I. E. (2009). Component of temporal reasoning for intelligent real-time decision support systems. Artificial Intelligence and Decision Making, 1, 31-45. 13. Bashlykov, A. A., & Yremeev, A. P. (2021). Fundamentals of constructing intelligent decision support systems in nuclear energy. Moscow: INFRA-M. 14. Allen, J. F. (1983). Maintaining knowledge about temporal intervals. Communications of the ACM, 26(11), 832-843. https://doi.org/10.1145/182.358434 15. Plesnevich, G. S., & Nguyen Thi Minh Vu. (2016). Deduction algorithms for some extensions of Allen's interval logic. Artificial Intelligence and Decision Making, 1, 75-88. 16. High school temporal contacts. (2013). Netzschleuder: website. Retrieved May 4, 2026, from https://networks.skewed.de/net/sp_high_school 17. Mastrandrea, R., Fournet, J., & Barrat, A. (2015). Contact Patterns in a High School: A Comparison between Data Collected Using Wearable Sensors, Contact Diaries and Friendship Surveys. PLOS ONE, 10(9), Article e0136497. https://doi.org/10.1371/journal.pone.0136497
First Peer Review
Reviewer: Gibadullin Ruslan Farshatovich, PhD in Technical Science; Associate Professor; Department of Computer Systems; Kazan National Research Technical University named after A.N. Tupolev-KAI The subject of the research is the methods of representation, storage and normalization of temporal graphs of interpersonal contacts in the Neo4j graph database management system, considered on the example of the egocentric network of relationships of the conditional character Alyona. The author compares two variants of the structural organization of temporal data — a representation with atomic interval nodes and a representation with dedicated contact and interval nodes, and also examines normalization procedures that ensure the merging of duplicate temporal relationships and the preservation of graph integrity during incremental data replenishment. The methodology of the work combines constructive design of storage structures, software implementation using the Cypher language, the APOC procedure library and the Python language, as well as a computational experiment based on the 2013 High School Contact and Friendship Networks open dataset, covering five academic days of student contact observations. The experimental part includes measuring the loading time, the amount of memory used, and the performance of sequential and parallel processing, which corresponds to the empirical evaluation of temporal graph models accepted in the field. At the same time, methodological rigor would be higher if the number of repeated runs, the spread of measured values, and the conditions for reproducibility of the experiment were specified, since single time measurements on a single hardware configuration do not allow us to judge the stability of the differences obtained between the variants. The relevance of the study is beyond doubt: temporal graphs are widely used in social network analysis, epidemiological modeling, recommendation systems, and dynamic interaction monitoring, while industrial graph databases, including Neo4j, do not provide built-in full-fledged support for temporal semantics in the spirit of the TSQL2 standard. The development of applied techniques for storing and normalizing time relations using existing tools meets the real needs of practitioners. The scientific novelty of the work lies in a comparative analysis of two interval contact storage structures, in the proposed centralized component for the normalization of time representations, and in demonstrating its operation on a real dataset. However, the novelty should be articulated more clearly: the text should clearly show how the proposed structures and procedures differ from the well-known solutions mentioned in the review, including work on temporal property graphs and temporal support systems for graph databases, as well as justify the choice of Neo4j in comparison with alternative platforms. In its current form, it is difficult for the reader to separate the author's contribution from the adaptation of the existing techniques of the APOC library. The style of presentation generally corresponds to the scientific genre, the text is written in a competent language, terminology is used consistently. At the same time, the personalized plot frame with Alyona's participation needs methodological explanation: it should be explicitly stated that the character serves as an illustrative model of the ego network, otherwise the title and individual fragments of the text give the impression of journalism, reducing the academic sound of the work. It is also desirable to eliminate minor roughness of the formulations and ensure uniformity of the designations of variables and sets in the formal description of structures. The structure of the article is logical and includes an introduction with a literature review, a description of materials and methods, a description of the software and hardware environment, experimental sections and a conclusion that meets the requirements for empirical articles. It is advisable to strengthen the coherence between the formal description of time models and subsequent experiments, as well as to place the limitations of the study in a separate subsection. The content of the paper reveals the stated topic: point and interval time models, the mechanics of merging relationships by mergeRelationships and cloneSubgraph procedures are described in detail, quantitative results in terms of storage volume and processing time for both options are presented. Meaningful remarks include the limitation of the empirical base to a single dataset, which does not allow us to judge the generalizability of conclusions on networks of different density and scale; it is recommended either to add a second set of data, or explicitly specify the limits of applicability of the results. The conclusions generally follow from the presented results and correctly capture the advantages of the dedicated storage structure and the proposed normalization procedure, however, they should be specified quantitatively, indicating the gains achieved in processing time and memory volume in explicit numerical terms, as well as supplemented with the designation of areas for further research, including scaling to distributed configurations and integration with temporal query mechanisms. The article is of interest to the readership of the journal, primarily for specialists in the field of graph databases, social network analysis and temporal modeling, as well as for teachers and graduate students who master practical work with Neo4j. Taking into account the above, the article can be recommended for publication after revision, which involves clarifying the scientific novelty and the author's contribution, strengthening the experimental justification with an assessment of the reproducibility of measurements, methodological explanation of the illustrative example, and specification of conclusions.
Second Peer Review
Reviewer: Gibadullin Ruslan Farshatovich, PhD in Technical Science; Associate Professor; Department of Computer Systems; Kazan National Research Technical University named after A.N. Tupolev-KAI The subject of the research of the peer-reviewed article "Temporal graph in the Neo4j DBMS: a comparison of storage structures and the incremental formation of an Allen interval relationship network" are ways to represent Allen interval relationships in a temporal graph implemented using the Neo4j graph platform: a compact structure in which the time ratio is calculated along the boundaries of the intervals immediately at the time of query execution, and an extended structure in which in which the calculated dependencies are stored in advance in the form of separate typed relationships, as well as the process of incremental formation of a temporal network and derived objects of the temporal knowledge base used by an intelligent real-time decision support system. The research methodology is structured correctly and combines analytical and experimental approaches: the author formalizes both storage organization options, provides estimates of storage volume, forms representative query groups with time filters aimed at individual Allen relations and involving multi–link traversals, after which he compares graph and relational representations of query execution time and memory costs, accompanying the results tables with statistical indicators and visual diagrams; the mode of incremental receipt of events is separately investigated, covering the construction of temporal relationships, checking consistency and following the rules of the temporal knowledge base up to the operation of the scenario component. The relevance of the work is beyond doubt: tasks in which the state of an object is inextricably linked to the time of its existence are becoming more common in practice, whereas the Neo4j graph model does not specify the semantics of interval relations, and it is the choice of their processing strategy that determines the response time, storage volume, and rule logic of the temporal knowledge base, which is essential for support systems. real-time decision-making. The scientific novelty lies in the experimental comparison of compact and extended representations of Allen interval relations simultaneously in graph and relational models, in identifying the multidirectional influence of the preliminary preservation of temporary relationships on various classes of queries and in determining the conditions for the appropriate use of each of the structures when executing queries and incremental receipt of events; direct comparison of these strategies in existing works has not previously been conducted, which the author convincingly shows in the review part. The style of presentation is scientific, terminologically accurate and uniform, the text is easy to read, despite the saturation of formal details. The structure of the article is logical and meets the accepted requirements: an introduction with a thorough overview of related research and an explicit statement of purpose, a description of the storage structures being compared with illustrative diagrams, an experimental part outlining the configuration, measurement methods and data obtained, a discussion of the results and a conclusion; the bibliography is representative and includes relevant foreign and domestic publications. The content fully reveals the stated topic: the formula estimates, tables and diagrams are consistent with each other, the interpretation of the results is accurate, the limitations of the approach are specified. Of particular note is the quality of the changes made by the author following the results of the previous stage of the review: the revision is substantial – in the introduction there is a fragment summarizing research on temporal query languages, storage of current and historical graph versions, bitemporal representations and reasoning mechanisms in temporal knowledge graphs, and a research gap is clearly formulated, consisting in the absence of a direct comparison of the two strategies for processing Allen's relationships; the positioning of this paper has also been clarified, listing the comparable query classes and highlighting the incremental construction of a time network as an independent area of analysis, and some previous formulations have been replaced with more precise ones, making the argument for novelty more transparent and convincing, and the coherence of the text has increased. The conclusions are substantiated by the experimental data obtained, correlated with the goal set, and contain practically significant recommendations for choosing a storage structure depending on the nature of requests and the intensity of events. The article is of interest to a wide readership: specialists in graph and relational databases, developers of temporal knowledge bases and intelligent decision support systems, as well as teachers, graduate students and students who master temporal data models. Following the review of the revised version, the article is recommended for publication. |

© 1998 – 2026 Nota Bene. Publishing Technologies. NB-Media Ltd.

Eng
