{'fraction_non_alphanumeric': 0.02070750647109577, 'fraction_numerical': 0.0, 'mean_word_length': 5.33879781420765, '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}}
HCAM:A Context-aware Middleware to Support Logic-based Context Conflict Detection

Context conflict is a key problem since it often occurs in context-aware system when multiple users share the same context at the same time. Context conflict not only causes confusion in applications but also slows down efficiency of context-aware systems. To address these problems, we design a harmonious context-aware middleware (HCAM) and propose a logic-based approach for context conflict detection. Our context- aware middleware provides mechanisms that belong to the middleware layer to simplify development of applications. In our logic-based approach, based on rules representation, we give a classification of context conflict so that we can calculate basic context conflict information from the view of semantics of rules as well as from the view of business logic. Using the inferring axioms, we combine two views together and detect complete context conflict. Experiments show that our logic-based conflict detection approach avoids confusion in applications and reduces unnecessary execution of activated rules to improve efficiency of context-aware middleware.