Search engine for discovering works of Art, research articles, and books related to Art and Culture
ShareThis
Javascript must be enabled to continue!

On the reasonable effectiveness of Relational Diagrams

View through CrossRef
Comparing relational languages by their logical expressiveness is well understood. Less well understood is how to compare relational languages by their ability to represent relational query patterns. Indeed, what are query patterns other than "a certain way of writing a query"? And how can query patterns be defined across procedural and declarative languages, irrespective of their syntax? To the best of our knowledge, we provide the first semantic definition of relational query patterns by using a variant of structure-preserving mappings between the relational tables of queries. This formalism allows us to analyze the relative pattern expressiveness of relational language fragments and create a hierarchy of languages with equal logical expressiveness yet different pattern expressiveness. Notably, for the non-disjunctive language fragment, we show that relational calculus can express a larger class of patterns than the basic operators of relational algebra. Our language-independent definition of query patterns opens novel paths for assisting database users. For example, these patterns could be leveraged to create visual query representations that faithfully represent query patterns, speed up interpretation, and provide visual feedback during query editing. As a concrete example, we propose Relational Diagrams, a complete and sound diagrammatic representation of safe relational calculus that is provably (i) unambiguous, (ii) relationally complete, and (iii) able to represent all query patterns for unions of non-disjunctive queries. Among all diagrammatic representations for relational queries that we are aware of, ours is the only one with these three properties. Furthermore, our anonymously preregistered user study shows that Relational Diagrams allow users to recognize patterns meaningfully faster and more accurately than SQL.
Center for Open Science
Title: On the reasonable effectiveness of Relational Diagrams
Description:
Comparing relational languages by their logical expressiveness is well understood.
Less well understood is how to compare relational languages by their ability to represent relational query patterns.
Indeed, what are query patterns other than "a certain way of writing a query"? And how can query patterns be defined across procedural and declarative languages, irrespective of their syntax? To the best of our knowledge, we provide the first semantic definition of relational query patterns by using a variant of structure-preserving mappings between the relational tables of queries.
This formalism allows us to analyze the relative pattern expressiveness of relational language fragments and create a hierarchy of languages with equal logical expressiveness yet different pattern expressiveness.
Notably, for the non-disjunctive language fragment, we show that relational calculus can express a larger class of patterns than the basic operators of relational algebra.
Our language-independent definition of query patterns opens novel paths for assisting database users.
For example, these patterns could be leveraged to create visual query representations that faithfully represent query patterns, speed up interpretation, and provide visual feedback during query editing.
As a concrete example, we propose Relational Diagrams, a complete and sound diagrammatic representation of safe relational calculus that is provably (i) unambiguous, (ii) relationally complete, and (iii) able to represent all query patterns for unions of non-disjunctive queries.
Among all diagrammatic representations for relational queries that we are aware of, ours is the only one with these three properties.
Furthermore, our anonymously preregistered user study shows that Relational Diagrams allow users to recognize patterns meaningfully faster and more accurately than SQL.

Related Results

Autonomy on Trial
Autonomy on Trial
Photo by CHUTTERSNAP on Unsplash Abstract This paper critically examines how US bioethics and health law conceptualize patient autonomy, contrasting the rights-based, individualist...
Relational Diagrams and the Pattern Expressiveness of Relational Languages
Relational Diagrams and the Pattern Expressiveness of Relational Languages
Comparing relational languages by their logical expressiveness is well understood. Less understood is how to compare relational languages by their ability to represent relational q...
Implicit measures of beliefs
Implicit measures of beliefs
The assessment of the thoughts and evaluations of human beings is a central feature of modern psychological science. Further to this, many researchers are specifically interested i...
Relational Practice: A Concept Analysis
Relational Practice: A Concept Analysis
Relational practice is increasingly being recognized as a core framework within contemporary nursing, shifting care away from task-focused routines and towards person-facilitated r...
Towards a Model Theory of Venn Diagrams
Towards a Model Theory of Venn Diagrams
One of the goals of logical analysis is to construct mathematical models of various practices of deductive inference. Traditionally, this is done by means of giving semantics and r...
Drawing schematic diagrams
Drawing schematic diagrams
Schematic diagrams are invaluable in Earth Science in the communication of concepts in both publications and teaching. These diagrams can also be used during fieldwork to help deve...
Introduction
Introduction
This special issue moves beyond an understanding of diagrams as mere inscriptions of objects and processes, proposing instead to re-evaluate diagrammatic reasoning as the work that...
Graphic Analytical Methods for Determining Moist Air Characteristics in Multistage Compressors
Graphic Analytical Methods for Determining Moist Air Characteristics in Multistage Compressors
The purpose of the study is a comparative analysis of methods for graphic analytical determination of the characteristics of moist air in multistage compressors. Two methods are co...

Back to Top