跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 形式语言与自动机理论

arXiv:2211.08891 (cs)
[提交于 2022年11月16日]

标题:Validating Streaming JSON Documents with Learned VPAs

作者:Véronique Bruyère, Guillermo A. Perez, Gaëtan Staquet
查看论文《Validating Streaming JSON Documents with Learned VPAs》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:We present a new streaming algorithm to validate JSON documents against a set of constraints given as a JSON schema. Among the possible values a JSON document can hold, objects are unordered collections of key-value pairs while arrays are ordered collections of values. We prove that there always exists a visibly pushdown automaton (VPA) that accepts the same set of JSON documents as a JSON schema. Leveraging this result, our approach relies on learning a VPA for the provided schema. As the learned VPA assumes a fixed order on the key-value pairs of the objects, we abstract its transitions in a special kind of graph, and propose an efficient streaming algorithm using the VPA and its graph to decide whether a JSON document is valid for the schema. We evaluate the implementation of our algorithm on a number of random JSON documents, and compare it to the classical validation algorithm.
评论: 46 pages, 10 figures, published at TACAS 2023
主题: 形式语言与自动机理论 (cs.FL)
引用方式: arXiv:2211.08891 [cs.FL]
  (或者 arXiv:2211.08891v1 [cs.FL] 对于此版本)
  https://doi.org/10.48550/arXiv.2211.08891
期刊参考: Tools and Algorithms for the Construction and Analysis of Systems (TACAS) 2023, pp. 271-289
相关 DOI: https://doi.org/10.1007/978-3-031-30823-9_14

提交历史

来自:Gaëtan Staquet
[v1] 2022年11月16日 星期三 12:55:32 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.FL
< 上一篇   |   下一篇 >
最新 | 近期 | 2022-11
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站