CN106303916B - The method and apparatus of mashed up data in machine to machine system - Google Patents
The method and apparatus of mashed up data in machine to machine system Download PDFInfo
- Publication number
- CN106303916B CN106303916B CN201510366433.3A CN201510366433A CN106303916B CN 106303916 B CN106303916 B CN 106303916B CN 201510366433 A CN201510366433 A CN 201510366433A CN 106303916 B CN106303916 B CN 106303916B
- Authority
- CN
- China
- Prior art keywords
- virtual device
- semantic
- mashup
- engine
- virtual
- 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
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000004458 analytical method Methods 0.000 claims abstract description 21
- 238000012545 processing Methods 0.000 claims description 4
- 230000005540 biological transmission Effects 0.000 abstract description 3
- 239000010410 layer Substances 0.000 description 71
- 238000010586 diagram Methods 0.000 description 22
- UHOVQNZJYSORNB-UHFFFAOYSA-N Benzene Chemical compound C1=CC=CC=C1 UHOVQNZJYSORNB-UHFFFAOYSA-N 0.000 description 18
- QGZKDVFQNNGYKY-UHFFFAOYSA-N Ammonia Chemical compound N QGZKDVFQNNGYKY-UHFFFAOYSA-N 0.000 description 12
- CURLTUGMZLYLDI-UHFFFAOYSA-N Carbon dioxide Chemical compound O=C=O CURLTUGMZLYLDI-UHFFFAOYSA-N 0.000 description 12
- 238000009833 condensation Methods 0.000 description 11
- 230000005494 condensation Effects 0.000 description 11
- 230000006870 function Effects 0.000 description 10
- 238000003908 quality control method Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 9
- RAHZWNYVWXNFOC-UHFFFAOYSA-N Sulphur dioxide Chemical compound O=S=O RAHZWNYVWXNFOC-UHFFFAOYSA-N 0.000 description 8
- 239000000470 constituent Substances 0.000 description 8
- 238000013461 design Methods 0.000 description 8
- 229910021529 ammonia Inorganic materials 0.000 description 6
- 229910002092 carbon dioxide Inorganic materials 0.000 description 6
- 239000001569 carbon dioxide Substances 0.000 description 6
- 230000003993 interaction Effects 0.000 description 6
- WSFSSNUMVMOOMR-NJFSPNSNSA-N methanone Chemical compound O=[14CH2] WSFSSNUMVMOOMR-NJFSPNSNSA-N 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 238000005286 illumination Methods 0.000 description 5
- MGWGWNFMUOTEHG-UHFFFAOYSA-N 4-(3,5-dimethylphenyl)-1,3-thiazol-2-amine Chemical compound CC1=CC(C)=CC(C=2N=C(N)SC=2)=C1 MGWGWNFMUOTEHG-UHFFFAOYSA-N 0.000 description 4
- UGFAIRIUMAVXCW-UHFFFAOYSA-N Carbon monoxide Chemical compound [O+]#[C-] UGFAIRIUMAVXCW-UHFFFAOYSA-N 0.000 description 4
- CBENFWSGALASAD-UHFFFAOYSA-N Ozone Chemical compound [O-][O+]=O CBENFWSGALASAD-UHFFFAOYSA-N 0.000 description 4
- JCXJVPUVTGWSNB-UHFFFAOYSA-N nitrogen dioxide Inorganic materials O=[N]=O JCXJVPUVTGWSNB-UHFFFAOYSA-N 0.000 description 4
- 239000012855 volatile organic compound Substances 0.000 description 4
- 230000002776 aggregation Effects 0.000 description 3
- 238000004220 aggregation Methods 0.000 description 3
- 229910002091 carbon monoxide Inorganic materials 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000010354 integration Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000003860 storage Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000004931 aggregating effect Effects 0.000 description 1
- 238000004378 air conditioning Methods 0.000 description 1
- 239000012792 core layer Substances 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
Landscapes
- Machine Translation (AREA)
Abstract
The embodiment of the invention provides the methods and its equipment of mashed up mashup data in a kind of M2M system.M2M system includes the first virtual unit, the second virtual unit and third virtual unit, second virtual unit includes the second semantic engine and the 2nd mashup engine, second semantic engine only stores the semantic relation between the second virtual unit and third virtual unit, method includes: that the second virtual unit receives the first message that the first virtual unit is sent, and the second virtual unit determines third virtual unit according to the result that semantic relation and the second semantic engine carry out semantic analysis to first message.Second virtual unit sends second message to third virtual unit, and receives the feedback message of third virtual unit transmission.2nd mashup engine carries out mashup to the data of acquisition, and sends the result that mashup is obtained to the first virtual unit.The embodiment of the present invention can realize the mashup of data in M2M system.
Description
Technical Field
The embodiment of the invention relates to the field of communication of internet of things, in particular to a method and equipment for mashup (mashup) data in a Machine-to-Machine (M2M) system.
Background
With the development of the technology of the internet of things, a global standard organization M2M is established, which aims to establish a machine-to-machine technical standard of a unified business layer and promote the integration of the global standard of M2M and industry application. Wherein the technical standard comprises a technical standard related to semantic enhancement of services and data of the M2M device. The existing M2M system adopts a layered architecture, and the entire architecture is divided into an Application Layer (Application Layer), a Common Service Layer (Common Service Layer), and an underlying Network Service Layer (Network Service Layer). An Application Entity (AE) in the Application layer contains the Application logic of the instantiated end-to-end M2M solution. A Common Service Entity (CSE) in the Common service layer contains instantiated Common service functions, and the CSE is a core layer in M2M, and is responsible for aggregating application layer information to form a resource pool, and simultaneously coordinates underlying network transmission to play a role of a platform. And a Network Service Entity (NSE) in the bottom Network Service layer manages and is responsible for bottom Network transmission, and provides bottom Network support for the public Service layer.
The traditional semantic mashup system comprises a centralized mashup server consisting of an ontology library, a mashup library and a mashup engine. The traditional semantic mashup adopts a centralized architecture, a mashup library in the center stores all mashups generated in the operation process, and data are uniformly designed and managed.
The existing peer to peer (P2P) mashup framework can adopt a centralized design, but P2Pmashup lacks support for semantics and cannot well meet the request of on-demand dynamic combination query.
Dynamic device service composition on demand is an important function that many M2M applications or systems need to implement. Since the M2M system generally has the following basic features: no uniform data pattern, decentralization and limited device resources. If mashup data is to be implemented in the M2M system, the above characteristics of the M2M system must be considered, and the mashup framework cannot be directly transplanted into the M2M application scenario simply. In the current M2M standard and specification, the semantic enhancement part is still in the design and discussion stage, and there is no concrete expression for semantic mashup data implementation. How to implement mashup data in the M2M system is a technical problem to be solved.
Disclosure of Invention
The embodiment of the invention provides a method and equipment for mashup data in an M2M system, which can be used for realizing mashup of data in an M2M system.
In a first aspect, a method for mashup data mashup in a machine-to-machine M2M system is provided, where the M2M system includes a first virtual device, a second virtual device and a third virtual device, the second virtual device includes a second semantic engine and a second mashup engine, and the second semantic engine only stores semantic relationships between the second virtual device and the third virtual device, where the method includes: the second virtual device receives a first message sent by the first virtual device, wherein the first message is used for inquiring or controlling data acquired by the second virtual device; the second semantic engine of the second virtual device semantically analyzes the first message; determining the third virtual device according to the semantic relation and the result of the semantic analysis; the second virtual device sends a second message to the third virtual device, wherein the second message is used for inquiring or controlling data acquired by the third virtual device; the second virtual device receives a feedback message sent by the third virtual device, wherein the feedback message comprises data obtained by the third virtual device according to the second message; the second mashup engine of the second virtual device mashup the data in the feedback message; and the second virtual device sends the mashup result to the first virtual device.
With reference to the first aspect, in an implementation manner of the first aspect, the connection between the first virtual device and the second virtual device is a peer-to-peer P2P connection, and the connection between the second virtual device and the third virtual device is a P2P connection.
With reference to the first aspect and the foregoing implementation manner of the first aspect, in another implementation manner of the first aspect, the first virtual device includes a first semantic engine and a first mashup engine, and the third virtual device includes a third semantic engine and a third mashup engine.
With reference to the first aspect and the foregoing implementation manner of the first aspect, in another implementation manner of the first aspect, when the first virtual device and the second virtual device are in the same physical device, the first mashup engine and the second mashup engine are the same; or when the second virtual device and the third virtual device are in the same physical device, the second mashup engine and the third mashup engine are the same.
With reference to the first aspect and the foregoing implementation manner of the first aspect, in another implementation manner of the first aspect, the semantic relationship is: define, associate, or control.
With reference to the first aspect and the foregoing implementation manner of the first aspect, in another implementation manner of the first aspect, the semantic relationship is a recording manner of an RDF triple of a resource description framework.
In a second aspect, a method for mashup data mashup in a machine-to-machine M2M system is provided, where the M2M system includes a first virtual device, a second virtual device and a third virtual device, the second virtual device includes a second semantic engine and a second mashup engine, and the second semantic engine only stores semantic relationships between the second virtual device and the third virtual device, where the second virtual device includes: a first receiving unit, configured to receive a first message sent by the first virtual device, where the first message is used to query or control data acquired by the second virtual device; the second semantic engine unit is used for performing semantic analysis on the first message received by the first receiving unit; the determining unit is used for determining the third virtual equipment according to the semantic relation and the semantic analysis result obtained by the second semantic engine unit; a first sending unit, configured to send a second message to the third virtual device obtained by the determining unit, where the second message is used to query or control data acquired by the third virtual device; a second receiving unit, configured to receive a feedback message sent by the third virtual device according to the second message, where the feedback message includes data obtained by the third virtual device according to the second message; the mashup engine unit is used for mashup processing on the data in the feedback message received by the second receiving unit; and the second sending unit is used for sending the result obtained by the mashup to the first virtual device.
With reference to the second aspect, in an implementation manner of the second aspect, the connection between the first virtual device and the second virtual device is a peer-to-peer P2P connection, and the connection between the second virtual device and the third virtual device is a P2P connection.
With reference to the second aspect and the foregoing implementation manner of the second aspect, in another implementation manner of the second aspect, the first virtual device includes a first semantic engine and a first mashup engine, and the third virtual device includes a third semantic engine and a third mashup engine.
With reference to the second aspect and the foregoing implementation manner of the second aspect, in another implementation manner of the second aspect, when the first virtual device and the second virtual device are in the same physical device, the first mashup engine and the second mashup engine are the same; or when the second virtual device and the third virtual device are in the same physical device, the second mashup engine and the third mashup engine are the same.
With reference to the second aspect and the foregoing implementation manner of the second aspect, in another implementation manner of the second aspect, the semantic relationship is: define, associate, or control.
With reference to the second aspect and the foregoing implementation manner of the second aspect, in another implementation manner of the second aspect, the semantic relationship adopts a recording manner of an RDF triple of a resource description framework.
The M2M system of the embodiment of the invention deploys a semantic engine and a mashup engine in each virtual device through decentralized structural design, after receiving a query or control message sent by an upper layer virtual device, searches the lower layer virtual device associated with the semantic engine through the semantic engine, then collects data of the lower layer virtual device, and performs mashup on the collected data through the mashup engine, so that mashup data can be realized in the M2M system.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for mashup data in an M2M system according to an embodiment of the present invention.
Fig. 2 is a schematic interaction diagram of a mashup data method in the M2M system according to an embodiment of the invention.
Fig. 3 is a schematic interaction diagram of a mashup data method in the M2M system according to another embodiment of the invention.
Fig. 4 is a schematic interaction diagram of a mashup data method in the M2M system according to still another embodiment of the invention.
Fig. 5 is a schematic diagram of basic constituent units of a semantic graph of mashup data in the M2M system according to an embodiment of the present invention.
Fig. 6 is a schematic diagram of basic constituent units of a semantic graph of mashup data in the M2M system according to another embodiment of the present invention.
Fig. 7 is a schematic diagram of a semantic network of mashup data in the M2M system according to an embodiment of the present invention.
Fig. 8 is a semantic overview of mashup data in the M2M system in the home environment according to an embodiment of the present invention.
Fig. 9 is a semantic sub-graph of mashup data stored on an air conditioner in an M2M system in a home environment according to an embodiment of the present invention.
Fig. 10 is a schematic path diagram of mashup data in the M2M system in the home environment according to an embodiment of the present invention.
Fig. 11 is a block diagram of a mashup data device in the M2M system according to an embodiment of the present invention.
Fig. 12 is a block diagram of a mashup data device in the M2M system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, shall fall within the scope of protection of the present invention.
Fig. 1 is a schematic flow chart of a method for mashup data in an M2M system according to an embodiment of the present invention. The method of fig. 1 may be performed by a virtual appliance. The M2M system includes a first virtual device, a second virtual device, and a third virtual device, the second virtual device including a second semantic engine and a second mashup engine, the second semantic engine storing only a second semantic relationship between the second virtual device and the third virtual device.
101, the second virtual device receives a first message sent by the first virtual device, where the first message is used to query or control data acquired by the second virtual device.
And 102, performing semantic analysis on the first message by a second semantic engine of the second virtual device.
And 103, determining a third virtual device according to the semantic relation and the semantic analysis result.
And 104, the second virtual device sends a second message to the third virtual device, wherein the second message is used for inquiring or controlling the data acquired by the third virtual device.
And 105, the second virtual device receives a feedback message sent by the third virtual device, wherein the feedback message comprises data obtained by the third virtual device according to the second message.
And 106, the second virtual device mashup the data in the feedback message according to the second mashup engine.
107, the second virtual device sends the mashup result to the first virtual device.
The M2M system of the embodiment of the invention deploys a semantic engine and a mashup engine in each virtual device through decentralized structural design, after receiving a query or control message sent by an upper layer virtual device, searches the lower layer virtual device associated with the semantic engine through the semantic engine, then collects data of the lower layer virtual device, and performs mashup on the collected data through the mashup engine, so that mashup data can be realized in the M2M system.
In the embodiment of the invention, the virtual equipment is designed in the equipment content, namely, the wireless or wired communication module and the application processing logic are embedded in the equipment, so that the data communication without manual intervention can be realized, and the informatization requirements of users on the aspects of monitoring, selective scheduling, data acquisition, measurement and the like can be met. For example, the mobile phone can be connected with each physical device of the home environment to satisfy the query or control of the user on the air quality, the sleeping environment, the temperature or the humidity in the home environment.
In one embodiment of the invention, the connection between the virtual devices is a peer-to-peer P2P connection, and the roles and functions between the virtual devices are the same. For example, the connection between the first virtual device and the second virtual device is a peer P2P connection, and the connection between the second virtual device and the third virtual device is a P2P connection. Through establishing P2P connection among all virtual devices, the whole network system forms a logically unified P2P semantic network, thereby realizing more dynamic self-adaptive M2M device intelligent combination and integration.
The virtual devices may interact with each other by obtaining a Uniform Resource Identifier (URI) and air interface information of the other device.
The first message may be used to query or control data obtained by the second virtual device, and the second message may be used to query or control data obtained by the third virtual device. That is, the first message or the second message may be a query message or a control message.
And the second virtual equipment receives a feedback message sent by the third virtual equipment, wherein the feedback message comprises data obtained by the third virtual equipment according to the second message. When the second message is the query message, the second virtual device may obtain data of the third virtual device according to the second message; when the second message is a control message, the third virtual device may obtain the state information of the third virtual device according to the second message, for example, whether the control message is successfully executed. Here, the data or the status message acquired by the virtual device is collectively referred to as data.
In one embodiment of the present invention, each virtual device may have a different semantic engine and mashup engine, so that each virtual device has the function of mahsup data and the function of semantic analysis of information. For example, the first virtual device includes a first semantic engine and a first mashup engine, and the third virtual device includes a third semantic engine and a third mashup engine. The virtual devices are in peer-to-peer relationship, so that development and management costs are not increased due to the fact that a large mashup library is stored in the central device, decentralized design of the M2M system can be achieved, the decentralized characteristic of the M2M system is met, and development and management costs are reduced.
In an embodiment of the present invention, different physical devices may have the same mashup library, and the mashup library stores semantic subgraphs of all virtual devices corresponding to the physical devices, so that, during operation, a semantic subgraph matching mode may be used to find possible mashup execution paths.
In another embodiment of the present invention, each physical device may have a mashup library corresponding thereto, for storing a mashup semantic graph related to the device. Different physical devices may have different mashup libraries, which may reduce resource consumption for M2M devices. When the first virtual device, the second virtual device and the third virtual device are in the same physical device, the first mashup engine, the second mashup engine and the third mashup engine are the same. Thus, the mashup is simplified and dispersed in the mashup of each physical device, each mashup only comprises the semantic relation related to the mashup, namely, each mashup only comprises the semantic subgraph of the virtual device abstracted by the device and the semantic subgraphs of other virtual devices generated by the virtual device recursion, so that the resource consumption of the M2M device can be reduced, and the characteristic of limited device resources in the M2M system can be met.
The semantic engine of each virtual device may store only the semantic relationships between that virtual device and the underlying virtual devices. For example, the second virtual device may only store the semantic relationship between the second virtual device and the third virtual device. The virtual device can perform semantic analysis on the message sent by the upper layer virtual device, and determine the lower layer virtual device according to the semantic relation. A physical device in the M2M system may store the semantic relationships stored by all virtual devices to which the physical device corresponds. Thus, the characteristic of limited device resources in the M2M system can be satisfied.
In one embodiment of the invention, the semantic subgraph of each virtual device comprises data information of the virtual device, semantic relationships between the virtual device and other virtual devices directly connected with the virtual device, and other semantic relationship structures recursively generated by the virtual device. The semantic subgraph represents a possible mashup path. The virtual devices have a certain semantic relationship, and complex dynamic combination resource requirements can be processed according to the semantic relationship. Alternatively, the semantic relationship may be: define, associate, or control.
In one embodiment of the invention, the semantic relationship adopts a recording mode of the resource description framework RDF triple. Semantic relationships can be represented by three elements, resources, definitions and values.
In one embodiment of the invention, the first virtual device, the second virtual device or the third virtual device has a query or control function, which may be, for example, an application in the device. The status between each virtual device is equivalent. Each virtual device (e.g., the second virtual device) may receive a message sent by the upper layer virtual device (e.g., the first virtual device) requesting to query or control data acquired by the virtual device. The semantics engine of the virtual device may analyze the semantics and find the underlying virtual device (e.g., the third virtual device) that satisfies the message. The virtual appliance may then send a message to the lower level virtual appliance requesting that the data of the lower level virtual appliance be queried or controlled. The lower layer virtual device may send a feedback message to the virtual device, where the feedback message includes data acquired by the lower layer virtual device. After the virtual device obtains the feedback message, mashup may be performed on the data in the feedback message, and the result obtained by the mashup may be sent to the upper layer virtual device. The mashup engine and the semantic engine of each virtual device are matched and used in combination, so that the characteristics of decentralization and device resource limitation in the M2M system can be met.
In the embodiment of the present invention, each virtual device may be used as a second virtual device, and may receive a request message from an upper layer virtual device and send the request message to a lower layer virtual device.
Before sending a message or a control command to another virtual device, a virtual device needs to obtain a uniform resource identifier and air interface information of another virtual device. And establishing the connection between the two virtual devices through the uniform resource identifier and the air interface information. Alternatively, the URI and the air interface information of the lower layer virtual device may be requested by transmitting a request message to the lower layer virtual device. And after receiving the URI and the air interface information sent by the lower layer virtual equipment, establishing connection according to the URI and the air interface information.
In one embodiment of the invention, each virtual device has a semantic subgraph corresponding to it. The semantic subgraph of the physical device comprises abstract devices abstracted from the physical device, devices on the upper layer of the abstract devices and semantic relations among the devices. The semantic subgraphs of all virtual devices can constitute a semantic overview. For example, the first virtual device, the second virtual device, and the third virtual device and the semantic relationships between the devices constitute a semantic overall graph.
Fig. 1 above describes in detail the method for mashup data in the M2M system from the perspective of a virtual device, and the embodiment of the present invention will be described in more detail below with reference to specific examples. It should be noted that these examples are only for helping those skilled in the art to better understand the embodiments of the present invention, and do not limit the scope of the embodiments of the present invention.
Fig. 2 is a schematic interaction diagram of a mashup data method in the M2M system according to an embodiment of the invention. The M2M system of fig. 2 includes an application entity, a common service entity, a first virtual device, a second virtual device, and a third virtual device.
An application entity sends a semantic query request message to a common service entity 201.
For example, an application entity of a mobile terminal may send a semantic query request message to a common service entity of the mobile terminal. It may be assumed here that the semantic query request message specifies the indoor air quality in room one for the query. The mobile terminal can be a mobile phone, and a user can operate and control the device through the mobile phone.
The common service entity determines 202 the first virtual appliance from the semantic query request message.
For example, after the public service entity of the mobile terminal receives the semantic query request message sent by the application entity, the virtual device related to the indoor air quality in room one can be found out.
Optionally, the mobile terminal may search and determine the first virtual device related to the semantic query request message according to the semantic relationship included in the semantic engine of the mobile terminal. For example, when the mobile terminal wants to control an indoor sleep environment, according to a semantic subgraph matching algorithm in the semantic engine, a virtual device can be found, and the virtual device controlled by the sleep environment is determined as a first virtual device.
203, the public service entity requests a Uniform Resource Identifier (URI) and air interface information from the first virtual device.
After determining the first virtual device closely related to the query request, the common service entity may send a message requesting uniform resource identifier and air interface information to the first virtual device, so as to establish a P2P connection between the common service entity and the first virtual device through the resource identifier and the air interface information.
And 204, the first virtual equipment sends the Uniform Resource Identifier (URI) and air interface information to the public service entity.
After receiving the request message sent by the public service entity, the first virtual device sends its own uniform resource identifier and air interface information to the public service entity.
205, the common service entity sends a data request message to the first virtual appliance.
And after receiving the URI and the air interface information sent by the first virtual equipment, the public service entity sends a data request message to the first virtual equipment according to the URI and the air interface information. For example, when the mobile terminal wants to obtain sleep environment control of an indoor environment, the public service entity may send a data request message to the first virtual device, requesting to query data of the virtual device for sleep environment control or to control the virtual device.
206, the first virtual device sends a first message to the second virtual device.
After receiving the data request message sent by the public service entity, the first virtual device searches a second virtual device connected with the first virtual device on the semantic general diagram according to the semantic relation stored by the semantic engine of the first virtual device, and sends a first message to the second virtual device. The data of the first virtual device can be obtained by the data of at least one second virtual device through mashup.
The semantic relation between the second virtual device and the first virtual device is a first semantic relation. The first virtual device may determine to look up and determine the second virtual device based on the first semantic relationship. It should be understood that the second virtual device is connected to the first virtual device, and the second virtual device may be one or more than one. A series of virtual devices that the first virtual device may find according to the first semantic relationship may all be considered as the second virtual device. Then the series of virtual devices are arranged according to a certain priority, and the virtual device with the highest priority is determined as a second virtual device.
For example, a first virtual device (e.g., a sleep environment control) searches a series of virtual devices related to the sleep environment control, such as room temperature control, air quality control and sleep comfort level, according to a semantic subgraph matching algorithm, and determines the air quality control as a second virtual device through semantic relation.
207, the second virtual device determines a third virtual device.
The semantic relationship between the second virtual device and the third virtual device is a second semantic relationship. The second virtual device may perform semantic analysis on the first message. And determining a third virtual device according to the semantic analysis result and the second semantic relationship. In other words, the second virtual device may determine the third virtual device according to a semantic subgraph matching algorithm.
It is to be understood that the second virtual device may determine a series of virtual devices associated therewith based on the first message and the second semantic relationship. The virtual devices on the semantic subgraph that are directly associated with the second virtual device can all be used as the third virtual device. The third virtual device may be one or more. Preferably, in an embodiment of the present invention, the virtual device most closely related to the second virtual device in the semantic relation may be determined as the third virtual device, that is, a series of virtual devices directly related to the second virtual device on the semantic subgraph may be sorted according to a certain priority, and the lower layer virtual device with the highest priority may be determined as the third virtual device.
The second virtual device sends 208 a second message to the third virtual device.
After the second virtual device determines the third virtual device, a second message may be sent to the third virtual device to request query or control of data of the third virtual device. Specifically, the second message may be a query message, which is used to query the data acquired by the third virtual device; the second message may also be a control message for controlling the third virtual device.
The third virtual device sends 209 a feedback message to the second virtual device.
The third virtual device receives the second message sent by the second virtual device, and may send a feedback message to the second virtual device. The feedback message includes data acquired by the third virtual device, where the acquired data may be query data obtained by querying or status data used for indicating whether the control message is executed successfully. The control message may be to turn the virtual device on or off, or to turn up or down parameters of the virtual device. The status data may be that the opening or relationship has been successfully performed, or that the state data is adjusted up or down. When the third virtual device is a virtual device, the third virtual device may send the query data or the status data acquired by the third virtual device to the second virtual device only. When the third virtual device is a plurality of virtual devices, the plurality of virtual devices may all send query data or status data acquired by the plurality of virtual devices to the second virtual device.
And 210, a second mashup engine of the second virtual device mashup the received data.
And after receiving the feedback message sent by the third virtual device, the second virtual device performs mashup on the received data.
211, the second virtual device sends the mashup result to the first virtual device.
And the second virtual device sends the mashup result to the first virtual device.
And 212, the first mashup engine of the first virtual device mashup the received data.
The first virtual device may find at least one second virtual device connected to the first virtual device according to the first semantic relationship. When there is more than one second virtual device, the first virtual device may receive mashup results sent by multiple second virtual devices. At this time, the first virtual device needs to continue mashup on the received multiple results to obtain an mshup result.
213, the first virtual device sends the mashup result to the common service entity.
The first virtual device may send a mashup result obtained after mashup is performed by the first virtual device to the public service entity.
214, the public service entity sends the mashup result to the application entity.
After receiving the mashup result sent by the first virtual device, the public service entity may send the mashup result to the application entity.
When the semantic relation of the requested message is complex, the application entity may send a semantic query request or receive a mashup result by using the method of the above embodiment. The semantic capability of the common service entity is stronger than that of the application entity, so that the common service entity can determine the first virtual device according to a more complex semantic relationship.
Fig. 3 is a schematic interaction diagram of a mashup data method in the M2M system according to an embodiment of the invention. The M2M system of fig. 3 includes an abstract device, a first virtual device, a second virtual device, and a third virtual device.
301, the abstract device determines a first virtual device.
The abstract device may be an application in the mobile terminal. When the indoor air quality in the first room is required to be inquired, the mobile terminal can search and determine the first virtual equipment related to the semantic inquiry request message according to the semantic relation included by the semantic engine of the mobile terminal. For example, the user wants to obtain the sleep comfort level in the room one, and when the semantic description of the virtual device satisfies the query request, the first virtual device related to the sleep comfort level in the room one, that is, the sleep comfort level, can be found according to the semantic query request.
302, the abstract device requests a uniform resource identifier, URI, and air interface information from the first virtual device.
After determining the first virtual device closely related to the query request, the abstraction device may send a message requesting uniform resource identifier and air interface information to the first virtual device, so as to establish a P2P connection between the common service entity and the first virtual device through the resource identifier and the air interface information.
303, the first virtual device sends the uniform resource identifier URI and the air interface information to the abstract device.
And after receiving the request message sent by the abstract device, the first virtual device sends the uniform resource identifier and the air interface information of the first virtual device to the abstract device.
The abstract device sends a data request message to the first virtual device 304.
After receiving the URI and the air interface information sent by the first virtual equipment, the abstract equipment sends a data request message to the first virtual equipment according to the URI and the air interface information. For example, when the mobile terminal wants to obtain sleep environment control of an indoor environment, the abstract device may send a data request message to the first virtual device, requesting to query data of the virtual device for sleep environment control or to control the virtual device.
The first virtual device sends 305 a first message to the second virtual device.
After receiving the data request message sent by the public service entity, the first virtual device searches a second virtual device connected with the first virtual device on the semantic general diagram according to the semantic relation stored by the semantic engine of the first virtual device, and sends a first message to the second virtual device. The data of the first virtual device can be obtained by the data of at least one second virtual device through mashup.
The semantic relation between the second virtual device and the first virtual device is a first semantic relation. The first virtual device may determine to look up and determine the second virtual device based on the first semantic relationship. It should be understood that the second virtual device is connected to the first virtual device, and the second virtual device may be one or more than one. A series of virtual devices that the first virtual device may find according to the first semantic relationship may all be considered as the second virtual device. Then the series of virtual devices are arranged according to a certain priority, and the virtual device with the highest priority is determined as a second virtual device.
For example, a first virtual device (e.g., a sleep environment control) searches a series of virtual devices related to the sleep environment control, such as room temperature control, air quality control and sleep comfort level, according to a semantic subgraph matching algorithm, and determines the air quality control as a second virtual device through semantic relation.
The second virtual device determines a third virtual device 306.
The semantic relationship between the second virtual device and the third virtual device is a second semantic relationship. The second virtual device may perform semantic analysis on the first message. And determining a third virtual device according to the semantic analysis result and the second semantic relationship. In other words, the second virtual device may determine the third virtual device according to a semantic subgraph matching algorithm.
It is to be understood that the second virtual device may determine a series of virtual devices associated therewith based on the first message and the second semantic relationship. The virtual devices on the semantic subgraph that are directly associated with the second virtual device can all be used as the third virtual device. The third virtual device may be one or more. Preferably, in an embodiment of the present invention, the virtual device most closely related to the second virtual device in the semantic relation may be determined as the third virtual device, that is, a series of virtual devices directly related to the second virtual device on the semantic subgraph may be sorted according to a certain priority, and the lower layer virtual device with the highest priority may be determined as the third virtual device.
307, the second virtual device sends a second message to the third virtual device.
After the second virtual device determines the third virtual device, a second message may be sent to the third virtual device to request query or control of data of the third virtual device. Specifically, the second message may be a query message, which is used to query the data acquired by the third virtual device; the second message may also be a control message for controlling the third virtual device.
308, the third virtual device sends a feedback message to the second virtual device.
The third virtual device receives the second message sent by the second virtual device, and may send a feedback message to the second virtual device. The feedback message includes data acquired by the third virtual device, where the acquired data may be query data obtained by querying or status data used for indicating whether the control message is executed successfully. The control message may be to turn the virtual device on or off, or to turn up or down parameters of the virtual device. The status data may be that the opening or relationship has been successfully performed, or that the state data is adjusted up or down. When the third virtual device is a virtual device, the third virtual device may send the query data or the status data acquired by the third virtual device to the second virtual device only. When the third virtual device is a plurality of virtual devices, the plurality of virtual devices may all send query data or status data acquired by the plurality of virtual devices to the second virtual device.
309, the second mashup engine of the second virtual device mashup the received data.
And after receiving the feedback message sent by the third virtual device, the second virtual device performs mashup on the received data.
And 310, the second virtual device sends the mashup result to the first virtual device.
And the second virtual device sends the mashup result to the first virtual device.
And 311, performing mashup on the received data by a first mashup engine of the first virtual device.
The first virtual device may find at least one second virtual device connected to the first virtual device according to the first semantic relationship. When there is more than one second virtual device, the first virtual device may receive mashup results sent by multiple second virtual devices. At this time, the first virtual device needs to continue mashup on the received multiple results to obtain an mshup result.
312, the first virtual device sends the mashup result to the abstract device.
The first virtual device may send a mashup result obtained after mashup is performed by the first virtual device to the public service entity.
The method of the above embodiment can be used when the semantic relation of the requested message is relatively simple, and the abstract device here can be an application entity AE.
Fig. 4 is a schematic interaction diagram of a mashup data method in the M2M system according to another embodiment of the invention. The M2M system in fig. 4 applies entities, common service entities and virtual appliances.
401, the application entity sends a semantic query request message to the common service entity.
For example, an application entity of a mobile terminal may send a semantic query request message to a common service entity of the mobile terminal. For example, it may be assumed here that the semantic query request message specifies the indoor air quality in room one for the query. The mobile terminal can be a mobile phone, and a user can operate and control the device through the mobile phone.
The semantic analysis is performed on the semantic query request message by the common service entity 402.
For example, after receiving the semantic query request message sent by the application entity, the public service entity of the mobile terminal performs semantic analysis on the semantic query request message to find a virtual device related to indoor air quality in room one.
And 403, performing semantic matching on the virtual device, but failing to perform semantic matching.
The virtual device keeps a semantic subgraph of the virtual device. The virtual device matches the semantic subgraph of the virtual device with the semantic description of the public service entity, but the semantic matching fails.
The virtual device signals a failure to match to the common service entity 405.
And after the semantic matching of the virtual equipment fails, the virtual equipment virtual entity sends a matching failure signal to the public service entity.
406, the common service entity sends the failure result to the application entity.
And after receiving the failure signal sent by the virtual equipment, the public service entity sends a failure result to the application entity.
Fig. 5 is a schematic diagram of basic constituent units of a semantic graph of mashup data in the M2M system according to an embodiment of the present invention.
The basic constituent unit of fig. 5 is a convergence mashup structure. The basic constituent units of the semantic graph of fig. 5 include a virtual device one, a virtual device two, a virtual device three, a virtual device four, and a virtual device five. The virtual devices at the bottom layer in the M2M system can be converged to form the virtual devices at the upper layer. For example, virtual device one, virtual device two, virtual device three, and virtual device four may be aggregated to form virtual device five. A certain semantic relationship exists between the virtual device one, the virtual device two, the virtual device three, the virtual device four and the virtual device five, and the semantic relationship used in fig. 5 includes a definition and is represented by D. That is, in fig. 5, a virtual device five is formed by the convergence of a virtual device one, a virtual device two, a virtual device three, and a virtual device four by definition. The virtual device may be data or control logic. For example, the virtual device may be air quality, light intensity, air quality index, or the like. For another example, when the first virtual device, the second virtual device, the third virtual device, and the fourth virtual device are formaldehyde, benzene, ammonia, and carbon dioxide, respectively, the converged virtual devices may be indoor air quality. Indoor air quality can be formed by converging data of formaldehyde, benzene, ammonia and carbon dioxide.
Fig. 6 is a schematic diagram of basic constituent units of a semantic graph of mashup data in the M2M system according to another embodiment of the present invention.
The basic component unit of fig. 6 is a control mashup structure. The basic constituent units of the semantic graph of fig. 6 include a virtual device one, a virtual device two, a virtual device three, and a virtual device four. The bottom layer of devices in the M2M system may form the top layer of devices. For example, virtual device one, virtual device two, and virtual device three may form virtual device four. Certain semantic relations exist among the virtual equipment I, the virtual equipment II and the virtual equipment III and the virtual control equipment. The semantic relationships used in FIG. 6 include relevance and control, denoted by R and C, respectively. In fig. 6, a virtual device four is formed by controlling a virtual device one, a virtual device two and a virtual device three through semantic relations R and C. The devices may be data or control logic. For example, the device may be air quality, light intensity, air quality index, or the like. For another example, when the first virtual device, the second virtual device, and the third virtual device are respectively controlled by the sleep comfort level, the air quality control, and the room temperature control, the fourth virtual device may be controlled by the sleep environment. The sleeping environment can be controlled by the correlation with the sleeping comfort level and the control of the data of the air quality control and the room temperature control.
Fig. 7 is a schematic diagram of a semantic network of mashup data in the M2M system according to an embodiment of the present invention.
Fig. 7 is an M2M system in a home, where the system includes a first virtual device, a second virtual device, a third virtual device, a fourth virtual device, and a fifth virtual device, and semantic subgraphs corresponding to each virtual device are: semantic subgraph 1, semantic subgraph 2, semantic subgraph 3, semantic subgraph 4 and semantic subgraph 5. The method comprises the steps that P2P connection is established between the first virtual device and the second virtual device, P2P connection is established between the first virtual device and the third virtual device, P2P connection is established between the third virtual device and the fourth virtual device, and P2P connection is established between the fourth virtual device and the fifth virtual device. Each virtual device has a corresponding semantic subgraph, and the semantic subgraphs among the virtual devices form a semantic network together.
Fig. 8 is a general semantic diagram of mashup data in the M2M system in the home environment according to an embodiment of the present invention.
The home environment of fig. 8 includes six physical entity devices: air purifier, air conditioner, air quality detector 1, air quality detector 2, light intensity sensor and sound sensor. ME in fig. 8 represents the mashup engine. And each physical entity device is provided with an independent mashup engine independently. Each physical entity device may include at least one application entity, and a mashup engine may be shared by a plurality of application entities of the unified physical entity device. For example, the air purifier includes an air purifier switch. The air conditioner comprises a power supply, a temperature controller, a wind power controller, a temperature sensor and a humidity sensor, and the power supply, the temperature controller, the wind power controller, the temperature sensor and the humidity sensor can be used for the mashup engine of the air conditioner. The air quality detector 1 includes PM2.5, PM10, ozone, nitrogen dioxide, sulfur dioxide, and carbon monoxide. The air quality detector 2 comprises formaldehyde, ammonia, benzene, carbon dioxide and total volatile organic compounds. The light intensity sensor includes an illumination intensity. The sound sensor includes a volume.
The application entity of the physical entity device and the semantic relation with other devices form abstract devices. For example, a purifier of an air purifier employs switches of a physical layer plus semantic relationships to form air quality control of an abstract device layer. The temperature controller of the air conditioner application entity layer and the semantic relation form temperature control of the abstract equipment layer, the wind power controller of the air conditioner application entity layer and the semantic relation form wind power control of the abstract equipment layer, the temperature sensor of the air conditioner application entity layer and the semantic relation form temperature of the abstract equipment layer, and the humidity sensor of the air conditioner application entity layer and the semantic relation form humidity of the abstract equipment layer. The air quality detector applies the physical layer of PM2.5, PM10, ozone, nitrogen dioxide, sulfur dioxide, and carbon monoxide plus the semantic relationships form the abstract device layer of PM2.5, PM10, ozone, nitrogen dioxide, sulfur dioxide, and carbon monoxide. The air quality detector uses formaldehyde, ammonia, benzene, carbon dioxide, total volatile organic compounds of a physical layer and semantic relations to form formaldehyde, ammonia, benzene, carbon dioxide and total volatile organic compounds of an abstract device layer. The light intensity sensor forms the illumination intensity of the abstract physical layer by applying the illumination intensity of the physical layer and the semantic relation. The volume of the sound sensor application entity layer plus the semantic relationship forms the ambient volume of the abstract device layer.
The semantic relation in the embodiment of the invention can comprise data semantic information sematic info, resource association information relationships, namespace information namespaces URIs and topology structure information mashupRepo. The data semantic information may be used to describe the meaning of the data, such as the temperature of an air conditioner. The resource association information can be used for recording association relations among resources, for example, the resource association information can be used for recording resources associated with air conditioning, including temperature control, wind control, temperature, humidity, human body comfort level, sleep comfort level, room temperature control and sleep environment control. Namespace information may be used to name the namespace prefix and the URI of the namespace, for example, under M2M, Uniform Resource Identifier (URI) http:// www.etsi-M2m.org/sensor may be represented by namespace information M2M ═ http:// www.etsi-M2m.org/sensor #. The topological structure information can be used for describing topological structures and association relations among the devices, for example, the topological relations are temperature and humidity convergence, and human body comfort can be formed.
The devices of the abstract device layer form devices of the virtual device layer through semantic condensation. The basic constituent unit of the semantic graph of mashup data may be the aggregation structure of fig. 8, and may also be the control structure of fig. 6. For example, temperature control, wind control, and temperature, which abstract plant energy production, form room temperature control through semantic condensation. The temperature and humidity of the abstract device layer form human comfort through semantic condensation. The abstract device layer PM2.5, PM10, ozone, nitrogen dioxide, sulfur dioxide, and carbon monoxide form an air quality index by semantic condensation. The formaldehyde, ammonia, benzene, carbon dioxide and total volatile organic compounds in the abstract device layer form indoor air quality through condensation. The illumination intensity of the abstraction layer is formed by condensation. The ambient volume of the abstraction layer forms a noise volume by condensation.
Further, the human comfort, the air quality index, the indoor air quality, the illumination intensity and the noise volume are integrated into the sleep comfort by semantic aggregation. The human comfort, the air quality index and the air quality control of the abstract equipment layer form control quality control through semantic condensation. The room temperature control, the control quality control and the sleep comfort level form the sleep environment control through semantic condensation. Each virtual device has a mashup function, and can mashup received data or state information to obtain data required by the virtual device.
Semantic subgraphs of upper-level devices above the abstract devices together form a semantic general graph of the M2M system.
The virtual device in the embodiment of the present invention may include a device of an abstract device layer and a device of a virtual device layer in fig. 8.
Fig. 9 is a semantic sub-graph of mashup data stored on an air conditioner in an M2M system in a home environment according to an embodiment of the present invention.
A mashup engine may be shared among multiple application entities of each physical entity device. Each physical entity device corresponds to a semantic subgraph. The semantic subgraph comprises the abstracted device of the physical entity device and other virtual devices associated with the abstracted device, other virtual devices generated recursively and semantic relations between the devices. Fig. 9 shows a semantic sub-graph stored on an air conditioner in the M2M system of fig. 8. The semantic subgraph of the air conditioner mainly comprises virtual equipment related to abstract physical equipment corresponding to the air conditioner and the mutual relation among the equipment. The abstract physical device layer of the air conditioner includes temperature control, wind control, temperature and humidity. The semantic sub-diagram of the air conditioner of fig. 9 shows the virtual devices obtained by semantic condensation including temperature control, wind control, temperature or humidity. The semantic aggregation according to which each device directly operates is described in fig. 8, and is not described in detail here.
Fig. 10 is a schematic path diagram of mashup data in the M2M system in the home environment according to an embodiment of the present invention.
The M2M system of fig. 10 includes a mobile terminal and virtual device temperature control, wind control, and temperature. Temperature control, wind power control and temperature semantic condensation are performed to form room temperature control. The mobile terminal and the room temperature control are connected through P2P. When the mobile terminal needs to control the room temperature, the mobile terminal is connected with the virtual device room temperature control through P2P, and sends a room temperature control message to the virtual device room temperature control. After receiving the room temperature control message, the virtual equipment sends certain control messages or data to the temperature control, the wind power control and the temperature which have semantic relations with the room temperature control message, so that the temperature can be controlled by the control messages through the temperature control, the wind power can be controlled by the wind power control through the control messages, and the temperature can be adjusted by the temperature entity through the specific data of the temperature.
The method and specific flow of mashup data in the M2M system according to the embodiment of the present invention are described in detail from the perspective of the first device and the second device in the foregoing with reference to fig. 1 to 10, and the device of mashup data in the M2M system according to the embodiment of the present invention will be described from the perspective of the common service entity and the virtual device in the following with reference to fig. 11 to 12.
Fig. 11 is a block diagram of a mashup data device in the M2M system according to an embodiment of the present invention. The M2M system of fig. 11 includes a first virtual device, a second virtual device 10, and a third virtual device, the second virtual device 10 including a second semantic engine and a second mashup engine, the second semantic engine storing only a second semantic relationship between the second virtual device 10 and the third virtual device. The second virtual device 10 includes a first receiving unit 11, a second semantic engine unit 12, a determining unit 13, a first sending unit 14, a second receiving unit 15, a mashup engine unit 16, and a second sending unit 17.
The first receiving unit 11 is configured to receive a first message sent by a first virtual device, where the first message is used to query or control data acquired by a second virtual device 10.
The second semantic engine unit 12 is configured to perform semantic analysis on the first message received by the first receiving unit.
The determining unit 13 is configured to determine the third virtual device according to the semantic relationship and the result of the semantic analysis obtained by the second semantic engine unit.
The first sending unit 14 is configured to send a second message to the third virtual device obtained by the determining unit, where the second message is used to query or control data acquired by the third virtual device.
The second receiving unit 15 is configured to receive a feedback message sent by the third virtual device according to the second message, where the feedback message includes data obtained by the third virtual device according to the second message.
The mashup unit 16 is configured to mashup data in the feedback message received by the second receiving unit.
The second sending unit 17 is configured to send the mashup result to the first virtual device.
The M2M system of the embodiment of the invention deploys a semantic engine and a mashup engine in each virtual device through decentralized structural design, after receiving a query or control message sent by an upper layer virtual device, searches the lower layer virtual device associated with the semantic engine through the semantic engine, then collects data of the lower layer virtual device, and performs mashup on the collected data through the mashup engine, so that mashup data can be realized in the M2M system.
Optionally, as an embodiment, the connection between the first virtual device and the second virtual device 10 is a peer P2P connection, and the connection between the second virtual device 10 and the third virtual device is a P2P connection.
Optionally, as an embodiment, the first virtual device includes a first semantic engine and a first mashup engine, and the third virtual device includes a third semantic engine and a third mashup engine.
Optionally, as an embodiment, when the first virtual device and the second virtual device 10 are in the same physical device, the first mashup engine and the second mashup engine are the same; or, when the second virtual device 10 and the third virtual device are in the same physical device, the second mashup engine and the third mashup engine are the same.
Optionally, as an embodiment, the semantic relation is: define, associate, or control.
Optionally, as an embodiment, the semantic relationship adopts a recording manner of an RDF triple of the resource description framework.
The apparatus for mashup data in the M2M system according to the embodiment of the present invention may correspond to the method in fig. 1 in the embodiment of the present invention, and each unit/module in the apparatus and the other operations and/or functions described above are respectively for implementing corresponding processes of each virtual apparatus in fig. 1 and fig. 2 to fig. 10, and are not described herein again for brevity.
Fig. 12 is a block diagram of a mashup data device in the M2M system according to an embodiment of the present invention. The apparatus 20 of fig. 12 comprises a transmitter 21, a receiver 22, a processor 23 and a memory 24. Processor 23 controls the operation of apparatus 20 and may be used to process signals. Memory 24 may include both read-only memory and random access memory and provides instructions and data to processor 23. The transmitter 21 and the receiver 22 may be coupled to an antenna 21. The various components of device 20 are coupled together by a bus system 25, where bus system 25 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 25 in the figures.
The method disclosed in the above embodiments of the present invention may be applied to the processor 23, or implemented by the processor 23. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 23. The processor 23 may be a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like that implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 24, and the processor 23 reads the information in the memory 24 and completes the steps of the method in combination with the hardware thereof.
Specifically, the receiver 22 may receive a first message sent by a first virtual device, where the first message is used to query or control data acquired by a second virtual device.
The processor 23 may perform semantic analysis on the first message received by the first receiving unit and determine the third virtual device according to the semantic relationship and a result of the semantic analysis.
The transmitter 21 may transmit a second message to the third virtual device, where the second message is used for querying or controlling data acquired by the third virtual device.
The receiver 22 may receive a feedback message sent by the third virtual device, where the feedback message includes data obtained by the third virtual device according to the second message.
The processor 23 may mashup the data in the feedback message.
The transmitter 21 may send the mashup result to the first virtual device.
The M2M system of the embodiment of the invention deploys a semantic engine and a mashup engine in each virtual device through decentralized structural design, after receiving a query or control message sent by an upper layer virtual device, searches the lower layer virtual device associated with the semantic engine through the semantic engine, then collects data of the lower layer virtual device, and performs mashup on the collected data through the mashup engine, so that mashup data can be realized in the M2M system.
Optionally, as an embodiment, the connection between the first virtual device and the second virtual device is a peer-to-peer P2P connection, and the connection between the second virtual device and the third virtual device is a P2P connection.
Optionally, as an embodiment, the first virtual device includes a first semantic engine and a first mashup engine, and the third virtual device includes a third semantic engine and a third mashup engine.
Optionally, as an embodiment, when the first virtual device and the second virtual device are in the same physical device, the first mashup engine and the second mashup engine are the same; or, when the second virtual device and the third virtual device are in the same physical device, the second mashup engine and the third mashup engine are the same.
Optionally, as an embodiment, the semantic relationship may be: define, associate, or control.
Optionally, as an embodiment, the semantic relationship adopts a recording manner of an RDF triple of the resource description framework.
The device for mashup data in the M2M system according to the embodiment of the present invention may correspond to the method in fig. 1 in the embodiment of the present invention, and each unit/module and the other operations and/or functions in the device are respectively for implementing the corresponding process of each virtual device in fig. 1 to fig. 10, and are not described herein again for brevity.
It should be understood that the sequence numbers of the steps in the flow do not constitute the restriction or limitation of the chronological order of execution of the steps.
M2M can be applied in different scenarios in different industries, such as healthcare, transportation, energy, security and monitoring, home automation and control, etc. The embodiment of the invention is only exemplified by applying the M2M in a home environment.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
It should be understood that in the present embodiment, "B corresponding to a" means that B is associated with a, from which B can be determined. It should also be understood that determining B from a does not mean determining B from a alone, but may be determined from a and/or other information.
In addition, the terms "system" and "network" are often used interchangeably herein. It should be understood that the term "and/or" herein is merely one type of association relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Claims (12)
1. A method for mashup data mashup in a machine-to-machine (M2M) system, wherein the M2M system comprises a first virtual device, a second virtual device and a third virtual device, the second virtual device comprises a second semantic engine and a second mashup engine, and the second semantic engine only stores semantic relationships between the second virtual device and the third virtual device, wherein the method comprises the following steps:
the second virtual device receives a first message sent by the first virtual device, wherein the first message is used for inquiring or controlling data acquired by the second virtual device;
the second semantic engine of the second virtual device semantically analyzes the first message;
determining the third virtual device according to the semantic relation and the result of the semantic analysis;
the second virtual device sends a second message to the third virtual device, wherein the second message is used for inquiring or controlling data acquired by the third virtual device;
the second virtual device receives a feedback message sent by the third virtual device, wherein the feedback message comprises data obtained by the third virtual device according to the second message;
the second mashup engine of the second virtual device mashup the data in the feedback message;
and the second virtual device sends the mashup result to the first virtual device.
2. The method of claim 1, wherein the connection between the first virtual device and the second virtual device is a peer-to-peer P2P connection, and the connection between the second virtual device and the third virtual device is a P2P connection.
3. The method of claim 1 or 2, wherein the first virtual device comprises a first semantic engine and a first mashup engine, and the third virtual device comprises a third semantic engine and a third mashup engine.
4. The method of claim 3,
when the first virtual device and the second virtual device are in the same physical device, the first mashup engine and the second mashup engine are the same; or,
and when the second virtual device and the third virtual device are in the same physical device, the second mashup engine and the third mashup engine are the same.
5. The method of claim 1 or 2, wherein the semantic relationship is: define, associate, or control.
6. The method of claim 1 or 2, wherein the semantic relationship is in the form of a record of a Resource Description Framework (RDF) triple.
7. A device for mashup data mixing in a machine-to-machine M2M system, wherein the M2M system comprises a first virtual device, a second virtual device and a third virtual device, the second virtual device comprises a second semantic engine and a second mashup engine, and the second semantic engine only stores semantic relationships between the second virtual device and the third virtual device, wherein the second virtual device comprises:
a first receiving unit, configured to receive a first message sent by the first virtual device, where the first message is used to query or control data acquired by the second virtual device;
the second semantic engine unit is used for performing semantic analysis on the first message received by the first receiving unit;
the determining unit is used for determining the third virtual equipment according to the semantic relation and the semantic analysis result obtained by the second semantic engine unit;
a first sending unit, configured to send a second message to the third virtual device obtained by the determining unit, where the second message is used to query or control data acquired by the third virtual device;
a second receiving unit, configured to receive a feedback message sent by the third virtual device according to the second message, where the feedback message includes data obtained by the third virtual device according to the second message;
the mashup engine unit is used for mashup processing on the data in the feedback message received by the second receiving unit;
and the second sending unit is used for sending the result obtained by the mashup to the first virtual device.
8. The device of claim 7, wherein the connection between the first virtual device and the second virtual device is a peer-to-peer P2P connection, and the connection between the second virtual device and the third virtual device is a P2P connection.
9. The device of claim 7 or 8, wherein the first virtual device comprises a first semantic engine and a first mashup engine, and the third virtual device comprises a third semantic engine and a third mashup engine.
10. The apparatus of claim 9,
when the first virtual device and the second virtual device are in the same physical device, the first mashup engine and the second mashup engine are the same; or,
and when the second virtual device and the third virtual device are in the same physical device, the second mashup engine and the third mashup engine are the same.
11. The apparatus of claim 7 or 8, wherein the semantic relationship is: define, associate, or control.
12. The apparatus of claim 7 or 8, wherein the semantic relationship is in the form of a record of a Resource Description Framework (RDF) triple.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510366433.3A CN106303916B (en) | 2015-06-26 | 2015-06-26 | The method and apparatus of mashed up data in machine to machine system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510366433.3A CN106303916B (en) | 2015-06-26 | 2015-06-26 | The method and apparatus of mashed up data in machine to machine system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106303916A CN106303916A (en) | 2017-01-04 |
CN106303916B true CN106303916B (en) | 2019-09-13 |
Family
ID=57651258
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510366433.3A Active CN106303916B (en) | 2015-06-26 | 2015-06-26 | The method and apparatus of mashed up data in machine to machine system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106303916B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103270722A (en) * | 2011-01-10 | 2013-08-28 | 阿尔卡特朗讯 | Deployment of services on a set of real objects with automatic matching |
WO2014125119A1 (en) * | 2013-02-18 | 2014-08-21 | Nec Europe Ltd. | Method and system for generating a virtual thing for a machine-to-machine application and a method and system for providing a result of a virtual thing to a machine-to-machine application |
EP2840813A1 (en) * | 2013-08-22 | 2015-02-25 | Korea Advanced Institute Of Science And Technology | Service method and system using instance interface of virtualization object in internet of things environment |
-
2015
- 2015-06-26 CN CN201510366433.3A patent/CN106303916B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103270722A (en) * | 2011-01-10 | 2013-08-28 | 阿尔卡特朗讯 | Deployment of services on a set of real objects with automatic matching |
WO2014125119A1 (en) * | 2013-02-18 | 2014-08-21 | Nec Europe Ltd. | Method and system for generating a virtual thing for a machine-to-machine application and a method and system for providing a result of a virtual thing to a machine-to-machine application |
EP2840813A1 (en) * | 2013-08-22 | 2015-02-25 | Korea Advanced Institute Of Science And Technology | Service method and system using instance interface of virtualization object in internet of things environment |
Also Published As
Publication number | Publication date |
---|---|
CN106303916A (en) | 2017-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Alaya et al. | Toward semantic interoperability in oneM2M architecture | |
CN108289110B (en) | Device association method and device, terminal device and operating system | |
CN103283257B (en) | The most remotely control equipment and the method for peripheral unit | |
US20180262391A1 (en) | System and method for developing run time self-modifying interaction solution through configuration | |
WO2020206693A1 (en) | Smart home scheduling method, apparatus and system, server and storage medium | |
CN107948231B (en) | Scene-based service providing method, system and operating system | |
Ganz et al. | Context-aware management for sensor networks | |
CN104898591A (en) | Intelligent household appliance cooperation control method | |
CN102820988A (en) | Household appliance control method and system | |
CN106713088A (en) | Method and system for controlling intelligent home equipment based on double mqtt servers | |
KR102036420B1 (en) | Managing application relationships in machine-to-machine systems | |
CN103023681A (en) | Smart home control device and updating method | |
CN110099369B (en) | Method and device for processing information in M2M | |
WO2013113138A1 (en) | Cloud air-conditioning system based on internet of things and cloud computing, and application method thereof | |
Mainetti et al. | A location-aware architecture for heterogeneous building automation systems | |
Kravchenko et al. | Technology analysis for smart home implementation | |
CN104834649B (en) | It can realize the smart machine and multiple-equipment team working method of more equipment collaborations | |
CN101197724A (en) | Long-range control system and method for information household electrical appliance in IGRS household network based on IPv6 | |
TWI738832B (en) | Scene-based application operation method, device, terminal equipment and operating system | |
Belli et al. | Connectivity Standards Alliance Matter: State of the art and opportunities | |
CN110326315A (en) | First communication equipment, the network equipment and wherein for identification provide semantic expressiveness at least one the second communication equipment method | |
Vastardis et al. | A user behaviour-driven smart-home gateway for energy management | |
CN106303916B (en) | The method and apparatus of mashed up data in machine to machine system | |
WO2013074066A1 (en) | Scalable networked device dynamic mapping | |
KR20120112523A (en) | Electronic device and operating method of the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |