WO2015127646A1 - Apparatus and communication device for semantic hybrid clustering, and semantic hybrid clustering method - Google Patents
Apparatus and communication device for semantic hybrid clustering, and semantic hybrid clustering method Download PDFInfo
- Publication number
- WO2015127646A1 WO2015127646A1 PCT/CN2014/072704 CN2014072704W WO2015127646A1 WO 2015127646 A1 WO2015127646 A1 WO 2015127646A1 CN 2014072704 W CN2014072704 W CN 2014072704W WO 2015127646 A1 WO2015127646 A1 WO 2015127646A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- resource
- semantic
- message
- csf
- uri
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 86
- 238000004891 communication Methods 0.000 title claims abstract description 38
- 238000012545 processing Methods 0.000 claims abstract description 173
- 230000002776 aggregation Effects 0.000 claims description 65
- 238000004220 aggregation Methods 0.000 claims description 65
- 230000008569 process Effects 0.000 claims description 28
- 230000007812 deficiency Effects 0.000 abstract 1
- 238000009396 hybridization Methods 0.000 description 58
- 238000010586 diagram Methods 0.000 description 15
- 238000004325 capillary sieving electrophoresis Methods 0.000 description 6
- 238000012544 monitoring process Methods 0.000 description 5
- 230000004931 aggregating effect Effects 0.000 description 4
- 238000007726 management method Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000013523 data management Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 230000036772 blood pressure Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000015271 coagulation Effects 0.000 description 1
- 238000005345 coagulation Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
- H04L63/101—Access control lists [ACL]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/08—Access security
- H04W12/086—Access security using security domains
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/70—Services for machine-to-machine communication [M2M] or machine type communication [MTC]
Definitions
- the processor is further configured to perform an update process on the at least one CSF stored resource according to the first message received by the receiver, to enable at least one The resource stored in the CSF has no access permission restriction on the semantic engine, and the at least one CSF is a CSF corresponding to the storage location of the URI in the permission status list;
- a sending unit configured to send a first message to the AE, where the first message includes: a permission status list generated by the generating unit, and information indicating that the resource is not authorized to acquire the resource;
- the sending unit is further configured to send the processing result obtained by the hybrid processing unit to the AE.
- the device also includes:
- an ending unit configured to end processing the semantic request according to the second message received by the receiving unit.
- the permission status list further includes: a device for semantic hybridization, for each resource in the permission status list An access authority status, and the means for semantic hybridization obtain a semantic description of the resource processing result.
- the receiving unit is further configured to: after the sending unit sends the resource, receive a processing result of the resource hybrid processing by the semantic engine.
- the device further includes: a determining unit, configured to determine whether the resource can be aggregated and processed;
- the sending unit is further used to
- the device further includes: an updating unit, configured to update, according to the first message received by the receiving unit, the at least one CSF stored resource, so that at least The resource stored in one CSF has no access permission restriction on the semantic engine, and the at least one CSF is a CSF corresponding to the storage location of the URI in the permission status list;
- the sending unit is further configured to: after the updating unit updates the resource stored in the at least one CSF, send a third message to the semantic engine, where the third message is used to enable the semantic engine from the Obtaining the resource in a URI of the permission status list, where the third message includes: information used to notify the semantic engine that the resource has the right to acquire the URI.
- the permission status list further includes: the semantic engine accessing each resource in the permission status list a state, and the semantic engine obtains a semantic description of the resource processing result.
- an embodiment of the present invention provides a method for semantic hybridization, including:
- the semantic engine receives a semantic request sent by the application entity AE, where the semantic request includes: information used to represent the result of acquiring the resource processing;
- the semantic engine discovers, in a general service entity CSE where the semantic engine is located, at least one universal service function module CSF that stores the resource, and receives the resource in the CSF sent by the at least one CSF.
- Universal resource identifier URI Universal resource identifier
- the semantic engine receives the resource sent by the AE according to the first message, where the resource is obtained by the AE from the URI;
- the semantic engine performs a hybrid processing on the resource to obtain a processing result of the resource, and sends the processing result to the AE.
- the method further includes:
- the semantic engine ends processing the semantic request according to the second message.
- the method also includes:
- the method before the step of the semantic engine performing the hybridization processing on the resource, the method further includes:
- the semantic engine determines the access rights of the resources in the at least one CSF, the resources are obtained from the URIs sent by the CSF.
- an embodiment of the present invention provides a method for semantic hybridization, including:
- the application entity AE sends a semantic request to the semantic engine, the semantic request comprising: information for indicating a result of acquiring the resource processing; the semantic request for causing the semantic engine to find at least the storage of the resource in the general service entity CSE a universal service function module CSF, and a universal resource identifier URI that receives resources in the CSF sent by the at least one CSF; Receiving, by the AE, the first message sent by the semantic engine, where the first message is sent by the semantic engine after determining that the access authority does not have the access rights of the resources in the at least one CSF, where the first message includes: The semantic engine determines a permission status list of the resource generated when the access authority of the resource in the at least one CSF is not available, and information indicating that the resource is not authorized to acquire the resource; the permission status list includes: The URI of the resource;
- the AE acquires a resource according to the first message by using a URI of the permission status list, and sends the resource to the semantic engine, so that the semantic engine performs a hybrid processing on the resource; The result of processing by the semantic engine for the resource shuffling process.
- the method before the step of sending the resource to the semantic engine, the method further includes:
- the AE determines that the resource cannot be processed by aggregating.
- the method further includes:
- the AE determines to be capable of aggregating the resource, and transmitting a second message to the semantic engine, the second message being used to cause the semantic engine to end the processing of the semantic request.
- the AE performs an update process on the at least one CSF stored resource according to the first message, so that the resource stored in the at least one CSF has no access permission to the semantic engine, and the at least one CSF is the permission status.
- the URI in the list corresponds to the CSF of the storage location;
- the AE sends a third message to the semantic engine, where the third message is used to enable the semantic engine to obtain the resource from a URI of the permission status list, where the third message includes:
- the semantic engine has permission to obtain information about the resources of the URI.
- the permission status list further includes: the semantic engine accessing each resource in the permission status list a state, and the semantic engine obtains a semantic description of the resource processing result.
- the apparatus for semantic hybridization, the communication device, and the semantic hybridization method of the embodiment of the present invention generate a permission state of a URI including a resource when the semantic engine does not have access rights of a resource of the CSF. List, and send the permission status list to the AE, so that the AE obtains the resource, and sends the acquired resource to the semantic engine, and then the semantic engine performs the resource according to the AE.
- the hybridization process whereby the semantic engine can complete semantic aggregation without the access rights of some or some resources required for the aggregation, and can obtain accurate aggregation results, and solve the semantics in the prior art.
- the hybridization does not have access rights to the resource, the problem of the semantic aggregation process cannot be completed.
- FIG. 3 is a deployment scenario diagram of an M2M in the prior art
- FIG. 4 is a schematic structural diagram of an apparatus for semantic hybridization according to an embodiment of the present invention
- FIG. 5 is a schematic structural diagram of a communication device according to an embodiment of the present invention
- FIG. 6 is a schematic structural diagram of an apparatus for semantic hybridization according to another embodiment of the present invention
- FIG. 7 is a schematic structural diagram of a communication apparatus according to another embodiment of the present invention.
- FIG. 8 is a schematic flowchart of a method for semantic hybridization according to an embodiment of the present invention. detailed description
- OneM2M for machine communication can be understood as the open standard of the M2M communication service layer provided by the current standards organization. According to oneM2M, a future network integrating various devices and services can be established, so that M2M services can interoperate and M2M applications can share the basics. Business is implemented independently of the network.
- FIG. 1 shows the architecture of the existing M2M.
- the architecture of the M2M is compliant with the oneM2M standard.
- the M2M application entity Application Entity, AE for short
- the M2M Common Service Entity CSE.
- Communication via Mca reference point CSE in the Filed Domain communicates with the CSE of the Infrastructure Domain through the Mcc reference point, on the infrastructure node of the different Service Providers (Infrastructure nodes) CSE, through Mcc, reference point communication;
- CSE communicates with the Underlying Network Service Entity (NSE) through the Men reference point.
- NSE Underlying Network Service Entity
- AE is used to provide application logic for end-to-end M2M solutions.
- AEs can be used for remote blood pressure monitoring, remote meter reading, and more.
- the CSE includes a set of oneM2M defined service functions that pass the Mca and Mcc reference points. Open to other entities.
- the services provided by CSE include: Data Management, Device Management, M2M Subscription Management (M2M Subscription)
- CSE Location Services
- CSF Location Services
- the NSE provides services to the CSE. These include: device management, location services and device triggering.
- Field Domain Consists of M2M terminals, M2M gateways, sensing and stimulus (S&A) devices, and M2M local area networks.
- Mca reference point The interface between the M2M application and the CSE. This Mca reference point enables M2M applications to use the services (capabilities) provided by the CSE and enables the CSE to communicate with the application in reverse.
- the services provided through the Mca reference point depend on the functions supported by the CSE, and the application and CSE are not necessarily on the same physical device.
- Mcc reference point The interface for communication between CSEs.
- the Mcc reference point is used to implement a CSE that can use the functionality provided by another CSE (this feature can be the CSE itself does not have).
- the Mcc reference point between the two CSEs needs to be supported by different M2M physical entities.
- Men reference point It is the interface between the CSE and the bearer network of the service layer, enabling the CSE to use the bearer network to provide services to the upper layer.
- the service referred to here is different from the service carrying the network (the information exchanged between any two M2M physical nodes will use the transmission and connectivity services by default, and these services are regarded as the basic network services).
- Figure 3 shows the deployment scenario graph supported by M2M, including the application-specific node (Application
- ADN Dedicated Node
- ASN Application Service Node
- MN Middle Node
- I Infrastructure Node
- Node-less AE Five functional entities, according to the definition of Node, can be a functional entity containing one or more M2M applications, or a functional entity containing one CSE and any number of M2M applications (including 0).
- the ADN and ASN can communicate with the MN and communicate with the IN through it, or directly with the IN without the MN.
- each resource stored in the CSE has different access rights for different applications, CSEs for storing resources, and other CSEs for CSEs.
- CSE for data in DMR (a CSF in CSE), CSE (or DMR) is only used for data storage and transmission, and is agnostic to the data content.
- the semantic engine module also has access rights for data stored in the CSE.
- the platform CSE
- the platform needs to analyze the patient's recipe by obtaining and analyzing the measurements of the thermometer and the indoor thermometer, but the measured data of the thermometer includes the identity, health status, etc. Privacy information, which is not readable by the platform.
- FIG. 4 is a schematic structural diagram of an apparatus for semantic hybridization according to an embodiment of the present invention.
- the apparatus for semantic hybridization of the embodiment includes: a transmitter 41, a receiver 42 and Processor 43 ;
- the receiver 42 is configured to receive a semantic request sent by the AE, where the semantic request includes: information used to indicate that the resource processing result is obtained;
- the processor 43 is configured to discover, in the CSE, at least one CSF storing the resource according to the semantic request received by the receiver 42;
- the receiver 42 is further configured to receive a URI of a resource in the CSF sent by the at least one CSF;
- the processor 43 is further configured to determine whether an access right of the resource in the at least one CSF is determined, and when determining that the access right of the resource in the at least one CSF is not available, generating a permission status of the resource a list, the permission status list includes: a URI of the resource;
- the transmitter 41 is configured to send a first message to the AE, where the first message includes: a permission status list generated by the processor 43, and information indicating that the resource is not authorized to acquire the resource;
- the receiver 42 is configured to: after the transmitter 41 sends the first message, receive the resource that is sent by the AE according to the first message, where the resource is obtained by the AE from the URI ;
- the processor 43 is further configured to perform a hybrid processing on the resource received by the receiver 42 to obtain a processing result of the resource.
- the transmitter 41 is further configured to send the processing result obtained by the processor 43 to the AE.
- the foregoing permission status list may further include: an access authority status of each resource in the permission status list by means for semantic hybridization, and the device for semantic aggregation to obtain resource processing result Semantic description.
- the permission status list generally includes: a URI of all resources, and an access authority status of each resource in the permission status list by means for semantic hybridization, the semantics
- the hybrid device obtains a semantic description of the resource processing results.
- the permission status list may include: a URI of all resources, and an access authority for each resource in the permission status list by means for semantic hybridization State, the virtual device obtains a semantic description of the resource processing result, and the like.
- This embodiment is for illustrative purposes only, and does not limit the specific form of the privilege state list.
- the privilege state list may include other content and the like according to actual needs.
- the receiver 42 is further configured to: after the transmitter 41 sends the first message, receive a second message sent by the AE, where the second message is determined to be obtainable by the AE a resource in the URI and a message aggregated when the resource is processed, for causing the semantic engine to end processing of the semantic request;
- the receiver 42 is further configured to: after the transmitter 41 sends the first message, receive a third message sent by the AE according to the first message, The third message includes: information for notifying the semantic engine that the resource of the URI is authorized to acquire the URI;
- the resource is obtained in the URI.
- the processor 43 when the processor 43 is further configured to determine an access right of a resource in the at least one CSF, the resource is obtained from a URI sent by the CSF.
- the above device for semantic hybridization can complete semantic aggregation when there is no access right of some or some resources required for mixing, and can obtain accurate mixing result, and solve the prior art.
- the semantic aggregation does not have access rights to the resource, the problem of the semantic aggregation process cannot be completed.
- the apparatus for semantic hybridization in the above embodiment can implement the flow of the embodiment shown in Figs. 8A to 10 of the present invention described below.
- the communication device of this embodiment includes: a transmitter 51, a receiver 52, and a processor 53;
- the transmitter 51 is configured to send a semantic request to a semantic engine, where the semantic request includes: information used to represent a result of acquiring a resource processing; the semantic request is used to cause the semantic engine to discover and store the information in a CSE At least one CSF of the resource, and a URI that receives the resource in the CSF sent by the at least one CSF;
- the receiver 52 is configured to receive, after the transmitter 51 sends the semantic request, a first message sent by the semantic engine, where the first message is determined by the semantic engine not to have the at least one CSF After the access permission of the resource is sent, the first message includes: a permission status list of the resource generated when the semantic engine determines that the access authority of the resource in the at least one CSF is not used, and is used for Indicates that the resource has no permission to acquire the information; the permission status list includes: a URI of the resource;
- the processor 53 is configured to acquire a resource by using a URI of the permission status list according to the first message received by the receiver 52, where the transmitter 51 is configured to send the resource acquired by the processor.
- the semantic engine to cause the semantic engine to perform a hybrid processing on the resource;
- the receiver 52 is configured to receive, after the transmitter 51 sends the resource, a processing result of the resource hybrid processing by the semantic engine.
- the processor 53 is further configured to determine whether the resource can be mixed and processed.
- the foregoing permission status list may further include: a semantic authority's access authority status for each resource in the permission status list, and a semantic description of the semantic engine obtaining resource processing result.
- the permission status list generally includes: a URI of all resources, and an access authority status of each resource in the permission status list by the semantic engine, and the semantic engine acquires semantics of the resource processing result description.
- the permission status list may be set according to actual needs.
- the transmitter 51 is further configured to: when the processor 53 determines that the resource can be mixed and processed, send a second message to the semantic engine, where the second Eliminate The message is used to cause the semantic engine to end the processing of the semantic request.
- the processor 53 is further configured to: perform update processing on the at least one CSF stored resource according to the first message received by the receiver 52, to enable the at least one CSF.
- the stored resource has no access permission restriction on the semantic engine, and the at least one CSF is a CSF corresponding to the storage location of the URI in the permission status list;
- the transmitter 51 is further configured to send, after the processor 53 update processing, a third message to the semantic engine, where the third message is used to obtain the semantic engine from a URI of the permission status list
- the resource, the third message includes: information used to notify the semantic engine that the resource of the URI is authorized to acquire the URI.
- the above communication device interacts with the device for semantic hybridization in the embodiment of the present invention, so that the device for semantic hybridization can complete the access permission of one or some resources required for the aggregation. Semantic cohesion, and can obtain accurate hybridization results, and solve the problem that the semantic mixing in the prior art does not have the access permission of the resource, and the process of semantic aggregation cannot be completed.
- the communication device in the above embodiment can implement the flow of the embodiment shown in Figs. 11 and 12 of the present invention described below.
- FIG. 6 is a schematic structural diagram of an apparatus for semantic hybridization according to an embodiment of the present invention.
- the apparatus for semantic hybridization according to an embodiment of the present invention includes: a receiving unit 61, a discovery unit 62. a determining unit 63, a generating unit 64, a sending unit 65, and a mixing processing unit 66.
- the receiving unit 61 is configured to receive a semantic request sent by the AE, where the semantic request includes: information used to indicate a result of acquiring the resource processing;
- the discovery unit 62 is configured to discover, according to the semantic request, at least one CSF storing the resource in a CSE where the semantic hybrid is located;
- the receiving unit 61 is configured to receive a URI of a resource in the CSF sent by at least one CSF discovered by the discovery unit 62;
- the determining unit 63 is configured to determine whether the at least one received by the receiving unit 61 is received
- the generating unit 64 is configured to generate, when the determining unit 63 determines that the access right of the resource in the at least one CSF is not available, the permission status list of the resource, where the permission status list includes: a URI of the resource;
- the sending unit 65 is configured to send a first message to the AE, where the first message includes: a privilege state list generated by the unit 64, and information for indicating that the resource is not privileged to acquire the resource; the receiving unit 61 is configured to receive the resource that is sent by the AE according to the first message, where the resource is The AE is obtained from the URI of the permission status list of the first message sent by the sending unit 65;
- the hybrid processing unit 66 is configured to perform a hybrid processing on the resource received by the receiving unit 61 to obtain a processing result of the resource.
- the foregoing permission status list may further include: a semantic authority's access authority status for each resource in the permission status list, and a semantic description of the semantic engine obtaining resource processing result.
- the semantic engine sends a first message to the AE, where the first message includes: a permission status list, and information used to indicate that the resource is not authorized to acquire.
- the AE obtains the temperature value and the humidity value pointed to by the URI in the access authority status list through RETREIVE.
- RETREIVE is a specific way of obtaining resources.
- the first virtual device created by the semantic engine in the foregoing step 413 invokes multiple temperature values and multiple humidity values sent by the foregoing AE to perform a hybrid processing, and obtains a processing result, that is, an uncomfortable index in the room;
- the first virtual device can invoke the resource sent by the foregoing AE.
- the first virtual device described above may have a function for calculating comfort, that is, having a function of calling resources in the semantic engine, using these resources as input, and acquiring the comfort of the room according to a certain method.
- the foregoing permission status list includes: a URI of all resources, and an access authority status of the semantic engine for each resource, and a semantic description of the semantic engine obtaining resource processing result.
- the permission status list may include: a URI that the semantic engine does not have access to the resource, and a URI that the semantic engine has permission to access the resource.
- This embodiment is for illustrative purposes only.
- the specific form of the permission status list is not limited.
- the permission status list is set according to actual needs.
- the semantic engine sends a first message to the AE, where the first message includes: a permission status list, and information used to indicate that the resource is not authorized to acquire the resource;
- the semantic engine ends processing the semantic request according to the second message.
- the processing process of the semantic request by the semantic engine may be ended.
- the semantic engine finds, according to the semantic request, at least one CSF that stores the resource in a CSE where the semantic engine is located, and receives a URI of a resource in the CSF sent by the at least one CSF;
- the semantic engine determines that the access right of the resource in the at least one CSF is not available, generating a permission status list of the resource, where the permission status list includes: a URI of the resource.
- the privilege status list includes: a URI of all resources, and an access authority status of the semantic engine for each resource, and a semantic description of the semantic engine obtaining resource processing results.
- the permission status list may include: a URI that the semantic engine does not have access to the resource, and a URI that the semantic engine has permission to access the resource.
- the permission status list may include: a URI of all resources, and an access authority status of each resource in the permission status list by the semantic engine, the virtual The device is used to obtain semantic descriptions of resource processing results and so on.
- This embodiment is for illustrative purposes only.
- the specific form of the permission status list is not limited.
- the permission status list is set according to actual needs.
- the semantic engine sends a first message to the AE, where the first message includes: a permission status list, and information used to indicate that the resource is not authorized to acquire the resource;
- the semantic engine receives a third message that is sent by the AE according to the first message, where the third message includes: information used to notify the semantic engine that the resource of the URI is authorized to acquire the URI.
- the AE may update the access authority information of the resources in the CSF, so that the resources in the CSF open the authority to the semantic engine, and then send the third message to the semantic engine.
- Update is an operation of the aforementioned RESTful architecture for updating the attributes of resources or resources.
- the semantic engine acquires the resource from the URI according to the third message.
- the semantic engine performs a hybrid processing on the obtained resource, obtains a processing result of the resource, and sends the processing result to the AE.
- step 1007a when the semantic engine has access rights to some resources in the CSF, the foregoing method is in the step Prior to 1007, step 1007a, not shown in the following figures, may also be included:
- the semantic engine determines the access rights of the resources in the at least one CSF, the resources are obtained from the URIs sent by the CSF.
- the semantic aggregation method in this embodiment sends the URI of the resource in the CSF to the AE by the semantic engine when the access authority of the CSF-free resource is not used, so that the AE updates the resource in the CSF, so that the semantic engine can acquire the CSF.
- the stored resource, and the semantic engine obtains the resource from the URI sent by the CSF according to the third message, and performs the hybrid processing; thus, the semantic engine does not have the access permission of one or some resources required for the hybridization.
- FIG. 11 is a schematic flowchart diagram of a method for semantic hybridization according to an embodiment of the present invention. As shown in FIG. 11, a method for semantic hybridization according to an embodiment of the present invention is as follows.
- the AE sends a semantic request to the semantic engine, where the semantic request includes: information for indicating a result of acquiring the resource processing; the semantic request is used to cause the semantic engine to discover at least one CSF storing the resource in the CSE, And receiving a URI of a resource in the CSF sent by the at least one CSF;
- the first message is sent by the AE after the semantic engine determines that the access authority does not have the access rights of the resources in the at least one CSF, and the first message includes:
- the semantic engine determines a permission status list of the resource generated when the access authority of the resource in the at least one CSF is not available, and information indicating that the resource is not authorized to acquire the resource;
- the permission status list includes: The URI of the resource.
- the privilege status list includes: a URI of all resources, and an access authority status of the semantic engine for each resource, and a semantic description of the semantic engine obtaining resource processing results.
- the permission status list may include: a URI of all resources, and an access authority status of each resource in the permission status list by the semantic engine, the virtual The device is used to obtain semantic descriptions of resource processing results and so on.
- the privilege state list may include other content and the like according to actual needs. 1103.
- the AE obtains a resource according to the first message by using a URI of the permission status list, and sends the resource to the semantic engine, so that the semantic engine performs a hybrid processing on the resource.
- the AE receives a processing result of the resource hybrid processing by the semantic engine.
- the method may further include the step 1103' not shown in the following figure:
- AE determines that the resource cannot be aggregated.
- the AE may send a second message to the semantic engine, where the second message is used to cause the semantic engine to end the Messages processed by semantic requests.
- the AE sends a semantic request to a semantic engine, where the semantic request includes: information used to represent a result of acquiring a resource processing; the semantic request is used to cause the semantic engine to discover at least one CSF that stores the resource in a CSE, And receiving a URI of a resource in the CSF sent by the at least one CSF;
- the AE receives the first message sent by the semantic engine, where the first message is sent after the semantic engine determines that the access authority does not have the access rights of the resources in the at least one CSF, where the first message includes: The semantic engine determines a permission status list of the resource generated when the access authority of the resource in the at least one CSF is not available, and information indicating that the resource is not authorized to acquire the resource; the permission status list includes: The URI of the resource.
- the privilege status list includes: a URI of all resources, and an access authority status of the semantic engine for each resource, and a semantic description of the semantic engine obtaining resource processing results.
- the permission status list may include: a URI that the semantic engine does not have access to the resource, and a URI that the semantic engine has permission to access the resource.
- the permission status list may include: a URI of all resources, and an access authority status of each resource in the permission status list by the semantic engine, the virtual The device is used to obtain semantic descriptions of resource processing results and so on.
- the privilege state list may include other content and the like according to actual needs. 1203.
- the AE performs an update process on the at least one CSF stored resource according to the first message, so that the resource stored in the at least one CSF has no access permission to the semantic engine, and the at least one CSF is the permission state.
- the URI in the list corresponds to the CSF of the storage location;
- the AE sends a third message to the semantic engine, where the third message is used to enable the semantic engine to obtain the resource from a URI of the permission status list, where the third message includes:
- the semantic engine has permission to obtain information about the resources of the URI.
- the AE receives a processing result of the resource sent by the semantic engine, where the processing result is that after the semantic engine receives the third message, the resource of the URI is obtained, and the obtained resource is mixed and processed. owned.
- the semantic hybridization method in this embodiment can interact with the semantic engine through the communication device, so that the semantic engine can complete semantic aggregation when the access authority of one or some resources required for the aggregation is not available, and can Obtaining an accurate processing result solves the problem that the semantic aggregation of the prior art does not have the access permission of the resource, and the process of semantic aggregation cannot be completed.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Storage Device Security (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Provided are an apparatus and a communication device for semantic hybrid clustering, and a semantic hybrid clustering method. The method comprises: receiving, by a semantic engine, a semantic request sent by an AE, the semantic request comprising information for representing the acquisition of a processing result of a resource; discovering a CSF in a CSE according to the semantic request, and receiving a URI of the resource in the CSF which is sent by the CSF; when it is determined that there is no permission for accessing the resource in the CSF, generating a permission state list, the permission state list comprising the URI of the resource; sending a first message to the AE, the first message comprising the permission state list and information for representing that there is no permission for acquiring the resource; receiving the resource which is sent by the AE according to the first message; and conducting hybrid clustering processing on the resource to obtain a processing result of the resource, and sending the processing result to the AE. The method can overcome the deficiency in the prior art that the semantic engine is unable to obtain a resource to complete semantic hybrid clustering because it has no permission to access a resource.
Description
用于语义混聚的装置、 通信设备及语义混聚的方法 技术领域 Device, communication device and semantic hybridization method for semantic hybridization
本发明涉及通信技术, 尤其涉及一种用于语义混聚的装置、 通信设备及 语义混聚的方法。 背景技术 The present invention relates to communication technologies, and in particular, to a device for semantic hybridization, a communication device, and a method for semantic aggregation. Background technique
机器通信 (Machine-to-Machine Communications , 简称 Μ2Μ) 是一禾中以 机器智能交互为核心的、 网络化的应用与服务, 其通过在机器内部嵌入无线 或有线通信模块以及应用处理逻辑, 实现无需人工干预的数据通信, 以满足 用户对监控、 指挥调度、 数据采集和测量等方面的信息化需求。 Machine-to-Machine Communications (referred to as Μ2Μ) is a networked application and service centered on machine intelligence interaction. It realizes the need to embed wireless or wired communication modules and application processing logic inside the machine. Manually intervening data communication to meet the information needs of users in monitoring, command and dispatch, data acquisition and measurement.
Μ2Μ应用在不同的行业中,主要有医疗保健、运输、能源、安全和监控、 家庭自动化与控制等。 例如, 在能源行业中一个智能计量系统的设备部署方 案, 一些智能计量设备(如电表, 燃气表, 水表)通过网关连接到数据中心。 Μ2Μ is used in different industries, mainly including health care, transportation, energy, safety and monitoring, home automation and control. For example, in a smart metering system for equipment deployment in the energy industry, some smart metering devices (such as electricity meters, gas meters, water meters) are connected to the data center through a gateway.
通用服务实体(Common Services Entity,简称 CSE)是包含一组 oneM2M 标准的服务功能的服务实体, 该些服务实体可在逻辑上理解为 CSF。 在 oneM2M标准中,存储在 CSE中的各个资源对不同的应用,存储资源的 CSE, 其他 CSE, CSE中的各通用服务功能模块(Common Service Function , 简称 CSF)都设有不同的接入权限。例如, 对于数据管理 &存储(Data Management & Repository, 简称 DMR) (CSE中的一个 CSF)中的数据, DMR只用于数据 存储和传输, 对数据内容可能是不可知的。 A Common Service Entity (CSE) is a service entity that contains a set of service functions of the oneM2M standard, which can be logically understood as CSF. In the oneM2M standard, each resource stored in the CSE has different access rights to different applications, CSEs of storage resources, and other Common Service Functions (CSFs) in the CSE. For example, for data in Data Management & Repository (DMR) (a CSF in CSE), DMR is only used for data storage and transmission, and may be unknown to the data content.
目前, oneM2M标准提出在其所定义的 M2M系统中需要具备语义处理 能力, 例如语义引擎。 Currently, the oneM2M standard proposes semantic processing capabilities such as a semantic engine in its defined M2M system.
语义引擎可能是 CSE中一个单独的 CSF,也可能是 CSF中的一个子功能 模块 (例如, 是 DMR的一个子功能) 。 语义引擎提供的功能主要包括: 1 ) 根据语义模型验证语义属性; 2)执行语义查询, 例如将一个查询分解为若干 个子查询, 并将各个子查询的结果进行汇总。 The semantic engine may be a separate CSF in the CSE or a sub-function module in the CSF (for example, a sub-function of DMR). The functions provided by the semantic engine mainly include: 1) verifying semantic attributes according to semantic models; 2) performing semantic queries, such as decomposing a query into several sub-queries, and summarizing the results of each sub-query.
现有技术中提供了一种语义混聚的方法, 以环境监控为例, 家庭环境监 控的语义混聚方法包括: A method for semantic hybridization is provided in the prior art. Taking environmental monitoring as an example, a semantic aggregation method for home environment monitoring includes:
A101、 CSE接收 M2M设备发送的语义请求, 所述语义请求包括: 用于
咨询房间内不舒适指数的信息; A101. The CSE receives a semantic request sent by the M2M device, where the semantic request includes: Consult the information on the discomfort index in the room;
A102、 CSE内的语义引擎根据所述语义请求发现所述 CSE内的 CSF中 的成员资源; A102. The semantic engine in the CSE discovers the member resources in the CSF in the CSE according to the semantic request;
A103、 CSE内的 CSF将成员资源的通用资源标识符 (Uniform Resource Identifier, 简称 URI) 返回至语义引擎, 以使所述语义引擎根据所述 URI收 集计算不舒适指数所需要的温度信息和湿度信息; A103. The CSF in the CSE returns a Uniform Resource Identifier (URI) of the member resource to the semantic engine, so that the semantic engine collects temperature information and humidity information required to calculate the discomfort index according to the URI. ;
A104、 若 CSE根据 URI收集到所需要的温度信息和湿度信息, 计算温 度信息和湿度信息之后, 将计算结果发送 M2M设备。 A104. After the CSE collects the required temperature information and humidity information according to the URI, calculates the temperature information and the humidity information, and sends the calculation result to the M2M device.
然而, 大多的 URI对应的资源均有接入权限, 语义引擎不具有该 URI对 应资源的接入权限, 故无法收集到所需要的温度信息和湿度信息, 进而无法 获取不舒适指数。 However, most of the resources corresponding to the URI have access rights, and the semantic engine does not have access rights to the corresponding resources of the URI, so the required temperature information and humidity information cannot be collected, and the discomfort index cannot be obtained.
由此, 现有技术提供的语义混聚的方法中, 没有考虑资源接入权限的问 题。当 CSE不具有该资源的接入权限时,将无法完成上述的语义混聚的流程。 发明内容 本发明实施例提供一种用于语义混聚的装置、 通信设备及语义混聚的方 法, 用于解决现有技术中的语义引擎没有资源的接入权限而无法得到上述资 源以完成语义混聚的缺陷。 Therefore, in the method of semantic aggregation provided by the prior art, the problem of resource access rights is not considered. When the CSE does not have access rights to the resource, the above process of semantic aggregation cannot be completed. SUMMARY OF THE INVENTION Embodiments of the present invention provide a device for semantic hybridization, a communication device, and a method for semantic aggregation, which are used to solve the problem that the semantic engine in the prior art does not have access rights to resources and cannot obtain the above resources to complete semantics. Defects in mixing.
第一方面, 本发明实施例提供一种用于语义混聚的装置, 包括: 发射器、 接收器和处理器; In a first aspect, an embodiment of the present invention provides an apparatus for semantic hybridization, including: a transmitter, a receiver, and a processor;
其中, 所述接收器, 用于接收应用实体 AE发送的语义请求, 所述语义 请求包括: 用于表示获取资源处理结果的信息; The receiver is configured to receive a semantic request sent by an application entity AE, where the semantic request includes: information used to indicate that a resource processing result is obtained;
所述处理器, 用于根据所述接收器接收的所述语义请求在通用服务实体 CSE中发现存储所述资源的至少一个通用服务功能模块 CSF; The processor, configured to discover, in the general service entity CSE, at least one universal service function module CSF that stores the resource according to the semantic request received by the receiver;
所述接收器,还用于接收所述至少一个 CSF发送的所述 CSF中的资源的 通用资源标识符 URI; The receiver is further configured to receive a universal resource identifier URI of the resource in the CSF sent by the at least one CSF;
所述处理器, 还用于确定是否具有所述至少一个 CSF中的资源的接入权 限, 在确定不具有所述至少一个 CSF中的资源的接入权限时, 生成所述资源 的权限状态列表, 所述权限状态列表包括: 所述资源的 URI; The processor is further configured to determine whether an access right of the resource in the at least one CSF is determined, and when determining that the access right of the resource in the at least one CSF is not generated, generating a permission status list of the resource The permission status list includes: a URI of the resource;
所述发射器, 用于向所述 AE发送第一消息, 所述第一消息包括: 所述
处理器生成的权限状态列表, 和用于表示无权限获取所述资源的信息; 所述接收器, 用于在所述发射器发送所述第一消息之后, 接收所述 AE 根据所述第一消息发送的所述资源, 所述资源为所述 AE从所述 URI中获取 的; The transmitter is configured to send a first message to the AE, where the first message includes: a privilege state list generated by the processor, and information for indicating that the resource is not privileged to acquire the resource; the receiver, configured to receive the AE according to the first after the transmitter sends the first message The resource sent by the message, where the resource is obtained by the AE from the URI;
所述处理器, 还用于对所述接收器接收的资源进行混聚处理, 得到所述 资源的处理结果; The processor is further configured to perform a hybrid processing on the resources received by the receiver to obtain a processing result of the resources.
所述发射器, 还用于将所述处理器得到的处理结果发送所述 AE。 The transmitter is further configured to send the processing result obtained by the processor to the AE.
结合第一方面, 在第一种可能的实现方式中, 所述接收器, 还用于 在所述发射器发送所述第一消息之后, 接收所述 AE发送的第二消息, 所述第二消息为所述 AE确定能够获取所述 URI中的资源并混聚处理所述资 源时发送的, 用于使所述语义引擎结束对所述语义请求的处理的消息; With reference to the first aspect, in a first possible implementation, the receiver is further configured to: after the transmitter sends the first message, receive a second message sent by the AE, where the second a message for the AE to determine that a resource in the URI can be acquired and aggregated to process the resource, for causing the semantic engine to end processing of the semantic request;
所述处理器, 还用于根据所述接收器接收的第二消息结束对所述语义请 求的处理。 The processor is further configured to end processing the semantic request according to the second message received by the receiver.
结合第一方面, 在第二种可能的实现方式中, 所述接收器, 还用于 在所述发射器发送所述第一消息之后, 接收所述 AE根据所述第一消息 发送的第三消息, 所述第三消息包括: 用于通知所述语义引擎有权限获取所 述 URI的资源的信息; With reference to the first aspect, in a second possible implementation, the receiver is further configured to: after the transmitter sends the first message, receive a third that is sent by the AE according to the first message. a message, the third message includes: information used to notify the semantic engine that the resource of the URI is authorized to acquire the URI;
所述处理器, 还用于根据所述接收器接收的所述第三消息从所述 URI中 获取所述资源。 The processor is further configured to obtain the resource from the URI according to the third message received by the receiver.
结合第一方面, 在第三种可能的实现方式中, 所述处理器, 还用于 确定具有所述至少一个 CSF中的资源的接入权限时,从所述 CSF发送的 URI中获取所述资源。 With reference to the first aspect, in a third possible implementation, the processor, when used to determine an access right of a resource in the at least one CSF, obtain the URI from the CSF Resources.
结合第一方面及第一方面的其他可能的实现方式, 在第四种可能的实现 方式中, 所述权限状态列表还包括: 用于语义混聚的装置对所述权限状态列 表中每一资源的接入权限状态, 和所述用于语义混聚的装置获取资源处理结 果的语义描述。 With reference to the first aspect, and other possible implementation manners of the first aspect, in a fourth possible implementation, the privilege state list further includes: a device for semantic hybridization, each resource in the privilege state list The access authority status, and the means for semantic hybridization obtain a semantic description of the resource processing result.
第二方面, 本发明实施例提供一种通信设备, 包括: In a second aspect, an embodiment of the present invention provides a communications device, including:
发射器、 接收器和处理器; Transmitter, receiver and processor;
其中,所述发射器,用于向语义引擎发送语义请求,所述语义请求包括: 用于表示获取资源处理结果的信息; 所述语义请求用于使所述语义引擎在通
用服务实体 CSE中发现存储所述资源的至少一个通用服务功能模块 CSF, 以 及接收所述至少一个 CSF发送的所述 CSF中的资源的通用资源标识符 URI; 所述接收器, 用于在所述发射器发送所述语义请求之后, 接收所述语义 引擎发送的第一消息, 所述第一消息为所述语义引擎确定不具有所述至少一 个 CSF中的资源的接入权限之后发送的, 所述第一消息包括: 所述语义引擎 确定不具有所述至少一个 CSF中的资源的接入权限时生成的所述资源的权限 状态列表, 和用于表示无权限获取所述资源的信息; 所述权限状态列表包括: 所述资源的 URI; The transmitter is configured to send a semantic request to a semantic engine, where the semantic request includes: information used to represent a result of acquiring a resource processing; the semantic request is used to make the semantic engine pass Discovering, by the serving entity CSE, at least one universal service function module CSF storing the resource, and receiving a universal resource identifier URI of the resource in the CSF sent by the at least one CSF; the receiver, used in the After the transmitter sends the semantic request, receiving a first message sent by the semantic engine, where the first message is sent after the semantic engine determines that the access authority of the resource in the at least one CSF is not available, The first message includes: a permission status list of the resource generated when the semantic engine determines an access right of a resource in the at least one CSF, and information indicating that the resource is not authorized to acquire the resource; The permission status list includes: a URI of the resource;
所述处理器, 用于根据所述接收器接收的所述第一消息通过所述权限状 态列表的 URI获取资源; The processor, configured to acquire a resource by using a URI of the permission status list according to the first message received by the receiver;
所述发射器, 用于将所述处理器获取的所述资源发送所述语义引擎, 以 使所述语义引擎对所述资源进行混聚处理; The transmitter is configured to send the resource acquired by the processor to the semantic engine, so that the semantic engine performs a hybrid processing on the resource;
所述接收器, 用于在所述发射器发送所述资源之后, 接收所述语义引擎 对所述资源混聚处理的处理结果。 The receiver is configured to receive, after the transmitter sends the resource, a processing result of the resource cohesion processing by the semantic engine.
结合第二方面, 在第一种可能的实现方式中, 所述处理器, 还用于 确定是否能够混聚处理所述资源。 With reference to the second aspect, in a first possible implementation, the processor is further configured to determine whether the resource can be mixed and processed.
结合第二方面及第一种可能的实现方式, 在第二种可能的实现方式中, 所述发射器, 还用于 With reference to the second aspect and the first possible implementation manner, in a second possible implementation manner, the transmitter is further used to
在所述处理器确定能够混聚处理所述资源时, 向所述语义引擎发送第二 消息,所述第二消息用于使所述语义引擎结束对所述语义请求的处理的消息。 When the processor determines that the resource can be aggregatized, a second message is sent to the semantic engine, the second message being used to cause the semantic engine to end the processing of the semantic request.
结合第二方面, 在第三种可能的实现方式中, 所述处理器, 还用于 根据所述接收器接收的所述第一消息对至少一个 CSF存储的资源进行更 新处理, 以使至少一个 CSF中存储的资源对所述语义引擎无接入权限限制, 所述至少一个 CSF为所述权限状态列表中的 URI对应存储位置的 CSF; With reference to the second aspect, in a third possible implementation, the processor is further configured to perform an update process on the at least one CSF stored resource according to the first message received by the receiver, to enable at least one The resource stored in the CSF has no access permission restriction on the semantic engine, and the at least one CSF is a CSF corresponding to the storage location of the URI in the permission status list;
所述发射器, 还用于在所述处理器更新处理之后, 向所述语义引擎发送 第三消息, 所述第三消息用于使所述语义引擎从所述权限状态列表的 URI中 获取所述资源, 所述第三消息包括: 用于通知所述语义引擎有权限获取所述 URI的资源的信息。 The transmitter is further configured to send, after the processor update process, a third message to the semantic engine, where the third message is used to enable the semantic engine to obtain the URI from the privilege state list The third message includes: information used to notify the semantic engine that the resource of the URI is authorized to acquire the URI.
结合第二方面及第二方面的所有可能的实现方式, 在第四种可能的实现 方式中, 所述权限状态列表还包括: 所述语义引擎对所述权限状态列表中每
一资源的接入权限状态, 和所述语义引擎获取资源处理结果的语义描述。 第三方面, 本发明实施例提供一种用于语义混聚的装置, 包括: 接收单元, 用于接收应用实体 AE发送的语义请求, 所述语义请求包括: 用于表示获取资源处理结果的信息; With reference to the second aspect, and all possible implementation manners of the second aspect, in a fourth possible implementation, the privilege state list further includes: the semantic engine is configured in the privilege state list A resource access status, and the semantic engine obtains a semantic description of the resource processing result. In a third aspect, an embodiment of the present invention provides an apparatus for semantic hybridization, including: a receiving unit, configured to receive a semantic request sent by an application entity AE, where the semantic request includes: information used to represent a resource processing result ;
发现单元, 用于根据所述语义请求在所述语义混聚所在的通用服务实体 a discovery unit, configured to, according to the semantic request, a general service entity where the semantic aggregation is located
CSE中发现存储所述资源的至少一个通用服务功能模块 CSF; Detecting at least one universal service function module CSF storing the resource in the CSE;
所述接收单元,用于接收所述至少一个 CSF发送的所述 CSF中的资源的 通用资源标识符 URI; The receiving unit is configured to receive a universal resource identifier URI of a resource in the CSF sent by the at least one CSF;
确定单元, 用于确定是否具有所述接收单元接收的所述至少一个 CSF中 的资源的接入权限; a determining unit, configured to determine whether an access right of the resource in the at least one CSF received by the receiving unit is received;
生成单元, 用于在确定单元确定不具有所述至少一个 CSF中资源的接入 权限时, 生成所述资源的权限状态列表, 所述权限状态列表包括: 所述资源 的 URI; a generating unit, configured to generate, when the determining unit determines that the access right of the resource in the at least one CSF is not available, the permission status list of the resource, where the permission status list includes: a URI of the resource;
发送单元, 用于向所述 AE发送第一消息, 所述第一消息包括: 所述生 成单元生成的权限状态列表, 和用于表示无权限获取所述资源的信息; a sending unit, configured to send a first message to the AE, where the first message includes: a permission status list generated by the generating unit, and information indicating that the resource is not authorized to acquire the resource;
所述接收单元, 用于接收所述 AE根据所述第一消息发送的所述资源, 所述资源为所述 AE从所述发送单元发送的第一消息的权限状态列表的 URI 中获取的; The receiving unit is configured to receive the resource that is sent by the AE according to the first message, where the resource is obtained by using a URI of a permission status list of the first message sent by the AE from the sending unit;
混聚处理单元, 用于对所述接收单元接收的所述资源进行混聚处理, 得 到所述资源的处理结果; a hybrid processing unit, configured to perform a hybrid processing on the resource received by the receiving unit, to obtain a processing result of the resource;
所述发送单元, 还用于将所述混聚处理单元得到的所述处理结果发送所 述 AE。 The sending unit is further configured to send the processing result obtained by the hybrid processing unit to the AE.
结合第三方面, 在第一种可能的实现方式中, 所述接收单元, 还用于 在所述发送单元发送所述第一消息之后, 接收所述 AE发送的第二消息, 所述第二消息为所述 AE确定能够获取所述 URI中的资源并混聚处理所述资 源时发送的, 用于使所述语义引擎结束对所述语义请求的处理的消息; With reference to the third aspect, in a first possible implementation, the receiving unit is further configured to: after the sending, by the sending, the first message, receive a second message that is sent by the AE, where the second a message for the AE to determine that a resource in the URI can be acquired and aggregated to process the resource, for causing the semantic engine to end processing of the semantic request;
所述装置还包括: The device also includes:
结束单元, 用于根据所述接收单元接收的第二消息结束对所述语义请求 的处理。 And an ending unit, configured to end processing the semantic request according to the second message received by the receiving unit.
结合第三方面, 在第二种可能的实现方式中, 所述接收单元, 还用于
在发送单元发送所述第一消息之后, 接收所述 AE根据所述第一消息发 送的第三消息, 所述第三消息包括: 用于通知所述语义引擎有权限获取所述 URI的资源的信息; With reference to the third aspect, in a second possible implementation manner, the receiving unit is further used to Receiving, by the sending unit, the third message, the third message sent by the AE according to the first message, where the third message includes: used to notify the semantic engine that the resource of the URI is authorized to acquire information;
所述装置还包括: The device also includes:
获取单元, 用于根据所述接收单元接收的所述第三消息从所述 URI中获 取所述资源。 And an obtaining unit, configured to obtain the resource from the URI according to the third message received by the receiving unit.
结合第三方面, 在第三种可能的实现方式中, 所述装置还包括: 获取单元, 用于在所述确定单元确定具有所述至少一个 CSF中的资源的 接入权限时, 从所述 CSF发送的 URI中获取所述资源。 With reference to the third aspect, in a third possible implementation, the apparatus further includes: an acquiring unit, configured to: when the determining unit determines an access right of a resource in the at least one CSF, The resource is obtained from the URI sent by the CSF.
结合第三方面及第三方面所有可能的实现方式, 在第四种可能的实现方 式中, 所述权限状态列表还包括: 用于语义混聚的装置对所述权限状态列表 中每一资源的接入权限状态, 和所述用于语义混聚的装置获取资源处理结果 的语义描述。 With reference to the third aspect and all possible implementation manners of the third aspect, in a fourth possible implementation, the permission status list further includes: a device for semantic hybridization, for each resource in the permission status list An access authority status, and the means for semantic hybridization obtain a semantic description of the resource processing result.
第四方面, 本发明实施例提供一种通信设备, 包括: In a fourth aspect, an embodiment of the present invention provides a communications device, including:
发送单元, 用于向语义引擎发送语义请求, 所述语义请求包括: 用于表 示获取资源处理结果的信息; 所述语义请求用于使所述语义引擎在通用服务 实体 CSE中发现存储所述资源的至少一个通用服务功能模块 CSF, 以及接收 所述至少一个 CSF发送的所述 CSF中的资源的通用资源标识符 URI; a sending unit, configured to send a semantic request to a semantic engine, where the semantic request includes: information used to represent a result of acquiring a resource processing; the semantic request is used to enable the semantic engine to discover and store the resource in a universal service entity CSE At least one universal service function module CSF, and a universal resource identifier URI that receives resources in the CSF sent by the at least one CSF;
接收单元, 用于在所述发送单元发送所述语义请求之后, 接收所述语义 引擎发送的第一消息, 所述第一消息为所述语义引擎确定不具有所述至少一 个 CSF中的资源的接入权限之后发送的, 所述第一消息包括: 所述语义引擎 确定不具有所述至少一个 CSF中的资源的接入权限时生成的所述资源的权限 状态列表, 和用于表示无权限获取所述资源的信息; 所述权限状态列表包括: 所述资源的 URI; a receiving unit, configured to receive, after the sending unit sends the semantic request, a first message sent by the semantic engine, where the first message is determined by the semantic engine not to have resources in the at least one CSF After the access permission is sent, the first message includes: a permission status list of the resource generated when the semantic engine determines that the access authority of the resource in the at least one CSF is not present, and is used to indicate that there is no permission. Obtaining information of the resource; the permission status list includes: a URI of the resource;
获取单元, 用于根据所述接收单元接收的第一消息通过所述权限状态列 表的 URI获取资源; An obtaining unit, configured to acquire a resource by using a URI of the permission status list according to the first message received by the receiving unit;
所述发送单元, 还用于将所述获取单元获取的资源发送所述语义引擎, 以使所述语义引擎对所述资源进行混聚处理; The sending unit is further configured to send the resource acquired by the acquiring unit to the semantic engine, so that the semantic engine performs a hybrid processing on the resource;
所述接收单元, 还用于在所述发送单元发送所述资源之后, 接收所述语 义引擎对所述资源混聚处理的处理结果。
结合第四方面, 在第一种可能的实现方式中, 所述设备还包括: 确定单元, 用于确定是否能够混聚处理所述资源; The receiving unit is further configured to: after the sending unit sends the resource, receive a processing result of the resource hybrid processing by the semantic engine. With reference to the fourth aspect, in a first possible implementation, the device further includes: a determining unit, configured to determine whether the resource can be aggregated and processed;
相应地, 所述发送单元, 具体用于在所述确定单元确定通信设备不能够 混聚处理所述资源时, 将所述获取单元获取的资源发送所述语义引擎, 以使 所述语义引擎对所述资源进行混聚处理。 Correspondingly, the sending unit is configured to: when the determining unit determines that the communication device is not capable of being aggregated to process the resource, send the resource acquired by the acquiring unit to the semantic engine, so that the semantic engine is configured to The resources are subjected to a coagulation process.
结合第四方面及第一种可能的实现方式, 在第二种可能的实现方式中, 所述发送单元, 还用于 With reference to the fourth aspect and the first possible implementation manner, in a second possible implementation manner, the sending unit is further used to
在所述确定单元确定所述通信设备能够混聚处理所述资源时, 向所述语 义引擎发送第二消息, 所述第二消息用于使所述语义引擎结束对所述语义请 求的处理的消息。 When the determining unit determines that the communication device is capable of aggregating the resource, sending a second message to the semantic engine, the second message being used to cause the semantic engine to end processing of the semantic request Message.
结合第四方面, 在第三种可能的实现方式中, 所述设备还包括: 更新单元, 用于根据所述接收单元接收的第一消息对至少一个 CSF存储 的资源进行更新处理, 以使至少一个 CSF中存储的资源对所述语义引擎无接 入权限限制,所述至少一个 CSF为所述权限状态列表中的 URI对应存储位置 的 CSF; With reference to the fourth aspect, in a third possible implementation, the device further includes: an updating unit, configured to update, according to the first message received by the receiving unit, the at least one CSF stored resource, so that at least The resource stored in one CSF has no access permission restriction on the semantic engine, and the at least one CSF is a CSF corresponding to the storage location of the URI in the permission status list;
所述发送单元, 还用于在所述更新单元更新所述至少一个 CSF中存储的 资源之后, 向所述语义引擎发送第三消息, 所述第三消息用于使所述语义引 擎从所述权限状态列表的 URI中获取所述资源, 所述第三消息包括: 用于通 知所述语义引擎有权限获取所述 URI的资源的信息。 The sending unit is further configured to: after the updating unit updates the resource stored in the at least one CSF, send a third message to the semantic engine, where the third message is used to enable the semantic engine from the Obtaining the resource in a URI of the permission status list, where the third message includes: information used to notify the semantic engine that the resource has the right to acquire the URI.
结合第四方面及第四方面所有可能的实现方式, 在第四种可能的实现方 式中, 所述权限状态列表还包括: 所述语义引擎对所述权限状态列表中每一 资源的接入权限状态, 和所述语义引擎获取资源处理结果的语义描述。 第五方面, 本发明实施例提供一种语义混聚的方法, 包括: With reference to the fourth aspect and all possible implementation manners of the fourth aspect, in a fourth possible implementation, the permission status list further includes: the semantic engine accessing each resource in the permission status list a state, and the semantic engine obtains a semantic description of the resource processing result. In a fifth aspect, an embodiment of the present invention provides a method for semantic hybridization, including:
语义引擎接收应用实体 AE发送的语义请求, 所述语义请求包括: 用于 表示获取资源处理结果的信息; The semantic engine receives a semantic request sent by the application entity AE, where the semantic request includes: information used to represent the result of acquiring the resource processing;
所述语义引擎根据所述语义请求在所述语义引擎所在的通用服务实体 CSE中发现存储所述资源的至少一个通用服务功能模块 CSF, 接收所述至少 一个 CSF发送的所述 CSF中的资源的通用资源标识符 URI; The semantic engine, according to the semantic request, discovers, in a general service entity CSE where the semantic engine is located, at least one universal service function module CSF that stores the resource, and receives the resource in the CSF sent by the at least one CSF. Universal resource identifier URI;
所述语义引擎确定不具有所述至少一个 CSF中的资源的接入权限时, 生 成所述资源的权限状态列表, 所述权限状态列表包括: 所述资源的 URI;
所述语义引擎向所述 AE发送第一消息, 所述第一消息包括: 权限状态 列表, 和用于表示无权限获取所述资源的信息; When the semantic engine determines that the access right of the resource in the at least one CSF is not available, generating a permission status list of the resource, where the permission status list includes: a URI of the resource; The semantic engine sends a first message to the AE, where the first message includes: a permission status list, and information indicating that the resource is not authorized to acquire the resource;
所述语义引擎接收所述 AE根据所述第一消息发送的所述资源, 所述资 源为所述 AE从所述 URI中获取的; The semantic engine receives the resource sent by the AE according to the first message, where the resource is obtained by the AE from the URI;
所述语义引擎对所述资源进行混聚处理, 得到所述资源的处理结果, 将 所述处理结果发送所述 AE。 The semantic engine performs a hybrid processing on the resource to obtain a processing result of the resource, and sends the processing result to the AE.
结合第五方面, 在第一种可能的实现方式中, 所述语义引擎向所述 AE 发送第一消息的步骤之后, 所述方法还包括: With reference to the fifth aspect, in a first possible implementation, after the step of the semantic engine sending the first message to the AE, the method further includes:
所述语义引擎接收所述 AE发送的第二消息, 所述第二消息为所述 AE 确定能够获取所述 URI中的资源并混聚处理所述资源时发送的, 用于使所述 语义引擎结束对所述语义请求的处理的消息; Receiving, by the semantic engine, a second message sent by the AE, where the second message is sent by the AE to determine that a resource in the URI can be acquired and aggregating the resource, for using the semantic engine Ending the processing of the semantic request;
所述语义弓 I擎根据所述第二消息结束对所述语义请求的处理。 The semantic engine ends processing the semantic request according to the second message.
结合第五方面, 在第二种可能的实现方式中, 所述语义引擎向所述 AE 发送第一消息的步骤之后, 所述语义引擎对所述资源进行混聚处理的步骤之 前, 所述方法还包括: With reference to the fifth aspect, in a second possible implementation manner, after the step of the semantic engine sending the first message to the AE, before the step of the semantic engine performing the hybrid processing on the resource, the method Also includes:
所述语义引擎接收所述 AE根据所述第一消息发送的第三消息, 所述第 三消息包括: 用于通知所述语义引擎有权限获取所述 URI的资源的信息; 所述语义引擎根据所述第三消息从所述 URI中获取所述资源。 The semantic engine receives a third message that is sent by the AE according to the first message, where the third message includes: information used to notify the semantic engine that the resource of the URI is authorized to acquire the URI; The third message acquires the resource from the URI.
结合第五方面及上述可能的实现方式, 在第三种可能的实现方式中, 所 述语义引擎对所述资源进行混聚处理的步骤之前, 所述方法还包括: With reference to the fifth aspect and the foregoing possible implementation manner, in a third possible implementation manner, before the step of the semantic engine performing the hybridization processing on the resource, the method further includes:
所述语义引擎确定具有所述至少一个 CSF中的资源的接入权限时, 从所 述 CSF发送的 URI中获取所述资源。 When the semantic engine determines the access rights of the resources in the at least one CSF, the resources are obtained from the URIs sent by the CSF.
结合第五方面及第五方面所有可能的实现方式, 在第五种可能的实现方 式中, 所述权限状态列表还包括: 所述语义引擎对所述权限状态列表中每一 资源的接入权限状态, 和所述语义引擎获取资源处理结果的语义描述。 With reference to the fifth aspect and all possible implementation manners of the fifth aspect, in a fifth possible implementation, the permission status list further includes: the semantic engine accessing each resource in the permission status list a state, and the semantic engine obtains a semantic description of the resource processing result.
第六方面, 本发明实施例提供一种语义混聚的方法, 包括: In a sixth aspect, an embodiment of the present invention provides a method for semantic hybridization, including:
应用实体 AE 向语义引擎发送语义请求, 所述语义请求包括: 用于表示 获取资源处理结果的信息; 所述语义请求用于使所述语义引擎在通用服务实 体 CSE中发现存储所述资源的至少一个通用服务功能模块 CSF, 以及接收所 述至少一个 CSF发送的所述 CSF中的资源的通用资源标识符 URI;
所述 AE接收所述语义引擎发送的第一消息, 所述第一消息为所述语义 引擎确定不具有所述至少一个 CSF中的资源的接入权限之后发送的, 所述第 一消息包括: 所述语义引擎确定不具有所述至少一个 CSF中的资源的接入权 限时生成的所述资源的权限状态列表, 和用于表示无权限获取所述资源的信 息; 所述权限状态列表包括: 所述资源的 URI; The application entity AE sends a semantic request to the semantic engine, the semantic request comprising: information for indicating a result of acquiring the resource processing; the semantic request for causing the semantic engine to find at least the storage of the resource in the general service entity CSE a universal service function module CSF, and a universal resource identifier URI that receives resources in the CSF sent by the at least one CSF; Receiving, by the AE, the first message sent by the semantic engine, where the first message is sent by the semantic engine after determining that the access authority does not have the access rights of the resources in the at least one CSF, where the first message includes: The semantic engine determines a permission status list of the resource generated when the access authority of the resource in the at least one CSF is not available, and information indicating that the resource is not authorized to acquire the resource; the permission status list includes: The URI of the resource;
所述 AE根据所述第一消息通过所述权限状态列表的 URI获取资源, 将 所述资源发送所述语义引擎, 以使所述语义引擎对所述资源进行混聚处理; 所述 AE接收所述语义引擎对所述资源混聚处理的处理结果。 And the AE acquires a resource according to the first message by using a URI of the permission status list, and sends the resource to the semantic engine, so that the semantic engine performs a hybrid processing on the resource; The result of processing by the semantic engine for the resource shuffling process.
结合第六方面, 在第一种可能的实现方式中, 所述将所述资源发送所述 语义引擎的步骤之前, 还包括: With reference to the sixth aspect, in a first possible implementation, before the step of sending the resource to the semantic engine, the method further includes:
所述 AE确定不能够混聚处理所述资源。 The AE determines that the resource cannot be processed by aggregating.
结合第六方面及第一种可能的实现方式, 在第二种可能的实现方式中, 还包括: With reference to the sixth aspect and the first possible implementation manner, in the second possible implementation manner, the method further includes:
所述 AE确定能够混聚处理所述资源时, 向所述语义引擎发送第二消息, 所述第二消息用于使所述语义引擎结束对所述语义请求的处理的消息。 The AE determines to be capable of aggregating the resource, and transmitting a second message to the semantic engine, the second message being used to cause the semantic engine to end the processing of the semantic request.
结合第六方面, 在第三种可能的实现方式中, 所述 AE接收所述语义引 擎发送的第一消息的步骤之后, 还包括: With reference to the sixth aspect, in a third possible implementation, after the step of the AE receiving the first message sent by the semantic engine, the method further includes:
所述 AE根据所述第一消息对至少一个 CSF存储的资源进行更新处理, 以使至少一个 CSF中存储的资源对所述语义引擎无接入权限限制, 所述至少 一个 CSF为所述权限状态列表中的 URI对应存储位置的 CSF; And the AE performs an update process on the at least one CSF stored resource according to the first message, so that the resource stored in the at least one CSF has no access permission to the semantic engine, and the at least one CSF is the permission status. The URI in the list corresponds to the CSF of the storage location;
所述 AE 向所述语义引擎发送第三消息, 所述第三消息用于使所述语义 引擎从所述权限状态列表的 URI中获取所述资源, 所述第三消息包括: 用于 通知所述语义引擎有权限获取所述 URI的资源的信息。 The AE sends a third message to the semantic engine, where the third message is used to enable the semantic engine to obtain the resource from a URI of the permission status list, where the third message includes: The semantic engine has permission to obtain information about the resources of the URI.
结合第六方面及第六方面所有可能的实现方式, 在第四种可能的实现方 式中, 所述权限状态列表还包括: 所述语义引擎对所述权限状态列表中每一 资源的接入权限状态, 和所述语义引擎获取资源处理结果的语义描述。 With reference to the sixth aspect and all possible implementation manners of the sixth aspect, in a fourth possible implementation, the permission status list further includes: the semantic engine accessing each resource in the permission status list a state, and the semantic engine obtains a semantic description of the resource processing result.
由上述技术方案可知, 本发明实施例的用于语义混聚的装置、 通信设备 及语义混聚的方法, 通过语义引擎在没有 CSF的资源的接入权限时, 生成包 括资源的 URI的权限状态列表, 并将权限状态列表发送 AE, 以使 AE获取资 源, 并将获取的资源发送语义引擎, 进而语义引擎根据 AE发送的资源进行
混聚处理, 由此, 语义引擎在不具备混聚所需的某个或某些资源的接入权限 时能够完成语义混聚, 且能够获得准确的混聚结果, 解决了现有技术中语义 混聚不具有该资源的接入权限时, 将无法完成语义混聚的流程的问题。 附图说明 According to the foregoing technical solution, the apparatus for semantic hybridization, the communication device, and the semantic hybridization method of the embodiment of the present invention generate a permission state of a URI including a resource when the semantic engine does not have access rights of a resource of the CSF. List, and send the permission status list to the AE, so that the AE obtains the resource, and sends the acquired resource to the semantic engine, and then the semantic engine performs the resource according to the AE. The hybridization process, whereby the semantic engine can complete semantic aggregation without the access rights of some or some resources required for the aggregation, and can obtain accurate aggregation results, and solve the semantics in the prior art. When the hybridization does not have access rights to the resource, the problem of the semantic aggregation process cannot be completed. DRAWINGS
图 1为现有技术中的 M2M的架构图; 1 is an architectural diagram of an M2M in the prior art;
图 2为现有技术中的 CSE的结构图; 2 is a structural diagram of a CSE in the prior art;
图 3为现有技术中的 M2M的部署场景图; 3 is a deployment scenario diagram of an M2M in the prior art;
图 4为本发明一实施例提供的用于语义混聚的装置的结构示意图; 图 5为本发明一实施例提供的通信设备的结构示意图; 4 is a schematic structural diagram of an apparatus for semantic hybridization according to an embodiment of the present invention; FIG. 5 is a schematic structural diagram of a communication device according to an embodiment of the present invention;
图 6为本发明另一实施例提供的用于语义混聚的装置的结构示意图; 图 7为本发明另一实施例提供的通信设备的结构示意图; FIG. 6 is a schematic structural diagram of an apparatus for semantic hybridization according to another embodiment of the present invention; FIG. 7 is a schematic structural diagram of a communication apparatus according to another embodiment of the present invention;
图 8A至图 12为本发明一实施例提供的语义混聚的方法的流程示意图。 具体实施方式 FIG. 8 is a schematic flowchart of a method for semantic hybridization according to an embodiment of the present invention. detailed description
机器通信的 oneM2M可理解为当前的标准组织提供的 M2M通信业务层 的开放标准, 根据 oneM2M可建立一个集成各种设备和服务的未来网络, 使 得 M2M业务可互操作,同时使得 M2M应用可以共享基础业务并独立于网络 实现。 OneM2M for machine communication can be understood as the open standard of the M2M communication service layer provided by the current standards organization. According to oneM2M, a future network integrating various devices and services can be established, so that M2M services can interoperate and M2M applications can share the basics. Business is implemented independently of the network.
图 1所示的是现有的 M2M的架构图,该 M2M的架构是符合 oneM2M标 准的, M2M设备上 M2M 应用实体 (Application Entity, 简称 AE)与 M2M通 用服务实体(Common Services Entity, 简称 CSE)通过 Mca参考点通信; 在 场域(Filed Domain)中的 CSE与基础设施域(Infrastructure Domain )的 CSE 通过 Mcc参考点通信, 对于所属不同服务提供商 (Service Provider) 的基础 节点 (Infrastructure node) 上的 CSE, 通过 Mcc,参考点通信; CSE与底层网 络服务实体 (Underlying Network Service Entity, 简称 NSE)通过 Men参考点 进行通信。 以下对各实体进行简单说明: Figure 1 shows the architecture of the existing M2M. The architecture of the M2M is compliant with the oneM2M standard. The M2M application entity (Application Entity, AE for short) and the M2M Common Service Entity (CSE). Communication via Mca reference point; CSE in the Filed Domain communicates with the CSE of the Infrastructure Domain through the Mcc reference point, on the infrastructure node of the different Service Providers (Infrastructure nodes) CSE, through Mcc, reference point communication; CSE communicates with the Underlying Network Service Entity (NSE) through the Men reference point. The following is a brief description of each entity:
AE用于提供端到端的 M2M解决方案的应用逻辑, 例如, AE可以是远 端血压血糖监控, 远端抄表等应用。 AE is used to provide application logic for end-to-end M2M solutions. For example, AEs can be used for remote blood pressure monitoring, remote meter reading, and more.
CSE包含一组 oneM2M规定服务功能, 该功能通过 Mca和 Mcc参考点
开放给其他实体。 CSE提供的服务包括: 数据管理(Data Management) , 设 备管理 (Device Management) , M2M订阅管理 (M2M Subscription The CSE includes a set of oneM2M defined service functions that pass the Mca and Mcc reference points. Open to other entities. The services provided by CSE include: Data Management, Device Management, M2M Subscription Management (M2M Subscription)
Management) , 位置服务 ( Location Services ) 等。 这些被 CSE提供的子功 能可以逻辑上理解为 CSF,如图 2所示。在一个 CSE中,有些 CSF是必选的, 其他的可选的。 在 CSF内, 有些子功能是可选的有些是必选的。 Management), Location Services, etc. These sub-functions provided by CSE can be logically understood as CSF, as shown in Figure 2. In a CSE, some CSFs are mandatory, others are optional. Within the CSF, some sub-functions are optional and some are mandatory.
NSE给 CSE提供服务。 包括: 设备管理(device management) , 位置管 理禾口设备角虫发 (location services and device triggering) 等。 The NSE provides services to the CSE. These include: device management, location services and device triggering.
Field Domain: 由 M2M 终端、 M2M 网关、 传感与 激励 (S&A) 设备和 M2M局域网络组成。 Field Domain: Consists of M2M terminals, M2M gateways, sensing and stimulus (S&A) devices, and M2M local area networks.
Infrastructure Domain: 由应用基础设施 (Application Infrastructure) 与 Infrastructure Domain: by Application Infrastructure
M2M业务基础设施 (M2M Service Infrastructure) 组成. M2M Service Infrastructure consists of.
Mca参考点: 为 M2M应用和 CSE之间的接口。 该 Mca参考点使 M2M 应用能够使用 CSE提供的业务(能力) , 并使 CSE能够反向与应用通信。通 过 Mca参考点提供的业务取决于 CSE所支持的功能, 应用和 CSE并不一定 位于同一个实体设备上。 Mca reference point: The interface between the M2M application and the CSE. This Mca reference point enables M2M applications to use the services (capabilities) provided by the CSE and enables the CSE to communicate with the application in reverse. The services provided through the Mca reference point depend on the functions supported by the CSE, and the application and CSE are not necessarily on the same physical device.
Mcc参考点: 为 CSE之间通信的接口。 Mcc参考点用于实现一个 CSE 能使用另一个 CSE所提供的功能 (该功能可以是前者 CSE自身不具备的) 。 两个 CSE之间的 Mcc参考点需要被不同的 M2M物理实体支持。 Mcc reference point: The interface for communication between CSEs. The Mcc reference point is used to implement a CSE that can use the functionality provided by another CSE (this feature can be the CSE itself does not have). The Mcc reference point between the two CSEs needs to be supported by different M2M physical entities.
Men参考点: 为业务层 CSE与承载网络之间的接口, 使 CSE能使用承 载网络提供给上层的业务。 这里指的业务不同于承载网络的业务 (任何两个 M2M物理节点之间交换的信息都默认会使用传输和连接性的业务,这些业务 被看作是基础的网络业务) 。 Men reference point: It is the interface between the CSE and the bearer network of the service layer, enabling the CSE to use the bearer network to provide services to the upper layer. The service referred to here is different from the service carrying the network (the information exchanged between any two M2M physical nodes will use the transmission and connectivity services by default, and these services are regarded as the basic network services).
图 2所示的主要是 oneM2M目前所支持的 CSF。 通常, 在节点 (Node) 中一个 CSE的实例可以表示为一些功能模块 (如 CSF) 的集合。 The main one shown in Figure 2 is the CSF currently supported by oneM2M. Typically, an instance of a CSE in a node can be represented as a collection of functional modules (such as CSFs).
图 3所示的是 M2M支持的部署场景图,包含了应用专用节点( Application Figure 3 shows the deployment scenario graph supported by M2M, including the application-specific node (Application
Dedicated Node, 简称 ADN) , 应用服务节点 (Application Service Node, 简 称 ASN), 中间节点(Middle Node,简称 MN),基础设施节点(Infrastructure Node, 简称 IN) , 非节点型应用实体 (Node-less AE) 五种功能实体, 根据 Node的定义, 它可以是包含一个或多个 M2M 应用的功能实体, 也可以是包 含一个 CSE和任意个 M2M 应用 (包括 0个) 的功能实体。
在这个部署场景中, ADN和 ASN可以与 MN通信,并通过其与 IN通信, 也可以不通过 MN直接与 IN进行通信。 Dedicated Node (ADN), Application Service Node (ASN), Middle Node (MN), Infrastructure Node (IN), Non-Node Application Entity (Node-less AE) Five functional entities, according to the definition of Node, can be a functional entity containing one or more M2M applications, or a functional entity containing one CSE and any number of M2M applications (including 0). In this deployment scenario, the ADN and ASN can communicate with the MN and communicate with the IN through it, or directly with the IN without the MN.
目前, 在 oneM2M标准中, 存储在 CSE中的各个资源对不同的应用, 存 储资源的 CSE, 其他 CSE, CSE中的各 CSF都设有不同的接入权限。 例如, 对于 DMR(CSE中的一个 CSF)中的数据, CSE (或 DMR)只用于数据存储和 传输, 对数据内容是不可知的。 语义引擎模块对于 CSE中存储的数据也存在 接入权限的问题。 例如, 在一个医疗保健的应用场景中, 平台 (CSE)需要通过 获取与分析体温计与室内温度计的测量数据来分析出病人的食谱, 但是, 其 中体温计的所测数据中包含身份, 健康状况等个人隐私信息, 这些信息是平 台不能读取的。 Currently, in the oneM2M standard, each resource stored in the CSE has different access rights for different applications, CSEs for storing resources, and other CSEs for CSEs. For example, for data in DMR (a CSF in CSE), CSE (or DMR) is only used for data storage and transmission, and is agnostic to the data content. The semantic engine module also has access rights for data stored in the CSE. For example, in a healthcare application scenario, the platform (CSE) needs to analyze the patient's recipe by obtaining and analyzing the measurements of the thermometer and the indoor thermometer, but the measured data of the thermometer includes the identity, health status, etc. Privacy information, which is not readable by the platform.
也就是说, 在一些语义混聚的场景中, 存在不同实体对资源存在不同接 入权限, 当语义混聚不具有该资源的接入权限时, 将无法完成语义混聚的流 程。 That is to say, in some scenarios of semantic aggregation, different entities have different access rights to resources. When semantic aggregation does not have access rights to the resources, the process of semantic aggregation cannot be completed.
图 4示出了本发明一实施例提供的用于语义混聚的装置的结构示意图, 如图 4所示, 本实施例的用于语义混聚的装置包括: 发射器 41、 接收器 42 和处理器 43 ; FIG. 4 is a schematic structural diagram of an apparatus for semantic hybridization according to an embodiment of the present invention. As shown in FIG. 4, the apparatus for semantic hybridization of the embodiment includes: a transmitter 41, a receiver 42 and Processor 43 ;
其中, 所述接收器 42, 用于接收 AE发送的语义请求, 所述语义请求包 括: 用于表示获取资源处理结果的信息; The receiver 42 is configured to receive a semantic request sent by the AE, where the semantic request includes: information used to indicate that the resource processing result is obtained;
所述处理器 43, 用于根据所述接收器 42接收的所述语义请求在 CSE中 发现存储所述资源的至少一个 CSF; The processor 43 is configured to discover, in the CSE, at least one CSF storing the resource according to the semantic request received by the receiver 42;
所述接收器 42, 还用于接收所述至少一个 CSF发送的所述 CSF中的资 源的 URI; The receiver 42 is further configured to receive a URI of a resource in the CSF sent by the at least one CSF;
所述处理器 43,还用于确定是否具有所述至少一个 CSF中的资源的接入 权限, 在确定不具有所述至少一个 CSF中的资源的接入权限时, 生成所述资 源的权限状态列表, 所述权限状态列表包括: 所述资源的 URI; The processor 43 is further configured to determine whether an access right of the resource in the at least one CSF is determined, and when determining that the access right of the resource in the at least one CSF is not available, generating a permission status of the resource a list, the permission status list includes: a URI of the resource;
所述发射器 41, 用于向所述 AE发送第一消息, 所述第一消息包括: 所 述处理器 43生成的权限状态列表, 和用于表示无权限获取所述资源的信息; 所述接收器 42, 用于在所述发射器 41发送所述第一消息之后, 接收所 述 AE根据所述第一消息发送的所述资源, 所述资源为所述 AE从所述 URI 中获取的;
所述处理器 43, 还用于对所述接收器 42接收的资源进行混聚处理, 得 到所述资源的处理结果; The transmitter 41 is configured to send a first message to the AE, where the first message includes: a permission status list generated by the processor 43, and information indicating that the resource is not authorized to acquire the resource; The receiver 42 is configured to: after the transmitter 41 sends the first message, receive the resource that is sent by the AE according to the first message, where the resource is obtained by the AE from the URI ; The processor 43 is further configured to perform a hybrid processing on the resource received by the receiver 42 to obtain a processing result of the resource.
所述发射器 41, 还用于将所述处理器 43得到的处理结果发送所述 AE。 举例来说, 前述的权限状态列表还可包括: 用于语义混聚的装置对所述 权限状态列表中每一资源的接入权限状态, 和所述用于语义混聚的装置获取 资源处理结果的语义描述。 The transmitter 41 is further configured to send the processing result obtained by the processor 43 to the AE. For example, the foregoing permission status list may further include: an access authority status of each resource in the permission status list by means for semantic hybridization, and the device for semantic aggregation to obtain resource processing result Semantic description.
也就是说, 在具体的应用中, 权限状态列表通常包括: 所有资源的 URI, 以及用于语义混聚的装置对所述权限状态列表中每一资源的接入权限状态, 所述用于语义混聚的装置获取资源处理结果的语义描述。 That is, in a specific application, the permission status list generally includes: a URI of all resources, and an access authority status of each resource in the permission status list by means for semantic hybridization, the semantics The hybrid device obtains a semantic description of the resource processing results.
若用于语义混聚的装置创建有虚拟设备执行语义请求, 则权限状态列表 可包括: 所有资源的 URI, 以及用于语义混聚的装置对所述权限状态列表中 每一资源的接入权限状态,所述虚拟设备获取资源处理结果的语义描述等等。 本实施例仅为举例说明, 不限定权限状态列表的具体形式, 权限状态列表根 据实际需要, 还可包括其他内容等。 If the device for semantic hybridization is created with a virtual device execution semantic request, the permission status list may include: a URI of all resources, and an access authority for each resource in the permission status list by means for semantic hybridization State, the virtual device obtains a semantic description of the resource processing result, and the like. This embodiment is for illustrative purposes only, and does not limit the specific form of the privilege state list. The privilege state list may include other content and the like according to actual needs.
可选地, 所述接收器 42, 还用于,在所述发射器 41发送所述第一消息之 后,接收所述 AE发送的第二消息,所述第二消息为所述 AE确定能够获取所 述 URI中的资源并混聚处理所述资源时发送的, 用于使所述语义引擎结束对 所述语义请求的处理的消息; Optionally, the receiver 42 is further configured to: after the transmitter 41 sends the first message, receive a second message sent by the AE, where the second message is determined to be obtainable by the AE a resource in the URI and a message aggregated when the resource is processed, for causing the semantic engine to end processing of the semantic request;
所述处理器 43, 还用于根据所述接收器 42接收的第二消息结束对所述 语义请求的处理。 The processor 43 is further configured to end processing the semantic request according to the second message received by the receiver 42.
在第二种可选的实现场景中, 所述接收器 42, 还用于在所述发射器 41 发送所述第一消息之后, 接收所述 AE根据所述第一消息发送的第三消息, 所述第三消息包括: 用于通知所述语义引擎有权限获取所述 URI的资源的信 息; In a second optional implementation scenario, the receiver 42 is further configured to: after the transmitter 41 sends the first message, receive a third message sent by the AE according to the first message, The third message includes: information for notifying the semantic engine that the resource of the URI is authorized to acquire the URI;
所述处理器 43, 还用于根据所述接收器 42接收的所述第三消息从所述 The processor 43 is further configured to use the third message received by the receiver 42 from the
URI中获取所述资源。 The resource is obtained in the URI.
在第三种可选的实现场景中,所述处理器 43还用于确定具有所述至少一 个 CSF中的资源的接入权限时, 从所述 CSF发送的 URI中获取所述资源。 In a third optional implementation scenario, when the processor 43 is further configured to determine an access right of a resource in the at least one CSF, the resource is obtained from a URI sent by the CSF.
上述用于语义混聚的装置, 可在不具备混聚所需的某个或某些资源的接 入权限时能够完成语义混聚, 且能够获得准确的混聚结果, 解决了现有技术
中语义混聚不具有该资源的接入权限时,将无法完成语义混聚的流程的问题。 上述实施例中的用于语义混聚的装置可以实现本发明下述的图 8A至 图 10所示实施例的流程。 The above device for semantic hybridization can complete semantic aggregation when there is no access right of some or some resources required for mixing, and can obtain accurate mixing result, and solve the prior art. When the semantic aggregation does not have access rights to the resource, the problem of the semantic aggregation process cannot be completed. The apparatus for semantic hybridization in the above embodiment can implement the flow of the embodiment shown in Figs. 8A to 10 of the present invention described below.
图 5示出了本发明一实施例提供的通信设备的结构示意图,如图 5所示, 本实施例的通信设备包括: 发射器 51、 接收器 52和处理器 53; 5 is a schematic structural diagram of a communication device according to an embodiment of the present invention. As shown in FIG. 5, the communication device of this embodiment includes: a transmitter 51, a receiver 52, and a processor 53;
其中, 所述发射器 51用于向语义引擎发送语义请求, 所述语义请求包 括: 用于表示获取资源处理结果的信息; 所述语义请求用于使所述语义引擎 在 CSE 中发现存储所述资源的至少一个 CSF, 以及接收所述至少一个 CSF 发送的所述 CSF中的资源的 URI; The transmitter 51 is configured to send a semantic request to a semantic engine, where the semantic request includes: information used to represent a result of acquiring a resource processing; the semantic request is used to cause the semantic engine to discover and store the information in a CSE At least one CSF of the resource, and a URI that receives the resource in the CSF sent by the at least one CSF;
所述接收器 52用于在所述发射器 51发送所述语义请求之后, 接收所述 语义引擎发送的第一消息, 所述第一消息为所述语义引擎确定不具有所述至 少一个 CSF中的资源的接入权限之后发送的, 所述第一消息包括: 所述语义 引擎确定不具有所述至少一个 CSF中的资源的接入权限时生成的所述资源的 权限状态列表, 和用于表示无权限获取所述资源的信息; 所述权限状态列表 包括: 所述资源的 URI; The receiver 52 is configured to receive, after the transmitter 51 sends the semantic request, a first message sent by the semantic engine, where the first message is determined by the semantic engine not to have the at least one CSF After the access permission of the resource is sent, the first message includes: a permission status list of the resource generated when the semantic engine determines that the access authority of the resource in the at least one CSF is not used, and is used for Indicates that the resource has no permission to acquire the information; the permission status list includes: a URI of the resource;
所述处理器 53用于根据所述接收器 52接收的所述第一消息通过所述权 限状态列表的 URI获取资源; 所述发射器 51, 用于将所述处理器获取的所述 资源发送所述语义引擎, 以使所述语义引擎对所述资源进行混聚处理; The processor 53 is configured to acquire a resource by using a URI of the permission status list according to the first message received by the receiver 52, where the transmitter 51 is configured to send the resource acquired by the processor. The semantic engine to cause the semantic engine to perform a hybrid processing on the resource;
所述接收器 52用于在所述发射器 51发送所述资源之后, 接收所述语义 引擎对所述资源混聚处理的处理结果。 The receiver 52 is configured to receive, after the transmitter 51 sends the resource, a processing result of the resource hybrid processing by the semantic engine.
可选地, 所述处理器 53, 还用于确定是否能够混聚处理所述资源。 Optionally, the processor 53 is further configured to determine whether the resource can be mixed and processed.
举例来说, 前述的权限状态列表还可包括: 语义引擎对所述权限状态列 表中每一资源的接入权限状态, 和所述语义引擎获取资源处理结果的语义描 述。 For example, the foregoing permission status list may further include: a semantic authority's access authority status for each resource in the permission status list, and a semantic description of the semantic engine obtaining resource processing result.
也就是说, 在具体的应用中, 权限状态列表通常包括: 所有资源的 URI, 以及语义引擎对所述权限状态列表中每一资源的接入权限状态, 所述语义引 擎获取资源处理结果的语义描述。本实施例仅为举例说明, 在其他实施例中, 权限状态列表可根据实际需要设置。 That is to say, in a specific application, the permission status list generally includes: a URI of all resources, and an access authority status of each resource in the permission status list by the semantic engine, and the semantic engine acquires semantics of the resource processing result description. This embodiment is for illustrative purposes only. In other embodiments, the permission status list may be set according to actual needs.
在第二种可选的实现场景中, 所述发射器 51还用于, 在所述处理器 53 确定能够混聚处理所述资源时, 向所述语义引擎发送第二消息, 所述第二消
息用于使所述语义引擎结束对所述语义请求的处理的消息。 In a second optional implementation scenario, the transmitter 51 is further configured to: when the processor 53 determines that the resource can be mixed and processed, send a second message to the semantic engine, where the second Eliminate The message is used to cause the semantic engine to end the processing of the semantic request.
在第三种可选的实现场景中, 所述处理器 53 还用于, 根据所述接收器 52接收的所述第一消息对至少一个 CSF存储的资源进行更新处理,以使至少 一个 CSF中存储的资源对所述语义引擎无接入权限限制, 所述至少一个 CSF 为所述权限状态列表中的 URI对应存储位置的 CSF; In a third optional implementation scenario, the processor 53 is further configured to: perform update processing on the at least one CSF stored resource according to the first message received by the receiver 52, to enable the at least one CSF. The stored resource has no access permission restriction on the semantic engine, and the at least one CSF is a CSF corresponding to the storage location of the URI in the permission status list;
所述发射器 51还用于在所述处理器 53更新处理之后, 向所述语义引擎 发送第三消息, 所述第三消息用于使所述语义引擎从所述权限状态列表的 URI 中获取所述资源, 所述第三消息包括: 用于通知所述语义引擎有权限获 取所述 URI的资源的信息。 The transmitter 51 is further configured to send, after the processor 53 update processing, a third message to the semantic engine, where the third message is used to obtain the semantic engine from a URI of the permission status list The resource, the third message includes: information used to notify the semantic engine that the resource of the URI is authorized to acquire the URI.
上述的通信装置和本发明实施例中的用于语义混聚的装置交互, 可使得 用于语义混聚的装置在不具备混聚所需的某个或某些资源的接入权限时能够 完成语义混聚, 且能够获得准确的混聚结果, 解决了现有技术中语义混聚不 具有该资源的接入权限时, 将无法完成语义混聚的流程的问题。 The above communication device interacts with the device for semantic hybridization in the embodiment of the present invention, so that the device for semantic hybridization can complete the access permission of one or some resources required for the aggregation. Semantic cohesion, and can obtain accurate hybridization results, and solve the problem that the semantic mixing in the prior art does not have the access permission of the resource, and the process of semantic aggregation cannot be completed.
上述实施例中的通信设备可以实现本发明下述的图 11和图 12所示实 施例的流程。 The communication device in the above embodiment can implement the flow of the embodiment shown in Figs. 11 and 12 of the present invention described below.
图 6示出了本发明一实施例提供的用于语义混聚的装置的结构示意图, 如图 6所示, 本发明实施例的用于语义混聚的装置包括: 接收单元 61、 发现 单元 62、 确定单元 63、 生成单元 64、 发送单元 65和混聚处理单元 66; 其中, 接收单元 61用于接收 AE发送的语义请求, 所述语义请求包括: 用于表示获取资源处理结果的信息; FIG. 6 is a schematic structural diagram of an apparatus for semantic hybridization according to an embodiment of the present invention. As shown in FIG. 6, the apparatus for semantic hybridization according to an embodiment of the present invention includes: a receiving unit 61, a discovery unit 62. a determining unit 63, a generating unit 64, a sending unit 65, and a mixing processing unit 66. The receiving unit 61 is configured to receive a semantic request sent by the AE, where the semantic request includes: information used to indicate a result of acquiring the resource processing;
发现单元 62用于根据所述语义请求在所述语义混聚所在的 CSE中发现 存储所述资源的至少一个 CSF; The discovery unit 62 is configured to discover, according to the semantic request, at least one CSF storing the resource in a CSE where the semantic hybrid is located;
所述接收单元 61用于接收发现单元 62发现的至少一个 CSF发送的所述 CSF中的资源的 URI; The receiving unit 61 is configured to receive a URI of a resource in the CSF sent by at least one CSF discovered by the discovery unit 62;
确定单元 63 用于确定是否具有所述接收单元 61 接收的所述至少一个 The determining unit 63 is configured to determine whether the at least one received by the receiving unit 61 is received
CSF中的资源的接入权限; Access rights to resources in the CSF;
生成单元 64用于在确定单元 63确定不具有所述至少一个 CSF中资源的 接入权限时, 生成所述资源的权限状态列表, 所述权限状态列表包括: 所述 资源的 URI; The generating unit 64 is configured to generate, when the determining unit 63 determines that the access right of the resource in the at least one CSF is not available, the permission status list of the resource, where the permission status list includes: a URI of the resource;
发送单元 65用于向所述 AE发送第一消息, 所述第一消息包括: 所述生
成单元 64生成的权限状态列表, 和用于表示无权限获取所述资源的信息; 所述接收单元 61用于接收所述 AE根据所述第一消息发送的所述资源, 所述资源为所述 AE从所述发送单元 65 发送的第一消息的权限状态列表的 URI中获取的; The sending unit 65 is configured to send a first message to the AE, where the first message includes: a privilege state list generated by the unit 64, and information for indicating that the resource is not privileged to acquire the resource; the receiving unit 61 is configured to receive the resource that is sent by the AE according to the first message, where the resource is The AE is obtained from the URI of the permission status list of the first message sent by the sending unit 65;
混聚处理单元 66用于对所述接收单元 61接收的所述资源进行混聚处理, 得到所述资源的处理结果; The hybrid processing unit 66 is configured to perform a hybrid processing on the resource received by the receiving unit 61 to obtain a processing result of the resource.
所述发送单元 65还用于将所述混聚处理单元 66得到的所述处理结果发 送所述 AE。 The sending unit 65 is further configured to send the processing result obtained by the hybrid processing unit 66 to the AE.
举例来说, 前述的权限状态列表还可包括: 用于语义混聚的装置对所述 权限状态列表中每一资源的接入权限状态, 和所述用于语义混聚的装置获取 资源处理结果的语义描述。 For example, the foregoing permission status list may further include: an access authority status of each resource in the permission status list by means for semantic hybridization, and the device for semantic aggregation to obtain resource processing result Semantic description.
也就是说, 在具体的应用中, 权限状态列表通常包括: 所有资源的 URI, 以及用于语义混聚的装置对所述权限状态列表中每一资源的接入权限状态, 所述用于语义混聚的装置获取资源处理结果的语义描述。 That is, in a specific application, the permission status list generally includes: a URI of all resources, and an access authority status of each resource in the permission status list by means for semantic hybridization, the semantics The hybrid device obtains a semantic description of the resource processing results.
若用于语义混聚的装置创建有虚拟设备执行语义请求, 则权限状态列表 可包括: 所有资源的 URI, 以及用于语义混聚的装置对所述权限状态列表中 每一资源的接入权限状态,所述虚拟设备获取资源处理结果的语义描述等等。 本实施例仅为举例说明, 不限定权限状态列表的具体形式, 权限状态列表根 据实际需要设置。 If the device for semantic hybridization is created with a virtual device execution semantic request, the permission status list may include: a URI of all resources, and an access authority for each resource in the permission status list by means for semantic hybridization State, the virtual device obtains a semantic description of the resource processing result, and the like. This embodiment is for illustrative purposes only, and does not limit the specific form of the permission status list. The permission status list is set according to actual needs.
在一种可选的实现场景中, 所述接收单元 61 还用于, 在所述发送单元 In an optional implementation scenario, the receiving unit 61 is further configured to: in the sending unit
65发送所述第一消息之后, 接收所述 AE发送的第二消息, 所述第二消息为 所述 AE确定能够获取所述 URI中的资源并混聚处理所述资源时发送的, 用 于使所述语义引擎结束对所述语义请求的处理的消息; After the first message is sent, the second message sent by the AE is received, where the second message is sent when the AE determines that the resource in the URI can be acquired and the resource is mixed and processed. a message that causes the semantic engine to end processing the semantic request;
此时, 前述的用于语义混聚的装置还包括图中未示出的结束单元, 其中, 结束单元用于根据所述接收单元 61 接收的第二消息结束对所述语义请求的 处理。 At this time, the foregoing apparatus for semantic hybridization further includes an ending unit not shown in the figure, wherein the ending unit is configured to end processing of the semantic request according to the second message received by the receiving unit 61.
在第二种可选的实现场景中, 所述接收单元 61还用于, 在发送单元 65 发送所述第一消息之后, 接收所述 AE根据所述第一消息发送的第三消息, 所述第三消息包括: 用于通知所述语义引擎有权限获取所述 URI的资源的信 息;
此时, 前述的用于语义混聚的装置还包括图中未示出的获取单元, 其中, 获取单元用于根据所述接收单元 61接收的所述第三消息从所述 URI中获取 所述资源。 In a second optional implementation scenario, the receiving unit 61 is further configured to: after the transmitting unit 65 sends the first message, receive a third message that is sent by the AE according to the first message, The third message includes: information for notifying the semantic engine that the resource of the URI is authorized to acquire the URI; In this case, the foregoing apparatus for semantic hybridization further includes an obtaining unit not shown in the figure, wherein the obtaining unit is configured to acquire the the URI from the URI according to the third message received by the receiving unit 61. Resources.
可选地,获取单元还用于在所述确定单元 63确定具有所述至少一个 CSF 中的资源的接入权限时, 从所述 CSF发送的 URI中获取所述资源。 Optionally, the obtaining unit is further configured to: when the determining unit 63 determines the access right of the resource in the at least one CSF, acquire the resource from the URI sent by the CSF.
本实施例中用于语义混聚的装置, 可在不具备混聚所需的某个或某些资 源的接入权限时能够完成语义混聚, 且能够获得准确的混聚结果, 解决了现 有技术中语义混聚不具有该资源的接入权限时, 将无法完成语义混聚的流程 的问题。 The device for semantic hybridization in this embodiment can complete semantic aggregation when the access authority of one or some resources required for the aggregation is not available, and can obtain an accurate mixing result, and solve the present problem. When there is a technique in which semantic aggregation does not have access rights to the resource, the problem of the semantic aggregation process cannot be completed.
上述实施例中的用于语义混聚的装置可以实现本发明下述的图 8A至 图 10所示实施例的流程。 The apparatus for semantic hybridization in the above embodiment can implement the flow of the embodiment shown in Figs. 8A to 10 of the present invention described below.
图 7示出了本发明一实施例提供的通信设备的结构示意图,如图 7所示, 本实施例的通信设备包括: 发送单元 71、 接收单元 72和获取单元 73 ; 其中, 发送单元 71用于向语义引擎发送语义请求, 所述语义请求包括: 用于表示获取资源处理结果的信息; 所述语义请求用于使所述语义引擎在 CSE中发现存储所述资源的至少一个 CSF, 以及接收所述至少一个 CSF发送 的所述 CSF中的资源的 URI; FIG. 7 is a schematic structural diagram of a communication device according to an embodiment of the present invention. As shown in FIG. 7, the communication device of this embodiment includes: a sending unit 71, a receiving unit 72, and an obtaining unit 73. Sending a semantic request to the semantic engine, the semantic request comprising: information for indicating a result of acquiring a resource processing; the semantic request for causing the semantic engine to discover at least one CSF storing the resource in the CSE, and receiving a URI of a resource in the CSF sent by the at least one CSF;
接收单元 72用于在所述发送单元 71发送所述语义请求之后, 接收所述 语义引擎发送的第一消息, 所述第一消息为所述语义引擎确定不具有所述至 少一个 CSF中的资源的接入权限之后发送的, 所述第一消息包括: 所述语义 引擎确定不具有所述至少一个 CSF中的资源的接入权限时生成的所述资源的 权限状态列表, 和用于表示无权限获取所述资源的信息; 所述权限状态列表 包括: 所述资源的 URI; The receiving unit 72 is configured to receive, after the sending unit 71 sends the semantic request, a first message sent by the semantic engine, where the first message is that the semantic engine determines that the resource in the at least one CSF is not included. After the access permission is sent, the first message includes: a list of permission states of the resource generated when the semantic engine determines that the access authority of the resource in the at least one CSF is not available, and is used to indicate that Accessing the information of the resource; the permission status list includes: a URI of the resource;
获取单元 73用于根据所述接收单元 72接收的第一消息通过所述权限状 态列表的 URI获取资源; The obtaining unit 73 is configured to acquire a resource by using a URI of the permission status list according to the first message received by the receiving unit 72;
所述发送单元 71还用于将所述获取单元 73获取的资源发送所述语义引 擎, 以使所述语义引擎对所述资源进行混聚处理; The sending unit 71 is further configured to send the resource acquired by the obtaining unit 73 to the semantic engine, so that the semantic engine performs a hybrid processing on the resource;
所述接收单元 72还用于在所述发送单元 71发送所述资源之后, 接收所 述语义引擎对所述资源混聚处理的处理结果。 The receiving unit 72 is further configured to: after the sending unit 71 sends the resource, receive a processing result of the resource hybrid processing by the semantic engine.
可选地, 所述通信设备还可包括图中未示出的确定单元 74, 其中, 确定
单元 74用于确定是否能够混聚处理所述资源; Optionally, the communication device may further include a determining unit 74 not shown in the figure, where Unit 74 is configured to determine whether the resource can be aggregated for processing;
相应地, 所述发送单元 71可具体用于在所述确定单元 74确定通信设备 不能够混聚处理所述资源时,将所述获取单元 73获取的资源发送所述语义引 擎, 以使所述语义引擎对所述资源进行混聚处理。 Correspondingly, the sending unit 71 may be specifically configured to: when the determining unit 74 determines that the communications device is not capable of being aggregated to process the resource, send the resource acquired by the acquiring unit 73 to the semantic engine, so that the The semantic engine performs a hybrid processing on the resources.
举例来说, 前述的权限状态列表还可包括: 语义引擎对所述权限状态列 表中每一资源的接入权限状态, 和所述语义引擎获取资源处理结果的语义描 述。 For example, the foregoing permission status list may further include: a semantic authority's access authority status for each resource in the permission status list, and a semantic description of the semantic engine obtaining resource processing result.
也就是说, 在具体的应用中, 权限状态列表通常包括: 所有资源的 URI, 以及语义引擎对所述权限状态列表中每一资源的接入权限状态, 所述语义引 擎获取资源处理结果的语义描述。 本实施例仅为举例说明, 不限定权限状态 列表的具体形式, 权限状态列表根据实际需要设置。 That is to say, in a specific application, the permission status list generally includes: a URI of all resources, and an access authority status of each resource in the permission status list by the semantic engine, and the semantic engine acquires semantics of the resource processing result description. This embodiment is for illustrative purposes only, and does not limit the specific form of the privilege status list. The privilege status list is set according to actual needs.
在第二种可选的实现场景中, 所述发送单元 71还用于, 在所述确定单元 74确定所述通信设备能够混聚处理所述资源时, 向所述语义引擎发送第二消 息, 所述第二消息用于使所述语义引擎结束对所述语义请求的处理的消息。 In the second optional implementation scenario, the sending unit 71 is further configured to: when the determining unit 74 determines that the communications device is capable of mixing and processing the resource, sending a second message to the semantic engine, where The second message is for causing the semantic engine to end the message processing of the semantic request.
在第二种可选的实现场景中, 所述通信设备还可包括图中未示出的更新 单元 75, 更新单元 75可用于根据所述接收单元 72接收的第一消息对至少一 个 CSF存储的资源进行更新处理,以使至少一个 CSF中存储的资源对所述语 义引擎无接入权限限制,所述至少一个 CSF为所述权限状态列表中的 URI对 应存储位置的 CSF; In a second optional implementation scenario, the communication device may further include an update unit 75 not shown in the figure, and the update unit 75 may be configured to store the at least one CSF according to the first message received by the receiving unit 72. The resource is updated, so that the resources stored in the at least one CSF have no access permission to the semantic engine, and the at least one CSF is a CSF corresponding to the storage location of the URI in the permission status list;
所述发送单元 71, 还用于在所述更新单元 75更新所述至少一个 CSF中 存储的资源之后, 向所述语义引擎发送第三消息, 所述第三消息用于使所述 语义引擎从所述权限状态列表的 URI中获取所述资源, 所述第三消息包括: 用于通知所述语义引擎有权限获取所述 URI的资源的信息。 The sending unit 71 is further configured to: after the updating unit 75 updates the resource stored in the at least one CSF, send a third message to the semantic engine, where the third message is used to enable the semantic engine to Obtaining the resource in the URI of the permission status list, where the third message includes: information used to notify the semantic engine that the resource of the URI is authorized to acquire the URI.
上述的通信装置和本发明实施例中的用于语义混聚的装置交互, 可使得 用于语义混聚的装置在不具备混聚所需的某个或某些资源的接入权限时能够 完成语义混聚, 且能够获得准确的混聚结果, 解决了现有技术中语义混聚不 具有该资源的接入权限时, 将无法完成语义混聚的流程的问题。 The above communication device interacts with the device for semantic hybridization in the embodiment of the present invention, so that the device for semantic hybridization can complete the access permission of one or some resources required for the aggregation. Semantic cohesion, and can obtain accurate hybridization results, and solve the problem that the semantic mixing in the prior art does not have the access permission of the resource, and the process of semantic aggregation cannot be completed.
上述实施例中的通信设备可以实现本发明下述的图 11和图 12所示实 施例的流程。 The communication device in the above embodiment can implement the flow of the embodiment shown in Figs. 11 and 12 of the present invention described below.
图 8A示出了本发明一实施例提供的语义混聚的方法的流程示意图, 如
图 8A所示, 本发明实施例的语义混聚的方法如下所述。 FIG. 8A is a schematic flowchart diagram of a method for semantic hybridization according to an embodiment of the present invention, such as As shown in FIG. 8A, the method of semantic aggregation of the embodiment of the present invention is as follows.
801、 语义引擎接收 AE发送的语义请求, 所述语义请求包括: 用于表示 获取资源处理结果的信息; 801. The semantic engine receives a semantic request sent by the AE, where the semantic request includes: information used to indicate that the resource processing result is obtained;
802、 语义引擎根据所述语义请求在所述语义引擎所在的 CSE 中发现存 储所述资源的至少一个 CSF,接收所述至少一个 CSF发送的所述 CSF中的资 源的 URI; 802. The semantic engine finds, according to the semantic request, at least one CSF that stores the resource in a CSE where the semantic engine is located, and receives a URI of a resource in the CSF sent by the at least one CSF.
803、 语义引擎确定不具有所述至少一个 CSF 中的资源的接入权限时, 生成所述资源的权限状态列表, 所述权限状态列表包括: 所述资源的 URI。 803. When the semantic engine determines that the access right of the resource in the at least one CSF is not available, generating a permission status list of the resource, where the permission status list includes: a URI of the resource.
举例来说, 权限状态列表包括: 所有资源的 URI, 以及语义引擎对每一 资源的接入权限状态, 和语义引擎获取资源处理结果的语义描述。 For example, the privilege status list includes: a URI of all resources, and an access authority status of the semantic engine for each resource, and a semantic description of the semantic engine obtaining resource processing results.
804、 语义引擎向所述 AE发送第一消息, 所述第一消息包括: 权限状态 列表, 和用于表示无权限获取所述资源的信息。 804. The semantic engine sends a first message to the AE, where the first message includes: a permission status list, and information used to indicate that the resource is not authorized to acquire.
805、 语义引擎接收所述 AE根据所述第一消息发送的所述资源, 所述资 源为所述 AE从所述 URI中获取的; 805. The semantic engine receives the resource that is sent by the AE according to the first message, where the resource is obtained by the AE from the URI.
806、 语义引擎对所述资源进行混聚处理, 得到所述资源的处理结果, 将 所述处理结果发送所述 AE。 806. The semantic engine performs a hybrid processing on the resource, obtains a processing result of the resource, and sends the processing result to the AE.
可选地, 语义引擎对 CSF中的部分资源有接入权限时, 上述方法在步骤 805之前, 还可包括下述的图中未示出的步骤 805a: Optionally, when the semantic engine has access rights for some resources in the CSF, the foregoing method may further include a step 805a not shown in the following figure before the step 805:
805a: 语义引擎确定具有所述至少一个 CSF中的资源的接入权限时, 从 所述 CSF发送的 URI中获取所述资源。 805a: When the semantic engine determines the access right of the resource in the at least one CSF, the resource is obtained from the URI sent by the CSF.
进而, 在步骤 805中, 语义引擎可将接收 AE发送的资源信息和从 CSF 中获取的资源信息进行混聚处理, 得到资源信息的处理结果, 并将处理结果 发送 AE。 Further, in step 805, the semantic engine may perform a hybrid processing on the resource information received by the AE and the resource information obtained from the CSF to obtain a processing result of the resource information, and send the processing result to the AE.
在具体的应用中, 上述的权限状态列表通常包括: 所有资源的 URI, 以 及语义引擎对所述权限状态列表中每一资源的接入权限状态, 所述语义引擎 获取资源处理结果的语义描述。 In a specific application, the foregoing permission status list generally includes: a URI of all resources, and an access authority status of each resource in the permission status list by the semantic engine, and the semantic engine acquires a semantic description of the resource processing result.
也就是说, 权限状态列表中可以包括: 语义引擎无权限接入资源的 URI, 同时还包括语义引擎有权限接入资源的 URI。 That is to say, the permission status list may include: a URI that the semantic engine does not have access to the resource, and a URI that the semantic engine has permission to access the resource.
若语义引擎创建有虚拟设备执行语义请求, 则权限状态列表可包括: 所 有资源的 URI, 以及语义引擎对所述权限状态列表中每一资源的接入权限状
态, 所述虚拟设备用于获取资源处理结果的语义描述等等。 If the semantic engine creates a virtual device execution semantic request, the permission status list may include: a URI of all resources, and an access authority of the semantic engine to each resource in the permission status list The virtual device is configured to obtain a semantic description of the resource processing result and the like.
本实施例仅为举例说明, 不限定权限状态列表的具体形式, 权限状态列 表根据实际需要设置。 This embodiment is for illustrative purposes only. The specific form of the permission status list is not limited. The permission status list is set according to actual needs.
上述实施例语义混聚的方法, 可在不具备混聚所需的某个或某些资源的 接入权限时能够完成语义混聚, 且能够获得准确的混聚结果, 解决了现有技 术中语义混聚不具有该资源的接入权限时, 将无法完成语义混聚的流程的问 题。 图 8B示出了本发明一实施例提供的语义混聚的方法的流程示意图,如图 8B所示, 本发明实施例的语义混聚的方法如下所述。 The semantic aggregation method of the foregoing embodiment can complete semantic aggregation when the access permission of one or some resources required for the aggregation is not completed, and can obtain an accurate mixing result, and solve the prior art. When semantic aggregation does not have access rights to the resource, the problem of the semantic aggregation process cannot be completed. FIG. 8B is a schematic flowchart of a method for semantic hybridization according to an embodiment of the present invention. As shown in FIG. 8B, a method for semantic hybridization according to an embodiment of the present invention is as follows.
811、 AE向 CSE中的语义引擎发送语义请求, 所述语义请求为: 用于表 示房间内的不舒适指数是多少的信息。 811. The AE sends a semantic request to a semantic engine in the CSE, where the semantic request is: information indicating what the discomfort index in the room is.
812、 语义引擎对 CSE中符合语义请求的第一虚拟设备进行发现。 812. The semantic engine discovers the first virtual device in the CSE that meets the semantic request.
应理解, 该处的第一虚拟设备可为执行语义请求的虚拟设备, 即用于计 算房间内的不舒适指数的设备。 It should be understood that the first virtual device there may be a virtual device that performs a semantic request, i.e., a device for calculating an uncomfortable index within a room.
813、 若 CSE中无符合所述语义请求的第一虚拟设备, 则创建所述第一 虚拟设备; 创建的所述第一虚拟设备可实现下述的功能: 根据语义引擎获取 的温度值和湿度值计算不舒适指数。 813. If there is no first virtual device that meets the semantic request in the CSE, create the first virtual device; the created first virtual device may implement the following functions: temperature value and humidity acquired according to the semantic engine The value calculates the discomfort index.
可选地, 若 CSE中有符合所述语义请求的第一虚拟设备, 则直接使用所 述第一虚拟设备。 Optionally, if there is a first virtual device in the CSE that meets the semantic request, the first virtual device is directly used.
814、语义引擎发现所述 CSE中至少一个 CSF中存储的资源如,第一 CSF 存储有 X年 X月 X日的温度值和湿度值, 第二 CSF存储有 XX年 XX月 XX日 的温度值和湿度值等等。 814. The semantic engine finds a resource stored in at least one CSF in the CSE. For example, the first CSF stores the temperature value and the humidity value of the X year X month X day, and the second CSF stores the temperature value of the XX year XX month XX day. And humidity values and more.
815、 语义引擎接收所述 CSE中至少一个 CSF中存储温度值和湿度值的 URL 815. The semantic engine receives a URL for storing a temperature value and a humidity value in at least one CSF in the CSE.
应说明的是, 在目前的 RESTful架构下, CSE中任一 CSF存储的资源都 需要通过该资源的 URI进行获取。 也就是说, CSF将资源的 URI提供给语义 引擎, 语义引擎通过 URI获取 CSF中的资源。 It should be noted that under the current RESTful architecture, any CSF stored resource in the CSE needs to be obtained through the URI of the resource. That is, the CSF provides the URI of the resource to the semantic engine, and the semantic engine obtains the resources in the CSF through the URI.
在 CSE中, 语义引擎和 CSF都有进行信息交互的接口。 In CSE, both the semantic engine and the CSF have interfaces for information interaction.
816、 语义引擎确定不具有至少一个 CSF中资源的接入权限时, 可生成 接入权限状态列表, 所述接入权限状态列表可包括: CSF中资源的 URI, 以
及第一虚拟设备的语义描述。 816. When the semantic engine determines that the access right of the resource in the at least one CSF is not available, the access permission status list may be generated, where the access permission status list may include: a URI of the resource in the CSF, And a semantic description of the first virtual device.
可选地, 权限状态列表还可包括: 语义引擎对权限状态列表中每一资源 的接入权限状态。 Optionally, the permission status list may further include: an access authority status of each resource in the permission status list by the semantic engine.
该步骤中 CSF中的资源可为温度值和湿度值。 The resources in the CSF in this step can be temperature values and humidity values.
举例来说, 该处第一虚拟设备的语义描述可为根据温度值和湿度值计算 不舒适指数等。 For example, the semantic description of the first virtual device may be to calculate a discomfort index or the like based on the temperature value and the humidity value.
在具体的应用中, 权限状态列表可包括: 所有资源的 URI, 以及语义引 擎对所述权限状态列表中每一资源的接入权限状态, 所述第一虚拟设备用于 获取资源处理结果的语义描述等等。 In a specific application, the permission status list may include: a URI of all resources, and an access authority status of each resource in the permission status list by the semantic engine, where the first virtual device is used to obtain the semantics of the resource processing result Description and more.
本实施例仅为举例说明, 不限定权限状态列表的具体形式, 权限状态列 表根据实际需要设置。 This embodiment is for illustrative purposes only. The specific form of the permission status list is not limited. The permission status list is set according to actual needs.
817、 语义引擎将生成的接入权限状态列表发送 AE。 817. The semantic engine sends the generated access authority status list to the AE.
818、 AE可向语义引擎返回等待消息, 所述等待消息包括: 用于表示通 知语义引擎等待接收所述 AE根据接入权限状态列表获取所述语义引擎无法 获取的温度值和湿度值。 818. The AE may return a waiting message to the semantic engine, where the waiting message includes: indicating that the notification semantic engine waits to receive the temperature value and the humidity value that the AE cannot obtain according to the access authority status list.
819、 AE通过 RETREIVE获取接入权限状态列表中的 URI所指向的温度 值和湿度值。 819. The AE obtains the temperature value and the humidity value pointed to by the URI in the access authority status list through RETREIVE.
该处的 RETREIVE为一种资源获取的具体操作方式。 RETREIVE is a specific way of obtaining resources.
820、 AE将获取的多个温度值和多个湿度值发送至语义引擎。 820. The AE sends the acquired multiple temperature values and the plurality of humidity values to the semantic engine.
821、 前述步骤 413中语义引擎创建的第一虚拟设备调用上述 AE发送的 多个温度值和多个湿度值进行混聚处理, 获得处理结果即房间内的不舒适指 数; 821. The first virtual device created by the semantic engine in the foregoing step 413 invokes multiple temperature values and multiple humidity values sent by the foregoing AE to perform a hybrid processing, and obtains a processing result, that is, an uncomfortable index in the room;
可理解的是, 第一虚拟设备可调用上述 AE发送的资源。 It can be understood that the first virtual device can invoke the resource sent by the foregoing AE.
822、 语义引擎将处理结果即房间内的不舒适指数发送至 AE。 822. The semantic engine sends the result of the discomfort in the room to the AE.
可理解的是, 上述的第一虚拟设备可具有用于计算舒适度的功能, 即可 以具有调用语义引擎中的资源的功能, 以这些资源作为输入, 按照一定的方 法获取房间的舒适度。 It can be understood that the first virtual device described above may have a function for calculating comfort, that is, having a function of calling resources in the semantic engine, using these resources as input, and acquiring the comfort of the room according to a certain method.
本实施例中的语义混聚的方法, 通过语义引擎在没有 CSF存储的资源的 接入权限时, 将 CSF中资源的 URI发送 AE, 以使 AE获取资源, 进而接收 AE发送的资源, 可将 AE发送的资源进行混聚处理, 由此, 语义引擎在不具
备混聚所需的某个或某些资源的接入权限时能够完成语义混聚, 且能够获得 准确的处理结果, 解决了现有技术中语义混聚不具有该资源的接入权限时, 将无法完成语义混聚的流程的问题。 The semantic aggregation method in this embodiment, when the access authority of the resource without the CSF is stored by the semantic engine, sends the URI of the resource in the CSF to the AE, so that the AE acquires the resource, and then receives the resource sent by the AE, and The resources sent by the AE are mixed, and thus the semantic engine does not have When the access permission of one or some resources required for the hybridization is completed, the semantic aggregation can be completed, and the accurate processing result can be obtained, and the semantic aggregation in the prior art does not have the access permission of the resource. There will be problems with the process of semantic coalescing.
图 9示出了本发明一实施例提供的语义混聚的方法的流程示意图, 如图 9所示, 本发明实施例的语义混聚的方法如下所述。 FIG. 9 is a schematic flowchart diagram of a method for semantic hybridization according to an embodiment of the present invention. As shown in FIG. 9, a method for semantic hybridization according to an embodiment of the present invention is as follows.
901、 语义引擎接收应用实体 AE发送的语义请求, 所述语义请求包括: 用于表示获取资源处理结果的信息; 901. The semantic engine receives a semantic request sent by an application entity AE, where the semantic request includes: information used to indicate a result of acquiring a resource processing;
902、 语义引擎根据所述语义请求在所述语义引擎所在的 CSE 中发现存 储所述资源的至少一个 CSF,接收所述至少一个 CSF发送的所述 CSF中的资 源的 URI; 902. The semantic engine finds, according to the semantic request, at least one CSF that stores the resource in a CSE where the semantic engine is located, and receives a URI of a resource in the CSF sent by the at least one CSF.
903、 语义引擎确定不具有所述至少一个 CSF 中的资源的接入权限时, 生成所述资源的权限状态列表, 所述权限状态列表包括: 所述资源的 URI。 903. When the semantic engine determines that the access right of the resource in the at least one CSF is not available, generating a permission status list of the resource, where the permission status list includes: a URI of the resource.
举例来说, 上述的权限状态列表包括: 所有资源的 URI, 以及语义引擎 对每一资源的接入权限状态, 和语义引擎获取资源处理结果的语义描述。 For example, the foregoing permission status list includes: a URI of all resources, and an access authority status of the semantic engine for each resource, and a semantic description of the semantic engine obtaining resource processing result.
也就是说, 权限状态列表中可以包括: 语义引擎无权限接入资源的 URI, 同时还包括语义引擎有权限接入资源的 URI。 That is to say, the permission status list may include: a URI that the semantic engine does not have access to the resource, and a URI that the semantic engine has permission to access the resource.
在具体应用中, 若语义引擎创建有虚拟设备执行语义请求, 则权限状态 列表可包括: 所有资源的 URI, 以及语义引擎对所述权限状态列表中每一资 源的接入权限状态, 所述虚拟设备用于获取资源处理结果的语义描述等等。 In a specific application, if the semantic engine creates a virtual device execution semantic request, the permission status list may include: a URI of all resources, and an access authority status of each resource in the permission status list by the semantic engine, the virtual The device is used to obtain semantic descriptions of resource processing results and so on.
本实施例仅为举例说明, 不限定权限状态列表的具体形式, 权限状态列 表根据实际需要设置。 This embodiment is for illustrative purposes only. The specific form of the permission status list is not limited. The permission status list is set according to actual needs.
904、 语义引擎向所述 AE发送第一消息, 所述第一消息包括: 权限状态 列表, 和用于表示无权限获取所述资源的信息; 904. The semantic engine sends a first message to the AE, where the first message includes: a permission status list, and information used to indicate that the resource is not authorized to acquire the resource;
905、 语义引擎接收所述 AE发送的第二消息, 所述第二消息为所述 AE 确定能够获取所述 URI中的资源并混聚处理所述资源时发送的, 用于使所述 语义引擎结束对所述语义请求的处理的消息; 905. The semantic engine receives a second message sent by the AE, where the second message is sent when the AE determines that the resource in the URI can be acquired and the resource is mixed and processed, and is used to enable the semantic engine. Ending the processing of the semantic request;
906、 语义引擎根据所述第二消息结束对所述语义请求的处理。 906. The semantic engine ends processing the semantic request according to the second message.
本实施例中的语义混聚的方法, 在 AE能够根据语义引擎发送的权限状 态列表进行后续的混聚处理时, 可结束语义引擎对语义请求的处理过程。 In the semantic aggregation method in this embodiment, when the AE can perform subsequent aggregation processing according to the permission status list sent by the semantic engine, the processing process of the semantic request by the semantic engine may be ended.
图 10示出了本发明一实施例提供的语义混聚的方法的流程示意图,如图
10所示, 本发明实施例的语义混聚的方法如下所述。 FIG. 10 is a schematic flowchart of a method for semantic hybridization according to an embodiment of the present invention, as shown in FIG. As shown in FIG. 10, the method of semantic aggregation of the embodiment of the present invention is as follows.
1001、 语义引擎接收 AE发送的语义请求, 所述语义请求包括: 用于表 示获取资源处理结果的信息; 1001: The semantic engine receives a semantic request sent by the AE, where the semantic request includes: information used to indicate that the resource processing result is obtained;
1002、 语义引擎根据所述语义请求在所述语义引擎所在的 CSE中发现存 储所述资源的至少一个 CSF,接收所述至少一个 CSF发送的所述 CSF中的资 源的 URI; 1002: The semantic engine finds, according to the semantic request, at least one CSF that stores the resource in a CSE where the semantic engine is located, and receives a URI of a resource in the CSF sent by the at least one CSF;
1003、 语义引擎确定不具有所述至少一个 CSF中的资源的接入权限时, 生成所述资源的权限状态列表, 所述权限状态列表包括: 所述资源的 URI。 1003. When the semantic engine determines that the access right of the resource in the at least one CSF is not available, generating a permission status list of the resource, where the permission status list includes: a URI of the resource.
举例来说, 权限状态列表包括: 所有资源的 URI, 以及语义引擎对每一 资源的接入权限状态, 和语义引擎获取资源处理结果的语义描述。 For example, the privilege status list includes: a URI of all resources, and an access authority status of the semantic engine for each resource, and a semantic description of the semantic engine obtaining resource processing results.
也就是说, 权限状态列表中可以包括: 语义引擎无权限接入资源的 URI, 同时还包括语义引擎有权限接入资源的 URI。 That is to say, the permission status list may include: a URI that the semantic engine does not have access to the resource, and a URI that the semantic engine has permission to access the resource.
在具体应用中, 若语义引擎创建有虚拟设备执行语义请求, 则权限状态 列表可包括: 所有资源的 URI, 以及语义引擎对所述权限状态列表中每一资 源的接入权限状态, 所述虚拟设备用于获取资源处理结果的语义描述等等。 In a specific application, if the semantic engine creates a virtual device execution semantic request, the permission status list may include: a URI of all resources, and an access authority status of each resource in the permission status list by the semantic engine, the virtual The device is used to obtain semantic descriptions of resource processing results and so on.
本实施例仅为举例说明, 不限定权限状态列表的具体形式, 权限状态列 表根据实际需要设置。 This embodiment is for illustrative purposes only. The specific form of the permission status list is not limited. The permission status list is set according to actual needs.
1004、 语义引擎向所述 AE发送第一消息, 所述第一消息包括: 权限状 态列表, 和用于表示无权限获取所述资源的信息; 1004. The semantic engine sends a first message to the AE, where the first message includes: a permission status list, and information used to indicate that the resource is not authorized to acquire the resource;
1005、 语义引擎接收所述 AE根据所述第一消息发送的第三消息, 所述 第三消息包括: 用于通知所述语义引擎有权限获取所述 URI的资源的信息。 1005. The semantic engine receives a third message that is sent by the AE according to the first message, where the third message includes: information used to notify the semantic engine that the resource of the URI is authorized to acquire the URI.
在本步骤中, AE接收第一消息后可以 Update上述 CSF中的资源的接入 权限信息, 使得 CSF中的资源对语义引擎开放权限, 进而向语义引擎发送第 三消息。 In this step, after receiving the first message, the AE may update the access authority information of the resources in the CSF, so that the resources in the CSF open the authority to the semantic engine, and then send the third message to the semantic engine.
应理解, Update是前述的 RESTful架构下的一种用于对资源或资源的属 性进行更新的操作方式。 It should be understood that Update is an operation of the aforementioned RESTful architecture for updating the attributes of resources or resources.
1006、 语义引擎根据所述第三消息从所述 URI中获取所述资源; 1006. The semantic engine acquires the resource from the URI according to the third message.
1007、语义引擎对获取的资源进行混聚处理, 得到所述资源的处理结果, 将所述处理结果发送所述 AE。 1007. The semantic engine performs a hybrid processing on the obtained resource, obtains a processing result of the resource, and sends the processing result to the AE.
可选地, 语义引擎对 CSF中的部分资源有接入权限时, 上述方法在步骤
1007之前, 还可包括下述的图中未示出的步骤 1007a: Optionally, when the semantic engine has access rights to some resources in the CSF, the foregoing method is in the step Prior to 1007, step 1007a, not shown in the following figures, may also be included:
1007a: 语义引擎确定具有所述至少一个 CSF 中的资源的接入权限时, 从所述 CSF发送的 URI中获取所述资源。 1007a: When the semantic engine determines the access rights of the resources in the at least one CSF, the resources are obtained from the URIs sent by the CSF.
本实施例中的语义混聚的方法, 通过语义引擎在没有 CSF存储的资源的 接入权限时, 将 CSF中资源的 URI发送 AE, 以使 AE更新 CSF中的资源, 使得语义引擎能够获取 CSF 中存储的资源, 进而语义引擎根据第三消息从 CSF发送的 URI中获取资源, 并进行混聚处理; 由此, 语义引擎在不具备混 聚所需的某个或某些资源的接入权限时能够完成语义混聚, 且能够获得准确 的处理结果, 解决了现有技术中语义混聚不具有该资源的接入权限时, 将无 法完成语义混聚的流程的问题。 The semantic aggregation method in this embodiment sends the URI of the resource in the CSF to the AE by the semantic engine when the access authority of the CSF-free resource is not used, so that the AE updates the resource in the CSF, so that the semantic engine can acquire the CSF. The stored resource, and the semantic engine obtains the resource from the URI sent by the CSF according to the third message, and performs the hybrid processing; thus, the semantic engine does not have the access permission of one or some resources required for the hybridization. When the semantic aggregation can be completed, and the accurate processing result can be obtained, the problem that the semantic mixing of the prior art does not have the access permission of the resource will not be completed.
图 11示出了本发明一实施例提供的语义混聚的方法的流程示意图,如图 11所示, 本发明实施例的语义混聚的方法如下所述。 FIG. 11 is a schematic flowchart diagram of a method for semantic hybridization according to an embodiment of the present invention. As shown in FIG. 11, a method for semantic hybridization according to an embodiment of the present invention is as follows.
1101、 AE向语义引擎发送语义请求, 所述语义请求包括: 用于表示获取 资源处理结果的信息; 所述语义请求用于使所述语义引擎在 CSE中发现存储 所述资源的至少一个 CSF,以及接收所述至少一个 CSF发送的所述 CSF中的 资源的 URI; The AE sends a semantic request to the semantic engine, where the semantic request includes: information for indicating a result of acquiring the resource processing; the semantic request is used to cause the semantic engine to discover at least one CSF storing the resource in the CSE, And receiving a URI of a resource in the CSF sent by the at least one CSF;
1102、 AE接收所述语义引擎发送的第一消息,所述第一消息为所述语义 引擎确定不具有所述至少一个 CSF中的资源的接入权限之后发送的, 所述第 一消息包括: 所述语义引擎确定不具有所述至少一个 CSF中的资源的接入权 限时生成的所述资源的权限状态列表, 和用于表示无权限获取所述资源的信 息; 所述权限状态列表包括: 所述资源的 URI。 The first message is sent by the AE after the semantic engine determines that the access authority does not have the access rights of the resources in the at least one CSF, and the first message includes: The semantic engine determines a permission status list of the resource generated when the access authority of the resource in the at least one CSF is not available, and information indicating that the resource is not authorized to acquire the resource; the permission status list includes: The URI of the resource.
举例来说, 权限状态列表包括: 所有资源的 URI, 以及语义引擎对每一 资源的接入权限状态, 和语义引擎获取资源处理结果的语义描述。 For example, the privilege status list includes: a URI of all resources, and an access authority status of the semantic engine for each resource, and a semantic description of the semantic engine obtaining resource processing results.
也就是说, 权限状态列表中可以包括: 语义引擎无权限接入资源的 URI, 同时还包括语义引擎有权限接入资源的 URI。 That is to say, the permission status list may include: a URI that the semantic engine does not have access to the resource, and a URI that the semantic engine has permission to access the resource.
在具体应用中, 若语义引擎创建有虚拟设备执行语义请求, 则权限状态 列表可包括: 所有资源的 URI, 以及语义引擎对所述权限状态列表中每一资 源的接入权限状态, 所述虚拟设备用于获取资源处理结果的语义描述等等。 In a specific application, if the semantic engine creates a virtual device execution semantic request, the permission status list may include: a URI of all resources, and an access authority status of each resource in the permission status list by the semantic engine, the virtual The device is used to obtain semantic descriptions of resource processing results and so on.
本实施例仅为举例说明, 不限定权限状态列表的具体形式, 权限状态列 表根据实际需要, 还可包括其他内容等。
1103、 AE根据所述第一消息通过所述权限状态列表的 URI获取资源, 将所述资源发送所述语义引擎, 以使所述语义引擎对所述资源进行混聚处理; This embodiment is for illustrative purposes only, and does not limit the specific form of the privilege state list. The privilege state list may include other content and the like according to actual needs. 1103. The AE obtains a resource according to the first message by using a URI of the permission status list, and sends the resource to the semantic engine, so that the semantic engine performs a hybrid processing on the resource.
1104、 AE接收所述语义引擎对所述资源混聚处理的处理结果。 1104. The AE receives a processing result of the resource hybrid processing by the semantic engine.
可选地, 在步骤 1103中的将所述资源发送所述语义引擎的步骤之前, 上 述方法还可包括下述的图中未示出的步骤 1103' : Optionally, before the step of transmitting the resource to the semantic engine in step 1103, the method may further include the step 1103' not shown in the following figure:
1103'、 AE确定不能够混聚处理所述资源。 1103', AE determines that the resource cannot be aggregated.
可选地, 若在步骤 1103'中, AE确定能够混聚处理所述资源时, AE可 向所述语义引擎发送第二消息, 所述第二消息用于使所述语义引擎结束对所 述语义请求的处理的消息。 Optionally, if the AE determines that the resource can be aggregated and processed in step 1103', the AE may send a second message to the semantic engine, where the second message is used to cause the semantic engine to end the Messages processed by semantic requests.
此时, 语义混聚则结束上述处理流程。 At this point, semantic mixing ends the above process flow.
图 12示出了本发明一实施例提供的语义混聚的方法的流程示意图,如图 12所示, 本发明实施例的语义混聚的方法如下所述。 FIG. 12 is a schematic flowchart diagram of a method for semantic hybridization according to an embodiment of the present invention. As shown in FIG. 12, a method for semantic hybridization according to an embodiment of the present invention is as follows.
1201、 AE向语义引擎发送语义请求, 所述语义请求包括: 用于表示获取 资源处理结果的信息; 所述语义请求用于使所述语义引擎在 CSE中发现存储 所述资源的至少一个 CSF,以及接收所述至少一个 CSF发送的所述 CSF中的 资源的 URI; 1201: The AE sends a semantic request to a semantic engine, where the semantic request includes: information used to represent a result of acquiring a resource processing; the semantic request is used to cause the semantic engine to discover at least one CSF that stores the resource in a CSE, And receiving a URI of a resource in the CSF sent by the at least one CSF;
1202、 AE接收所述语义引擎发送的第一消息,所述第一消息为所述语义 引擎确定不具有所述至少一个 CSF中的资源的接入权限之后发送的, 所述第 一消息包括: 所述语义引擎确定不具有所述至少一个 CSF中的资源的接入权 限时生成的所述资源的权限状态列表, 和用于表示无权限获取所述资源的信 息; 所述权限状态列表包括: 所述资源的 URI。 1202: The AE receives the first message sent by the semantic engine, where the first message is sent after the semantic engine determines that the access authority does not have the access rights of the resources in the at least one CSF, where the first message includes: The semantic engine determines a permission status list of the resource generated when the access authority of the resource in the at least one CSF is not available, and information indicating that the resource is not authorized to acquire the resource; the permission status list includes: The URI of the resource.
举例来说, 权限状态列表包括: 所有资源的 URI, 以及语义引擎对每一 资源的接入权限状态, 和语义引擎获取资源处理结果的语义描述。 For example, the privilege status list includes: a URI of all resources, and an access authority status of the semantic engine for each resource, and a semantic description of the semantic engine obtaining resource processing results.
也就是说, 权限状态列表中可以包括: 语义引擎无权限接入资源的 URI, 同时还包括语义引擎有权限接入资源的 URI。 That is to say, the permission status list may include: a URI that the semantic engine does not have access to the resource, and a URI that the semantic engine has permission to access the resource.
在具体应用中, 若语义引擎创建有虚拟设备执行语义请求, 则权限状态 列表可包括: 所有资源的 URI, 以及语义引擎对所述权限状态列表中每一资 源的接入权限状态, 所述虚拟设备用于获取资源处理结果的语义描述等等。 In a specific application, if the semantic engine creates a virtual device execution semantic request, the permission status list may include: a URI of all resources, and an access authority status of each resource in the permission status list by the semantic engine, the virtual The device is used to obtain semantic descriptions of resource processing results and so on.
本实施例仅为举例说明, 不限定权限状态列表的具体形式, 权限状态列 表根据实际需要, 还可包括其他内容等。
1203、 AE根据所述第一消息对至少一个 CSF存储的资源进行更新处理, 以使至少一个 CSF中存储的资源对所述语义引擎无接入权限限制, 所述至少 一个 CSF为所述权限状态列表中的 URI对应存储位置的 CSF; This embodiment is for illustrative purposes only, and does not limit the specific form of the privilege state list. The privilege state list may include other content and the like according to actual needs. 1203. The AE performs an update process on the at least one CSF stored resource according to the first message, so that the resource stored in the at least one CSF has no access permission to the semantic engine, and the at least one CSF is the permission state. The URI in the list corresponds to the CSF of the storage location;
1204、 AE向所述语义引擎发送第三消息, 所述第三消息用于使所述语义 引擎从所述权限状态列表的 URI中获取所述资源, 所述第三消息包括: 用于 通知所述语义引擎有权限获取所述 URI的资源的信息。 1204. The AE sends a third message to the semantic engine, where the third message is used to enable the semantic engine to obtain the resource from a URI of the permission status list, where the third message includes: The semantic engine has permission to obtain information about the resources of the URI.
1205、 AE接收所述语义引擎发送的所述资源的处理结果, 所述处理结果 为所述语义引擎接收第三消息之后, 获取所述 URI的资源, 并对获取的所述 资源进行混聚处理得到的。 1205. The AE receives a processing result of the resource sent by the semantic engine, where the processing result is that after the semantic engine receives the third message, the resource of the URI is obtained, and the obtained resource is mixed and processed. owned.
本实施例中的语义混聚的方法, 通过通信装置和语义引擎交互, 可使语 义引擎在不具备混聚所需的某个或某些资源的接入权限时能够完成语义混 聚, 且能够获得准确的处理结果, 解决了现有技术中语义混聚不具有该资源 的接入权限时, 将无法完成语义混聚的流程的问题。 The semantic hybridization method in this embodiment can interact with the semantic engine through the communication device, so that the semantic engine can complete semantic aggregation when the access authority of one or some resources required for the aggregation is not available, and can Obtaining an accurate processing result solves the problem that the semantic aggregation of the prior art does not have the access permission of the resource, and the process of semantic aggregation cannot be completed.
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述 的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的介 质。 A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并 不使相应技术方案的本质脱离本发明各实施例技术方案的范围。
Finally, it should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting thereof; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.
Claims
1、 一种用于语义混聚的装置, 其特征在于, 包括: 1. A device for semantic aggregation, characterized by: including:
发射器、 接收器和处理器; transmitters, receivers and processors;
其中, 所述接收器, 用于接收应用实体 AE发送的语义请求, 所述语义 请求包括: 用于表示获取资源处理结果的信息; Wherein, the receiver is used to receive a semantic request sent by the application entity AE, where the semantic request includes: information used to represent the result of obtaining resource processing;
所述处理器, 用于根据所述接收器接收的所述语义请求在通用服务实体 CSE中发现存储所述资源的至少一个通用服务功能模块 CSF; The processor is configured to discover at least one common service function module CSF that stores the resource in the common service entity CSE according to the semantic request received by the receiver;
所述接收器,还用于接收所述至少一个 CSF发送的所述 CSF中的资源的 通用资源标识符 URI; The receiver is further configured to receive the universal resource identifier URI of the resource in the CSF sent by the at least one CSF;
所述处理器, 还用于确定是否具有所述至少一个 CSF中的资源的接入权 限, 在确定不具有所述至少一个 CSF中的资源的接入权限时, 生成所述资源 的权限状态列表, 所述权限状态列表包括: 所述资源的 URI; The processor is further configured to determine whether it has access rights to the resources in the at least one CSF, and when it is determined that it does not have the access rights to the resources in the at least one CSF, generate a rights status list of the resources , the permission status list includes: the URI of the resource;
所述发射器, 用于向所述 AE发送第一消息, 所述第一消息包括: 所述 处理器生成的权限状态列表, 和用于表示无权限获取所述资源的信息; The transmitter is configured to send a first message to the AE, where the first message includes: a permission status list generated by the processor, and information indicating that there is no permission to obtain the resource;
所述接收器, 用于在所述发射器发送所述第一消息之后, 接收所述 AE 根据所述第一消息发送的所述资源, 所述资源为所述 AE从所述 URI中获取 的; The receiver is configured to receive the resource sent by the AE according to the first message after the transmitter sends the first message. The resource is obtained by the AE from the URI. ;
所述处理器, 还用于对所述接收器接收的资源进行混聚处理, 得到所述 资源的处理结果; The processor is also configured to perform aggregation processing on the resources received by the receiver to obtain the processing results of the resources;
所述发射器, 还用于将所述处理器得到的处理结果发送所述 AE。 The transmitter is also used to send the processing results obtained by the processor to the AE.
2、 根据权利要求 1所述的装置, 其特征在于, 所述接收器, 还用于 在所述发射器发送所述第一消息之后, 接收所述 AE发送的第二消息, 所述第二消息为所述 AE确定能够获取所述 URI中的资源并混聚处理所述资 源时发送的, 用于使所述语义引擎结束对所述语义请求的处理的消息; 2. The device according to claim 1, wherein the receiver is further configured to receive a second message sent by the AE after the transmitter sends the first message, and the second message is The message is sent when the AE determines that it can obtain the resource in the URI and process the resource together, and is used to cause the semantic engine to end the processing of the semantic request;
所述处理器, 还用于根据所述接收器接收的第二消息结束对所述语义请 求的处理。 The processor is further configured to end processing the semantic request according to the second message received by the receiver.
3、 根据权利要求 1所述的装置, 其特征在于, 所述接收器, 还用于 在所述发射器发送所述第一消息之后, 接收所述 AE根据所述第一消息 发送的第三消息, 所述第三消息包括: 用于通知所述语义引擎有权限获取所 述 URI的资源的信息;
所述处理器, 还用于根据所述接收器接收的所述第三消息从所述 URI中 获取所述资源。 3. The device according to claim 1, wherein the receiver is further configured to receive a third message sent by the AE according to the first message after the transmitter sends the first message. message, the third message includes: information used to notify the semantic engine that it has the authority to obtain the resource of the URI; The processor is further configured to obtain the resource from the URI according to the third message received by the receiver.
4、 根据权利要求 1所述的装置, 其特征在于, 所述处理器, 还用于 确定具有所述至少一个 CSF中的资源的接入权限时,从所述 CSF发送的 URI中获取所述资源。 4. The apparatus according to claim 1, wherein the processor is further configured to obtain the URI from the URI sent by the CSF when determining that it has access rights to resources in the at least one CSF. resource.
5、 根据权利要求 1至 4任一所述的装置, 其特征在于, 所述权限状态列 表还包括: 用于语义混聚的装置对所述权限状态列表中每一资源的接入权限 状态, 和所述用于语义混聚的装置获取资源处理结果的语义描述。 5. The device according to any one of claims 1 to 4, characterized in that, the permission status list further includes: the access permission status of each resource in the permission status list by the device for semantic aggregation, and the device for semantic aggregation to obtain a semantic description of the resource processing result.
6、 一种通信设备, 其特征在于, 包括: 6. A communication device, characterized by including:
发射器、 接收器和处理器; transmitters, receivers and processors;
其中,所述发射器,用于向语义引擎发送语义请求,所述语义请求包括: 用于表示获取资源处理结果的信息; 所述语义请求用于使所述语义引擎在通 用服务实体 CSE中发现存储所述资源的至少一个通用服务功能模块 CSF, 以 及接收所述至少一个 CSF发送的所述 CSF中的资源的通用资源标识符 URI; 所述接收器, 用于在所述发射器发送所述语义请求之后, 接收所述语义 引擎发送的第一消息, 所述第一消息为所述语义引擎确定不具有所述至少一 个 CSF中的资源的接入权限之后发送的, 所述第一消息包括: 所述语义引擎 确定不具有所述至少一个 CSF中的资源的接入权限时生成的所述资源的权限 状态列表, 和用于表示无权限获取所述资源的信息; 所述权限状态列表包括: 所述资源的 URI; Wherein, the transmitter is used to send a semantic request to the semantic engine, the semantic request includes: information used to represent the acquisition of resource processing results; the semantic request is used to make the semantic engine discover in the common service entity CSE At least one universal service function module CSF that stores the resources, and receives the universal resource identifier URI of the resources in the CSF sent by the at least one CSF; the receiver is configured to send the After the semantic request, receive the first message sent by the semantic engine. The first message is sent after the semantic engine determines that it does not have access rights to the resources in the at least one CSF, and the first message includes : a permission status list of the resource generated when the semantic engine determines that the resource in the at least one CSF does not have access permission, and information used to indicate that there is no permission to obtain the resource; the permission status list includes : URI of the resource;
所述处理器, 用于根据所述接收器接收的所述第一消息通过所述权限状 态列表的 URI获取资源; The processor is configured to obtain resources through the URI of the permission status list according to the first message received by the receiver;
所述发射器, 用于将所述处理器获取的所述资源发送所述语义引擎, 以 使所述语义引擎对所述资源进行混聚处理; The transmitter is used to send the resources acquired by the processor to the semantic engine, so that the semantic engine performs aggregation processing on the resources;
所述接收器, 用于在所述发射器发送所述资源之后, 接收所述语义引擎 对所述资源混聚处理的处理结果。 The receiver is configured to receive the processing result of the resource mixing and aggregation processing by the semantic engine after the transmitter sends the resource.
7、 根据权利要求 6所述的设备, 其特征在于, 所述处理器, 还用于 确定是否能够混聚处理所述资源。 7. The device according to claim 6, wherein the processor is further configured to determine whether the resources can be mixed and processed.
8、 根据权利要求 7所述的设备, 其特征在于, 所述发射器, 还用于 在所述处理器确定能够混聚处理所述资源时, 向所述语义引擎发送第二
消息,所述第二消息用于使所述语义引擎结束对所述语义请求的处理的消息。 8. The device according to claim 7, wherein the transmitter is further configured to send a second message to the semantic engine when the processor determines that the resource can be mixed and processed. message, the second message is a message used to cause the semantic engine to end processing the semantic request.
9、 根据权利要求 6所述的设备, 其特征在于, 所述处理器, 还用于 根据所述接收器接收的所述第一消息对至少一个 CSF存储的资源进行更 新处理, 以使至少一个 CSF中存储的资源对所述语义引擎无接入权限限制, 所述至少一个 CSF为所述权限状态列表中的 URI对应存储位置的 CSF; 9. The device according to claim 6, wherein the processor is further configured to update at least one CSF stored resource according to the first message received by the receiver, so that at least one The resources stored in the CSF have no access permission restrictions on the semantic engine, and the at least one CSF is the CSF corresponding to the storage location of the URI in the permission status list;
所述发射器, 还用于在所述处理器更新处理之后, 向所述语义引擎发送 第三消息, 所述第三消息用于使所述语义引擎从所述权限状态列表的 URI中 获取所述资源, 所述第三消息包括: 用于通知所述语义引擎有权限获取所述 The transmitter is further configured to send a third message to the semantic engine after the processor update processing, where the third message is used to cause the semantic engine to obtain the URI of the permission status list. resource, the third message includes: used to notify the semantic engine that it has the authority to obtain the
URI的资源的信息。 URI resource information.
10、 根据权利要求 6至 9任一所述的设备, 其特征在于, 所述权限状态 列表还包括:所述语义引擎对所述权限状态列表中每一资源的接入权限状态, 和所述语义引擎获取资源处理结果的语义描述。 10. The device according to any one of claims 6 to 9, characterized in that, the permission status list further includes: the access permission status of each resource in the permission status list by the semantic engine, and the The semantic engine obtains the semantic description of the resource processing results.
11、 一种用于语义混聚的装置, 其特征在于, 包括: 11. A device for semantic aggregation, characterized in that it includes:
接收单元, 用于接收应用实体 AE发送的语义请求, 所述语义请求包括: 用于表示获取资源处理结果的信息; A receiving unit, configured to receive a semantic request sent by the application entity AE, where the semantic request includes: information representing the acquisition resource processing result;
发现单元, 用于根据所述语义请求在所述语义混聚所在的通用服务实体 CSE中发现存储所述资源的至少一个通用服务功能模块 CSF; A discovery unit configured to discover at least one universal service function module CSF that stores the resource in the universal service entity CSE where the semantic aggregation is located according to the semantic request;
所述接收单元,用于接收所述至少一个 CSF发送的所述 CSF中的资源的 通用资源标识符 URI; The receiving unit is configured to receive the universal resource identifier URI of the resource in the CSF sent by the at least one CSF;
确定单元, 用于确定是否具有所述接收单元接收的所述至少一个 CSF中 的资源的接入权限; Determining unit, configured to determine whether it has access rights to the resources in the at least one CSF received by the receiving unit;
生成单元, 用于在确定单元确定不具有所述至少一个 CSF中资源的接入 权限时, 生成所述资源的权限状态列表, 所述权限状态列表包括: 所述资源 的 URI; A generating unit configured to generate a permission status list of the resource when the determination unit determines that it does not have access permission to the at least one resource in the CSF, where the permission status list includes: the URI of the resource;
发送单元, 用于向所述 AE发送第一消息, 所述第一消息包括: 所述生 成单元生成的权限状态列表, 和用于表示无权限获取所述资源的信息; A sending unit, configured to send a first message to the AE, where the first message includes: a permission status list generated by the generation unit, and information indicating that there is no permission to obtain the resource;
所述接收单元, 用于接收所述 AE根据所述第一消息发送的所述资源, 所述资源为所述 AE从所述发送单元发送的第一消息的权限状态列表的 URI 中获取的; The receiving unit is configured to receive the resource sent by the AE according to the first message, where the resource is obtained by the AE from the URI of the permission status list of the first message sent by the sending unit;
混聚处理单元, 用于对所述接收单元接收的所述资源进行混聚处理, 得
到所述资源的处理结果; A mixing and aggregation processing unit, configured to perform mixing and aggregation processing on the resources received by the receiving unit, to obtain The processing result to the resource;
所述发送单元, 还用于将所述混聚处理单元得到的所述处理结果发送所 述 AE。 The sending unit is also configured to send the processing result obtained by the hybrid processing unit to the AE.
12、 根据权利要求 11所述的装置, 其特征在于, 所述接收单元, 还用于 在所述发送单元发送所述第一消息之后, 接收所述 AE发送的第二消息, 所述第二消息为所述 AE确定能够获取所述 URI中的资源并混聚处理所述资 源时发送的, 用于使所述语义引擎结束对所述语义请求的处理的消息; 12. The device according to claim 11, wherein the receiving unit is further configured to receive a second message sent by the AE after the sending unit sends the first message, and the second message is The message is sent when the AE determines that it can obtain the resource in the URI and process the resource together, and is used to cause the semantic engine to end processing the semantic request;
所述装置还包括: The device also includes:
结束单元, 用于根据所述接收单元接收的第二消息结束对所述语义请求 的处理。 An ending unit, configured to end the processing of the semantic request according to the second message received by the receiving unit.
13、 根据权利要求 11所述的装置, 其特征在于, 所述接收单元, 还用于 在发送单元发送所述第一消息之后, 接收所述 AE根据所述第一消息发 送的第三消息, 所述第三消息包括: 用于通知所述语义引擎有权限获取所述 URI的资源的信息; 13. The device according to claim 11, wherein the receiving unit is further configured to receive a third message sent by the AE according to the first message after the sending unit sends the first message, The third message includes: information used to notify the semantic engine that it has the authority to obtain the resource of the URI;
所述装置还包括: The device also includes:
获取单元, 用于根据所述接收单元接收的所述第三消息从所述 URI中获 取所述资源。 An obtaining unit, configured to obtain the resource from the URI according to the third message received by the receiving unit.
14、 根据权利要求 11所述的装置, 其特征在于, 所述装置还包括: 获取单元, 用于在所述确定单元确定具有所述至少一个 CSF中的资源的 接入权限时, 从所述 CSF发送的 URI中获取所述资源。 14. The device according to claim 11, characterized in that, the device further comprises: an obtaining unit, configured to: when the determining unit determines that the resource in the at least one CSF has access rights, obtain the resource from the at least one CSF. Obtain the resource from the URI sent by CSF.
15、 根据权利要求 11至 14任一所述的装置, 其特征在于, 所述权限状 态列表还包括: 用于语义混聚的装置对所述权限状态列表中每一资源的接入 权限状态, 和所述用于语义混聚的装置获取资源处理结果的语义描述。 15. The device according to any one of claims 11 to 14, wherein the permission status list further includes: the access permission status of each resource in the permission status list by the device for semantic aggregation, and the device for semantic aggregation to obtain a semantic description of the resource processing result.
16、 一种通信设备, 其特征在于, 包括: 16. A communication device, characterized by including:
发送单元, 用于向语义引擎发送语义请求, 所述语义请求包括: 用于表 示获取资源处理结果的信息; 所述语义请求用于使所述语义引擎在通用服务 实体 CSE中发现存储所述资源的至少一个通用服务功能模块 CSF, 以及接收 所述至少一个 CSF发送的所述 CSF中的资源的通用资源标识符 URI; A sending unit, configured to send a semantic request to the semantic engine, where the semantic request includes: information indicating the acquisition of resource processing results; the semantic request is used to cause the semantic engine to discover and store the resource in the common service entity CSE At least one universal service function module CSF, and receiving the universal resource identifier URI of the resource in the CSF sent by the at least one CSF;
接收单元, 用于在所述发送单元发送所述语义请求之后, 接收所述语义 引擎发送的第一消息, 所述第一消息为所述语义引擎确定不具有所述至少一
个 CSF中的资源的接入权限之后发送的, 所述第一消息包括: 所述语义引擎 确定不具有所述至少一个 CSF中的资源的接入权限时生成的所述资源的权限 状态列表, 和用于表示无权限获取所述资源的信息; 所述权限状态列表包括: 所述资源的 URI; A receiving unit, configured to receive the first message sent by the semantic engine after the sending unit sends the semantic request, where the first message is the result of the semantic engine determining that the at least one The first message is sent after the access permission of the resource in the at least one CSF is sent, and the first message includes: a permission status list of the resource generated when the semantic engine determines that it does not have the access permission of the resource in the at least one CSF, and information used to indicate that there is no permission to obtain the resource; the permission status list includes: the URI of the resource;
获取单元, 用于根据所述接收单元接收的第一消息通过所述权限状态列 表的 URI获取资源; Obtaining unit, configured to obtain resources through the URI of the permission status list according to the first message received by the receiving unit;
所述发送单元, 还用于将所述获取单元获取的资源发送所述语义引擎, 以使所述语义引擎对所述资源进行混聚处理; The sending unit is also configured to send the resources acquired by the acquisition unit to the semantic engine, so that the semantic engine performs aggregation processing on the resources;
所述接收单元, 还用于在所述发送单元发送所述资源之后, 接收所述语 义引擎对所述资源混聚处理的处理结果。 The receiving unit is further configured to receive the processing result of the resource mixing and aggregation processing by the semantic engine after the sending unit sends the resource.
17、 根据权利要求 16所述的设备, 其特征在于, 所述设备还包括: 确定单元, 用于确定是否能够混聚处理所述资源; 17. The device according to claim 16, wherein the device further includes: a determining unit, configured to determine whether the resources can be mixed and processed;
相应地, 所述发送单元, 具体用于在所述确定单元确定通信设备不能够 混聚处理所述资源时, 将所述获取单元获取的资源发送所述语义引擎, 以使 所述语义引擎对所述资源进行混聚处理。 Correspondingly, the sending unit is specifically configured to send the resources obtained by the obtaining unit to the semantic engine when the determining unit determines that the communication device cannot aggregate and process the resources, so that the semantic engine can The resources are mixed and aggregated.
18、 根据权利要求 17所述的设备, 其特征在于, 所述发送单元, 还用于 在所述确定单元确定所述通信设备能够混聚处理所述资源时, 向所述语 义引擎发送第二消息, 所述第二消息用于使所述语义引擎结束对所述语义请 求的处理的消息。 18. The device according to claim 17, wherein the sending unit is further configured to send a second message to the semantic engine when the determining unit determines that the communication device can process the resource in a mixed manner. message, the second message is a message used to cause the semantic engine to end processing the semantic request.
19、 根据权利要求 16所述的设备, 其特征在于, 所述设备还包括: 更新单元, 用于根据所述接收单元接收的第一消息对至少一个 CSF存储 的资源进行更新处理, 以使至少一个 CSF中存储的资源对所述语义引擎无接 入权限限制,所述至少一个 CSF为所述权限状态列表中的 URI对应存储位置 的 CSF; 19. The device according to claim 16, characterized in that the device further includes: an update unit, configured to update at least one CSF stored resource according to the first message received by the receiving unit, so that at least The resources stored in one CSF have no access permission restrictions for the semantic engine, and the at least one CSF is the CSF corresponding to the storage location of the URI in the permission status list;
所述发送单元, 还用于在所述更新单元更新所述至少一个 CSF中存储的 资源之后, 向所述语义引擎发送第三消息, 所述第三消息用于使所述语义引 擎从所述权限状态列表的 URI中获取所述资源, 所述第三消息包括: 用于通 知所述语义引擎有权限获取所述 URI的资源的信息。 The sending unit is further configured to send a third message to the semantic engine after the update unit updates the resources stored in the at least one CSF, where the third message is used to cause the semantic engine to obtain the information from the semantic engine. The resource is obtained from the URI in the permission status list, and the third message includes: information used to notify the semantic engine that it has permission to obtain the resource of the URI.
20、 根据权利要求 16至 19任一所述的设备, 其特征在于, 所述权限状 态列表还包括: 所述语义引擎对所述权限状态列表中每一资源的接入权限状
态, 和所述语义引擎获取资源处理结果的语义描述。 20. The device according to any one of claims 16 to 19, characterized in that the permission status list further includes: the access permission status of each resource in the permission status list by the semantic engine. state, and the semantic engine obtains the semantic description of the resource processing result.
21、 一种语义混聚的方法, 其特征在于, 包括: 21. A method of semantic aggregation, which is characterized by including:
语义引擎接收应用实体 AE发送的语义请求, 所述语义请求包括: 用于 表示获取资源处理结果的信息; The semantic engine receives a semantic request sent by the application entity AE. The semantic request includes: information used to represent the result of obtaining resource processing;
所述语义引擎根据所述语义请求在所述语义引擎所在的通用服务实体 The semantic engine performs a request on the general service entity where the semantic engine is located based on the semantic request.
CSE中发现存储所述资源的至少一个通用服务功能模块 CSF, 接收所述至少 一个 CSF发送的所述 CSF中的资源的通用资源标识符 URI; Discover at least one universal service function module CSF in the CSE that stores the resource, and receive the universal resource identifier URI of the resource in the CSF sent by the at least one CSF;
所述语义引擎确定不具有所述至少一个 CSF中的资源的接入权限时, 生 成所述资源的权限状态列表, 所述权限状态列表包括: 所述资源的 URI; 所述语义引擎向所述 AE发送第一消息, 所述第一消息包括: 权限状态 列表, 和用于表示无权限获取所述资源的信息; When the semantic engine determines that it does not have access permission to a resource in the at least one CSF, it generates a permission status list of the resource. The permission status list includes: the URI of the resource; the semantic engine sends a request to the resource. The AE sends a first message, where the first message includes: a permission status list, and information indicating that there is no permission to obtain the resource;
所述语义引擎接收所述 AE根据所述第一消息发送的所述资源, 所述资 源为所述 AE从所述 URI中获取的; The semantic engine receives the resource sent by the AE according to the first message, and the resource is obtained by the AE from the URI;
所述语义引擎对所述资源进行混聚处理, 得到所述资源的处理结果, 将 所述处理结果发送所述 AE。 The semantic engine performs aggregation processing on the resources, obtains the processing results of the resources, and sends the processing results to the AE.
22、 根据权利要求 21 所述的方法, 其特征在于, 所述语义引擎向所述 AE发送第一消息的步骤之后, 所述方法还包括: 22. The method according to claim 21, wherein after the semantic engine sends the first message to the AE, the method further includes:
所述语义引擎接收所述 AE发送的第二消息, 所述第二消息为所述 AE 确定能够获取所述 URI中的资源并混聚处理所述资源时发送的, 用于使所述 语义引擎结束对所述语义请求的处理的消息; The semantic engine receives the second message sent by the AE. The second message is sent when the AE determines that it can obtain the resource in the URI and aggregate and process the resource, and is used to enable the semantic engine. A message that ends the processing of the semantic request;
所述语义弓 I擎根据所述第二消息结束对所述语义请求的处理。 The semantic engine ends processing of the semantic request according to the second message.
23、 根据权利要求 21 所述的方法, 其特征在于, 所述语义引擎向所述 AE发送第一消息的步骤之后,所述语义引擎对所述资源进行混聚处理的步骤 之前, 所述方法还包括: 23. The method according to claim 21, characterized in that, after the step of the semantic engine sending the first message to the AE and before the step of the semantic engine performing aggregation processing on the resources, the method Also includes:
所述语义引擎接收所述 AE根据所述第一消息发送的第三消息, 所述第 三消息包括: 用于通知所述语义引擎有权限获取所述 URI的资源的信息; 所述语义引擎根据所述第三消息从所述 URI中获取所述资源。 The semantic engine receives a third message sent by the AE according to the first message. The third message includes: information used to notify the semantic engine that it has the authority to obtain the resource of the URI; The third message obtains the resource from the URI.
24、 根据权利要求 21至 23任一所述的方法, 其特征在于, 所述语义引 擎对所述资源进行混聚处理的步骤之前, 所述方法还包括: 24. The method according to any one of claims 21 to 23, characterized in that, before the semantic engine performs aggregation processing on the resources, the method further includes:
所述语义引擎确定具有所述至少一个 CSF中的资源的接入权限时, 从所
述 CSF发送的 URI中获取所述资源。 When the semantic engine determines that it has access rights to resources in the at least one CSF, Obtain the resource from the URI sent by the CSF.
25、 根据权利要求 21至 24任一所述的方法, 其特征在于, 所述权限状 态列表还包括: 所述语义引擎对所述权限状态列表中每一资源的接入权限状 态, 和所述语义引擎获取资源处理结果的语义描述。 25. The method according to any one of claims 21 to 24, characterized in that the permission status list further includes: the access permission status of each resource in the permission status list by the semantic engine, and the The semantic engine obtains the semantic description of the resource processing results.
26、 一种语义混聚的方法, 其特征在于, 包括: 26. A method of semantic aggregation, which is characterized by including:
应用实体 AE 向语义引擎发送语义请求, 所述语义请求包括: 用于表示 获取资源处理结果的信息; 所述语义请求用于使所述语义引擎在通用服务实 体 CSE中发现存储所述资源的至少一个通用服务功能模块 CSF, 以及接收所 述至少一个 CSF发送的所述 CSF中的资源的通用资源标识符 URI; The application entity AE sends a semantic request to the semantic engine, where the semantic request includes: information used to represent the acquisition of resource processing results; the semantic request is used to enable the semantic engine to discover at least one that stores the resource in the common service entity CSE. a universal service function module CSF, and receiving the universal resource identifier URI of the resource in the CSF sent by the at least one CSF;
所述 AE接收所述语义引擎发送的第一消息, 所述第一消息为所述语义 引擎确定不具有所述至少一个 CSF中的资源的接入权限之后发送的, 所述第 一消息包括: 所述语义引擎确定不具有所述至少一个 CSF中的资源的接入权 限时生成的所述资源的权限状态列表, 和用于表示无权限获取所述资源的信 息; 所述权限状态列表包括: 所述资源的 URI; The AE receives the first message sent by the semantic engine. The first message is sent after the semantic engine determines that it does not have access rights to the resources in the at least one CSF. The first message includes: A permission status list of the resource generated when the semantic engine determines that the resource in the at least one CSF does not have access permission, and information used to indicate that there is no permission to obtain the resource; the permission status list includes: The URI of said resource;
所述 AE根据所述第一消息通过所述权限状态列表的 URI获取资源, 将 所述资源发送所述语义引擎, 以使所述语义引擎对所述资源进行混聚处理; 所述 AE接收所述语义引擎对所述资源混聚处理的处理结果。 The AE obtains resources through the URI of the permission status list according to the first message, and sends the resources to the semantic engine, so that the semantic engine performs aggregation processing on the resources; the AE receives the The processing result of the resource mixing and aggregation processing by the semantic engine is described.
27、 根据权利要求 26所述的方法, 其特征在于, 所述将所述资源发送所 述语义引擎的步骤之前, 还包括: 27. The method according to claim 26, characterized in that before the step of sending the resource to the semantic engine, it further includes:
所述 AE确定不能够混聚处理所述资源。 The AE determines that the resource cannot be pooled.
28、 根据权利要求 27所述的方法, 其特征在于, 还包括: 28. The method according to claim 27, further comprising:
所述 AE确定能够混聚处理所述资源时, 向所述语义引擎发送第二消息, 所述第二消息用于使所述语义引擎结束对所述语义请求的处理的消息。 When the AE determines that the resource can be processed in a mixed manner, it sends a second message to the semantic engine, where the second message is used to cause the semantic engine to end processing the semantic request.
29、 根据权利要求 26所述的方法, 其特征在于, 所述 AE接收所述语义 引擎发送的第一消息的步骤之后, 还包括: 29. The method according to claim 26, characterized in that, after the step of receiving the first message sent by the semantic engine, the AE further includes:
所述 AE根据所述第一消息对至少一个 CSF存储的资源进行更新处理, 以使至少一个 CSF中存储的资源对所述语义引擎无接入权限限制, 所述至少 一个 CSF为所述权限状态列表中的 URI对应存储位置的 CSF; The AE updates the resources stored in at least one CSF according to the first message, so that the resources stored in at least one CSF have no access permission restrictions for the semantic engine, and the at least one CSF is in the permission status The URI in the list corresponds to the CSF of the storage location;
所述 AE 向所述语义引擎发送第三消息, 所述第三消息用于使所述语义 引擎从所述权限状态列表的 URI中获取所述资源, 所述第三消息包括: 用于
通知所述语义引擎有权限获取所述 URI的资源的信息。 The AE sends a third message to the semantic engine. The third message is used to cause the semantic engine to obtain the resource from the URI of the permission status list. The third message includes: for Notify the semantic engine that it has permission to obtain resource information of the URI.
30、 根据权利要求 26至 29任一所述的方法, 其特征在于, 所述权限状 态列表还包括: 所述语义引擎对所述权限状态列表中每一资源的接入权限状 态, 和所述语义引擎获取资源处理结果的语义描述。
30. The method according to any one of claims 26 to 29, characterized in that the permission status list further includes: the access permission status of each resource in the permission status list by the semantic engine, and the The semantic engine obtains the semantic description of the resource processing results.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201480042781.9A CN105432057B (en) | 2014-02-28 | 2014-02-28 | Poly- device, communication equipment and semantic mixed poly- method are mixed for semantic |
PCT/CN2014/072704 WO2015127646A1 (en) | 2014-02-28 | 2014-02-28 | Apparatus and communication device for semantic hybrid clustering, and semantic hybrid clustering method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2014/072704 WO2015127646A1 (en) | 2014-02-28 | 2014-02-28 | Apparatus and communication device for semantic hybrid clustering, and semantic hybrid clustering method |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2015127646A1 true WO2015127646A1 (en) | 2015-09-03 |
Family
ID=54008161
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2014/072704 WO2015127646A1 (en) | 2014-02-28 | 2014-02-28 | Apparatus and communication device for semantic hybrid clustering, and semantic hybrid clustering method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105432057B (en) |
WO (1) | WO2015127646A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105426212A (en) * | 2015-11-30 | 2016-03-23 | 青岛海尔智能家电科技有限公司 | Virtual device composition dynamic updating method and apparatus |
CN110326315A (en) * | 2017-02-22 | 2019-10-11 | 瑞典爱立信有限公司 | First communication equipment, the network equipment and wherein for identification provide semantic expressiveness at least one the second communication equipment method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102497630A (en) * | 2011-11-25 | 2012-06-13 | 北京握奇数据系统有限公司 | Machine to machine (M2M) equipment, method for realizing service, intelligent card and communication module |
WO2013071978A1 (en) * | 2011-11-18 | 2013-05-23 | Telefonaktiebolaget Lm Ericsson (Publ) | Data distribution platform |
-
2014
- 2014-02-28 WO PCT/CN2014/072704 patent/WO2015127646A1/en active Application Filing
- 2014-02-28 CN CN201480042781.9A patent/CN105432057B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013071978A1 (en) * | 2011-11-18 | 2013-05-23 | Telefonaktiebolaget Lm Ericsson (Publ) | Data distribution platform |
CN102497630A (en) * | 2011-11-25 | 2012-06-13 | 北京握奇数据系统有限公司 | Machine to machine (M2M) equipment, method for realizing service, intelligent card and communication module |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105426212A (en) * | 2015-11-30 | 2016-03-23 | 青岛海尔智能家电科技有限公司 | Virtual device composition dynamic updating method and apparatus |
CN105426212B (en) * | 2015-11-30 | 2021-12-24 | 青岛海尔智能家电科技有限公司 | Dynamic updating method and device for virtual equipment composition |
CN110326315A (en) * | 2017-02-22 | 2019-10-11 | 瑞典爱立信有限公司 | First communication equipment, the network equipment and wherein for identification provide semantic expressiveness at least one the second communication equipment method |
CN110326315B (en) * | 2017-02-22 | 2023-05-26 | 瑞典爱立信有限公司 | First communication device, network device, and method therein for identifying at least one second communication device providing a semantic representation |
Also Published As
Publication number | Publication date |
---|---|
CN105432057A (en) | 2016-03-23 |
CN105432057B (en) | 2018-10-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12041097B2 (en) | Automated service enrollment in a machine-to-machine communications network | |
KR101689614B1 (en) | Method for measuring position in m2m system and apparatus therefor | |
US11805166B2 (en) | Enhanced M2M content management based on interest | |
US11714830B2 (en) | Mechanisms for multi-dimension data operations | |
CN111095904B (en) | Service layer message template in a communication network | |
CN111345052A (en) | Method for enabling context-aware authorization of data or services in the IOT/M2M service layer | |
EP3506666A1 (en) | Method and device for connecting capability exposure function and network functions | |
WO2015127646A1 (en) | Apparatus and communication device for semantic hybrid clustering, and semantic hybrid clustering method | |
WO2015149530A1 (en) | M2m application service method, device and system | |
WO2023051189A1 (en) | Communication method and apparatus for managing service | |
WO2015127622A1 (en) | Method and system for providing service according to policy |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
WWE | Wipo information: entry into national phase |
Ref document number: 201480042781.9 Country of ref document: CN |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 14884159 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 14884159 Country of ref document: EP Kind code of ref document: A1 |