首页> 外文会议>Declarative programming and knowledge management >Declarative XML Schema Validation with SWI-Prolog System Description
【24h】

Declarative XML Schema Validation with SWI-Prolog System Description

机译:使用SWI-Prolog系统说明的声明式XML模式验证

获取原文
获取原文并翻译 | 示例

摘要

Xml Schema is a well-established mechanism to define the structure and constrain the content of an Xml document. While this approach taken by itself is declarative, currently available tools for Xml validation are not. In this paper we introduce an implementation of an Xsd validator in Swi-Prolog, made publicly available as the package library(xsd). Our approach is based on flattening the Xsd and Xml documents into Prolog facts. The top-down validation makes great use of Prolog's backtracking and unification capabilities. To ensure the compliance to the Xsd standard and to support the test-driven development, we have created a test framework based on the Test Anything Protocol and Swi-Prolog's quasi-quotations.
机译:Xml Schema是一种完善的机制,用于定义Xml文档的结构并限制其内容。尽管这种方法本身是声明性的,但目前尚无用于Xml验证的工具。在本文中,我们介绍了Swi-Prolog中Xsd验证器的实现,该实现作为软件包库(xsd)公开提供。我们的方法基于将Xsd和Xml文档压平为Prolog事实。自上而下的验证充分利用了Prolog的回溯和统一功能。为了确保符合Xsd标准并支持测试驱动的开发,我们基于“测试任何协议”和Swi-Prolog的准报价创建了一个测试框架。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号