Journal of Software:2019.30(11):3297-3312

(福州大学 数学与计算机科学学院, 福建 福州 350108;福建省网络计算与智能信息处理重点实验室(福州大学), 福建 福州 350108;清华大学 软件学院, 北京 100084)
Approach to Modeling and Executing Context-aware Services of Smart Home at Runtime
CHEN Xing,HUANG Zhi-Ming,YE Xin-Shu,MA Yun,CHEN Yi-Yan,GUO Wen-Zhong
(College of Mathematics and Computer Science, Fuzhou University, Fuzhou 350108, China;Fujian Provincial Key Laboratory of Networking Computing and Intelligent Information Processing(Fuzhou University), Fuzhou 350108, China;School of Software, Tsinghua University, Beijing 100084, China)
Chart / table
Similar Articles
Article :Browse 62   Download 43
Received:July 16, 2018    Revised:September 20, 2018
> 中文摘要: 随着智能家居基础设施的不断发展,智能家居逐渐进入以智能服务为特征的新时期.大量复杂、异构的智能设备相互协同,构成海量、智能、集成的智能家居应用.其中,情境感知服务根据服务对象所处情境的变化为其提供准确的服务,是智能家居应用的典型代表.目前,情境感知服务往往面向场景进行构建,其设备多样性和服务随需性给应用开发带来极大的挑战.开发者需要熟悉设备管理接口、进行接口调用和交互,同时,理解服务功能和质量需求,进行管理逻辑的编写.为了快速定制和开发情境感知服务,将知识图谱引入开发过程,提出一种智能家居情境感知服务的运行时建模与执行方法:首先,提出智能家居情境感知服务知识图谱概念模型,定义其情境中各种概念和关系;其次,提出智能家居情境感知服务知识图谱实例模型的构造与维护机制,通过运行时概念、关系实例表示情境知识;最后,提出基于知识推理的智能家居情境感知服务执行方法,通过知识推理自动执行设备功能.面向实际场景,构建智能家居原型系统.实验结果显示,该方法能够实现情境感知服务运行时建模与执行,其代码减少量超过90%.
Abstract:As the infrastructure supporting smart home evolves, smart home has entered a new stage featured by intelligent services. A large number of complex and heterogeneous smart devices cooperate with each other, and make up plenty of intelligent and integrated smart home applications, in which context-aware services can be regarded as typical representatives. The context-aware services aim to provide accurate services to users according to their contexts. Developers usually design and develop these services based on scenario, and face huge challenges from device and demand variations. They first have to be familiar with the APIs provided by smart devices and then build the program upon them according to functional and nonfunctional requirements of services. In order to customize and develop these services more efficiently, this study proposes an approach to model and execute context-aware services at runtime, which introduces the knowledge graph into development process. First, concepts and relations of context-aware services are defined in the concept model of knowledge map. Second, runtime instances of concepts and relations in knowledge map are used to represent the knowledge of user's context. Third, knowledge reasoning based on the runtime knowledge map is implemented to perform device functions automatically. The proposed framework is evaluated on a prototype system, and the results show that the proposed approach can model and execute context-aware services at runtime and LOC (lines of code) is reduced by 90%.
文章编号:     中图分类号:TP311    文献标志码:
基金项目:国家重点研发计划(2018YFB1004800);福建省高校杰出青年科研人才计划;福建省引导项目(2018H0017) 国家重点研发计划(2018YFB1004800);福建省高校杰出青年科研人才计划;福建省引导项目(2018H0017)
Foundation items:National Key Research and Development Program of China (2018YFB1004800); Talent Program for Distinguished Young Scholars in Higher Education of Fujian Province; Guiding Project of Fujian Province (2018H0017)
Reference text:


CHEN Xing,HUANG Zhi-Ming,YE Xin-Shu,MA Yun,CHEN Yi-Yan,GUO Wen-Zhong.Approach to Modeling and Executing Context-aware Services of Smart Home at Runtime.Journal of Software,2019,30(11):3297-3312