CN103577198B - A kind of user oriented Internet of Things service platform and long-range control method - Google Patents
A kind of user oriented Internet of Things service platform and long-range control method Download PDFInfo
- Publication number
- CN103577198B CN103577198B CN201310597935.8A CN201310597935A CN103577198B CN 103577198 B CN103577198 B CN 103577198B CN 201310597935 A CN201310597935 A CN 201310597935A CN 103577198 B CN103577198 B CN 103577198B
- Authority
- CN
- China
- Prior art keywords
- database
- information
- event
- user
- equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明公开了一种面向用户的物联网服务平台及远程控制方法,其中,所述平台包括:语法结构分析模块,用于将用户应用发来的语言内容拆分为不同词类的词组并转换为对应的标准词组;语义内容解析模块用于根据配置的标准词组与设备地址、操作指令的对应关系,查找所述标准词组对应的设备地址信息和操作指令;以及操作确认及结果获取模块,用于根据所述语义内容解析模块提供的设备地址信息和操作指令,对相应设备执行操作,并获取操作结果。本发明的物联网服务平台可以方便所有物联网服务平台用户使用自然语言对所需的个人和公共设备进行远程查询和控制,不需要设备支持语义功能,所有符合物联网规范的设备都可以通过该平台被符合权限的用户远程操作。
The invention discloses a user-oriented Internet of Things service platform and a remote control method, wherein the platform includes: a grammatical structure analysis module, which is used to split the language content sent by the user application into phrases of different parts of speech and convert them into Corresponding standard phrases; the semantic content parsing module is used to search for the equipment address information and operation instructions corresponding to the standard phrases according to the corresponding relationship between the configured standard phrases and equipment addresses and operation instructions; and the operation confirmation and result acquisition module is used for According to the device address information and operation instructions provided by the semantic content parsing module, perform operations on corresponding devices and obtain operation results. The Internet of Things service platform of the present invention can facilitate all Internet of Things service platform users to use natural language to remotely query and control the required personal and public devices, and does not require devices to support semantic functions. The platform is operated remotely by users with appropriate permissions.
Description
技术领域technical field
本发明涉及通信领域,具体涉及一种面向用户的物联网服务平台及远程控制方法。The invention relates to the communication field, in particular to a user-oriented Internet of Things service platform and a remote control method.
背景技术Background technique
物联网技术能够将各个“物”(包括人)与网络连接起来,进行信息通讯和交换,以实现智能化的跟踪、监控、定位和管理,是未来社会实现高度信息化的主要技术。The Internet of Things technology can connect various "things" (including people) with the network for information communication and exchange, so as to realize intelligent tracking, monitoring, positioning and management. It is the main technology for realizing a high degree of informationization in the future society.
在物联网中,物联网服务平台主要用于为各种物联网应用提供业务能力支撑和服务接口。通过物联网服务平台,物联网应用能够与“物”进行交互。然而由于“物”的种类繁杂,“物”之间往往缺乏有效的交互机制,不能够相互理解。为了实现“物”之间的相互理解,语义系统被引入到物联网服务平台中,其主要基于语义web技术中所定义的规范化语言,并通过语义分析机制让机器对语言进行智能解析从而进行理解。目前,物联网服务平台语义系统主要采用基于XML格式的OWL等规范化语言构建。当前物联网服务平台中所采用的语义系统方案主要面向规范化的机器间通信,以机器理解为主(如以OWL等语义web语言作为交流信息载体,以规范化的本体库进行语言的解析),并不直接面向人的需求(比如不能直接理解人的自然语言,缺乏以用户为导向的语言解析设计),需要依赖第三方应用进行人到机器的语言转换。In the Internet of Things, the Internet of Things service platform is mainly used to provide business capability support and service interfaces for various Internet of Things applications. Through the Internet of Things service platform, Internet of Things applications can interact with "things". However, due to the variety of "things", the "things" often lack an effective interaction mechanism and cannot understand each other. In order to achieve mutual understanding between "things", the semantic system is introduced into the Internet of Things service platform, which is mainly based on the standardized language defined in the semantic web technology, and through the semantic analysis mechanism, the machine can intelligently analyze the language to understand . At present, the semantic system of the Internet of Things service platform is mainly constructed using standardized languages such as OWL based on XML format. The semantic system scheme adopted in the current Internet of Things service platform is mainly oriented to standardized machine-to-machine communication, mainly based on machine understanding (such as using semantic web languages such as OWL as communication information carriers, and using standardized ontology libraries for language analysis), and Not directly oriented to human needs (such as inability to directly understand human natural language, lack of user-oriented language analysis design), it is necessary to rely on third-party applications for human-to-machine language conversion.
所以,急需为物联网服务平台提出了一种新的语义系统架构,以用户为导向设计语义系统,能够直接理解人的自然语言,并能够面向用户进行有区别的语义分析,将人的语言转换为具体的物联网操作,实现人与物的有效沟通。Therefore, it is urgent to propose a new semantic system architecture for the Internet of Things service platform. The user-oriented design of the semantic system can directly understand human natural language, and can perform differentiated semantic analysis for users to convert human language. For the specific operation of the Internet of Things, to achieve effective communication between people and things.
发明内容Contents of the invention
本发明需要解决的技术问题是提供一种面向用户的物联网服务平台及远程控制方法,以用户为导向设计语义系统,能够直接理解人的自然语言,并能够面向用户进行有区别的语义分析,将人的语言转换为具体的物联网操作,实现人与物的有效沟通。The technical problem to be solved in the present invention is to provide a user-oriented Internet of Things service platform and remote control method, to design a user-oriented semantic system, to be able to directly understand human natural language, and to perform differentiated semantic analysis for users, Convert human language into specific IoT operations to achieve effective communication between people and things.
为了解决上述技术问题,本发明提供了一种面向用户的物联网服务平台语义系统,包括:语法结构分析模块、语义内容解析模块和操作确认及结果获取模块;其中:In order to solve the above technical problems, the present invention provides a user-oriented semantic system of the Internet of Things service platform, including: a grammatical structure analysis module, a semantic content analysis module, and an operation confirmation and result acquisition module; wherein:
所述语法结构分析模块,用于将用户应用发来的语言内容拆分为不同词类的词组并转换为对应的标准词组,发送至所述语义内容解析模块;The grammatical structure analysis module is used to split the language content sent by the user application into phrases of different parts of speech and convert them into corresponding standard phrases, and send them to the semantic content analysis module;
所述语义内容解析模块,用于根据配置的标准词组与设备地址、操作指令的对应关系,查找所述标准词组对应的设备地址信息和操作指令;The semantic content analysis module is used to search for the device address information and operation instructions corresponding to the standard phrases according to the corresponding relationship between the configured standard phrases, device addresses, and operation instructions;
所述操作确认及结果获取模块,用于根据所述语义内容解析模块提供的设备地址信息和操作指令,对相应设备执行操作,并获取操作结果。The operation confirmation and result acquisition module is used to perform operations on corresponding devices according to the device address information and operation instructions provided by the semantic content analysis module, and obtain operation results.
可选地,所述语法结构分析模块包括:Optionally, the grammatical structure analysis module includes:
语言特征数据库,用于按词类将物联网涉及到的基本词汇进行分组存储,并将所述基本词汇与标准词汇建立对应关系;还用于存储计量名词与该计量名词对应的设备名词的对应关系,并将该计量名词对应的设备名词与标准词汇建立对应关系;The language feature database is used to group and store the basic vocabulary involved in the Internet of Things according to the part of speech, and establish a corresponding relationship between the basic vocabulary and the standard vocabulary; it is also used to store the corresponding relationship between the measurement noun and the equipment noun corresponding to the measurement noun , and establish a corresponding relationship between the equipment noun corresponding to the measurement noun and the standard vocabulary;
分析单元,用于根据所述语言特征数据库的词类划分将用户应用发来的语言内容拆分为不同词类的词组,并查询所述语言特征数据库将所述词组转换为对应的标准词组,发送至所述语义内容解析模块。The analysis unit is used to split the language content sent by the user application into phrases of different parts of speech according to the part-of-speech division of the language feature database, and query the language feature database to convert the phrase into a corresponding standard phrase and send it to The semantic content parsing module.
可选地,所述语义内容解析模块包括:Optionally, the semantic content parsing module includes:
用户个性化数据库,用于存储用户设备的设备信息和/或自定义事件的事件信息;所述用户个性化数据库包括用户设备数据库和/或用户事件数据库:The user personalized database is used to store the device information of the user equipment and/or the event information of the custom event; the user personalized database includes a user equipment database and/or a user event database:
所述用户设备数据库,用于将各个用户的信息按照用户标识进行存储,同一用户的设备按照地点索引在所述用户设备数据库的存储区域内进行分层存储,所述设备的设备信息作为设备属性存储;The user equipment database is used to store the information of each user according to the user identifier, and the equipment of the same user is stored hierarchically in the storage area of the user equipment database according to the location index, and the equipment information of the equipment is used as equipment attributes storage;
所述用户事件数据库,用于将各个用户的信息按照用户标识进行存储,将同一用户的自定义事件进行存储,该事件的事件信息作为事件属性存储;The user event database is used to store the information of each user according to the user ID, store the user-defined event of the same user, and store the event information of the event as an event attribute;
解析单元,用于根据所述标准词组从所述用户个性化数据库中查找对应的设备信息和/或事件信息,所述设备信息至少包括设备地址信息和操作指令,所述事件信息包括事件所触发操作的设备地址信息和操作指令。The parsing unit is configured to search for corresponding device information and/or event information from the user personalized database according to the standard phrase, the device information includes at least device address information and operation instructions, and the event information includes events triggered by events Operational device address information and operation instructions.
可选地,所述语义内容解析模块包括:Optionally, the semantic content parsing module includes:
公众信息数据库,用于存储公共设备的设备信息和/或预定义的事件信息;所述公众信息数据库包括公众设备数据库和/或公众事件数据库:The public information database is used to store equipment information and/or predefined event information of public equipment; the public information database includes a public equipment database and/or a public event database:
所述公众设备数据库,用于将公共设备按照地点索引在所述公众设备数据库的存储区域内进行分层存储,所述公共设备的设备信息作为设备属性存储;The public equipment database is used to hierarchically store public equipment in the storage area of the public equipment database according to the location index, and store the equipment information of the public equipment as equipment attributes;
所述公众事件数据库,用于将预定义事件进行存储,该事件的事件信息作为事件属性存储;The public event database is used to store predefined events, and the event information of the event is stored as event attributes;
解析单元,用于根据所述标准词组从所述公众信息数据库中查找对应的设备信息和/或事件信息,所述设备信息包括设备地址信息和操作指令,所述事件信息包括事件所触发操作的设备地址信息和操作指令。A parsing unit, configured to search the public information database for corresponding device information and/or event information according to the standard phrase, the device information includes device address information and operation instructions, and the event information includes the information of the operation triggered by the event Device address information and operating instructions.
可选地,所述解析单元,用于根据所述标准词组从用户个性化数据库或公众信息数据库中查找所述标准词组对应的设备信息和/或事件信息,包括:Optionally, the parsing unit is configured to search for device information and/or event information corresponding to the standard phrase from a user personalization database or a public information database according to the standard phrase, including:
如果所述标准词组中存在称谓名词,则确定在用户个性化数据库中进行查找,否则在公众信息数据库中进行查找;If there is an appellation noun in the standard phrase, then determine to search in the user personalized database, otherwise search in the public information database;
如果所述标准词组中存在设备名词和/或计量名词,则确定在用户设备数据库或公众设备数据库中进行查找,否则确定在用户事件数据库或公众事件数据库中进行查找;If there are equipment nouns and/or measurement nouns in the standard phrase, it is determined to search in the user equipment database or the public equipment database, otherwise it is determined to search in the user event database or the public event database;
如果在所述用户设备数据库或所述公众设备数据库中进行查找,则根据所述标准词组中的地点名词、设备名词和/或计量名词对应的设备名词以及动词从相应的数据库中查找对应的设备信息,所述设备信息至少包括设备地址信息和操作指令,如果在所述用户事件数据库或所述公众事件数据库中进行查找,则根据所述标准词组中的地点名词和动词从相应的数据库中查找对应的事件信息,所述事件信息包括:事件触发要进行操作的设备地址信息和操作指令。If searching in the user equipment database or the public equipment database, then search for the corresponding equipment from the corresponding database according to the equipment nouns and verbs corresponding to the place nouns, equipment nouns and/or measurement nouns in the standard phrase Information, the device information includes at least device address information and operation instructions, if searched in the user event database or the public event database, search from the corresponding database according to the location nouns and verbs in the standard phrase Corresponding event information, the event information includes: event-triggered device address information and operation instructions to be operated.
可选地,所述语义内容解析模块,还用于将时间名词、数词和逻辑运算词的一个或多个发送至所述操作确认及结果获取模块;Optionally, the semantic content parsing module is also used to send one or more of time nouns, numerals and logical operation words to the operation confirmation and result acquisition module;
所述操作确认及结果获取模块,还用于如果所述时间名词表示当前或将来时态,则根据所述设备地址信息、操作指令和时间名词,对相应的设备执行操作,并获取所述设备返回的数据或者操作确认结果;如果所述时间名词表示过去时态,则根据所述设备地址信息、操作指令和时间名词,对相应的设备数据缓存数据库发起操作,并获取所述设备数据缓存数据库返回的数据或者操作确认结果;然后根据所述逻辑运算词和数词对返回的数据或操作确认结果进行逻辑处理,最后将处理的结果返回给用户应用。The operation confirmation and result acquisition module is also used to perform operations on the corresponding equipment according to the device address information, operation instructions and time nouns if the time noun represents the current or future tense, and obtain the device Returned data or operation confirmation results; if the time noun represents the past tense, then according to the device address information, operation instructions and time nouns, initiate an operation on the corresponding device data cache database, and obtain the device data cache database The returned data or operation confirmation result; then logically process the returned data or operation confirmation result according to the logical operation words and numerals, and finally return the processed result to the user application.
可选地,所述系统还包括:抽象及注释模块,用于在用户个性化数据库或者公众信息数据库中添加新注册设备的设备信息,具体为:根据所述新注册设备的设备权限将所述新注册设备的设备信息存储于所述用户个性化数据库或者所述公众信息数据库中;并将该新注册设备的设备名称和设备类型对应到所述语言特征数据库中的标准名词。Optionally, the system further includes: an abstraction and annotation module, configured to add device information of a newly registered device in a user personalization database or a public information database, specifically: according to the device authority of the newly registered device, the The device information of the newly registered device is stored in the user personalized database or the public information database; and the device name and device type of the newly registered device are mapped to standard nouns in the language feature database.
为了解决上述技术问题,本发明还提供了一种面向用户的物联网服务平台远程控制方法,包括:In order to solve the above technical problems, the present invention also provides a user-oriented remote control method for the Internet of Things service platform, including:
将用户应用发来的语言内容拆分为不同词类的词组并转换为对应的标准词组;Split the language content sent by the user application into phrases of different parts of speech and convert them into corresponding standard phrases;
根据配置的标准词组与设备地址、操作指令的对应关系,查找所述标准词组对应的设备地址信息和操作指令;According to the corresponding relationship between configured standard phrases, device addresses, and operating instructions, search for device address information and operating instructions corresponding to the standard phrases;
根据所述设备地址信息和操作指令,对相应设备执行操作,并获取操作结果。According to the device address information and the operation instruction, perform an operation on the corresponding device, and obtain an operation result.
可选地,所述将用户应用发来的语言内容拆分为不同词类的词组并转换为对应的标准词组,包括:Optionally, splitting the language content sent by the user application into phrases of different parts of speech and converting them into corresponding standard phrases includes:
根据语言特征数据库的词类划分将用户应用发来的语言内容拆分为不同词类的词组,并查询所述语言特征数据库将所述词组转换为对应的标准词组;Split the language content sent by the user application into phrases of different parts of speech according to the part-of-speech division of the language feature database, and query the language feature database to convert the phrase into a corresponding standard phrase;
其中,所述语言特征数据库,用于按词类将物联网涉及到的基本词汇进行分组存储,并将所述基本词汇与标准词汇建立对应关系。Wherein, the language feature database is used for grouping and storing the basic vocabulary related to the Internet of Things according to parts of speech, and establishing a corresponding relationship between the basic vocabulary and standard vocabulary.
可选地,所述根据配置的标准词组与设备地址、操作指令的对应关系,查找所述标准词组对应的设备地址信息和操作指令,包括:Optionally, searching for the device address information and operating instructions corresponding to the standard phrase according to the configured correspondence between the standard phrase and the device address and operation instruction includes:
根据所述标准词组从用户个性化数据库中查找对应的设备信息和/或事件信息,或者从公众信息数据库中查找对应的设备信息和/或事件信息;Find the corresponding device information and/or event information from the user personalized database according to the standard phrase, or find the corresponding device information and/or event information from the public information database;
所述设备信息至少包括设备地址信息和操作指令,所述事件信息包括事件所触发操作的设备地址信息和操作指令;The device information includes at least device address information and operation instructions, and the event information includes device address information and operation instructions for operations triggered by events;
所述用户个性化数据库,用于存储用户设备的设备信息和/或自定义事件的事件信息;所述用户个性化数据库包括用户设备数据库和/或用户事件数据库:The user personalized database is used to store device information of user equipment and/or event information of custom events; the user personalized database includes a user equipment database and/or a user event database:
所述用户设备数据库,用于将各个用户的信息按照用户标识进行存储,同一用户的设备按照地点索引在所述用户设备数据库的存储区域内进行分层存储,所述设备的设备信息作为设备属性存储;The user equipment database is used to store the information of each user according to the user identifier, and the equipment of the same user is stored hierarchically in the storage area of the user equipment database according to the location index, and the equipment information of the equipment is used as equipment attributes storage;
所述用户事件数据库,用于将各个用户的信息按照用户标识进行存储,将同一用户的自定义事件进行存储,该事件的事件信息作为事件属性存储;The user event database is used to store the information of each user according to the user ID, store the user-defined event of the same user, and store the event information of the event as an event attribute;
所述公众信息数据库,用于存储公共设备的设备信息和/或预定义的事件信息;所述公众信息数据库包括公众设备数据库和/或公众事件数据库:The public information database is used to store equipment information and/or predefined event information of public equipment; the public information database includes a public equipment database and/or a public event database:
所述公众设备数据库,用于将公共设备按照地点索引在所述公众设备数据库的存储区域内进行分层存储,所述公共设备的设备信息作为设备属性存储;The public equipment database is used to hierarchically store public equipment in the storage area of the public equipment database according to the location index, and store the equipment information of the public equipment as equipment attributes;
所述公众事件数据库,用于将预定义事件进行存储,该事件的事件信息作为事件属性存储。The public event database is used to store predefined events, and the event information of the events is stored as event attributes.
可选地,所述语言特征数据库,还用于存储计量名词与该计量名词对应的设备名词的对应关系,并将该计量名词对应的设备名词与标准词汇建立对应关系;Optionally, the language feature database is also used to store the correspondence between the measurement noun and the equipment noun corresponding to the measurement noun, and establish the correspondence between the equipment noun corresponding to the measurement noun and the standard vocabulary;
所述根据所述标准词组从所述用户个性化数据库或所述公众信息数据库中查找所述标准词组对应的设备信息和/或事件信息,包括:The searching for device information and/or event information corresponding to the standard phrase from the user personalized database or the public information database according to the standard phrase includes:
如果所述标准词组中存在称谓名词,则确定在所述用户个性化数据库中进行查找,否则在所述公众信息数据库中进行查找;If there is an appellation noun in the standard phrase, then determine to search in the user personalized database, otherwise search in the public information database;
如果所述标准词组中存在设备名词和/或计量名词,则确定在所述用户设备数据库或所述公众设备数据库中进行查找,否则确定在所述用户事件数据库或所述公众事件数据库中进行查找;If there are equipment nouns and/or measurement nouns in the standard phrase, it is determined to search in the user equipment database or the public equipment database, otherwise it is determined to search in the user event database or the public event database ;
如果在所述用户设备数据库或所述公众设备数据库中进行查找,则根据所述标准词组中的地点名词、设备名词和/或计量名词对应的设备名词以及动词从相应的数据库中查找对应的设备信息,所述设备信息至少包括设备地址信息和操作指令,如果在所述用户事件数据库或所述公众事件数据库中进行查找,则根据所述标准词组中的地点名词和动词从相应的数据库中查找对应的事件信息,所述事件信息包括:事件触发要进行操作的设备地址信息和操作指令。If searching in the user equipment database or the public equipment database, then search for the corresponding equipment from the corresponding database according to the equipment nouns and verbs corresponding to the place nouns, equipment nouns and/or measurement nouns in the standard phrase Information, the device information includes at least device address information and operation instructions, if searched in the user event database or the public event database, search from the corresponding database according to the location nouns and verbs in the standard phrase Corresponding event information, the event information includes: event-triggered device address information and operation instructions to be operated.
可选地,所述方法还包括:Optionally, the method also includes:
根据配置的标准词组与时间名词、数词和逻辑运算词的对应关系,查找所述标准词组对应的时间名词、数词和逻辑运算词;According to the corresponding relation of the standard phrase of configuration and time noun, numeral and logic operation word, search the time noun, numeral and logic operation word corresponding to described standard phrase;
根据所述时间名词、数词和逻辑运算词以及所述设备地址信息和操作指令,对相应设备执行操作,并获取操作结果,具体包括:According to the time nouns, numerals and logical operation words, as well as the device address information and operation instructions, perform operations on corresponding devices and obtain operation results, specifically including:
如果所述时间名词表示当前或将来时态,则根据所述设备地址信息、操作指令和时间名词,对相应的设备执行操作,并获取所述设备返回的数据或者操作确认结果;如果所述时间名词表示过去时态,则根据所述设备地址信息、操作指令和时间名词,对相应的设备数据缓存数据库发起操作,并获取所述设备数据缓存数据库返回的数据或者操作确认结果;然后根据所述逻辑运算词和数词对返回的数据或操作确认结果进行逻辑处理,最后将处理的结果返回给用户应用。If the time noun indicates the current or future tense, perform operations on the corresponding device according to the device address information, operation instructions and time noun, and obtain the data returned by the device or the operation confirmation result; if the time If the noun represents the past tense, then according to the device address information, operation instruction and time noun, initiate an operation on the corresponding device data cache database, and obtain the data returned by the device data cache database or the operation confirmation result; and then according to the Logical operation words and numerals perform logical processing on the returned data or operation confirmation results, and finally return the processed results to the user application.
可选地,所述方法还包括:Optionally, the method also includes:
在所述用户个性化数据库或者所述公众信息数据库中添加新注册设备的设备信息,具体为:根据所述新注册设备的设备权限将所述新注册设备的设备信息存储于所述用户个性化数据库或者所述公众信息数据库中;并将该新注册设备的设备名称和设备类型对应到所述语言特征数据库中的标准名词。Adding the device information of the newly registered device to the user personalization database or the public information database specifically includes: storing the device information of the newly registered device in the user personalization according to the device authority of the newly registered device database or the public information database; and corresponding the device name and device type of the newly registered device to standard nouns in the language feature database.
与现有技术相比,本发明提供的面向用户的物联网服务平台及远程控制方法,能够面向用户提供支持自然语言解析的物联网业务服务,方便所有的物联网服务平台用户使用自然语言对所需的个人和公共设备进行远程查询和控制,实现人与物的有效沟通。而且,不需要设备支持语义功能,所有符合物联网规范的设备都可以通过该平台被符合权限的用户远程操作。Compared with the prior art, the user-oriented Internet of Things service platform and remote control method provided by the present invention can provide users with Internet of Things business services that support natural language analysis, making it convenient for all Internet of Things service platform users to use natural language to analyze all Remote query and control of personal and public equipment needed to achieve effective communication between people and things. Moreover, devices are not required to support semantic functions, and all devices that comply with IoT specifications can be remotely operated by authorized users through the platform.
附图说明Description of drawings
图1是实施例中面向用户的物联网服务平台结构图;Fig. 1 is a structural diagram of a user-oriented Internet of Things service platform in an embodiment;
图2是实施例中面向用户的物联网服务平台中语法结构分析模块结构图;Fig. 2 is the structural diagram of the grammatical structure analysis module in the user-oriented Internet of Things service platform in the embodiment;
图3是实施例中面向用户的物联网服务平台中语义内容解析模块结构图;Fig. 3 is a structural diagram of the semantic content parsing module in the user-oriented Internet of Things service platform in the embodiment;
图4是实施例中面向用户的物联网服务平台中语义内容解析模块结构图;Fig. 4 is a structural diagram of the semantic content parsing module in the user-oriented Internet of Things service platform in the embodiment;
图5是实施例中面向用户的物联网服务平台中语义内容解析模块结构图;Fig. 5 is a structural diagram of the semantic content parsing module in the user-oriented Internet of Things service platform in the embodiment;
图6是实施例中面向用户的物联网服务平台远程控制方法流程图。Fig. 6 is a flow chart of the remote control method for the user-oriented Internet of Things service platform in the embodiment.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.
实施例:Example:
如图1所示,本实施例提供了一种面向用户的物联网服务平台,包括:语法结构分析模块、语义内容解析模块和操作确认及结果获取模块,其中:As shown in Figure 1, this embodiment provides a user-oriented Internet of Things service platform, including: a grammatical structure analysis module, a semantic content analysis module, and an operation confirmation and result acquisition module, wherein:
所述语法结构分析模块,用于将用户应用发来的语言内容拆分为不同词类的词组并转换为对应的标准词组,发送至所述语义内容解析模块;The grammatical structure analysis module is used to split the language content sent by the user application into phrases of different parts of speech and convert them into corresponding standard phrases, and send them to the semantic content analysis module;
所述语义内容解析模块,用于根据配置的标准词组与设备地址、操作指令的对应关系,查找所述标准词组对应的设备地址信息和操作指令;The semantic content analysis module is used to search for the device address information and operation instructions corresponding to the standard phrases according to the corresponding relationship between the configured standard phrases, device addresses, and operation instructions;
所述操作确认及结果获取模块,用于根据所述语义内容解析模块提供的设备地址信息和操作指令,对相应设备执行操作,并获取操作结果。The operation confirmation and result acquisition module is used to perform operations on corresponding devices according to the device address information and operation instructions provided by the semantic content analysis module, and obtain operation results.
其中,如图2所示,所述语法结构分析模块包括:Wherein, as shown in Figure 2, the grammatical structure analysis module includes:
语言特征数据库,用于按词类将物联网涉及到的基本词汇进行分组存储,并将所述基本词汇与标准词汇建立对应关系;The language feature database is used to group and store the basic vocabulary involved in the Internet of Things according to the part of speech, and establish a corresponding relationship between the basic vocabulary and the standard vocabulary;
分析单元,用于根据所述语言特征数据库的词类划分将用户应用发来的语言内容拆分为不同词类的词组,并查询所述语言特征数据库将所述词组转换为对应的标准词组,发送至所述语义内容解析模块。The analysis unit is used to split the language content sent by the user application into phrases of different parts of speech according to the part-of-speech division of the language feature database, and query the language feature database to convert the phrase into a corresponding standard phrase and send it to The semantic content parsing module.
其中,词类包括如动词、地点名词、时间名词、称谓名词、逻辑运算词(平均、最大、最小等)、数词、设备名词和计量名词(如温度、湿度、血压等)等,按照这些词类对词汇进行存储,并与标准词汇对应。另外所述语言特征库,还存储计量名词与该计量名词对应的设备名词的对应关系,提供标准计量名词与能提供该计量功能的标准设备名词的对应关系,如温度对应于温度传感器。Among them, the parts of speech include verbs, place nouns, time nouns, appellation nouns, logical operation words (average, maximum, minimum, etc.), numerals, equipment nouns and measurement nouns (such as temperature, humidity, blood pressure, etc.), according to these parts of speech The vocabulary is stored and corresponds to the standard vocabulary. In addition, the language feature library also stores the correspondence between measurement nouns and equipment nouns corresponding to the measurement nouns, and provides the correspondence between standard measurement nouns and standard equipment nouns that can provide the measurement function, such as temperature corresponds to temperature sensors.
优选地,如表1~表2提供了一种供参考的语言特征数据库表单存储结构,如下所示:。Preferably, Table 1 to Table 2 provide a form storage structure of the language feature database for reference, as follows: .
表1Table 1
表2Table 2
作为一种优选的方式,如图3所示,所述语义内容解析模块包括:As a preferred manner, as shown in Figure 3, the semantic content parsing module includes:
用户个性化数据库,用于存储用户设备的设备信息和/或自定义事件的事件信息;所述设备信息包括至少包括设备地址信息(比如设备地址标识)和操作指令;此外还包括以下一项或多项:设备功能、设备名称、设备类型和设备权限,所述事件信息包括事件所触发操作的设备地址信息和操作指令。The user personalized database is used to store the device information of the user device and/or the event information of custom events; the device information includes at least device address information (such as device address identification) and operation instructions; in addition, it also includes the following one or Multiple items: device function, device name, device type, and device authority, and the event information includes device address information and operation instructions of operations triggered by the event.
解析单元,用于根据所述标准词组从所述用户个性化数据库中查找对应的设备信息和/或事件信息,所述设备信息包括设备地址信息和操作指令,所述事件信息包括事件所触发操作的设备地址信息和操作指令。A parsing unit, configured to search for corresponding device information and/or event information from the user personalized database according to the standard phrase, the device information includes device address information and operation instructions, and the event information includes operations triggered by events device address information and operation instructions.
其中,将各个用户的信息按照用户标识独立存储于所述用户个性化数据库不同的数据空间内,将所述用户个性化数据库的数据空间划分为设备存储区域和事件存储区域;所述用户个性化数据库包括:用户设备数据库和/或用户事件数据库:Wherein, the information of each user is independently stored in different data spaces of the user personalized database according to the user identification, and the data space of the user personalized database is divided into a device storage area and an event storage area; the user personalized The databases include: user equipment database and/or user event database:
所述用户设备数据库,用于将各个用户的信息按照用户标识进行存储,同一用户的设备按照地点索引在所述用户设备数据库的存储区域内进行分层存储,所述设备的设备信息作为设备属性存储;The user equipment database is used to store the information of each user according to the user identifier, and the equipment of the same user is stored hierarchically in the storage area of the user equipment database according to the location index, and the equipment information of the equipment is used as equipment attributes storage;
所述用户事件数据库,用于将各个用户的信息按照用户标识进行存储,将同一用户的自定义事件进行存储,该事件的事件信息作为事件属性存储。The user event database is used to store the information of each user according to the user ID, store the user-defined event of the same user, and store the event information of the event as an event attribute.
对于用户设备数据库,设备信息中的设备操作列举了设备支持的所有操作指令,需要根据标准动词确定对应的操作指令;对于用户事件数据库,事件对应的设备地址和操作都是确定的,一旦确定事件,操作就已经确定了。因此该操作信息是事件信息中已经设定好的。For the user device database, the device operation in the device information lists all the operation commands supported by the device, and the corresponding operation command needs to be determined according to the standard verb; for the user event database, the device address and operation corresponding to the event are determined, once the event is determined , the operation has been determined. Therefore, the operation information is already set in the event information.
优选地,如表3所示,提供了一种供参考的用户个性化数据库表单存储结构,实际设计人员可以作为参考:Preferably, as shown in Table 3, a user personalized database form storage structure is provided for reference, and actual designers can use it as a reference:
用户设备数据库user device database
用户事件数据库User Event Database
表3:用户个性化数据库表单存储结构Table 3: User Personalization Database Form Storage Structure
作为一种优选的方式,如图4所示,所述语义内容解析模块包括:As a preferred manner, as shown in Figure 4, the semantic content parsing module includes:
公众信息数据库,用于存储公共设备的设备信息和/或预定义的事件信息;Public information database, used to store device information and/or predefined event information of public devices;
解析单元,用于根据所述标准词组从所述公众信息数据库中查找对应的设备信息和/或事件信息,所述设备信息包括设备地址信息和操作指令,所述事件信息包括事件所触发操作的设备地址信息和操作指令。A parsing unit, configured to search the public information database for corresponding device information and/or event information according to the standard phrase, the device information includes device address information and operation instructions, and the event information includes the information of the operation triggered by the event Device address information and operating instructions.
其中,将所述公众信息数据库的数据空间划分为设备存储区域和事件存储区域;所述公众信息数据库包括公众设备数据库和/或公众事件数据库:Wherein, the data space of the public information database is divided into a device storage area and an event storage area; the public information database includes a public equipment database and/or a public event database:
所述公众设备数据库,用于将公共设备按照地点索引在所述公众设备数据库的存储区域内进行分层存储,所述公共设备的设备信息作为设备属性存储;The public equipment database is used to hierarchically store public equipment in the storage area of the public equipment database according to the location index, and store the equipment information of the public equipment as equipment attributes;
所述公众事件数据库,用于将预定义事件进行存储,该事件的事件信息作为事件属性存储。The public event database is used to store predefined events, and the event information of the events is stored as event attributes.
对于公众设备数据库,设备信息中的设备操作列举了设备支持的所有操作指令,需要根据标准动词确定对应的操作指令;对于公众事件数据库,事件对应的设备地址和操作都是确定的,一旦确定事件,操作就已经确定了。因此该操作信息是事件信息中已经设定好的。For the public device database, the device operation in the device information lists all the operation commands supported by the device, and the corresponding operation command needs to be determined according to the standard verb; for the public event database, the device address and operation corresponding to the event are determined, once the event is determined , the operation has been determined. Therefore, the operation information is already set in the event information.
优选地,如表4所示,提供了一种供参考的公众信息数据库表单存储结构,实际设计人员可以作为参考:Preferably, as shown in Table 4, a public information database form storage structure for reference is provided, and actual designers can use it as a reference:
公众设备数据库public device database
公众事件数据库Public Events Database
表4:公众信息数据库表单存储结构Table 4: Public information database form storage structure
此外,作为一种优选的方式,如图5所示,所述语义内容解析模块可以同时包括:用户个性化数据库和公众信息数据库,所述解析单元,用于根据所述标准词组从所述用户个性化数据库或所述公众信息数据库中查找所述标准词组对应的设备信息和/或事件信息。In addition, as a preferred manner, as shown in Figure 5, the semantic content parsing module may also include: a user personalization database and a public information database, and the parsing unit is configured to extract the user information from the user according to the standard phrase The device information and/or event information corresponding to the standard phrase is searched in the personalization database or the public information database.
其中,所述解析单元,用于根据所述标准词组从所述用户个性化数据库或所述公众信息数据库中查找所述标准词组对应的设备信息和/或事件信息,具体包括:Wherein, the parsing unit is configured to search the device information and/or event information corresponding to the standard phrase from the user personalized database or the public information database according to the standard phrase, specifically including:
如果所述标准词组中存在称谓名词,则确定在所述用户个性化数据库中进行查找,否则在所述公众信息数据库中进行查找;If there is an appellation noun in the standard phrase, then determine to search in the user personalized database, otherwise search in the public information database;
如果所述标准词组中存在设备名词和/或计量名词,则确定在所述设备信息存储区域(用户设备数据库或所述公众设备数据库)中进行查找,否则确定在事件信息存储区域(用户事件数据库或所述公众事件数据库)中进行查找;If there are equipment nouns and/or measurement nouns in the standard phrase, it is determined to search in the equipment information storage area (user equipment database or the public equipment database), otherwise it is determined to search in the event information storage area (user event database) or the public event database) to search;
如果在所述设备信息存储区域中进行查找,则根据所述标准词组中的地点名词、设备名词和/或计量名词对应的设备名词以及动词从相应的数据库中查找对应的设备地址信息和操作指令,如果在所述事件信息存储区域中进行查找,根据所述标准词组中的地点名词和动词从相应的数据库中查找对应的事件信息,所述事件信息包括:事件涉及的设备信息和操作指令;If a search is performed in the device information storage area, the corresponding device address information and operating instructions are searched from the corresponding database according to the device nouns and verbs corresponding to the location nouns, device nouns and/or measurement nouns in the standard phrase , if a search is performed in the event information storage area, search for corresponding event information from a corresponding database according to the location nouns and verbs in the standard phrase, and the event information includes: equipment information and operation instructions involved in the event;
通过语义解析,可以根据标准词汇的地点名词和设备名词在具有分层存储结构的设备数据库中查到对应的设备。如果物联网系统要找到设备然后进行操作,需要知道设备在网络中可寻址的地址标识,该地址标识则存储在设备信息中。设备定位的过程可以理解为首先根据语义在分层数据库中查找满足地点需求的设备,然后在对应的设备信息中获得该设备的地址标识。系统根据地址标识对设备进行定位。Through semantic analysis, the corresponding equipment can be found in the equipment database with a hierarchical storage structure according to the location nouns and equipment nouns of the standard vocabulary. If the IoT system wants to find the device and then operate it, it needs to know the address identifier of the device addressable in the network, and the address identifier is stored in the device information. The process of device location can be understood as first searching for a device that meets the location requirements in the hierarchical database according to the semantics, and then obtaining the address identifier of the device in the corresponding device information. The system locates the device according to the address identification.
此外,所述语义内容解析模块,还用于将时间名词、数词和逻辑运算词的一个或多个与所述设备地址信息、操作指令一起发送至所述操作确认及结果获取模块;In addition, the semantic content analysis module is also used to send one or more of time nouns, numerals and logical operation words together with the device address information and operation instructions to the operation confirmation and result acquisition module;
所述操作确认及结果获取模块,还用于如果所述时间名词表示当前或将来时态,则根据所述设备地址信息、操作指令和时间名词,对相应的设备执行所述操作信息指示的操作,并获取所述设备返回的数据或者操作确认结果;如果所述时间名词表示过去时态,则根据所述设备地址信息、操作指令和时间名词,对相应的设备数据缓存数据库发起操作,并获取所述设备数据缓存数据库返回的数据或者操作确认结果;然后根据所述逻辑运算词和数词对返回的数据或操作确认结果进行逻辑处理,最后将处理的结果返回给用户应用。The operation confirmation and result acquisition module is also used to perform the operation indicated by the operation information on the corresponding device according to the device address information, operation instructions and time noun if the time noun represents the current or future tense , and obtain the data returned by the device or the operation confirmation result; if the time noun represents the past tense, then according to the device address information, operation instructions and time noun, initiate an operation on the corresponding device data cache database, and obtain The data or operation confirmation results returned by the device data cache database; then logically process the returned data or operation confirmation results according to the logical operation words and numerals, and finally return the processed results to the user application.
本实施例中的系统还具备逻辑运算功能,可以根据用户所需要的逻辑,对数据进行处理,比如用户应用输入的语言内容包括平均温度、最高温度、过去12小时中的最低温度等,本系统可以在进行上述逻辑处理后,返回给用户所需的数据。The system in this embodiment also has a logical operation function, and can process data according to the logic required by the user. For example, the language content input by the user application includes the average temperature, the highest temperature, and the lowest temperature in the past 12 hours. After performing the above logic processing, the required data can be returned to the user.
此外,所述系统还包括:抽象及注释模块,用于在用户个性化数据库或者公众信息数据库中添加新注册设备的设备信息,具体为:根据所述新注册设备的设备权限将所述新注册设备的设备信息存储于用户个性化数据库或者公众信息数据库中;并将该新注册设备的设备名称和设备类型对应到所述语言特征数据库中的标准名词。这一模块可以方便在设备接入网络时自动把信息注册到数据库中,用户在安装设备时不需要进行特别操作。在使用时,用户通过物联网服务平台即可操作设备,使得用户可以自由访问公共设备。In addition, the system further includes: an abstraction and annotation module, configured to add device information of a newly registered device in a user personalization database or a public information database, specifically: according to the device authority of the newly registered device, the newly registered device The device information of the device is stored in the user personalized database or the public information database; and the device name and device type of the newly registered device are mapped to the standard nouns in the language feature database. This module can facilitate the automatic registration of information into the database when the device is connected to the network, and the user does not need to perform special operations when installing the device. When in use, the user can operate the device through the Internet of Things service platform, so that the user can freely access public devices.
本实施例中的数据库不仅包括语言特征数据库,还有设备和事件数据库,而后者的分层存储结构可以方便进行物联网设备的定位,对设备的寻址是通过设备数据库的存储结构以及物联网的设备地址标识实现的。用户通过该平台可以自由地对所需要的个人和公共设备进行远程查询和控制。The database in this embodiment includes not only the language feature database, but also the equipment and event database, and the hierarchical storage structure of the latter can facilitate the positioning of the IoT equipment, and the addressing of the equipment is through the storage structure of the equipment database and the IoT The device address identification is realized. Through this platform, users can freely query and control the required personal and public equipment remotely.
通过语义解析,可以根据标准词汇的地点名词和设备名词在具有分层存储结构的设备数据库中查到对应的设备。如果物联网系统要找到设备然后进行操作,需要知道设备在网络中可寻址的地址标识,该地址标识则存储在设备信息中。Through semantic analysis, the corresponding equipment can be found in the equipment database with a hierarchical storage structure according to the location nouns and equipment nouns of the standard vocabulary. If the IoT system wants to find the device and then operate it, it needs to know the address identifier of the device addressable in the network, and the address identifier is stored in the device information.
如图6所示,本实施例提供了一种面向用户的物联网服务平台远程控制方法,包括以下步骤:As shown in Figure 6, this embodiment provides a user-oriented remote control method for the Internet of Things service platform, including the following steps:
S101:将用户应用发来的语言内容拆分为不同词类的词组并转换为对应的标准词组;S101: Split the language content sent by the user application into phrases of different parts of speech and convert them into corresponding standard phrases;
S102:根据配置的标准词组与设备地址、操作指令的对应关系,查找所述标准词组对应的设备地址信息和操作指令;S102: Search for device address information and operation instructions corresponding to the standard phrases according to the corresponding relationship between the configured standard phrases, device addresses, and operation instructions;
S103:根据所述语义内容解析模块提供的设备地址信息和操作指令,对相应设备执行操作,并获取操作结果。S103: According to the device address information and operation instructions provided by the semantic content parsing module, perform an operation on the corresponding device, and obtain an operation result.
其中,步骤S101具体包括:Wherein, step S101 specifically includes:
根据语言特征数据库的词类划分将用户应用发来的语言内容拆分为不同词类的词组,并查询所述语言特征数据库将所述词组转换为对应的标准词组;Split the language content sent by the user application into phrases of different parts of speech according to the part-of-speech division of the language feature database, and query the language feature database to convert the phrase into a corresponding standard phrase;
所述语言特征数据库,用于按词类将物联网涉及到的基本词汇进行分组存储,并将所述基本词汇与标准词汇建立对应关系;还用于存储计量名词与该计量名词对应的设备名词的对应关系,并将该计量名词对应的设备名词与标准词汇建立对应关系;The language feature database is used to group and store the basic vocabulary involved in the Internet of Things according to the part of speech, and establish a corresponding relationship between the basic vocabulary and the standard vocabulary; it is also used to store the measurement noun and the equipment noun corresponding to the measurement noun Correspondence, and establish a correspondence between the equipment noun corresponding to the measurement noun and the standard vocabulary;
其中,步骤S102具体包括:Wherein, step S102 specifically includes:
根据所述标准词组从用户个性化数据库中查找对应的设备信息和/或事件信息,或者从公众信息数据库中查找对应的设备信息和/或事件信息;Find the corresponding device information and/or event information from the user personalized database according to the standard phrase, or find the corresponding device information and/or event information from the public information database;
所述设备信息至少包括设备地址信息和操作指令,所述事件信息包括事件所触发操作的设备地址信息和操作指令;The device information includes at least device address information and operation instructions, and the event information includes device address information and operation instructions for operations triggered by events;
其中,所述用户个性化数据库,用于存储用户设备的设备信息和/或自定义事件的事件信息;所述设备信息包括至少包括设备地址信息(比如设备地址标识)和操作指令;此外还包括以下一项或多项:设备功能、设备名称、设备类型和设备权限,所述事件信息包括事件所触发操作的设备地址信息和操作指令。Wherein, the user personalized database is used to store device information of user devices and/or event information of custom events; the device information includes at least device address information (such as device address identification) and operation instructions; in addition, it includes One or more of the following: device function, device name, device type, and device permission, and the event information includes device address information and operation instructions of operations triggered by the event.
其中,将各个用户的信息按照用户标识独立存储于所述用户个性化数据库不同的数据空间内,将所述用户个性化数据库的数据空间划分为设备存储区域和事件存储区域;所述用户个性化数据库包括:用户设备数据库和/或用户事件数据库:Wherein, the information of each user is independently stored in different data spaces of the user personalized database according to the user identification, and the data space of the user personalized database is divided into a device storage area and an event storage area; the user personalized The databases include: user equipment database and/or user event database:
所述用户设备数据库,用于将各个用户的信息按照用户标识进行存储,同一用户的设备按照地点索引在所述用户设备数据库的存储区域内进行分层存储,所述设备的设备信息作为设备属性存储;The user equipment database is used to store the information of each user according to the user identifier, and the equipment of the same user is stored hierarchically in the storage area of the user equipment database according to the location index, and the equipment information of the equipment is used as equipment attributes storage;
所述用户事件数据库,用于将各个用户的信息按照用户标识进行存储,将同一用户的自定义事件进行存储,该事件的事件信息作为事件属性存储。The user event database is used to store the information of each user according to the user ID, store the user-defined event of the same user, and store the event information of the event as an event attribute.
所述公众信息数据库,用于存储公共设备的设备信息和/或预定义的事件信息。The public information database is used to store device information of public devices and/or predefined event information.
其中,将所述公众信息数据库的数据空间划分为设备存储区域和事件存储区域;所述公众信息数据库包括公众设备数据库和/或公众事件数据库:Wherein, the data space of the public information database is divided into a device storage area and an event storage area; the public information database includes a public equipment database and/or a public event database:
所述公众设备数据库,用于将公共设备按照地点索引在所述公众设备数据库的存储区域内进行分层存储,所述公共设备的设备信息作为设备属性存储;The public equipment database is used to hierarchically store public equipment in the storage area of the public equipment database according to the location index, and store the equipment information of the public equipment as equipment attributes;
所述公众事件数据库,用于将预定义事件进行存储,该事件的事件信息作为事件属性存储。The public event database is used to store predefined events, and the event information of the events is stored as event attributes.
对于设备数据库,设备信息中的设备操作列举了设备支持的所有操作指令,需要根据标准动词确定对应的操作指令;对于事件数据库,事件对应的设备地址和操作都是确定的,一旦确定事件,操作就已经确定了。因此该操作信息是事件信息中已经设定好的。For the device database, the device operation in the device information lists all the operation commands supported by the device, and the corresponding operation command needs to be determined according to the standard verb; for the event database, the device address and operation corresponding to the event are determined. Once the event is determined, the operation It has been determined. Therefore, the operation information is already set in the event information.
作为一种优选的方式,步骤S102具体包括:As a preferred manner, step S102 specifically includes:
如果所述标准词组中存在称谓名词,则确定在所述用户个性化数据库中进行查找,否则在所述公众信息数据库中进行查找;If there is an appellation noun in the standard phrase, then determine to search in the user personalized database, otherwise search in the public information database;
如果所述标准词组中存在设备名词和/或计量名词,则确定在所述用户设备数据库或所述公众设备数据库中进行查找,否则确定在所述用户事件数据库或所述公众事件数据库中进行查找;If there are equipment nouns and/or measurement nouns in the standard phrase, it is determined to search in the user equipment database or the public equipment database, otherwise it is determined to search in the user event database or the public event database ;
如果在所述用户设备数据库或所述公众设备数据库中进行查找,则根据所述标准词组中的地点名词、设备名词和/或计量名词对应的设备名词以及动词从相应的数据库中查找对应的设备信息,所述设备信息至少包括设备地址信息和操作指令,如果在所述用户事件数据库或所述公众事件数据库中进行查找,则根据所述标准词组中的地点名词和动词从相应的数据库中查找对应的事件信息,所述事件信息包括:事件触发要进行操作的设备地址信息和操作指令。If searching in the user equipment database or the public equipment database, then search for the corresponding equipment from the corresponding database according to the equipment nouns and verbs corresponding to the place nouns, equipment nouns and/or measurement nouns in the standard phrase Information, the device information includes at least device address information and operation instructions, if searched in the user event database or the public event database, search from the corresponding database according to the location nouns and verbs in the standard phrase Corresponding event information, the event information includes: event-triggered device address information and operation instructions to be operated.
此外,步骤S102还包括:根据配置的标准词组与时间名词、数词和逻辑运算词的对应关系,查找所述标准词组对应的时间名词、数词和逻辑运算词;In addition, step S102 also includes: according to the corresponding relationship between configured standard phrases and time nouns, numerals and logical operation words, searching for time nouns, numerals and logical operation words corresponding to the standard phrases;
步骤S103还包括:根据所述时间名词、数词和逻辑运算词以及所述设备地址信息和操作指令,对相应设备执行操作,并获取操作结果。Step S103 also includes: performing operations on corresponding devices according to the time nouns, numerals and logical operation words, the device address information and operation instructions, and obtaining operation results.
其中,具体实施时,如果所述时间名词表示当前或将来时态,则根据所述设备地址信息、操作指令和时间名词,对相应的设备执行操作,并获取所述设备返回的数据或者操作确认结果;如果所述时间名词表示过去时态,则根据所述设备地址信息、操作指令和时间名词,对相应的设备数据缓存数据库发起操作,并获取所述设备数据缓存数据库返回的数据或者操作确认结果;然后根据所述逻辑运算词和数词对返回的数据或操作确认结果进行逻辑处理,最后将处理的结果返回给用户应用。Wherein, during specific implementation, if the time noun represents the current or future tense, perform operations on the corresponding device according to the device address information, operation instructions and time noun, and obtain the data or operation confirmation returned by the device Result; if the time noun represents the past tense, then according to the device address information, operation instruction and time noun, initiate an operation on the corresponding device data cache database, and obtain the data or operation confirmation returned by the device data cache database Result; then logically process the returned data or operation confirmation result according to the logical operation words and numerals, and finally return the processed result to the user application.
此外,所述方法还包括:Additionally, the method includes:
在所述用户个性化数据库或者所述公众信息数据库中添加新注册设备的设备信息,具体为:根据所述新注册设备的设备权限将所述新注册设备的设备信息存储于所述用户个性化数据库或者所述公众信息数据库中;并将该新注册设备的设备名称和设备类型对应到所述语言特征数据库中的标准名词。Adding the device information of the newly registered device to the user personalization database or the public information database specifically includes: storing the device information of the newly registered device in the user personalization according to the device authority of the newly registered device database or the public information database; and corresponding the device name and device type of the newly registered device to standard nouns in the language feature database.
下面结合一些应用示例对本实施例进一步做详细说明。This embodiment will be further described in detail below in conjunction with some application examples.
应用示例1:Application example 1:
用户应用发送“打开我家客厅空调”,1)经过语法结构解析模块,分解为动词“打开”,称谓名词“我”,地点名词“家”和“客厅”以及设备名词“空调”,送入语义内容解析模块;2)语义内容解析模块根据称谓名词“我”和用户ID信息,对应向该用户的个性化数据库的设备数据库,根据地点名词“家”和“客厅”为索引查到“空调”设备,读取到设备的地址信息和操作信息,根据动词“打开”对应操作信息,确认打开的指令,将设备地址信息和打开的指令发送给操作及结果确认模块;3)操作确认及结果获取模块,根据收到的设备地址信息和打开指令,对设备进行操作,得到操作结果(如成功),并将结果返回给用户应用。The user application sends "turn on the air conditioner in my living room", 1) through the grammatical structure analysis module, it is decomposed into the verb "open", the appellation noun "I", the location nouns "home" and "living room", and the equipment noun "air conditioner", and send it into the semantic Content analysis module; 2) The semantic content analysis module corresponds to the device database of the user's personalized database according to the appellation noun "I" and user ID information, and finds "air conditioner" according to the location nouns "home" and "living room" as indexes Device, read the address information and operation information of the device, confirm the instruction to open according to the operation information corresponding to the verb "open", and send the device address information and the instruction to open to the operation and result confirmation module; 3) Operation confirmation and result acquisition The module operates the device according to the received device address information and open instruction, obtains the operation result (such as success), and returns the result to the user application.
应用示例2:Application example 2:
用户应用发送“看看俺家卧室现在平均温度”,1)经过语法结构解析模块,分解为动词“看看”,对应标准词“查询”,称谓名词“俺”,对应标准词“我”,地点名词“家”和“卧室”,时间名词“现在”,逻辑运算词“平均”以及计量名词“温度”,并将计量名词“温度”转换为设备名词“温度传感器”,送入语义内容解析模块;2)语义内容解析模块根据称谓名词“我”和用户ID信息,对应向该用户的用户个性化数据库,根据地点名词“家”和“卧室”为索引查到所有的“温度传感器”设备,读取到相应的所有“温度传感器”设备的地址信息和操作信息,根据动词“查询”对应操作信息,确认查询指令,并将设备地址信息和查询指令,连同逻辑运算词“平均”和时间词“现在”发送给操作确认及结果获取模块;3)操作确认及结果获取模块,根据收到的设备地址信息、查询指令和时间词“现在”,发起对设备进行操作(若是时间词为“1小时前”,则对设备数据缓存数据库发起操作),获得返回的数据,根据逻辑运算词“平均”,将收到的所有数据进行平均操作,将最后数据结果返回给用户应用。The user application sends "Look at the current average temperature of my bedroom", 1) After the grammatical structure analysis module, it is decomposed into the verb "Kankan", which corresponds to the standard word "query", and the appellation noun "I", which corresponds to the standard word "I", Place nouns "home" and "bedroom", time nouns "now", logical operation words "average" and measurement nouns "temperature", and the measurement noun "temperature" is converted into the device noun "temperature sensor", which is sent to semantic content analysis Module; 2) The semantic content analysis module corresponds to the user's personalized database of the user according to the appellation noun "I" and user ID information, and finds all "temperature sensor" devices according to the location nouns "home" and "bedroom" as indexes , read the address information and operation information of all corresponding "temperature sensor" devices, confirm the query instruction according to the corresponding operation information of the verb "query", and combine the device address information and query instruction, together with the logical operation word "average" and time The word "now" is sent to the operation confirmation and result acquisition module; 3) the operation confirmation and result acquisition module, according to the received device address information, query instruction and time word "now", initiates to operate the device (if the time word is " 1 hour ago", initiate an operation on the device data cache database), obtain the returned data, perform an average operation on all the received data according to the logical operation word "average", and return the final data result to the user application.
应用示例3:Application example 3:
用户应用发送“我下班了”,1)经过语法结构解析模块,分解为称谓名词“我”,动词“下班”,送入语义内容解析模块;2)语义内容解析模块根据称谓名词“我”和用户ID信息,对应向该用户的用户数据库,发现缺失设备名词或计量词,定位事件信息存储区域,根据动词“下班”,查询到用户的自定义事件“下班”,然后读取该事件的事件信息,该事件信息包括2个操作,打开给定地址的空调以及打开给定地址的加湿器,该给定地址由物联网平台可寻址的地址标识确定,可以是如设备URL地址或者是IP地址等,将事件信息中对应的操作指令和设备地址发送给操作确认及结果获取模块;3)操作确认及结果获取模块,根据收到的设备地址信息和打开指令,对设备进行操作,得到操作结果(如成功),并将结果返回给用户应用。The user application sends "I'm off work", 1) through the grammatical structure analysis module, it is decomposed into the appellation noun "I" and the verb "off work", and sent to the semantic content analysis module; 2) The semantic content analysis module is based on the appellation noun "I" and User ID information, corresponding to the user database for the user, find missing device nouns or measurement words, locate the event information storage area, query the user's custom event "off work" according to the verb "off work", and then read the event of the event Information, the event information includes two operations, turn on the air conditioner at a given address and turn on the humidifier at a given address, the given address is determined by the addressable address identifier of the IoT platform, which can be such as the device URL address or IP Address, etc., send the corresponding operation instruction and device address in the event information to the operation confirmation and result acquisition module; 3) The operation confirmation and result acquisition module operates the device according to the received device address information and open instruction, and obtains the operation result (such as success), and return the result to the user application.
应用示例4:Application example 4:
用户应用发送“查询北京水立方游泳池的水温”,1)经过语法结构解析模块,分解为动词“查询”,地点名词“北京”、“水立方游泳池”以及计量名词“水温”,转换为设备名词“水温传感器”,发送给语义内容解析模块;2)语义内容解析模块,发现缺失称谓名词,对应向公众信息数据库,根据地点名词“北京”、“水立方游泳池”查询到相应的“水温传感器”,并获得对应的设备地址、设备操作和设备权限等信息,根据动词“查询”确认查询的指令,确认查询操作的权限(可以操作),将设备地址和查询指令发送给操作确认及结果获取模块;3)操作确认及结果获取模块,根据收到的设备地址信息和查询指令,对设备进行操作,得到对应数据,将数据返回给用户应用。The user application sends "query the water temperature of the Beijing Water Cube swimming pool", 1) through the grammatical structure analysis module, it is decomposed into the verb "query", the place noun "Beijing", "Water Cube swimming pool" and the measurement noun "water temperature", which are converted into equipment nouns "Water temperature sensor" is sent to the semantic content analysis module; 2) The semantic content analysis module finds missing appellations, corresponding to the public information database, and finds the corresponding "water temperature sensor" according to the location nouns "Beijing" and "Water Cube Swimming Pool" , and obtain information such as the corresponding device address, device operation and device authority, confirm the query instruction according to the verb "query", confirm the authority of the query operation (operable), and send the device address and query command to the operation confirmation and result acquisition module ; 3) The operation confirmation and result acquisition module operates the device according to the received device address information and query instructions, obtains corresponding data, and returns the data to the user application.
应用示例5:Application example 5:
用户应用发送“西直门着火了”,1)经过语法结构解析模块,分解为地点名词“西直门”,动词“着火”,发送给语义内容解析模块;2)语义内容解析模块,发现缺失称谓名词,对应向公众信息数据库,由于缺失设备词,定位事件信息存储区域,根据动词“着火”查询相应的事件,读取事件信息(包括一个操作,将语义内容上传给一个给定设备地址的电脑),将事件信息中对应的操作指令和设备地址发送给操作确认及结果获取模块;3)操作确认及结果获取模块,根据收到的设备地址信息和上传指令,对设备进行操作,得到操作结果(如成功),并将结果返回给用户应用。The user application sends "Xizhimen is on fire", 1) After the grammatical structure analysis module, it is decomposed into the location noun "Xizhimen" and the verb "on fire", and sent to the semantic content analysis module; 2) The semantic content analysis module finds the missing appellation noun, corresponding To the public information database, due to the lack of device words, locate the event information storage area, query the corresponding event according to the verb "fire", read the event information (including an operation, upload the semantic content to a computer with a given device address), and send The corresponding operation instruction and device address in the event information are sent to the operation confirmation and result acquisition module; 3) The operation confirmation and result acquisition module operates the device according to the received device address information and upload instruction, and obtains the operation result (such as successful ), and return the result to the user application.
从上述实施例可以看出,相对于现有技术,上述实施例中提供的面向用户的物联网服务平台及远程控制方法,可以适用于物联网服务平台,能够面向用户提供支持自然语言解析的物联网业务服务,方便所有的物联网服务平台用户使用自然语言对所需的个人和公共设备进行远程查询和控制,实现人与物的有效沟通。而且,不需要设备支持语义功能,所有符合物联网规范的设备都可以通过该平台被符合权限的用户远程操作。It can be seen from the above embodiments that, compared with the prior art, the user-oriented IoT service platform and remote control method provided in the above embodiments can be applied to the IoT service platform, and can provide users with IoT services that support natural language analysis. Networking business service, convenient for all Internet of Things service platform users to use natural language to remotely query and control the required personal and public equipment, and realize effective communication between people and things. Moreover, devices are not required to support semantic functions, and all devices that comply with IoT specifications can be remotely operated by authorized users through the platform.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。Those skilled in the art can understand that all or part of the steps in the above method can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, and the like. Optionally, all or part of the steps in the foregoing embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiments may be implemented in the form of hardware, or may be implemented in the form of software modules. The present invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并非用于限定本发明的保护范围。根据本发明的发明内容,还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. According to the content of the present invention, there can also be other various embodiments. Those skilled in the art can make various corresponding changes and deformations according to the present invention without departing from the spirit and essence of the present invention. Within the spirit and principles of the present invention, any modifications, equivalent replacements, improvements, etc., shall be included within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310597935.8A CN103577198B (en) | 2013-11-22 | 2013-11-22 | A kind of user oriented Internet of Things service platform and long-range control method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310597935.8A CN103577198B (en) | 2013-11-22 | 2013-11-22 | A kind of user oriented Internet of Things service platform and long-range control method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103577198A CN103577198A (en) | 2014-02-12 |
| CN103577198B true CN103577198B (en) | 2017-05-31 |
Family
ID=50049047
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310597935.8A Active CN103577198B (en) | 2013-11-22 | 2013-11-22 | A kind of user oriented Internet of Things service platform and long-range control method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103577198B (en) |
Families Citing this family (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104062962B (en) * | 2014-07-01 | 2017-06-20 | 宁波市北仑海伯精密机械制造有限公司 | A kind of internet of things equipment automatic control system and its control method |
| GB2532988B (en) * | 2014-12-04 | 2021-03-03 | Arm Ip Ltd | Method and device for scanning for data processing devices |
| CN111414222A (en) * | 2014-12-11 | 2020-07-14 | 微软技术许可有限责任公司 | Virtual assistant system capable of actionable messaging |
| CN106326207A (en) * | 2015-06-29 | 2017-01-11 | 华为技术有限公司 | Semantic flow processing method and device in M2M environment |
| CN105141465B (en) * | 2015-09-25 | 2018-05-25 | 中国联合网络通信集团有限公司 | Internet of things equipment resource registering method and device |
| CN106933796B (en) * | 2015-12-29 | 2020-04-21 | 中国电信股份有限公司 | Internet of things terminal interoperation method and device based on semantic understanding |
| CN106991097A (en) * | 2016-01-21 | 2017-07-28 | 阿里巴巴集团控股有限公司 | A kind of processing method and processing device of identification data |
| CN105892302B (en) * | 2016-05-31 | 2019-09-13 | 北京光年无限科技有限公司 | Intelligent home furnishing control method and control system towards intelligent robot |
| CN112003884B (en) * | 2019-05-27 | 2024-04-16 | 北京白帽汇科技有限公司 | Method for collecting network assets and retrieving natural language |
| CN114169341A (en) * | 2021-12-09 | 2022-03-11 | 思必驰科技股份有限公司 | Cross-device control method and system based on natural language |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101109988A (en) * | 2007-08-31 | 2008-01-23 | 北京腾拓科技有限公司 | Method for setting and handling controllable object with natural language and system thereof |
| CN101110793A (en) * | 2007-06-25 | 2008-01-23 | 腾讯科技(深圳)有限公司 | Method, system and equipment for remote controlling electronic equipments based on IM |
| CN102654765A (en) * | 2012-04-13 | 2012-09-05 | 北京大学 | Internet of things as well as control method and device for equipment in internet of things |
| CN102970193A (en) * | 2011-09-02 | 2013-03-13 | 海尔集团公司 | System and method for intelligent software service platform, and device and family intelligence system comprising system |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005157494A (en) * | 2003-11-20 | 2005-06-16 | Aruze Corp | Conversation control device and conversation control method |
| US7949529B2 (en) * | 2005-08-29 | 2011-05-24 | Voicebox Technologies, Inc. | Mobile systems and methods of supporting natural language human-machine interactions |
| CN101178705A (en) * | 2007-12-13 | 2008-05-14 | 中国电信股份有限公司 | Free-running speech comprehend method and man-machine interactive intelligent system |
| CN101303692B (en) * | 2008-06-19 | 2012-08-29 | 徐文和 | All-purpose numeral semantic library for translation of mechanical language |
| KR101603290B1 (en) * | 2011-12-14 | 2016-03-25 | 엠파이어 테크놀로지 디벨롭먼트 엘엘씨 | Semantic cache cloud services for connected devices |
-
2013
- 2013-11-22 CN CN201310597935.8A patent/CN103577198B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101110793A (en) * | 2007-06-25 | 2008-01-23 | 腾讯科技(深圳)有限公司 | Method, system and equipment for remote controlling electronic equipments based on IM |
| CN101109988A (en) * | 2007-08-31 | 2008-01-23 | 北京腾拓科技有限公司 | Method for setting and handling controllable object with natural language and system thereof |
| CN102970193A (en) * | 2011-09-02 | 2013-03-13 | 海尔集团公司 | System and method for intelligent software service platform, and device and family intelligence system comprising system |
| CN102654765A (en) * | 2012-04-13 | 2012-09-05 | 北京大学 | Internet of things as well as control method and device for equipment in internet of things |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103577198A (en) | 2014-02-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103577198B (en) | A kind of user oriented Internet of Things service platform and long-range control method | |
| Barnaghi et al. | Publishing linked sensor data | |
| US9489646B2 (en) | Approach for intelligently parsing non-conformant encoded domain names and generating a conforming domain hierarchy | |
| US10097597B2 (en) | Collaborative workbench for managing data from heterogeneous sources | |
| Ferrández et al. | The QALL-ME framework: A specifiable-domain multilingual question answering architecture | |
| CN110023851B (en) | Building Management System with Knowledge Base | |
| US9836503B2 (en) | Integrating linked data with relational data | |
| US20090254574A1 (en) | Method and apparatus for producing an ontology representing devices and services currently available to a device within a pervasive computing environment | |
| WO2015031486A1 (en) | System and method for virtual assistants with shared capabilities and agent store | |
| CN104410568B (en) | A kind of design method of the semantic gateway of smart home | |
| CN109983457B (en) | Building management system with semantic-enabled building system data access | |
| CN104091228A (en) | Systems for resource management, resource registering, resource inquiry and resource semantic corpus management of internet of things | |
| CN113868284A (en) | Database statement conversion method and device, storage medium and electronic equipment | |
| Tachmazidis et al. | A Hypercat-enabled semantic Internet of Things data hub | |
| CN111949649B (en) | A dynamic ontology storage system, storage method, and data query method | |
| CN116594628A (en) | Data tracing method and device and computer equipment | |
| CN113821514B (en) | Data splitting method, device, electronic device and readable storage medium | |
| Fujino et al. | SPARQLoid-a Querying System using Own Ontology and Ontology Mappings with Reliability. | |
| Huynh et al. | Jarvis: A voice-based context-as-a-service mobile tool for a smart home environment | |
| Gourley et al. | A sustainable repository infrastructure for digital humanities: the DHO experience | |
| US8478584B1 (en) | Method and system for domain-optimized semantic tagging and task execution using task classification encoding | |
| Piotrowski et al. | The Labeling System: A New Approach to Overcome the Vocabulary Bottleneck | |
| Euzenat | Semantic technologies and ontology matching for interoperability inside and across buildings | |
| Nussbaumer et al. | CIDOC CRM in action-experiences and challenges | |
| Bartolini et al. | Towards the establishment of a linguistic linked data network for Italian |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |