From XML Schema to JSON Schema - Comparison and Translation with Constraint Handling Rules
F. Nogatz. Bachelor Thesis, University of Ulm, Germany, (2013)
This thesis identifies similar semantics in the two schema definition languages XML Schema and JSON Schema to build a dictionary which covers typical use cases to automatically transform first to the latter. As the range of functions of both XML Schema and JSON Schema are not identical, concrete transformation rules to reproduce similar behavior of data constraints are discussed and implemented by use of the logic programming language Constraint Handling Rules. As a result, a Prolog library xsd2json is created which provides tools to translate complex XML Schema documents into their equivalent JSON Schema documents.