Despite the pervasiveness of IoT domotic devices in the home automation landscape, their potential is still quite under-exploited due to the high heterogeneity and the scarce expressivity of the most commonly adopted scenario programming paradigms. The aim of this study is to show that Semantic Web technologies constitute a viable solution to tackle not only the interoperability issues, but also the overall programming complexity of modern IoT home automation scenarios. For this purpose, we developed a knowledge-based home automation system in which scenarios are the result of logical inferences over the IoT sensors data combined with formalised knowledge. In particular, we describe how the SWRL language can be employed to overcome the limitations of the well-known trigger-action paradigm. Through various experiments in three distinct scenarios, we demonstrated the feasibility of the proposed approach and its applicability in a standardised and validated context such as SAREF
Building Automation and Management Systems offer centralised control and monitoring by integrating smart devices into the environment. Together, these provide building owners and stakeholders with data about energy consumption and other relevant characteristics which can, among others, be used for decision making and the automation of actions. However, due to the proliferation of different protocols and ecosystems, it often remains challenging to seamlessly aggregate and analyse the data streams provided by the connected devices. To overcome these problems, we introduce a distributed, knowledge-driven data exchange and validation framework, built upon Semantic Web technologies, that a) facilitates the transparent flow of data between smart devices, b) validates these data and generates reports on detected anomalous behaviour in real-time, and c) aggregates and displays the data and any derived insight on dashboards and other interactive web-accessible interfaces. Our framework consists of two core components: the Knowledge Engine, which acts as an information broker and translation layer between device-specific languages and RDF, and the Knowledge Validator, which continuously monitors these RDF streams and reports on deviations from nominal behaviour. We evaluate our framework via requirement-based testing and demonstrate its functionality in a real-world case study in the smart buildings domain, showing that it can facilitate seamless communication between devices of different make and model and that it can help building owners recognise abnormal device behaviour.