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

Run-Based Semantics for RPQs

View through CrossRef
RPQs (regular path queries) are an important building block of most query languages for graph databases. They are generally evaluated under homomorphism semantics; in particular only the endpoints of the matched walks are returned. However, practical applications often need the full matched walks to compute aggregate values. In those cases, homomorphism semantics are not suitable since the number of matched walks can be infinite. Hence, graph-database engines adapt the semantics of RPQs, often neglecting theoretical red flags. For instance, the popular query language Cypher uses trail semantics, which ensures the result to be finite at the cost of making computational problems intractable. We propose a new kind of semantics for RPQs, including in particular simple-run and binding-trail semantics, as a candidate to reconcile theoretical considerations with practical aspirations. Both ensure the output to be finite in a way that is compatible with homomorphism semantics: projection on endpoints coincides with homomorphism semantics. Hence, testing the emptiness of result is tractable, and known methods readily apply. Moreover, simple-run and binding-trail semantics support bag semantics, and enumeration of the bag of results is tractable.
Title: Run-Based Semantics for RPQs
Description:
RPQs (regular path queries) are an important building block of most query languages for graph databases.
They are generally evaluated under homomorphism semantics; in particular only the endpoints of the matched walks are returned.
However, practical applications often need the full matched walks to compute aggregate values.
In those cases, homomorphism semantics are not suitable since the number of matched walks can be infinite.
Hence, graph-database engines adapt the semantics of RPQs, often neglecting theoretical red flags.
For instance, the popular query language Cypher uses trail semantics, which ensures the result to be finite at the cost of making computational problems intractable.
We propose a new kind of semantics for RPQs, including in particular simple-run and binding-trail semantics, as a candidate to reconcile theoretical considerations with practical aspirations.
Both ensure the output to be finite in a way that is compatible with homomorphism semantics: projection on endpoints coincides with homomorphism semantics.
Hence, testing the emptiness of result is tractable, and known methods readily apply.
Moreover, simple-run and binding-trail semantics support bag semantics, and enumeration of the bag of results is tractable.

Related Results

Measure semantics and qualitative semantics for epistemic modals
Measure semantics and qualitative semantics for epistemic modals
In this paper, we explore semantics for comparative epistemic modals that avoid the entailment problems shown by Yalcin (2006, 2009, 2010) to result from Kratzer’s (1991) semantics...
Measure semantics and qualitative semantics for epistemic modals
Measure semantics and qualitative semantics for epistemic modals
In this paper, we explore semantics for comparative epistemic modals that avoid the entailment problems shown by Yalcin (2006, 2009, 2010) to result from Kratzer’s (1991) semantics...
The Formal Semantics of Programming Languages
The Formal Semantics of Programming Languages
The Formal Semantics of Programming Languages provides the basic mathematical techniques necessary for those who are beginning a study of the semantics and logics of programming la...
ON FORMAL AND COGNITIVE SEMANTICS FOR SEMANTIC COMPUTING
ON FORMAL AND COGNITIVE SEMANTICS FOR SEMANTIC COMPUTING
Semantics is the meaning of symbols, notations, concepts, functions, and behaviors, as well as their relations that can be deduced onto a set of predefined entities and/or known co...
Semantic Search in Solar-Terrestrial Sciences
Semantic Search in Solar-Terrestrial Sciences
The interdisciplinary research and application fields of solar, solar-terrestrial and space physics encompasses a wide variety of physical and chemical phenomena. And increasingly ...
Lexical Semantics
Lexical Semantics
Lexical semantics is the study of word meaning. Two issues of demarcation are relevant in this respect. First, although the definition of lexical semantics may suggest otherwise, m...
cf2 Semantics Revisited
cf2 Semantics Revisited
Abstract argumentation frameworks nowadays provide the most popular formalization of argumentation on a conceptual level. Numerous semantics for this paradigm have been proposed, w...
Empirical Cognitive Study on Abstract Argumentation Semantics
Empirical Cognitive Study on Abstract Argumentation Semantics
In abstract argumentation theory, multiple argumentation semantics have been proposed that allow to select sets of jointly acceptable arguments from a given set of arguments based ...

Back to Top