{'fraction_non_alphanumeric': 0.028429282160625444, 'fraction_numerical': 0.0, 'mean_word_length': 5.202643171806168, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Semantic annotation of data in schemas to support data translations

In service-oriented architectures, components (devices or systems) provide services to other components, i.e., providers send data to consumers that subscribed or requested that service. However, a consumer should only request/subscribe a service from a provider if it can receive and understand the data that will be sent. This means that, before the request/subscription, it is required to check if they can interoperate (using or not a converter/translator). This paper, focused in the semantic and data interoperability issues, proposes the use of schemas, namely XML schemas, with semantic annotations to support the semantic compatibility verification and the automatic generation of data translators. The main contribution of this paper relies on the semantic annotation of specific data in the associated schemas, as well as an approach to do it. Furthermore, to annotate the meta-data, the use of an existing annotation method is proposed. To validate the proposals, a tool is currently under development. This tool receives as inputs, XML schemas and a reference ontology expressed in OWL, generating a specification in XSLT aimed for the translation of data from the provider to the consumer. The application example, with one temperature sensor (the provider) and one consumer, illustrates and validates the proposed approach.