首页 | 本学科首页   官方微博 | 高级检索  
     

面向图数据的结构化正则路径查询方法
引用本文:邱涛,王屿涵.面向图数据的结构化正则路径查询方法[J].计算机应用研究,2023,40(10).
作者姓名:邱涛  王屿涵
作者单位:沈阳航空航天大学 计算机学院,沈阳航空航天大学 计算机学院
基金项目:国家自然科学基金资助项目(62002245);辽宁省自然科学基金资助项目(2022-BS-218)
摘    要:正则路径查询是一种应用正则表达式在图数据上进行查询的技术,通常利用有限状态自动机实现查询匹配。现有正则路径查询方法的匹配结果为顶点对的序列,未能充分保留图的结构,为了解决这一问题,提出了一种面向图数据的结构化正则路径查询方法,通过在不同的序列间加以结构化约束,使得查询结果由路径转变为子图。为了实现这一目的,首先定义了一种结构化的正则路径查询语言,并设计了结构化的查询解析以及基于此结构的匹配算法。实验在模拟数据集和真实数据集上进行了测试与分析,验证了网络规模对查询速度的影响,并设置了对照实验。实验结果表明,提出方法能够在保证满足正则表达式约束的前提下实现结构化查询。

关 键 词:正则路径查询    图数据    有限状态自动机    子图匹配
收稿时间:2023/2/10 0:00:00
修稿时间:2023/9/9 0:00:00

Efficient method of structured regular path query for graph data
Qiu Tao and Wang Yuhan.Efficient method of structured regular path query for graph data[J].Application Research of Computers,2023,40(10).
Authors:Qiu Tao and Wang Yuhan
Affiliation:Shenyang Aerospace University,
Abstract:Regular path query is a technique of using regular expressions to query graph data, usually uses finite state automata to achieve query matching. The matching result of the existing regular path query method is a sequence of vertex pairs, and the structure of the graph is not fully preserved. In order to solve this problem, this paper proposed a method of structured regular path query for graph data. By structuring constraints between different sequences, the query results could be transformed from paths to subgraphs. For this purpose, the method firstly defined a structured regular path query language, and then designed a structured query parsing and a matching algorithm based on this structure. Experimental results on simulated and real datasets verify the influence of network size on query speed. This paper compared the proposed method with the control group. Experimental results show that the proposed method can realize structured query under the premise of satisfying regular expression constraints.
Keywords:regular path query  graph data  finite state automaton  subgraph matching
点击此处可从《计算机应用研究》浏览原始摘要信息
点击此处可从《计算机应用研究》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号