论文标题
重新访问图形模式的遏制
Revisited Containment for Graph Patterns
论文作者
论文摘要
我们考虑条件图模式(\ emph {cgps})的类别,这些图案允许用户查询具有包含否定和谓词的复杂模式的数据图。为了克服子图同构的过于良好的成本,我们考虑在模拟语义下可以匹配\ emph {cgps},这可以在二次时期进行。在新兴应用程序中,人们希望减少更多的匹配时间,并且模式的静态分析可以确保部分减少。我们研究了\ emph {cgps}的遏制问题,该问题旨在检查某些模式$ p_1 $(在任何数据图上)是否包含在其他模式$ p_2 $(书面$ p_1 \ sqsubseteq p_2 $)中。优化过程仅从$ p_2 $的匹配中提取$ p_1 $的匹配,而无需查询(可能很大)数据图。我们表明,在二次时期,传统的遏制语义是可以决定的,但是在存在否定和谓词的情况下,它无法满足优化目标。为了克服此限制,我们提出了一种新的封存语义,称为\ emph {strong coartment},它更适合\ emph {cgps},并允许减少其匹配时间。我们证明\ emph {强遏制}可以通过提供这样的算法来在立方时间确定。我们计划使用本文的结果使用视图来回答\ emph {cgps}。本文是一个正在进行的项目的一部分,该项目旨在设计用于复杂图形模式的缓存系统。
We consider the class of conditional graph patterns (\emph{CGPs}) that allow user to query data graphs with complex patterns that contain negation and predicates. To overcome the prohibitive cost of subgraph isomorphism, we consider matching of \emph{CGPs} under simulation semantics which can be conducted in quadratic time. In emerging applications, one would like to reduce more this matching time, and the static analysis of patterns may allow ensuring part of this reduction. We study the containment problem of \emph{CGPs} that aims to check whether the matches of some pattern $P_1$, over any data graph, are contained in those of another pattern $P_2$ (written $P_1\sqsubseteq P_2$). The optimization process consists to extract matches of $P_1$ only from those of $P_2$ without querying the (possibly large) data graph. We show that the traditional semantics of containment is decidable in quadratic time, but it fails to meet the optimization goal in the presence of negation and predicates. To overcome this limit, we propose a new semantics of containment, called \emph{strong containment}, that is more suitable for \emph{CGPs} and allows to reduce their matching time. We show that \emph{strong containment} can be decided in cubic time by providing such an algorithm. We are planing to use results of this paper to answer \emph{CGPs} using views. This paper is part of an ongoing project that aims to design a caching system for complex graph patterns.