Applied Sciences (Dec 2021)

JSON Schemas with Semantic Annotations Supporting Data Translation

  • Gonçalo Amaro,
  • Filipe Moutinho,
  • Rogério Campos-Rebelo,
  • Julius Köpke,
  • Pedro Maló

DOI
https://doi.org/10.3390/app112411978
Journal volume & issue
Vol. 11, no. 24
p. 11978

Abstract

Read online

As service-oriented architectures are a solution for large distributed systems, interoperability between these systems, which are often heterogeneous, can be a challenge due to the different syntax and semantics of the exchanged messages or even different data interchange formats. This paper addresses the data interchange format and data interoperability issues between XML-based and JSON-based systems. It proposes novel annotation mechanisms to add semantic annotations and complement date values to JSON Schemas, enabling an interoperability approach for JSON-based systems that, until now, was only possible for XML-based systems. A set of algorithms supporting the translation from JSON Schema to XML Schema, JSON to XML, and XML to JSON is also proposed. These algorithms were implemented in an existing prototype tool, which now supports these systems’ interoperability through semantic compatibility verification and the automatic generation of translators.

Keywords