{'fraction_non_alphanumeric': 0.027544910179640718, 'fraction_numerical': 0.0, 'mean_word_length': 5.147058823529412, '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}}
Knowledge representation and reasoning of XML with ontology

Today XML has reached a wide acceptance as the data exchange format for e-commerce. Unfortunately, XML covers the syntactic level, but lacks semantics. Ontology can represent shared domain knowledge and enable semantic interoperability. Therefore, in this paper, we propose an approach for representing and reasoning on XML with ontologies. The formal definitions of XML Schemas and ontologies are given. On this basis, for representing XML with ontologies, we propose an approach which can translate the XML Schema into the ontology. Based on the constructed ontologies, we study how to reason on XML by means of ontologies, so that the reasoning problems of XML (e.g., conformance, inclusion, and equivalence) may be reasoned through the reasoning mechanism of ontologies.