Next Article in Journal
Quantum Attacks on MIBS Block Cipher Based on Bernstein–Vazirani Algorithm
Previous Article in Journal
Game Theory for Predicting Stocks’ Closing Prices
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

Matching and Rewriting Rules in Object-Oriented Databases

School of Computing, Faculty of Science, Agriculture and Engineering, Newcastle University, Newcastle Upon Tyne NE4 5TG, UK
*
Author to whom correspondence should be addressed.
Mathematics 2024, 12(17), 2677; https://doi.org/10.3390/math12172677
Submission received: 6 August 2024 / Revised: 25 August 2024 / Accepted: 25 August 2024 / Published: 28 August 2024
(This article belongs to the Section Mathematics and Computer Science)

Abstract

Graph query languages such as Cypher are widely adopted to match and retrieve data in a graph representation, due to their ability to retrieve and transform information. Even though the most natural way to match and transform information is through rewriting rules, those are scarcely or partially adopted in graph query languages. Their inability to do so has a major impact on the subsequent way the information is structured, as it might then appear more natural to provide major constraints over the data representation to fix the way the information should be represented. On the other hand, recent works are starting to move towards the opposite direction, as the provision of a truly general semistructured model (GSM) allows to both represent all the available data formats (Network-Based, Relational, and Semistructured) as well as support a holistic query language expressing all major queries in such languages. In this paper, we show that the usage of GSM enables the definition of a general rewriting mechanism which can be expressed in current graph query languages only at the cost of adhering the query to the specificity of the underlying data representation. We formalise the proposed query language in terms declarative graph rewriting mechanisms described as a set of production rules LR while both providing restriction to the characterisation of L, and extending it to support structural graph nesting operations, useful to aggregate similar information around an entry-point of interest. We further achieve our declarative requirements by determining the order in which the data should be rewritten and multiple rules should be applied while ensuring the application of such updates on the GSM database is persisted in subsequent rewriting calls. We discuss how GSM, by fully supporting index-based data representation, allows for a better physical model implementation leveraging the benefits of columnar database storage. Preliminary benchmarks show the scalability of this proposed implementation in comparison with state-of-the-art implementations.
Keywords: direct acyclic graphs; generalised semistructured model; graph grammars; graph query languages; algorithms; operator algebras direct acyclic graphs; generalised semistructured model; graph grammars; graph query languages; algorithms; operator algebras

Share and Cite

MDPI and ACS Style

Bergami, G.; Fox, O.R.; Morgan, G. Matching and Rewriting Rules in Object-Oriented Databases. Mathematics 2024, 12, 2677. https://doi.org/10.3390/math12172677

AMA Style

Bergami G, Fox OR, Morgan G. Matching and Rewriting Rules in Object-Oriented Databases. Mathematics. 2024; 12(17):2677. https://doi.org/10.3390/math12172677

Chicago/Turabian Style

Bergami, Giacomo, Oliver Robert Fox, and Graham Morgan. 2024. "Matching and Rewriting Rules in Object-Oriented Databases" Mathematics 12, no. 17: 2677. https://doi.org/10.3390/math12172677

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop