IMFD Researchers Present Advances in Search Systems for Graphs at SIGMOD/PODS
“Worst-Case-Optimal Similarity Joins on Graph Databases” is the title of the research presented at SIGMOD/PODS 2024 by Millennium Institute for Foundational Research on Data (IMFD) researchers Benjamín Bustos, Aidan Hogan (IMFD deputy director) and Gonzalo Navarro, from Computer Science at U. de Chile; Diego Arroyuelo and IMFD director Juan Reutter, from Computer Science at U. Católica, and Adrián Gómez-Brandón (University of A Coruña).
Regarding this research, Gonzalo Navarro explains: “There is a lot of recent work on so-called graph databases, which represent information in the form of nodes (the objects) and edges connecting nodes (representing relationships between objects), because they are more flexible than relational databases. These graphs are mainly queried by providing a small pattern graph, which has nodes and edges but where the identities of the nodes and edges can be variables. Each way of assigning values to the variables so that the pattern appears in the graph is an answer to the query. As a very simplified example, in a graph containing information about pharmacies, a query such as (F, sells, X), (X, component, paracetamol), (X, price, P), (F, has-agreement, Fonasa) gives me the pharmacies F with an agreement with Fonasa that sell some medicine X containing paracetamol, and the price P at which they sell it. Answering these queries efficiently is not easy, and it is not uncommon for some to take seconds or even minutes. A quality standard for these algorithms is being worst-case optimal. This type of algorithm is relatively recent and there is still a lot of research being done on them”.
In this context, the academic states that one line of work developed at IMFD is so-called multimodal graphs, “which contain more semantics than mere connectivity between nodes. This type of information is very common in real life, and to be queried effectively it requires enriching the language of pattern graphs with expressions specific to the data types. For example, some nodes may be geographic places and have associated location information, and I would like to be able to search the previous query but restricted to the pharmacy being within a certain distance radius. Or that the current time be between its opening and closing hours. Or that the price be lower than a certain limit”.
Professor Gonzalo Navarro notes that this scientific paper addresses the problem of being able to add metric information to objects and proximity conditions to pattern graphs. He explains that metrics are generalizations of Euclidean distances (such as those in a plane or space), which cover not only the example of geographic distance but others such as similarity between images, audio, video, texts, etc. (which are modeled as distances in very high-dimensional spaces). “We also wanted to maintain the worst-case-optimality condition of the search algorithms”, he states.
In this way, the researchers show that it is possible to include this type of information and support a particular type of query, “that of the k nearest neighbors. Among the objects that have the metric, a graph is formed where each node knows which are the k nodes closest/most similar to it. The query can then ask that an object be among the k closest/most similar to another. This allows us to ask, for example, about churches in my own city whose façade resembles (as an image) one that interests me. We show that the k-neighbor graph can be joined to the database graph so as to elegantly integrate it into the same worst-case-optimal algorithm, in a way reusing all the already known development on this algorithm. We show that, in several cases, we can retain worst-case-optimality, although not in all of them. And we implemented the new algorithm and show that it is considerably better than a basic solution. This opens the door to supporting other types of queries (by distance, as in the pharmacy example), and other types of data (topological, geographic regions, temporal, etc.)”, comments the academic.
SOURCE: DCC U. de Chile Communications
