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.
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...
Improving “reasonable adjustments” for people with autism in the York Early Intervention in Psychosis Service
Improving “reasonable adjustments” for people with autism in the York Early Intervention in Psychosis Service
AimsStudies show the prevalence of Autism Spectrum Conditions in EIP populations is 3.6-3.7% compared to approximately 1-1.5% in the general population. The Equality Act 2010 and t...
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...
UML Class Diagram Classification Using Category Theory
UML Class Diagram Classification Using Category Theory
To effectively evaluate a system that performs operations on UML class diagrams, it is essential to cover a large variety of different types of diagrams. The coverage of the diagra...
What is Reasonable Doubt?
What is Reasonable Doubt?
If you ask somebody: “What is reasonable doubt?” the answer will probably be a puzzled silence or a nervous titter. Both reactions are understandable. Reasonable doubt (hereinafter...

