arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1805.12503cs.DB
收藏

基于大规模XML和模式数据的确定性正则表达式的实用研究

Practical Study of Deterministic Regular Expressions from Large-scale XML and Schema Data

Yeting Li, Xinyu Chu, Xiaoying Mou, Chunmei Dong, Haiming Chen

摘要:

正则表达式是计算机科学中的一个基本概念,广泛应用于各种应用中。在本文中,我们重点讨论了确定性正则表达式(DRES)。考虑到研究者以前没有大的数据集作为证据,我们首先从网络上收集了大量的真实数据,然后进行了一个实际的研究,以调查使用的DREs。我们的工作的一个特点是,数据集是足够大的相比,以前的工作,这是使用我们提出的几个数据汇集策略。结果表明,Relax NG中超过98%的表达式是DRE,RegExLib中超过56%的表达式是DRE,而Relax NG和RegExLib都没有确定性约束。这些意见表明,销毁去除率在实践中得到普遍使用。这些结果也表明进一步研究DRE的亚类是必要的。据我们所知,我们是第一个分析Relax NG和RegExLib的DRE的确定性和子类,并给出这些结果。此外,我们还对该数据集进行了一些讨论和应用.我们从原始数据中获得了一个DRE数据集,这在实践中将是有用的,它本身就有价值。我们发现,目前对DREs新亚类的研究还不够,因此有必要做进一步的研究。分析了XSD之间的引用关系,定义了可用于XML Schema设计的SchemaRank。

英文摘要:

Regular expressions are a fundamental concept in computer science and widely used in various applications. In this paper we focused on deterministic regular expressions (DREs). Considering that researchers didn't have large datasets as evidence before, we first harvested a large corpus of real data from the Web then conducted a practical study to investigate the usage of DREs. One feature of our work is that the data set is sufficiently large compared with previous work, which is obtained using several data collection strategies we proposed. The results show more than 98\% of expressions in Relax NG are DRE, and more than 56\% of expressions from RegExLib are DRE, while both Relax NG and RegExLib do not have the determinism constraint. These observations indicate that DREs are commonly used in practice. The results also show further study of subclasses of DREs is necessary. As far as we know, we are the first to analyze the determinism and the subclasses of DREs of Relax NG and RegExLib, and give these results. Furthermore, we give some discussions and applications of the data set. We obtain a DRE data set from the original data, which will be useful in practice and it has value in its own right. We find current research in new subclasses of DREs is insufficient, therefore it is necessary to do further study. We also analyze the referencing relationships among XSDs and define SchemaRank, which can be used in XML Schema design.

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

↑