From XML Schema to JSON Schema: Translation with CHR
Falco Nogatz, Thom Fr\"uhwirth

TL;DR
This paper presents a novel approach to automatically translate XML Schema documents into equivalent JSON Schemas using a Prolog and CHR-based declarative translation method, facilitating interoperability between data formats.
Contribution
It introduces a new implementation of an XML to JSON Schema translator based on CHR, enabling automatic and declarative schema conversion.
Findings
Successfully translates XML Schema to JSON Schema
Uses Prolog and CHR for declarative rule specification
Facilitates interoperability between XML and JSON data formats
Abstract
Despite its rising popularity as data format especially for web services, the software ecosystem around the JavaScript Object Notation (JSON) is not as widely distributed as that of XML. For both data formats there exist schema languages to specify the structure of instance documents, but there is currently no opportunity to translate already existing XML Schema documents into equivalent JSON Schemas. In this paper we introduce an implementation of a language translator. It takes an XML Schema and creates its equivalent JSON Schema document. Our approach is based on Prolog and CHR. By unfolding the XML Schema document into CHR constraints, it is possible to specify the concrete translation rules in a declarative way.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMathematics, Computing, and Information Processing · Image Processing and 3D Reconstruction · Natural Language Processing Techniques
