This paper presents a formalism for defining path properties in graph databases, which can be used to restrict the number of solutions to navigational queries. In particular, our formalism allows us to define quantitative properties such as path length and accumulated cost, which can be used as query filters to identify and eliminate paths that may be considered ill-formed. The new formalism is defined in terms of an operational semantics for the query language that incorporates these constructs, thereby enabling the elimination of ill-formed paths during the computation of query answers. Furthermore, we demonstrate the soundness and completeness of this semantics and we analyze its expressive power, showing that path properties are strictly more expressive than register automata. Finally, after discussing some complexity issues related to this new approach, we present an empirical analysis based on our prototype implementation of the graph database that serves as a running example throughout the paper. The results show that queries using path properties as filters outperform standard queries that do not employ such filters.
翻译:暂无翻译