arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1711.05787cs.DBcs.PL
收藏

WebRelate:使用示例将Web数据与电子表格集成

WebRelate: Integrating Web Data with Spreadsheets using Examples

Jeevana Priya Inala, Rishabh Singh

摘要:

Web源和关系数据之间的数据集成是数据科学家和电子表格用户面临的一个关键挑战。以编程方式将Web数据与关系数据连接起来有两个主要挑战。首先,大多数网站没有公开直接的接口来获取表格数据,因此用户需要制定一个逻辑来为关系表中的每个输入行访问不同的网页。其次,在到达期望的网页之后,用户需要编写复杂的脚本来提取相关数据,这通常以输入数据为条件。由于许多数据科学家和最终用户来自不同的背景,编写如此复杂的基于正则表达式的逻辑脚本来执行数据集成任务通常超出了他们的编程专业知识。我们提出WebRelate,一个系统,允许用户加入半结构化的Web数据与关系数据在电子表格中使用输入输出的例子。WebRelate将Web数据集成任务分解为两个子任务:i)URL学习和ii)依赖输入的Web提取。第一个子任务为包含关系表中所有行的所需数据的网页生成URL。WebRelate通过使用几个示例URL学习字符串转换程序来实现这一点。第二子任务使用要从相应网页提取的所需数据的示例,并学习用于提取其他行的数据的程序。我们设计了表达特定领域的语言的URL生成和Web数据提取,并提出了有效的合成算法,学习程序在这些DSL从几个输入输出的例子。我们评估WebRelate的88现实世界的Web数据集成任务,从在线帮助论坛和Excel产品团队,并表明,WebRelate可以学习所需的程序在几秒钟内使用只有1个例子的大多数任务。

英文摘要:

Data integration between web sources and relational data is a key challenge faced by data scientists and spreadsheet users. There are two main challenges in programmatically joining web data with relational data. First, most websites do not expose a direct interface to obtain tabular data, so the user needs to formulate a logic to get to different webpages for each input row in the relational table. Second, after reaching the desired webpage, the user needs to write complex scripts to extract the relevant data, which is often conditioned on the input data. Since many data scientists and end-users come from diverse backgrounds, writing such complex regular-expression based logical scripts to perform data integration tasks is unfortunately often beyond their programming expertise. We present WebRelate, a system that allows users to join semi-structured web data with relational data in spreadsheets using input-output examples. WebRelate decomposes the web data integration task into two sub-tasks of i) URL learning and ii) input-dependent web extraction. The first sub-task generates the URLs for the webpages containing the desired data for all rows in the relational table. WebRelate achieves this by learning a string transformation program using a few example URLs. The second sub-task uses examples of desired data to be extracted from the corresponding webpages and learns a program to extract the data for the other rows. We design expressive domain-specific languages for URL generation and web data extraction, and present efficient synthesis algorithms for learning programs in these DSLs from few input-output examples. We evaluate WebRelate on 88 real-world web data integration tasks taken from online help forums and Excel product team, and show that WebRelate can learn the desired programs within few seconds using only 1 example for the majority of the tasks.

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

↑