arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1502.02242cs.DBcs.DS
收藏

基于上下文无关路径搜索的图中路径查询

Querying for Paths in Graphs using Context-Free Path Queries

Jelle Hellings

摘要:

针对图结构数据的导航查询,诸如常规路径查询和上下文无关路径查询,通常被评估为节点对$(m, n)$的关系,使得存在从$m$到$n$的路径满足查询的条件。虽然这种关系查询语义具有实用价值,我们认为,关系查询语义只能提供有限的洞察力的图数据的结构。为了解决关系查询语义的局限性,我们引入了全路径查询语义和单路径查询语义。根据这些基于路径的查询语义,查询被评估为满足查询条件的所有路径,或者,分别,到一个单一的这样的path.While专注于上下文无关的路径queries,我们提供了一个正式的框架,用于评估图上的查询使用基于路径的查询语义。对于所有路径的查询语义,我们表明,查询的结果可以表示为一个有限的上下文无关文法与节点信息相关的查询结果中派生的每个路径的注释。对于单路径查询语义,我们建议搜索最小长度的路径。我们减少的问题,找到这样一个路径的最小长度找到一个字符串的最小长度在上下文无关的语言,并推导出这样一个字符串,我们提出了一个新的算法。我们的初步研究结果表明,基于路径的查询语义增加了实用价值和查询评价基于路径的查询语义是可行的,即使当查询结果增长非常大。对于单路径查询语义,确定严格的最坏情况下的查询结果的大小上界仍然是未来工作的重点。

英文摘要:

Navigational queries for graph-structured data, such as the regular path queries and the context-free path queries, are usually evaluated to a relation of node-pairs $(m, n)$ such that there is a path from $m$ to $n$ satisfying the conditions of the query. Although this relational query semantics has practical value, we believe that the relational query semantics can only provide limited insight in the structure of the graph data. To address the limits of the relational query semantics, we introduce the all-path query semantics and the single-path query semantics. Under these path-based query semantics, a query is evaluated to all paths satisfying the conditions of the query, or, respectively, to a single such path. While focusing on context-free path queries, we provide a formal framework for evaluating queries on graphs using both path-based query semantics. For the all-path query semantics, we show that the result of a query can be represented by a finite context-free grammar annotated with node-information relevant for deriving each path in the query result. For the single-path query semantics, we propose to search for a path of minimum length. We reduce the problem of finding such a path of minimum length to finding a string of minimum length in a context-free language, and for deriving such a string we propose a novel algorithm. Our initial results show that the path-based query semantics have added practical value and that query evaluation for both path-based query semantics is feasible, even when query results grow very large. For the single-path query semantics, determining strict worst-case upper bounds on the size of the query result remains the focus of future work.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑