WO2017050285A1 - Entity-based operation instruction method and device - Google Patents

Entity-based operation instruction method and device Download PDF

Info

Publication number
WO2017050285A1
WO2017050285A1 PCT/CN2016/099971 CN2016099971W WO2017050285A1 WO 2017050285 A1 WO2017050285 A1 WO 2017050285A1 CN 2016099971 W CN2016099971 W CN 2016099971W WO 2017050285 A1 WO2017050285 A1 WO 2017050285A1
Authority
WO
WIPO (PCT)
Prior art keywords
entity
model
identifier
model corresponding
function body
Prior art date
Application number
PCT/CN2016/099971
Other languages
French (fr)
Chinese (zh)
Inventor
陈剑峰
钱鑫
李炜
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2017050285A1 publication Critical patent/WO2017050285A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • the present invention relates to computer technology, and in particular, to an entity-based operation indication method and apparatus.
  • An ontology is a formal specification of a concept that defines a concept as an object, an attribute, and a relationship to other concepts.
  • Ontologies can be used to define shared vocabularies that describe the basic concepts of some real world (subject areas) and specify those concepts and the operations they contain. Therefore, ontology can be used to model things and relationships in the domain in multiple domains.
  • M2M Machine-to-Machine Communications
  • oneM2M International Organization for Standardization of the Internet of Things
  • the abstract entities are semantically modeled and form an ontology model, which then uses the standard ontology modeling language to transform the ontology model into a machine-readable ontology library and is used to perform various operations of the oneM2M system.
  • the ontology model used by the ontology library includes two entities: device and transaction, and at the same time, the object and the object, the device and the device pass the association model. build connection.
  • the semantic engine When the ontology library is used to perform various operations, the semantic engine generates an operation instruction that the device can recognize by analyzing the entities in the ontology library and the association between them, and is used to instruct the device to complete the corresponding operation.
  • the ontology model used is to establish a relationship between the object and the operation of the device to represent the relationship between the device and the device.
  • the relationship between things and devices becomes complex and unclear, resulting in reduced efficiency in generating operational instructions using the ontology model.
  • the invention provides an entity-based operation indication method and device for solving the prior art
  • the complicated structure of the intraoperative ontology model leads to the problem of inefficient operation instruction generation.
  • a first aspect of the present invention provides an entity-based operation indication method, including:
  • an entity operation request where the entity operation request includes: an entity identifier, an attribute information identifier, and an operation identifier;
  • the method further includes:
  • the method before the receiving entity operation request, the method further includes:
  • the establishing the preset ontology model includes:
  • the method adds at least one attribute information to a model corresponding to each function in the at least one function body, and After at least one operation, it also includes:
  • At least one parameter information is added for each of the operations, the parameter information being used to set parameters of the operation.
  • a second aspect of the present invention provides an entity-based operation indication device, including:
  • a receiving module configured to receive an entity operation request, where the entity operation request includes: an entity identifier, an attribute information identifier, and an operation identifier;
  • a search module configured to search, according to the entity operation request, a model corresponding to the first function body in the preset ontology model, where the first function body has an association relationship with an entity corresponding to the entity identifier, and the first The function body includes: the attribute information corresponding to the attribute information, and the operation corresponding to the operation identifier;
  • a generating module configured to convert the entity operation request into an operation instruction recognizable by the first function body according to a model corresponding to the first function body
  • a sending module configured to send the operation instruction to the first function body, where the operation instruction is used to instruct the first function body to perform an operation corresponding to the operation identifier on an entity corresponding to the entity identifier .
  • the device further includes:
  • a second searching module configured to: when the search module does not find the model corresponding to the first function body in the preset body model, search for the corresponding entity identifier in the preset body model
  • the entity has a model corresponding to at least one child entity including the relationship, and searches for a model corresponding to the second function body having an association relationship with the at least one child entity in the preset ontology model.
  • the device further includes:
  • Establishing a module configured to establish the pre-preparation module before receiving the entity operation request Set the ontology model.
  • the establishing module includes:
  • An obtaining unit configured to acquire a child entity having an inclusion relationship with the first entity, a parallel entity having an association relationship with the first entity, and at least one function body having an association relationship with the first entity;
  • a establishing unit configured to establish an inclusion relationship between a model corresponding to the first entity and a model corresponding to the sub-entity, and establish an association relationship between a model corresponding to the first entity and a model corresponding to the parallel entity And establishing an association relationship between the model corresponding to the first entity and the model corresponding to the at least one functional body;
  • a generating unit configured to add at least one attribute information and at least one operation to a model corresponding to each functional body in the at least one functional body to form the preset ontology model.
  • the establishing module further includes:
  • Adding a unit after the generating unit adds at least one attribute information and at least one operation to a model corresponding to each functional body in the at least one functional body, adding at least one parameter information for each of the operations, the parameter Information is used to set the parameters of the operation.
  • the entity-based operation indication method after receiving the entity operation request, searches for a function body having an association relationship with an entity corresponding to the entity identifier in the entity operation request in the preset ontology model, and the function body includes the entity
  • the attribute information in the operation request identifies the corresponding attribute information and the operation corresponding to the operation identifier in the entity operation request, thereby generating an operation instruction recognizable by the function body. Since the function body in the preset ontology model has attribute information, the relationship between the entity and the function body in the preset ontology model is clear and easy to implement, and further, when processing the entity operation request, only the entity identifier and the attribute information are identified.
  • the corresponding function body can be found, thereby realizing the simple and clear search process, and further improving the efficiency of the operation instruction that can be recognized by using the preset ontology model generation function.
  • Embodiment 1 is a schematic flowchart of Embodiment 1 of an entity-based operation indication method provided by the present invention
  • Embodiment 2 is a schematic flowchart of Embodiment 2 of an entity-based operation indication method provided by the present invention
  • Embodiment 3 is a schematic flowchart of Embodiment 3 of an entity-based operation indication method provided by the present invention.
  • Figure 4 is a complete ontology model generated according to the method shown in Figures 2 and 3;
  • FIG. 5 is a schematic structural diagram of Embodiment 1 of an entity-based operation indication device according to the present invention.
  • FIG. 6 is a schematic structural diagram of Embodiment 2 of an entity-based operation indicating apparatus according to the present invention.
  • FIG. 7 is a schematic structural diagram of Embodiment 3 of an entity-based operation indicating apparatus according to the present invention.
  • FIG. 8 is a schematic structural diagram of Embodiment 4 of an entity-based operation indicating apparatus according to the present invention.
  • FIG. 9 is a schematic structural diagram of Embodiment 5 of an entity-based operation indication apparatus according to the present invention.
  • FIG. 10 is a schematic structural diagram of Embodiment 6 of an entity-based operation indication device according to the present invention.
  • Embodiment 1 is a schematic flowchart of Embodiment 1 of an entity-based operation indication method according to the present invention.
  • the execution body of the method may be a terminal, such as a computer, a server, or the like. As shown in FIG. 1, the method includes:
  • S101 Receive an entity operation request, where the entity operation request includes: an entity identifier, an attribute information identifier, and an operation identifier.
  • the above entity refers to an entity that does not have a measurement or control function and can be measured or controlled by other devices.
  • the above entity may refer to a room, a bedroom, a refrigerator, and the like.
  • the entity identifier In the received entity operation request, the entity identifier, the attribute information identifier, and the operation identifier are included.
  • the operation request “query room temperature” includes the entity identifier “room” and the attribute information identifier “temperature”. And the operation identifier "query”.
  • the above functional body refers to a certain function that has a measurement or control function and can perform measurement or control of the above entities.
  • the above functional body may refer to a temperature sensor, an illumination sensor, a humidity sensor, an air conditioner, and the like.
  • the first functional body refers to a functional body found according to the above entity operation request.
  • the function body has attribute information for describing functions, features, and the like of the function body. Accordingly, the attribute information of the function body may include function attribute information, feature attribute information, and the like.
  • the attribute information of the function body may include function attribute information, feature attribute information, and the like.
  • a temperature sensor with a "temperature" function indicates that the temperature sensor has the function of measuring or controlling the temperature.
  • the functional body can support at least one operation, such as measuring humidity, measuring temperature, and the like.
  • entities and functional bodies have been defined, and the relationship between entities and functional bodies has been defined.
  • an entity establishes an association with a functional entity, it indicates The entity has characteristics corresponding to the attribute information of the function body.
  • the "temperature sensor” has a temperature attribute.
  • the "room” entity is associated with the “temperature sensor” function, the "room” entity has a "temperature” feature.
  • the function body that meets the following conditions may be found in the preset ontology model: the entity corresponding to the entity identifier has an association relationship; the attribute information corresponding to the attribute information identifier is included; and the operation identifier is included Corresponding operation.
  • the device in the ontology model in the prior art does not have attribute information.
  • an association model needs to be established in the ontology model for the operation of the device and the device associated with it. Since each thing contains at least one aspect, and each device contains at least one operation, the relationship between the aspect of the thing and the operation of the device is a many-to-many relationship, when things and devices in the system continue to expand. The relationship between aspects of things and the operation of the device becomes more and more complicated, which in turn leads to a decrease in the efficiency of the operation instructions that can be recognized by the ontology model generation device of the prior art.
  • the operation instruction is sent to the first function body, where the operation instruction is used to instruct the first function body to perform an operation corresponding to the operation identifier on an entity corresponding to the entity identifier.
  • the operation instruction may be sent to the first function body by the physical device connected to the first function body, and the corresponding operation is performed by the first function body, and the result is returned.
  • the function body having the association relationship with the entity corresponding to the entity identifier in the entity operation request is searched in the preset ontology model, and the function body includes the attribute information identifier corresponding to the entity operation request.
  • the attribute information and the operation corresponding to the operation identifier in the entity operation request thereby generating an operation instruction recognizable by the function body, wherein the function body in the preset ontology model has attribute information, so that the entity and the function body in the preset ontology model are
  • the relationship is clear and easy to implement, and in turn, when processing entity operation requests, only
  • the corresponding function body can be found according to the entity identifier and the attribute information identifier, thereby realizing the simple and clear search process, and further improving the efficiency of the operation instruction that can be recognized by using the preset ontology model generation function body.
  • Embodiment 2 is a schematic flowchart of Embodiment 2 of an entity-based operation indication method provided by the present invention. As shown in FIG. 2, the method includes:
  • S201 Receive an entity operation request, where the entity operation request includes: an entity identifier, an attribute information identifier, and an operation identifier.
  • the subsequent process flow is the same as the subsequent process in the first embodiment.
  • S203 Searching, in the foregoing preset ontology model, an entity corresponding to the entity identifier, having a model corresponding to at least one sub-entity including a relationship, and searching, in the preset ontology model, a second relationship that is associated with the at least one sub-entity The model corresponding to the functional body.
  • the relationship between the entity and the entity has been defined, and the relationship between the entities may be a side-by-side relationship or an inclusion relationship.
  • the relationship between the entities may be a side-by-side relationship or an inclusion relationship.
  • “room” and bedroom, “room” and “kitchen” are all inclusive.
  • the “bedroom” and the “kitchen” are in a parallel relationship.
  • the method further searches for at least one child entity having an inclusion relationship with the entity, and searches for a second relationship with the at least one child entity in the preset ontology model.
  • the second function body refers to a function body that meets the requirements found according to the at least one child entity identifier, the attribute information identifier, and the operation identifier.
  • the first function body and the second function body that are queried by the same entity operation request may be the same function body.
  • the entity operation request is “query the temperature of the room”, and according to the request, the function body having the relationship with the “room” and having the “temperature” attribute is searched in the preset ontology model, and the “room” is not an actual Physical entity, but a generalized concept, Therefore, in the preset ontology model, it is impossible to find a function that has a relationship with the "room” and has a "temperature” attribute. In this case, a child having an inclusion relationship with "room” is found in the preset ontology model.
  • Entity assuming that the sub-entities with the inclusion relationship of "room” in the preset ontology model are "bedroom” and “kitchen”, then the corresponding body model will be associated with “bedroom” and “kitchen” respectively.
  • a second function of the relationship the second function having a "temperature” attribute and including an operation corresponding to the operation identification.
  • S205 Send the operation instruction to the second function body, where the operation instruction is used to instruct the second function body to perform an operation corresponding to the operation identifier on an entity corresponding to the entity identifier.
  • At least one operation instruction for each sub-entity is generated by steps S204 and S205, respectively, and the final returned operation result is A collection of results returned by each operation instruction.
  • the corresponding function body if the corresponding function body cannot be found according to the entity identifier in the entity operation request, continue to search for the child entity having the inclusion relationship and generate an operation instruction for each child entity, that is, by preset the ontology model.
  • the inclusion relationship between entities can resolve the correct command and return the correct operation result.
  • the operation request is "query the temperature of the room", according to the request, look up the "room” and its aspect “temperature” in the prior art ontology model, and find the device that establishes the association model with the "temperature” aspect. Operation.
  • the operation of the corresponding device cannot be found in the ontology model. In this case, since there is only an association relationship between the things in the prior art, it will be in the ontology model. Find things that are related to "room”, assuming that things related to the room in the ontology model are "bedroom”, “kitchen” As well as the "refrigerator”, the operation of the corresponding device is searched for in the "model”, “kitchen” and “refrigerator” in the ontology model. The final returned operation results in the temperature of the three things "bedroom”, “kitchen” and “refrigerator”. However, it is clear that the "refrigerator” does not belong to the "room”, and therefore, when the operation instruction is processed using the prior art ontology model, the erroneous operation result is returned.
  • the method before the receiving entity operation request, the method further includes:
  • FIG. 3 is a schematic flowchart of Embodiment 3 of an entity-based operation indication method according to the present invention. As shown in FIG. 3, the foregoing establishing the preset ontology model specifically includes:
  • the above first entity generally refers to any entity in the oneM2M system.
  • This embodiment is a process of establishing an ontology model.
  • entities and entities, entities, and functional entities have various connections. After collecting and obtaining these entities, functional entities, and the connections between them, An ontology modeling language can be used to model the models of these entities, the models of the functional bodies, and the connections between them, and to add attribute information and operations to the models corresponding to each functional body to form a complete pre-built ontology model.
  • the function body may contain multiple attribute information.
  • attribute information When adding attribute information to the function body, multiple attribute information may be added according to the actual situation of the system. For example, the function attribute "temperature”, the feature attribute "owner”, and the like.
  • the method further includes:
  • each functional body may include at least one operation.
  • the temperature sensor may include an operation of “measuring temperature”, and some parameter information may be added for these operations.
  • “measurement temperature” operation may include “temperature”. "parameter.
  • the parameter information may further include information such as a parameter value, a parameter unit, a data type of the parameter, and the like.
  • the ontology model includes an entity and a function body, wherein the entity and the entity may be a side-by-side relationship or an inclusion relationship.
  • the included entity is Child entity.
  • an entity having a side-by-side relationship with an entity and a child entity having an inclusion relationship with the entity may have an association relationship with the functional body.
  • the function body has attribute information such as function attributes, feature attributes, and the like.
  • the entity has characteristics corresponding to the functional attributes of the functional body.
  • the functional body also has at least one operation, and each operation may include at least one parameter.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
  • FIG. 5 is a schematic structural diagram of Embodiment 1 of an entity-based operation indication device according to the present invention. As shown in FIG. 5, the device includes:
  • the receiving module 501 is configured to receive an entity operation request, where the entity operation request includes: an entity identifier, an attribute information identifier, and an operation identifier.
  • the searching module 502 is configured to search for a model corresponding to the first function body in the preset ontology model according to the foregoing entity operation request, where the first function body has an association relationship with an entity corresponding to the entity identifier, and the first function body includes The attribute information corresponding to the attribute information identifier and the operation corresponding to the operation identifier.
  • the generating module 503 is configured to convert the physical operation request into an operation command recognizable by the first function body according to the model corresponding to the first function body.
  • the sending module 504 is configured to send the operation instruction to the first function body, where the operation instruction is used to instruct the first function body to perform an operation corresponding to the operation identifier on an entity corresponding to the entity identifier.
  • the device is used to perform the foregoing method embodiments, and the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 6 is a schematic structural diagram of Embodiment 2 of the entity-based operation indication device according to the present invention. On the basis of FIG. 5, as shown in FIG. 6, the device further includes:
  • the second search module 505 is configured to: when the search module 502 does not find the model corresponding to the first function body in the preset body model, search for the entity corresponding to the entity identifier in the preset body model to have an inclusion relationship And corresponding to the model of the at least one sub-entity, and searching for a model corresponding to the second functional body having an association relationship with the at least one sub-entity in the preset ontology model.
  • FIG. 7 is a schematic structural diagram of Embodiment 3 of the entity-based operation indicating apparatus according to the present invention. On the basis of FIG. 6, as shown in FIG. 7, the apparatus further includes:
  • the establishing module 506 is configured to establish the preset ontology model before the receiving module receives the entity operation request.
  • FIG. 8 is a schematic structural diagram of Embodiment 4 of an entity-based operation indication apparatus according to the present invention.
  • the setup module 506 includes:
  • the obtaining unit 5061 is configured to acquire a sub-entity having an inclusion relationship with the first entity, a parallel entity having an association relationship with the first entity, and at least one function body having an association relationship with the first entity.
  • the establishing unit 5062 is configured to establish an inclusion relationship between the model corresponding to the first entity and the model corresponding to the sub-entity, establish an association relationship between the model corresponding to the first entity and a model corresponding to the parallel entity, and establish an association relationship between the model corresponding to the first entity and the model corresponding to the parallel entity.
  • the model corresponding to the first entity above An association relationship between models corresponding to at least one functional body.
  • the generating unit 5063 is configured to add at least one attribute information and at least one operation to the model corresponding to each functional body in the at least one functional body to form the preset ontology model.
  • FIG. 9 is a schematic structural diagram of Embodiment 5 of the entity-based operation indicating apparatus according to the present invention.
  • the establishing module 506 further includes:
  • the adding unit 5064 is configured to add at least one parameter information for each operation after the generating unit 5063 adds at least one attribute information and at least one operation to a model corresponding to each functional body in the at least one functional body, where the parameter information is used for Set the parameters for the operation.
  • FIG. 10 is a schematic structural diagram of Embodiment 6 of an entity-based operation indication apparatus according to the present invention. As shown in FIG. 10, the apparatus includes: a memory 601 and a processor 602.
  • the memory 601 is used to store program instructions, and the processor 602 is configured to call program instructions in the memory 601 to perform the following methods:
  • the entity operation request includes: an entity identifier, an attribute information identifier, and an operation identifier.
  • the device is used to perform the foregoing method embodiments, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the processor 602 is configured to: when the model corresponding to the first function body is not found in the preset ontology model, according to the foregoing entity operation request, searching for the entity corresponding to the entity identifier in the preset ontology model has an inclusion A model corresponding to at least one sub-entity of the relationship, and searching for a model corresponding to the second functional body having an association relationship with the at least one sub-entity in the preset ontology model.
  • processor 602 is configured to establish the foregoing preset ontology model before receiving the entity operation request.
  • processor 602 is configured to establish the foregoing preset ontology model before the receiving entity operation request, where the method includes:
  • the processor 602 is configured to add at least one parameter information for each operation after adding at least one attribute information and at least one operation to the model corresponding to each functional body in the at least one functional body, and the parameter information is used to set The parameters of the operation.

Abstract

An entity-based operation instruction method and device. The method comprises: upon receiving of an entity operation request, querying, in a predetermined ontology model, a functional entity associated with a corresponding entity to an entity identifier in the entity operation request, wherein the functional entity comprises attribute information corresponding to an attribute information identifier in the entity operation request, and an operation corresponding to an operation identifier in the entity operation request; and accordingly generating an operation instruction identifiable for the functional entity. Since a functional entity in a predetermined ontology model has attribute information, a relationship between an entity and a functional entity is clear and easy to implement in the predetermined ontology model. Accordingly, the present invention enables a corresponding functional entity to be found during processing of an entity operation request according to an entity identifier and an attribute information identifier, thereby realizing a simple, clear, and easy-to-implement search process, and accordingly improving the efficiency of generating an operation instruction identifiable for a functional entity via the predetermined ontology model.

Description

基于实体的操作指示方法及装置Entity-based operation indication method and device 技术领域Technical field
本发明涉及计算机技术,尤其涉及一种基于实体的操作指示方法及装置。The present invention relates to computer technology, and in particular, to an entity-based operation indication method and apparatus.
背景技术Background technique
本体是一个概念的形式化规范,可以将概念定义为对象、属性以及与其他概念的关系。本体可以用来定义描述部分现实世界(主体领域)基本概念的共享词汇表,并指定这些概念以及概念包含的操作。因此,在多个领域中都可以使用本体来对该领域的事物及关系进行建模。例如在机器通信(Machine-to-Machine Communications,简称M2M),即物联网领域中,就可以对物联网领域国际标准化组织oneM2M所定义的实体进行本体建模,即对oneM2M系统中物理的、虚拟的以及抽象的实体进行语义建模,并形成本体模型,进而使用标准的本体建模语言来将本体模型转化为机器可读的本体库,并用于完成oneM2M系统的各种操作。An ontology is a formal specification of a concept that defines a concept as an object, an attribute, and a relationship to other concepts. Ontologies can be used to define shared vocabularies that describe the basic concepts of some real world (subject areas) and specify those concepts and the operations they contain. Therefore, ontology can be used to model things and relationships in the domain in multiple domains. For example, in Machine-to-Machine Communications (M2M), that is, in the field of Internet of Things, it is possible to perform ontology modeling on entities defined by the International Organization for Standardization of the Internet of Things, oneM2M, that is, physical and virtual in oneM2M system. And the abstract entities are semantically modeled and form an ontology model, which then uses the standard ontology modeling language to transform the ontology model into a machine-readable ontology library and is used to perform various operations of the oneM2M system.
现有技术中,在使用本体库完成例如oneM2M系统的各种操作时,本体库所使用的本体模型中包含了设备和事物两种实体,同时,事物与事物,事物与设备之间通过关联模型建立联系。在使用本体库完成各种操作时,语义引擎通过分析本体库中各实体及其之间的关联,生成设备可以识别的操作指令,用于指示设备完成相应的操作。In the prior art, when the ontology library is used to perform various operations such as the oneM2M system, the ontology model used by the ontology library includes two entities: device and transaction, and at the same time, the object and the object, the device and the device pass the association model. build connection. When the ontology library is used to perform various operations, the semantic engine generates an operation instruction that the device can recognize by analyzing the entities in the ontology library and the association between them, and is used to instruct the device to complete the corresponding operation.
但是,采用现有技术中本体模型生成设备可以识别的操作指令时,所使用的本体模型中是通过事物所包含的方面与设备的操作之间建立关联模型来表示事物与设备之间的关系,当系统中事物和设备不断扩展时,事物与设备之间的关系会变得复杂和不清晰,导致使用本体模型生成操作指令的效率降低。However, when the ontology model is used to generate an operation instruction that can be recognized by the device in the prior art, the ontology model used is to establish a relationship between the object and the operation of the device to represent the relationship between the device and the device. As things and devices in the system continue to expand, the relationship between things and devices becomes complex and unclear, resulting in reduced efficiency in generating operational instructions using the ontology model.
发明内容Summary of the invention
本发明提供一种基于实体的操作指示方法及装置,用于解决现有技 术中本体模型的结构复杂导致操作指令生成效率低下的问题。The invention provides an entity-based operation indication method and device for solving the prior art The complicated structure of the intraoperative ontology model leads to the problem of inefficient operation instruction generation.
本发明第一方面提供一种基于实体的操作指示方法,包括:A first aspect of the present invention provides an entity-based operation indication method, including:
接收实体操作请求,所述实体操作请求包括:实体标识、属性信息标识以及操作标识;Receiving an entity operation request, where the entity operation request includes: an entity identifier, an attribute information identifier, and an operation identifier;
根据所述实体操作请求,在预设本体模型中查找第一功能体对应的模型,所述第一功能体与所述实体标识对应的实体具有关联关系,且所述第一功能体包含:所述属性信息标识对应的属性信息、以及所述操作标识对应的操作;And searching, according to the entity operation request, a model corresponding to the first function body in the preset ontology model, where the first function body has an association relationship with an entity corresponding to the entity identifier, and the first function body includes: Attribute information identifier corresponding attribute information, and an operation corresponding to the operation identifier;
根据所述第一功能体对应的模型,将所述实体操作请求转换为所述第一功能体可识别的操作指令;Converting the entity operation request into an operation instruction recognizable by the first function body according to a model corresponding to the first function body;
将所述操作指令发送给所述第一功能体,其中,所述操作指令用于指示所述第一功能体对所述实体标识对应的实体执行所述操作标识对应的操作。Sending the operation instruction to the first function body, where the operation instruction is used to instruct the first function body to perform an operation corresponding to the operation identifier on an entity corresponding to the entity identifier.
结合第一方面,在第一方面的第一种可能的实施方式中,若在所述预设本体模型中未查找到所述第一功能体对应的模型,则所述方法还包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, if the model corresponding to the first function body is not found in the preset ontology model, the method further includes:
在所述预设本体模型中查找与所述实体标识对应的实体具有包含关系的至少一个子实体对应的模型,并在所述预设本体模型中查找与所述至少一个子实体具有关联关系的第二功能体对应的模型。Searching, in the preset ontology model, an entity corresponding to the entity identifier, having a model corresponding to at least one sub-entity including a relationship, and searching, in the preset ontology model, an association relationship with the at least one sub-entity The model corresponding to the second functional body.
结合第一方面或第一方面的第一种可能的实施方式,在第一方面的第二种可能的实施方式中,所述接收实体操作请求之前,还包括:With reference to the first aspect, or the first possible implementation manner of the first aspect, in the second possible implementation manner of the first aspect, before the receiving entity operation request, the method further includes:
建立所述预设本体模型。Establishing the preset ontology model.
结合第一方面的第二种可能的实施方式,在第二方面的第三种可能的实施方式中,所述建立所述预设本体模型,包括:In conjunction with the second possible implementation of the first aspect, in the third possible implementation of the second aspect, the establishing the preset ontology model includes:
获取与第一实体具有包含关系的子实体、与所述第一实体具有关联关系的并列实体、以及与所述第一实体具有关联关系的至少一个功能体;Obtaining a sub-entity having an inclusion relationship with the first entity, a parallel entity having an association relationship with the first entity, and at least one function body having an association relationship with the first entity;
建立所述第一实体对应的模型与所述子实体对应的模型之间的包含关系、建立所述第一实体对应的模型与所述并列实体对应的模型之间的关联关系、以及建立所述第一实体对应的模型与所述至少一个功能体对 应的模型之间的关联关系;Establishing an inclusion relationship between the model corresponding to the first entity and a model corresponding to the sub-entity, establishing an association relationship between a model corresponding to the first entity and a model corresponding to the parallel entity, and establishing the a model corresponding to the first entity and the at least one functional pair The relationship between the models;
为所述至少一个功能体中的各功能体对应的模型添加至少一个属性信息以及至少一个操作,形成所述预设本体模型。And adding at least one attribute information and at least one operation to a model corresponding to each functional body in the at least one functional body to form the preset ontology model.
结合第一方面的第三种可能的实施方式,在第一方面的第四种可能的实施方式中,所述为所述至少一个功能体中的各功能体对应的模型添加至少一个属性信息以及至少一个操作之后,还包括:In conjunction with the third possible implementation of the first aspect, in a fourth possible implementation manner of the first aspect, the method adds at least one attribute information to a model corresponding to each function in the at least one function body, and After at least one operation, it also includes:
为各所述操作添加至少一个参数信息,所述参数信息用于设置操作的参数。At least one parameter information is added for each of the operations, the parameter information being used to set parameters of the operation.
本发明第二方面提供一种基于实体的操作指示装置,包括:A second aspect of the present invention provides an entity-based operation indication device, including:
接收模块,用于接收实体操作请求,所述实体操作请求包括:实体标识、属性信息标识以及操作标识;a receiving module, configured to receive an entity operation request, where the entity operation request includes: an entity identifier, an attribute information identifier, and an operation identifier;
查找模块,用于根据所述实体操作请求,在预设本体模型中查找第一功能体对应的模型,所述第一功能体与所述实体标识对应的实体具有关联关系,且所述第一功能体包含:所述属性信息标识对应的属性信息、以及所述操作标识对应的操作;a search module, configured to search, according to the entity operation request, a model corresponding to the first function body in the preset ontology model, where the first function body has an association relationship with an entity corresponding to the entity identifier, and the first The function body includes: the attribute information corresponding to the attribute information, and the operation corresponding to the operation identifier;
生成模块,用于根据所述第一功能体对应的模型,将所述实体操作请求转换为所述第一功能体可识别的操作指令;a generating module, configured to convert the entity operation request into an operation instruction recognizable by the first function body according to a model corresponding to the first function body;
发送模块,用于将所述操作指令发送给所述第一功能体,其中,所述操作指令用于指示所述第一功能体对所述实体标识对应的实体执行所述操作标识对应的操作。a sending module, configured to send the operation instruction to the first function body, where the operation instruction is used to instruct the first function body to perform an operation corresponding to the operation identifier on an entity corresponding to the entity identifier .
结合第二方面,在第二方面的第一种可能的实施方式中,所述装置还包括:In conjunction with the second aspect, in a first possible implementation manner of the second aspect, the device further includes:
第二查找模块,用于在所述查找模块在所述预设本体模型中未查找到所述第一功能体对应的模型时,在所述预设本体模型中查找与所述实体标识对应的实体具有包含关系的至少一个子实体对应的模型,并在所述预设本体模型中查找与所述至少一个子实体具有关联关系的第二功能体对应的模型。a second searching module, configured to: when the search module does not find the model corresponding to the first function body in the preset body model, search for the corresponding entity identifier in the preset body model The entity has a model corresponding to at least one child entity including the relationship, and searches for a model corresponding to the second function body having an association relationship with the at least one child entity in the preset ontology model.
结合第二方面或第二方面的第一种可能的实施方式,在第二方面的第二种可能的实施方式中,所述装置还包括:In conjunction with the second aspect, or the first possible implementation of the second aspect, in the second possible implementation of the second aspect, the device further includes:
建立模块,用于在所述接收模块接收实体操作请求之前建立所述预 设本体模型。Establishing a module, configured to establish the pre-preparation module before receiving the entity operation request Set the ontology model.
结合第二方面的第二种可能的实施方式,在第二方面的第三种可能的实施方式中,所述建立模块包括:In conjunction with the second possible implementation of the second aspect, in a third possible implementation of the second aspect, the establishing module includes:
获取单元,用于获取与第一实体具有包含关系的子实体、与所述第一实体具有关联关系的并列实体、以及与所述第一实体具有关联关系的至少一个功能体;An obtaining unit, configured to acquire a child entity having an inclusion relationship with the first entity, a parallel entity having an association relationship with the first entity, and at least one function body having an association relationship with the first entity;
建立单元,用于建立所述第一实体对应的模型与所述子实体对应的模型之间的包含关系、建立所述第一实体对应的模型与所述并列实体对应的模型之间的关联关系、以及建立所述第一实体对应的模型与所述至少一个功能体对应的模型之间的关联关系;a establishing unit, configured to establish an inclusion relationship between a model corresponding to the first entity and a model corresponding to the sub-entity, and establish an association relationship between a model corresponding to the first entity and a model corresponding to the parallel entity And establishing an association relationship between the model corresponding to the first entity and the model corresponding to the at least one functional body;
生成单元,用于为所述至少一个功能体中的各功能体对应的模型添加至少一个属性信息以及至少一个操作,形成所述预设本体模型。And a generating unit, configured to add at least one attribute information and at least one operation to a model corresponding to each functional body in the at least one functional body to form the preset ontology model.
结合第二方面的第三种可能的实施方式,在第二方面的第四种可能的实施方式中,所述建立模块还包括:In conjunction with the third possible implementation of the second aspect, in a fourth possible implementation of the second aspect, the establishing module further includes:
添加单元,用于在所述生成单元为所述至少一个功能体中的各功能体对应的模型添加至少一个属性信息以及至少一个操作之后,为各所述操作添加至少一个参数信息,所述参数信息用于设置操作的参数。Adding a unit, after the generating unit adds at least one attribute information and at least one operation to a model corresponding to each functional body in the at least one functional body, adding at least one parameter information for each of the operations, the parameter Information is used to set the parameters of the operation.
本发明所提供的基于实体的操作指示方法,在接收到实体操作请求后,在预设本体模型中查找与实体操作请求中实体标识对应的实体具有关联关系的功能体,该功能体包括与实体操作请求中属性信息标识对应的属性信息以及与实体操作请求中操作标识对应的操作,进而生成功能体可以识别的操作指令。由于预设本体模型中的功能体具有属性信息,使得预设本体模型中实体与功能体之间的关系清晰并且易于实现,进而,在处理实体操作请求时,只需根据实体标识以及属性信息标识即可查找到对应的功能体,从而实现了查找过程简单清晰易实现,进一步地可以使得使用预设本体模型生成功能体可以识别的操作指令的效率提高。The entity-based operation indication method provided by the present invention, after receiving the entity operation request, searches for a function body having an association relationship with an entity corresponding to the entity identifier in the entity operation request in the preset ontology model, and the function body includes the entity The attribute information in the operation request identifies the corresponding attribute information and the operation corresponding to the operation identifier in the entity operation request, thereby generating an operation instruction recognizable by the function body. Since the function body in the preset ontology model has attribute information, the relationship between the entity and the function body in the preset ontology model is clear and easy to implement, and further, when processing the entity operation request, only the entity identifier and the attribute information are identified. The corresponding function body can be found, thereby realizing the simple and clear search process, and further improving the efficiency of the operation instruction that can be recognized by using the preset ontology model generation function.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将 对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set forth in the description of the claims Other drawings can also be obtained from these drawings on the premise of inventive labor.
图1为本发明提供的基于实体的操作指示方法的实施例一的流程示意图;1 is a schematic flowchart of Embodiment 1 of an entity-based operation indication method provided by the present invention;
图2为本发明提供的基于实体的操作指示方法的实施例二的流程示意图;2 is a schematic flowchart of Embodiment 2 of an entity-based operation indication method provided by the present invention;
图3为本发明提供的基于实体的操作指示方法的实施例三的流程示意图;3 is a schematic flowchart of Embodiment 3 of an entity-based operation indication method provided by the present invention;
图4为根据图2和图3所示的方法所生成的一个完整的本体模型;Figure 4 is a complete ontology model generated according to the method shown in Figures 2 and 3;
图5为本发明提供的基于实体的操作指示装置的实施例一的结构示意图;FIG. 5 is a schematic structural diagram of Embodiment 1 of an entity-based operation indication device according to the present invention; FIG.
图6为本发明提供的基于实体的操作指示装置的实施例二的结构示意图;FIG. 6 is a schematic structural diagram of Embodiment 2 of an entity-based operation indicating apparatus according to the present invention;
图7为本发明提供的基于实体的操作指示装置的实施例三的结构示意图;FIG. 7 is a schematic structural diagram of Embodiment 3 of an entity-based operation indicating apparatus according to the present invention;
图8为本发明提供的基于实体的操作指示装置的实施例四的结构示意图;FIG. 8 is a schematic structural diagram of Embodiment 4 of an entity-based operation indicating apparatus according to the present invention; FIG.
图9为本发明提供的基于实体的操作指示装置的实施例五的结构示意图;FIG. 9 is a schematic structural diagram of Embodiment 5 of an entity-based operation indication apparatus according to the present invention; FIG.
图10为本发明提供的基于实体的操作指示装置的实施例六的结构示意图。FIG. 10 is a schematic structural diagram of Embodiment 6 of an entity-based operation indication device according to the present invention.
具体实施方式detailed description
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
需要说明的是,本发明的下述实施例以该方法可以在oneM2M系统中的使用为例进行说明,但并不以此为限,该方法同样可以应用于其他任何适用的领域中。It should be noted that the following embodiments of the present invention are described by using the method in the oneM2M system as an example, but are not limited thereto, and the method can also be applied to any other applicable field.
图1为本发明提供的基于实体的操作指示方法的实施例一的流程示意图,该方法的执行主体可以是终端,例如计算机、服务器等设备,如图1所示,该方法包括:1 is a schematic flowchart of Embodiment 1 of an entity-based operation indication method according to the present invention. The execution body of the method may be a terminal, such as a computer, a server, or the like. As shown in FIG. 1, the method includes:
S101、接收实体操作请求,该实体操作请求包括:实体标识、属性信息标识以及操作标识。S101. Receive an entity operation request, where the entity operation request includes: an entity identifier, an attribute information identifier, and an operation identifier.
以oneM2M系统为例,上述实体是指本身不具有测量或控制功能,能被其他设备测量或控制的实体,例如,上述实体可以指房间、卧室、冰箱等。Taking the oneM2M system as an example, the above entity refers to an entity that does not have a measurement or control function and can be measured or controlled by other devices. For example, the above entity may refer to a room, a bedroom, a refrigerator, and the like.
在接收到的实体操作请求中,包括了实体标识、属性信息标识以及操作标识,例如,“查询房间的温度”这一个操作请求中,就包含了实体标识“房间”、属性信息标识“温度”以及操作标识“查询”。In the received entity operation request, the entity identifier, the attribute information identifier, and the operation identifier are included. For example, the operation request “query room temperature” includes the entity identifier “room” and the attribute information identifier “temperature”. And the operation identifier "query".
S102、根据上述实体操作请求,在预设本体模型中查找第一功能体对应的模型,该第一功能体与上述实体标识对应的实体具有关联关系,且该第一功能体包含:上述属性信息标识对应的属性信息、以及上述操作标识对应的操作。S102. Search for a model corresponding to the first function body in the preset ontology model, where the first function body has an association relationship with the entity corresponding to the entity identifier, and the first function body includes: the foregoing attribute information. The corresponding attribute information and the operation corresponding to the operation identifier are identified.
以oneM2M系统为例,上述功能体是指具有测量或控制功能,能够完成测量或控制上述实体的某些属性,例如,上述功能体可以指温度传感器、光照传感器、湿度传感器、空调等。Taking the oneM2M system as an example, the above functional body refers to a certain function that has a measurement or control function and can perform measurement or control of the above entities. For example, the above functional body may refer to a temperature sensor, an illumination sensor, a humidity sensor, an air conditioner, and the like.
上述第一功能体是指根据上述实体操作请求所查找到的功能体。The first functional body refers to a functional body found according to the above entity operation request.
功能体具有属性信息,用于描述该功能体的功能、特征等,相应地,功能体的属性信息就可以包括功能属性信息、特征属性信息等。例如,温度传感器具有“温度”这个功能属性,则表明温度传感器具有了测量或控制温度的功能。The function body has attribute information for describing functions, features, and the like of the function body. Accordingly, the attribute information of the function body may include function attribute information, feature attribute information, and the like. For example, a temperature sensor with a "temperature" function indicates that the temperature sensor has the function of measuring or controlling the temperature.
另外,功能体可以支持至少一个操作,例如:测量湿度,测量温度等。In addition, the functional body can support at least one operation, such as measuring humidity, measuring temperature, and the like.
在预设本体模型中,已经定义好了实体和功能体,并且定义好了实体与功能体之间的关系。当实体与功能体之间建立关联关系后,就表明 实体具有了与功能体属性信息对应的特征。例如,“温度传感器”具有温度属性,当“房间”这个实体与“温度传感器”这个功能体建立关联关系后,“房间”这个实体就具有了“温度”特征。进而,当接收到实体操作请求时,只需要在预设本体模型中找到符合如下条件的功能体即可:与实体标识对应的实体具有关联关系;包含属性信息标识对应的属性信息;包含操作标识对应的操作。另外,当需要扩展系统中的实体和功能体时,也仅需要将实体与具有对应属性信息的功能体建立关联关系,上述关联关系在具体实施过程中,仅通过一条本体语句即可实现,即实体与功能体之间的关联关系不仅简单清晰,并且易于实现。In the preset ontology model, entities and functional bodies have been defined, and the relationship between entities and functional bodies has been defined. When an entity establishes an association with a functional entity, it indicates The entity has characteristics corresponding to the attribute information of the function body. For example, the "temperature sensor" has a temperature attribute. When the "room" entity is associated with the "temperature sensor" function, the "room" entity has a "temperature" feature. Further, when receiving the entity operation request, only the function body that meets the following conditions may be found in the preset ontology model: the entity corresponding to the entity identifier has an association relationship; the attribute information corresponding to the attribute information identifier is included; and the operation identifier is included Corresponding operation. In addition, when it is required to expand the entities and functional entities in the system, it is only necessary to associate the entity with the functional body having the corresponding attribute information, and the above-mentioned association relationship can be realized by only one ontology statement in the specific implementation process, that is, The relationship between entities and functions is not only simple and clear, but also easy to implement.
而现有技术中的本体模型中的设备并不具有属性信息,对于事物的每个特征,即方面,都需要在本体模型中为该方面和与它有关联关系的设备的操作建立关联模型,由于每个事物都包含至少一个方面,而每个设备都包含至少一个操作,因此,事物的方面与设备的操作之间的关系是多对多的关系,当系统中的事物和设备不断扩展时,事物的方面与设备的操作之间的关系会变得越发错综复杂,进而导致使用现有技术中的本体模型生成设备可以识别的操作指令的效率降低。However, the device in the ontology model in the prior art does not have attribute information. For each feature of the transaction, that is, the aspect, an association model needs to be established in the ontology model for the operation of the device and the device associated with it. Since each thing contains at least one aspect, and each device contains at least one operation, the relationship between the aspect of the thing and the operation of the device is a many-to-many relationship, when things and devices in the system continue to expand. The relationship between aspects of things and the operation of the device becomes more and more complicated, which in turn leads to a decrease in the efficiency of the operation instructions that can be recognized by the ontology model generation device of the prior art.
S103、根据上述第一功能体对应的模型,将上述实体操作请求转换为上述第一功能体可识别的操作指令。S103. Convert the physical operation request into an operation command recognizable by the first function body according to a model corresponding to the first function body.
S104、将上述操作指令发送给上述第一功能体,其中,上述操作指令用于指示上述第一功能体对上述实体标识对应的实体执行上述操作标识对应的操作。S104. The operation instruction is sent to the first function body, where the operation instruction is used to instruct the first function body to perform an operation corresponding to the operation identifier on an entity corresponding to the entity identifier.
具体地,在生成第一功能体可识别的操作指令后,可以通过与第一功能体连接的物理装置将操作指令发送给第一功能体,由第一功能体进行对应的操作并将结果返回。Specifically, after the operation instruction recognizable by the first function body is generated, the operation instruction may be sent to the first function body by the physical device connected to the first function body, and the corresponding operation is performed by the first function body, and the result is returned. .
本实施例中,在接收到实体操作请求后,在预设本体模型中查找与实体操作请求中实体标识对应的实体具有关联关系的功能体,该功能体包括与实体操作请求中属性信息标识对应的属性信息以及与实体操作请求中操作标识对应的操作,进而生成功能体可以识别的操作指令,由于预设本体模型中的功能体具有属性信息,使得预设本体模型中实体与功能体之间的关系清晰并且易于实现,进而,在处理实体操作请求时,只 需根据实体标识以及属性信息标识即可查找到对应的功能体,从而实现了查找过程简单清晰易实现,进一步地可以使得使用预设本体模型生成功能体可以识别的操作指令的效率提高。In this embodiment, after receiving the entity operation request, the function body having the association relationship with the entity corresponding to the entity identifier in the entity operation request is searched in the preset ontology model, and the function body includes the attribute information identifier corresponding to the entity operation request. The attribute information and the operation corresponding to the operation identifier in the entity operation request, thereby generating an operation instruction recognizable by the function body, wherein the function body in the preset ontology model has attribute information, so that the entity and the function body in the preset ontology model are The relationship is clear and easy to implement, and in turn, when processing entity operation requests, only The corresponding function body can be found according to the entity identifier and the attribute information identifier, thereby realizing the simple and clear search process, and further improving the efficiency of the operation instruction that can be recognized by using the preset ontology model generation function body.
图2为本发明提供的基于实体的操作指示方法的实施例二的流程示意图,如图2所示,该方法包括:2 is a schematic flowchart of Embodiment 2 of an entity-based operation indication method provided by the present invention. As shown in FIG. 2, the method includes:
S201、接收实体操作请求,该实体操作请求包括:实体标识、属性信息标识以及操作标识。S201. Receive an entity operation request, where the entity operation request includes: an entity identifier, an attribute information identifier, and an operation identifier.
S202、根据上述实体操作请求,在预设本体模型中查找第一功能体对应的模型,该第一功能体与上述实体标识对应的实体具有关联关系,且该第一功能体包含:上述属性信息标识对应的属性信息、以及上述操作标识对应的操作,若未查找到上述第一功能体,则执行S203。S202. Search for a model corresponding to the first function body in the preset ontology model, where the first function body has an association relationship with the entity corresponding to the entity identifier, and the first function body includes: the foregoing attribute information. If the attribute information corresponding to the identifier and the operation corresponding to the operation identifier are identified, if the first function body is not found, S203 is executed.
如果在预设本体模型中查找到了第一功能体,则后续处理流程与上述实施例一的后续流程相同。If the first function body is found in the preset ontology model, the subsequent process flow is the same as the subsequent process in the first embodiment.
S203、在上述预设本体模型中查找与上述实体标识对应的实体具有包含关系的至少一个子实体对应的模型,并在上述预设本体模型中查找与上述至少一个子实体具有关联关系的第二功能体对应的模型。S203: Searching, in the foregoing preset ontology model, an entity corresponding to the entity identifier, having a model corresponding to at least one sub-entity including a relationship, and searching, in the preset ontology model, a second relationship that is associated with the at least one sub-entity The model corresponding to the functional body.
在预设本体模型中,已经定义好了实体与实体之间的关系,实体之间的关系可以是并列关系,也可以是包含关系。例如,“房间”与卧室,“房间”与“厨房”之间都是包含关系。而“卧室”与“厨房”之间是并列关系。In the preset ontology model, the relationship between the entity and the entity has been defined, and the relationship between the entities may be a side-by-side relationship or an inclusion relationship. For example, "room" and bedroom, "room" and "kitchen" are all inclusive. The "bedroom" and the "kitchen" are in a parallel relationship.
当根据实体操作请求无法找到符合要求的功能体时,会继续向下查找与实体具有包含关系的至少一个子实体,并在预设本体模型中查找与上述至少一个子实体具有关联关系的第二功能体对应的模型。其中,第二功能体是指根据上述至少一个子实体标识、属性信息标识以及操作标识所查找到的符合要求的功能体。When the function body that meets the requirement cannot be found according to the entity operation request, the method further searches for at least one child entity having an inclusion relationship with the entity, and searches for a second relationship with the at least one child entity in the preset ontology model. The model corresponding to the functional body. The second function body refers to a function body that meets the requirements found according to the at least one child entity identifier, the attribute information identifier, and the operation identifier.
需要说明的是,在一些情况下,同一个实体操作请求所查询到的上述第一功能体和上述第二功能体可能为同一个功能体。It should be noted that, in some cases, the first function body and the second function body that are queried by the same entity operation request may be the same function body.
举例来说,实体操作请求为“查询房间的温度”,根据该请求在预设本体模型中查找与“房间”具有关联关系并且具有“温度”属性的功能体,而“房间”并不是一个实际的物理实体,而是一个概括的概念, 因此在预设本体模型中无法查找到与“房间”有关联关系并且具有“温度”属性的功能体,在这种情况下,会在预设本体模型中查找与“房间”具有包含关系的子实体,假设在预设本体模型中与“房间”具有包含关系的子实体为“卧室”和“厨房”,则此时会在预设本体模型中分别查找与“卧室”和“厨房”具有关联关系的第二功能体,该第二功能体具有“温度”属性,并且包含操作标识对应的操作。For example, the entity operation request is “query the temperature of the room”, and according to the request, the function body having the relationship with the “room” and having the “temperature” attribute is searched in the preset ontology model, and the “room” is not an actual Physical entity, but a generalized concept, Therefore, in the preset ontology model, it is impossible to find a function that has a relationship with the "room" and has a "temperature" attribute. In this case, a child having an inclusion relationship with "room" is found in the preset ontology model. Entity, assuming that the sub-entities with the inclusion relationship of "room" in the preset ontology model are "bedroom" and "kitchen", then the corresponding body model will be associated with "bedroom" and "kitchen" respectively. A second function of the relationship, the second function having a "temperature" attribute and including an operation corresponding to the operation identification.
S204、根据上述第二功能体对应的模型,将上述实体操作请求转换为上述第二功能体可识别的操作指令。S204. Convert the physical operation request into an operation command recognizable by the second function body according to a model corresponding to the second function body.
S205、将上述操作指令发送给上述第二功能体,其中,上述操作指令用于指示上述第二功能体对上述实体标识对应的实体执行上述操作标识对应的操作。S205: Send the operation instruction to the second function body, where the operation instruction is used to instruct the second function body to perform an operation corresponding to the operation identifier on an entity corresponding to the entity identifier.
需要说明的是,在上述步骤S203中查找到至少一个子实体及其对应的功能体与操作后,会通过步骤S204和S205分别生成针对每个子实体的至少一个操作指令,最终返回的操作结果为各操作指令返回的结果的集合。It should be noted that after at least one sub-entity and its corresponding function body and operation are found in the above step S203, at least one operation instruction for each sub-entity is generated by steps S204 and S205, respectively, and the final returned operation result is A collection of results returned by each operation instruction.
本实施例中,如果根据实体操作请求中的实体标识无法查找到对应的功能体,则继续向下查找与其具有包含关系的子实体并生成针对每个子实体的操作指令,即通过预设本体模型中实体间的包含关系,能够解析出正确的命令并返回正确的操作结果。In this embodiment, if the corresponding function body cannot be found according to the entity identifier in the entity operation request, continue to search for the child entity having the inclusion relationship and generate an operation instruction for each child entity, that is, by preset the ontology model. The inclusion relationship between entities can resolve the correct command and return the correct operation result.
而现有技术中,事物与事物之间并不具有包含关系,而仅具有一种关联关系。当使用现有技术中的本体模型处理操作请求时,如果在本体模型中查找不到与事物的方面建立了关联模型的设备的操作时,会继续查找所有与事物具有关联关系的事物,对这些事物再执行操作请求,这样的做法可能会导致返回错误的操作结果。举例来说,操作请求为“查询房间的温度”,根据该请求在现有技术的本体模型中查找“房间”及其方面“温度”,并查找与“温度”这个方面建立了关联模型的设备的操作。由于“房间”是一个抽象事物,因此,在本体模型中无法查找到对应的设备的操作,在这种情况下,由于现有技术中事物之间仅具有关联关系,因此,会在本体模型中查找与“房间”具有关联关系的事物,假设,在本体模型中与房间具有关联关系的事物有“卧室”、“厨房” 以及“冰箱”,则此时会在本体模型中针对“卧室”、“厨房”以及“冰箱”查找对应的设备的操作。最终返回的操作结果中,也就包含了“卧室”、“厨房”以及“冰箱”这三种事物的温度。但是,很显然,“冰箱”并不属于“房间”,因此,使用现有技术的本体模型处理操作指令时,就返回了错误的操作结果。In the prior art, there is no inclusion relationship between things and things, but only one relationship. When an operation request is processed using the ontology model in the prior art, if the operation of the device that establishes the association model with the aspect of the thing is not found in the ontology model, all the things associated with the thing are continuously searched for these. The thing then executes the operation request, which may result in the return of the wrong operation result. For example, the operation request is "query the temperature of the room", according to the request, look up the "room" and its aspect "temperature" in the prior art ontology model, and find the device that establishes the association model with the "temperature" aspect. Operation. Since the "room" is an abstract thing, the operation of the corresponding device cannot be found in the ontology model. In this case, since there is only an association relationship between the things in the prior art, it will be in the ontology model. Find things that are related to "room", assuming that things related to the room in the ontology model are "bedroom", "kitchen" As well as the "refrigerator", the operation of the corresponding device is searched for in the "model", "kitchen" and "refrigerator" in the ontology model. The final returned operation results in the temperature of the three things "bedroom", "kitchen" and "refrigerator". However, it is clear that the "refrigerator" does not belong to the "room", and therefore, when the operation instruction is processed using the prior art ontology model, the erroneous operation result is returned.
另一实施例中,在上述接收实体操作请求之前,还包括:In another embodiment, before the receiving entity operation request, the method further includes:
建立上述预设本体模型。Establish the above preset ontology model.
图3为本发明提供的基于实体的操作指示方法的实施例三的流程示意图,如图3所示,上述建立上述预设本体模型具体包括:3 is a schematic flowchart of Embodiment 3 of an entity-based operation indication method according to the present invention. As shown in FIG. 3, the foregoing establishing the preset ontology model specifically includes:
S301、获取与第一实体具有包含关系的子实体、与第一实体具有关联关系的并列实体、以及与第一实体具有关联关系的至少一个功能体。S301. Acquire a sub-entity having an inclusion relationship with the first entity, a parallel entity having an association relationship with the first entity, and at least one function body having an association relationship with the first entity.
以oneM2M系统为例,上述第一实体泛指oneM2M系统中的任一实体。Taking the oneM2M system as an example, the above first entity generally refers to any entity in the oneM2M system.
S302、建立上述第一实体对应的模型与上述子实体对应的模型之间的包含关系、建立上述第一实体对应的模型与上述并列实体对应的模型之间的关联关系、以及建立上述第一实体对应的模型与上述至少一个功能体对应的模型之间的关联关系。S302. Establish an inclusion relationship between a model corresponding to the first entity and a model corresponding to the sub-entity, establish an association relationship between a model corresponding to the first entity and a model corresponding to the parallel entity, and establish the first entity. Correlation between the corresponding model and the model corresponding to the at least one functional body.
S303、为上述至少一个功能体中的各功能体对应的模型添加至少一个属性信息以及至少一个操作,形成上述预设本体模型。S303. Add at least one attribute information and at least one operation to a model corresponding to each functional body in the at least one functional body to form the preset ontology model.
本实施例为建立本体模型的过程,在oneM2M系统中,实体与实体、实体与功能体之间具有各种各样的联系,在收集获取到这些实体、功能体以及它们之间的联系后,可以使用本体建模语言来建立这些实体的模型、功能体的模型以及它们之间的联系,并且,为各功能体对应的模型添加属性信息和操作,从而形成完整的预设本体模型。This embodiment is a process of establishing an ontology model. In a oneM2M system, entities and entities, entities, and functional entities have various connections. After collecting and obtaining these entities, functional entities, and the connections between them, An ontology modeling language can be used to model the models of these entities, the models of the functional bodies, and the connections between them, and to add attribute information and operations to the models corresponding to each functional body to form a complete pre-built ontology model.
其中,功能体可能包含多个属性信息,在为功能体添加属性信息时,可以根据系统的实际情况添加多个属性信息。例如,功能属性“温度”,特征属性“所有者”等。The function body may contain multiple attribute information. When adding attribute information to the function body, multiple attribute information may be added according to the actual situation of the system. For example, the function attribute "temperature", the feature attribute "owner", and the like.
进一步地,在上述为上述至少一个功能体中的各功能体对应的模型添加至少一个属性信息以及至少一个操作之后,还包括:Further, after adding at least one attribute information and at least one operation to the model corresponding to each functional body in the at least one functional body, the method further includes:
为各操作添加至少一个参数信息,该参数信息用于设置操作的参 数。Add at least one parameter information for each operation, which is used to set the parameters of the operation. number.
具体地,每个功能体中都可以包含至少一个操作,例如,温度传感器可以包含“测量温度”这个操作,还可以为这些操作添加一些参数信息,例如,“测量温度”操作中可以包含“温度”参数。进一步地,参数信息还可以包括参数值、参数单位、参数的数据类型等信息。Specifically, each functional body may include at least one operation. For example, the temperature sensor may include an operation of “measuring temperature”, and some parameter information may be added for these operations. For example, “measurement temperature” operation may include “temperature”. "parameter. Further, the parameter information may further include information such as a parameter value, a parameter unit, a data type of the parameter, and the like.
图4为根据图2和图3所示的方法所生成的一个完整的本体模型,当实际系统中物理装置及其对应关系发生改变时,仅需要在该模型中进行对应的修改即可。如图4所示,该本体模型中包括了实体和功能体,其中,实体与实体之间可以是并列关系,也可以是包含关系,当实体之间为包含关系时,被包含的实体即为子实体。实体与功能体之间可以具有关联关系。例如在图4中,与实体具有并列关系的实体以及与实体具有包含关系的子实体都可以与功能体之间具有关联关系。功能体具有属性信息,例如功能属性、特征属性等。当实体与功能体建立关联关系后,实体就具有了功能体的功能属性对应的特征。功能体还具有至少一个操作,每个操作中都可以包含至少一个参数。4 is a complete ontology model generated according to the method shown in FIG. 2 and FIG. 3. When the physical device and its corresponding relationship in the actual system are changed, only corresponding modifications in the model are needed. As shown in FIG. 4, the ontology model includes an entity and a function body, wherein the entity and the entity may be a side-by-side relationship or an inclusion relationship. When the entities are inclusive, the included entity is Child entity. There can be an association between an entity and a function. For example, in FIG. 4, an entity having a side-by-side relationship with an entity and a child entity having an inclusion relationship with the entity may have an association relationship with the functional body. The function body has attribute information such as function attributes, feature attributes, and the like. When an entity is associated with a functional entity, the entity has characteristics corresponding to the functional attributes of the functional body. The functional body also has at least one operation, and each operation may include at least one parameter.
利用上述的本体模型,当增加一个实体时,仅需要在其和具有对应属性信息的功能体之间建立一个简单的关联关系即可,不再像现有技术那样逐个为实体的各方面同与该方面有关联关系的设备的操作之间再建立关联模型,从而使得建模过程变得简单和易于实现,同时,当本体模型中的实体和功能体逐渐增加,本体模型不断扩展时,实体与功能体之间的关系也不会变得不清晰。With the ontology model described above, when an entity is added, it is only necessary to establish a simple association relationship between it and a functional body having corresponding attribute information, and it is no longer the same as the prior art. The association model is established between the operations of the related devices in this aspect, which makes the modeling process simple and easy to implement. At the same time, when the entities and functional entities in the ontology model are gradually increased, the ontology model is continuously expanded, the entity and The relationship between functional entities will not become unclear.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。One of ordinary skill in the art will appreciate that all or part of the steps to implement the various method embodiments described above may be accomplished by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. The program, when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
图5为本发明提供的基于实体的操作指示装置的实施例一的结构示意图,如图5所示,该装置包括:FIG. 5 is a schematic structural diagram of Embodiment 1 of an entity-based operation indication device according to the present invention. As shown in FIG. 5, the device includes:
接收模块501,用于接收实体操作请求,该实体操作请求包括:实体标识、属性信息标识以及操作标识。 The receiving module 501 is configured to receive an entity operation request, where the entity operation request includes: an entity identifier, an attribute information identifier, and an operation identifier.
查找模块502,用于根据上述实体操作请求,在预设本体模型中查找第一功能体对应的模型,该第一功能体与上述实体标识对应的实体具有关联关系,且该第一功能体包含:上述属性信息标识对应的属性信息、以及上述操作标识对应的操作。The searching module 502 is configured to search for a model corresponding to the first function body in the preset ontology model according to the foregoing entity operation request, where the first function body has an association relationship with an entity corresponding to the entity identifier, and the first function body includes The attribute information corresponding to the attribute information identifier and the operation corresponding to the operation identifier.
生成模块503,用于根据上述第一功能体对应的模型,将上述实体操作请求转换为上述第一功能体可识别的操作指令。The generating module 503 is configured to convert the physical operation request into an operation command recognizable by the first function body according to the model corresponding to the first function body.
发送模块504,用于将上述操作指令发送给上述第一功能体,其中,上述操作指令用于指示上述第一功能体对上述实体标识对应的实体执行上述操作标识对应的操作。The sending module 504 is configured to send the operation instruction to the first function body, where the operation instruction is used to instruct the first function body to perform an operation corresponding to the operation identifier on an entity corresponding to the entity identifier.
该装置用于执行前述的方法实施例,其实现原理和技术效果类似,此处不再赘述。The device is used to perform the foregoing method embodiments, and the implementation principle and technical effects are similar, and details are not described herein again.
图6为本发明提供的基于实体的操作指示装置的实施例二的结构示意图,在图5的基础上,如图6所示,该装置还包括:FIG. 6 is a schematic structural diagram of Embodiment 2 of the entity-based operation indication device according to the present invention. On the basis of FIG. 5, as shown in FIG. 6, the device further includes:
第二查找模块505,用于在查找模块502在上述预设本体模型中未查找到上述第一功能体对应的模型时,在上述预设本体模型中查找与上述实体标识对应的实体具有包含关系的至少一个子实体对应的模型,并在上述预设本体模型中查找与上述至少一个子实体具有关联关系的第二功能体对应的模型。The second search module 505 is configured to: when the search module 502 does not find the model corresponding to the first function body in the preset body model, search for the entity corresponding to the entity identifier in the preset body model to have an inclusion relationship And corresponding to the model of the at least one sub-entity, and searching for a model corresponding to the second functional body having an association relationship with the at least one sub-entity in the preset ontology model.
图7为本发明提供的基于实体的操作指示装置的实施例三的结构示意图,在图6的基础上,如图7所示,该装置还包括:FIG. 7 is a schematic structural diagram of Embodiment 3 of the entity-based operation indicating apparatus according to the present invention. On the basis of FIG. 6, as shown in FIG. 7, the apparatus further includes:
建立模块506,用于在上述接收模块接收实体操作请求之前建立上述预设本体模型。The establishing module 506 is configured to establish the preset ontology model before the receiving module receives the entity operation request.
图8为本发明提供的基于实体的操作指示装置的实施例四的结构示意图,如图8所示,建立模块506包括:FIG. 8 is a schematic structural diagram of Embodiment 4 of an entity-based operation indication apparatus according to the present invention. As shown in FIG. 8, the setup module 506 includes:
获取单元5061,用于获取与第一实体具有包含关系的子实体、与第一实体具有关联关系的并列实体、以及与第一实体具有关联关系的至少一个功能体。The obtaining unit 5061 is configured to acquire a sub-entity having an inclusion relationship with the first entity, a parallel entity having an association relationship with the first entity, and at least one function body having an association relationship with the first entity.
建立单元5062,用于建立上述第一实体对应的模型与上述子实体对应的模型之间的包含关系、建立上述第一实体对应的模型与上述并列实体对应的模型之间的关联关系、以及建立上述第一实体对应的模型与上 述至少一个功能体对应的模型之间的关联关系。The establishing unit 5062 is configured to establish an inclusion relationship between the model corresponding to the first entity and the model corresponding to the sub-entity, establish an association relationship between the model corresponding to the first entity and a model corresponding to the parallel entity, and establish an association relationship between the model corresponding to the first entity and the model corresponding to the parallel entity. The model corresponding to the first entity above An association relationship between models corresponding to at least one functional body.
生成单元5063,用于为上述至少一个功能体中的各功能体对应的模型添加至少一个属性信息以及至少一个操作,形成上述预设本体模型。The generating unit 5063 is configured to add at least one attribute information and at least one operation to the model corresponding to each functional body in the at least one functional body to form the preset ontology model.
图9为本发明提供的基于实体的操作指示装置的实施例五的结构示意图,在图8的基础上,如图9所示,建立模块506还包括:FIG. 9 is a schematic structural diagram of Embodiment 5 of the entity-based operation indicating apparatus according to the present invention. On the basis of FIG. 8, as shown in FIG. 9, the establishing module 506 further includes:
添加单元5064,用于在生成单元5063为上述至少一个功能体中的各功能体对应的模型添加至少一个属性信息以及至少一个操作之后,为各上述操作添加至少一个参数信息,上述参数信息用于设置操作的参数。The adding unit 5064 is configured to add at least one parameter information for each operation after the generating unit 5063 adds at least one attribute information and at least one operation to a model corresponding to each functional body in the at least one functional body, where the parameter information is used for Set the parameters for the operation.
图10为本发明提供的基于实体的操作指示装置的实施例六的结构示意图,如图10所示,该装置包括:存储器601和处理器602。FIG. 10 is a schematic structural diagram of Embodiment 6 of an entity-based operation indication apparatus according to the present invention. As shown in FIG. 10, the apparatus includes: a memory 601 and a processor 602.
存储器601用于存储程序指令,处理器602用于调用存储器601中的程序指令,执行下述方法:The memory 601 is used to store program instructions, and the processor 602 is configured to call program instructions in the memory 601 to perform the following methods:
接收实体操作请求,该实体操作请求包括:实体标识、属性信息标识以及操作标识。Receiving an entity operation request, the entity operation request includes: an entity identifier, an attribute information identifier, and an operation identifier.
根据上述实体操作请求,在预设本体模型中查找第一功能体对应的模型,该第一功能体与上述实体标识对应的实体具有关联关系,且该第一功能体包含:上述属性信息标识对应的属性信息、以及上述操作标识对应的操作。And searching, according to the foregoing entity operation request, a model corresponding to the first function body, where the first function body has an association relationship with the entity corresponding to the entity identifier, and the first function body includes: the attribute information identifier corresponding to the foregoing The attribute information and the operation corresponding to the above operation identifier.
根据上述第一功能体对应的模型,将上述实体操作请求转换为上述第一功能体可识别的操作指令。And converting the physical operation request into an operation instruction recognizable by the first function body according to the model corresponding to the first function body.
将上述操作指令发送给上述第一功能体,其中,上述操作指令用于指示上述第一功能体对上述实体标识对应的实体执行上述操作标识对应的操作。And sending the operation instruction to the first function body, where the operation instruction is used to instruct the first function body to perform an operation corresponding to the operation identifier on an entity corresponding to the entity identifier.
该装置用于执行前述方法实施例,其实现原理和技术效果类似,此处不再赘述。The device is used to perform the foregoing method embodiments, and the implementation principle and technical effects are similar, and details are not described herein again.
进一步地,处理器602用于在根据上述实体操作请求,在预设本体模型中未查找到第一功能体对应的模型时,在上述预设本体模型中查找与上述实体标识对应的实体具有包含关系的至少一个子实体对应的模型,并在上述预设本体模型中查找与上述至少一个子实体具有关联关系的第二功能体对应的模型。 Further, the processor 602 is configured to: when the model corresponding to the first function body is not found in the preset ontology model, according to the foregoing entity operation request, searching for the entity corresponding to the entity identifier in the preset ontology model has an inclusion A model corresponding to at least one sub-entity of the relationship, and searching for a model corresponding to the second functional body having an association relationship with the at least one sub-entity in the preset ontology model.
进一步地,处理器602用于在上述接收实体操作请求之前建立上述预设本体模型。Further, the processor 602 is configured to establish the foregoing preset ontology model before receiving the entity operation request.
进一步地,处理器602用于在上述接收实体操作请求之前建立上述预设本体模型,具体包括:Further, the processor 602 is configured to establish the foregoing preset ontology model before the receiving entity operation request, where the method includes:
获取与第一实体具有包含关系的子实体、与第一实体具有关联关系的并列实体、以及与第一实体具有关联关系的至少一个功能体。Obtaining a child entity having an inclusion relationship with the first entity, a parallel entity having an association relationship with the first entity, and at least one function body having an association relationship with the first entity.
建立上述第一实体对应的模型与上述子实体对应的模型之间的包含关系、建立上述第一实体对应的模型与上述并列实体对应的模型之间的关联关系、以及建立上述第一实体对应的模型与上述至少一个功能体对应的模型之间的关联关系。Establishing an inclusion relationship between the model corresponding to the first entity and the model corresponding to the sub-entity, establishing an association relationship between a model corresponding to the first entity and a model corresponding to the parallel entity, and establishing a corresponding entity of the first entity The relationship between the model and the model corresponding to the at least one functional body described above.
为上述至少一个功能体中的各功能体对应的模型添加至少一个属性信息以及至少一个操作,形成上述预设本体模型。Adding at least one attribute information and at least one operation to the model corresponding to each functional body in the at least one functional body to form the preset ontology model.
进一步地,处理器602用于在上述为上述至少一个功能体中的各功能体对应的模型添加至少一个属性信息以及至少一个操作之后,为各操作添加至少一个参数信息,该参数信息用于设置操作的参数。最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 Further, the processor 602 is configured to add at least one parameter information for each operation after adding at least one attribute information and at least one operation to the model corresponding to each functional body in the at least one functional body, and the parameter information is used to set The parameters of the operation. Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; 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 (10)

  1. 一种基于实体的操作指示方法,其特征在于,包括:An entity-based operation indication method, comprising:
    接收实体操作请求,所述实体操作请求包括:实体标识、属性信息标识以及操作标识;Receiving an entity operation request, where the entity operation request includes: an entity identifier, an attribute information identifier, and an operation identifier;
    根据所述实体操作请求,在预设本体模型中查找第一功能体对应的模型,所述第一功能体与所述实体标识对应的实体具有关联关系,且所述第一功能体包含:所述属性信息标识对应的属性信息、以及所述操作标识对应的操作;And searching, according to the entity operation request, a model corresponding to the first function body in the preset ontology model, where the first function body has an association relationship with an entity corresponding to the entity identifier, and the first function body includes: Attribute information identifier corresponding attribute information, and an operation corresponding to the operation identifier;
    根据所述第一功能体对应的模型,将所述实体操作请求转换为所述第一功能体可识别的操作指令;Converting the entity operation request into an operation instruction recognizable by the first function body according to a model corresponding to the first function body;
    将所述操作指令发送给所述第一功能体,其中,所述操作指令用于指示所述第一功能体对所述实体标识对应的实体执行所述操作标识对应的操作。Sending the operation instruction to the first function body, where the operation instruction is used to instruct the first function body to perform an operation corresponding to the operation identifier on an entity corresponding to the entity identifier.
  2. 根据权利要求1所述的方法,其特征在于,若在所述预设本体模型中未查找到所述第一功能体对应的模型,则所述方法还包括:The method according to claim 1, wherein if the model corresponding to the first functional body is not found in the preset ontology model, the method further comprises:
    在所述预设本体模型中查找与所述实体标识对应的实体具有包含关系的至少一个子实体对应的模型,并在所述预设本体模型中查找与所述至少一个子实体具有关联关系的第二功能体对应的模型。Searching, in the preset ontology model, an entity corresponding to the entity identifier, having a model corresponding to at least one sub-entity including a relationship, and searching, in the preset ontology model, an association relationship with the at least one sub-entity The model corresponding to the second functional body.
  3. 根据权利要求1或2所述的方法,其特征在于,所述接收实体操作请求之前,还包括:The method according to claim 1 or 2, wherein before the receiving the entity operation request, the method further includes:
    建立所述预设本体模型。Establishing the preset ontology model.
  4. 根据权利要求3所述的方法,其特征在于,所述建立所述预设本体模型,包括:The method according to claim 3, wherein the establishing the preset ontology model comprises:
    获取与第一实体具有包含关系的子实体、与所述第一实体具有关联关系的并列实体、以及与所述第一实体具有关联关系的至少一个功能体;Obtaining a sub-entity having an inclusion relationship with the first entity, a parallel entity having an association relationship with the first entity, and at least one function body having an association relationship with the first entity;
    建立所述第一实体对应的模型与所述子实体对应的模型之间的包含关系、建立所述第一实体对应的模型与所述并列实体对应的模型之间的关联关系、以及建立所述第一实体对应的模型与所述至少一个功能体对应的模型之间的关联关系; Establishing an inclusion relationship between the model corresponding to the first entity and a model corresponding to the sub-entity, establishing an association relationship between a model corresponding to the first entity and a model corresponding to the parallel entity, and establishing the An association relationship between a model corresponding to the first entity and a model corresponding to the at least one functional body;
    为所述至少一个功能体中的各功能体对应的模型添加至少一个属性信息以及至少一个操作,形成所述预设本体模型。And adding at least one attribute information and at least one operation to a model corresponding to each functional body in the at least one functional body to form the preset ontology model.
  5. 根据权利要求4所述的方法,其特征在于,所述为所述至少一个功能体中的各功能体对应的模型添加至少一个属性信息以及至少一个操作之后,还包括:The method according to claim 4, wherein the adding at least one attribute information and the at least one operation to the model corresponding to each functional body in the at least one functional body further comprises:
    为各所述操作添加至少一个参数信息,所述参数信息用于设置操作的参数。At least one parameter information is added for each of the operations, the parameter information being used to set parameters of the operation.
  6. 一种基于实体的操作指示装置,其特征在于,包括:An entity-based operation indicating device, comprising:
    接收模块,用于接收实体操作请求,所述实体操作请求包括:实体标识、属性信息标识以及操作标识;a receiving module, configured to receive an entity operation request, where the entity operation request includes: an entity identifier, an attribute information identifier, and an operation identifier;
    查找模块,用于根据所述实体操作请求,在预设本体模型中查找第一功能体对应的模型,所述第一功能体与所述实体标识对应的实体具有关联关系,且所述第一功能体包含:所述属性信息标识对应的属性信息、以及所述操作标识对应的操作;a search module, configured to search, according to the entity operation request, a model corresponding to the first function body in the preset ontology model, where the first function body has an association relationship with an entity corresponding to the entity identifier, and the first The function body includes: the attribute information corresponding to the attribute information, and the operation corresponding to the operation identifier;
    生成模块,用于根据所述第一功能体对应的模型,将所述实体操作请求转换为所述第一功能体可识别的操作指令;a generating module, configured to convert the entity operation request into an operation instruction recognizable by the first function body according to a model corresponding to the first function body;
    发送模块,用于将所述操作指令发送给所述第一功能体,其中,所述操作指令用于指示所述第一功能体对所述实体标识对应的实体执行所述操作标识对应的操作。a sending module, configured to send the operation instruction to the first function body, where the operation instruction is used to instruct the first function body to perform an operation corresponding to the operation identifier on an entity corresponding to the entity identifier .
  7. 根据权利要求6所述的装置,其特征在于,还包括:The device according to claim 6, further comprising:
    第二查找模块,用于在所述查找模块在所述预设本体模型中未查找到所述第一功能体对应的模型时,在所述预设本体模型中查找与所述实体标识对应的实体具有包含关系的至少一个子实体对应的模型,并在所述预设本体模型中查找与所述至少一个子实体具有关联关系的第二功能体对应的模型。a second searching module, configured to: when the search module does not find the model corresponding to the first function body in the preset body model, search for the corresponding entity identifier in the preset body model The entity has a model corresponding to at least one child entity including the relationship, and searches for a model corresponding to the second function body having an association relationship with the at least one child entity in the preset ontology model.
  8. 根据权利要求6或7所述的装置,其特征在于,还包括:The device according to claim 6 or 7, further comprising:
    建立模块,用于在所述接收模块接收实体操作请求之前建立所述预设本体模型。And a establishing module, configured to establish the preset ontology model before the receiving module receives the entity operation request.
  9. 根据权利要求8所述的装置,其特征在于,所述建立模块包括:The apparatus according to claim 8, wherein the establishing module comprises:
    获取单元,用于获取与第一实体具有包含关系的子实体、与所述第 一实体具有关联关系的并列实体、以及与所述第一实体具有关联关系的至少一个功能体;An obtaining unit, configured to acquire a child entity having an inclusion relationship with the first entity, and the a parallel entity having an association relationship with an entity, and at least one functional body having an association relationship with the first entity;
    建立单元,用于建立所述第一实体对应的模型与所述子实体对应的模型之间的包含关系、建立所述第一实体对应的模型与所述并列实体对应的模型之间的关联关系、以及建立所述第一实体对应的模型与所述至少一个功能体对应的模型之间的关联关系;a establishing unit, configured to establish an inclusion relationship between a model corresponding to the first entity and a model corresponding to the sub-entity, and establish an association relationship between a model corresponding to the first entity and a model corresponding to the parallel entity And establishing an association relationship between the model corresponding to the first entity and the model corresponding to the at least one functional body;
    生成单元,用于为所述至少一个功能体中的各功能体对应的模型添加至少一个属性信息以及至少一个操作,形成所述预设本体模型。And a generating unit, configured to add at least one attribute information and at least one operation to a model corresponding to each functional body in the at least one functional body to form the preset ontology model.
  10. 根据权利要求9所述的装置,其特征在于,所述建立模块还包括:The apparatus according to claim 9, wherein the establishing module further comprises:
    添加单元,用于在所述生成单元为所述至少一个功能体中的各功能体对应的模型添加至少一个属性信息以及至少一个操作之后,为各所述操作添加至少一个参数信息,所述参数信息用于设置操作的参数。 Adding a unit, after the generating unit adds at least one attribute information and at least one operation to a model corresponding to each functional body in the at least one functional body, adding at least one parameter information for each of the operations, the parameter Information is used to set the parameters of the operation.
PCT/CN2016/099971 2015-09-25 2016-09-23 Entity-based operation instruction method and device WO2017050285A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510618840.9A CN106557030B (en) 2015-09-25 2015-09-25 Method of instructing operation and device based on entity
CN201510618840.9 2015-09-25

Publications (1)

Publication Number Publication Date
WO2017050285A1 true WO2017050285A1 (en) 2017-03-30

Family

ID=58385653

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/099971 WO2017050285A1 (en) 2015-09-25 2016-09-23 Entity-based operation instruction method and device

Country Status (2)

Country Link
CN (1) CN106557030B (en)
WO (1) WO2017050285A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112351059B (en) * 2020-07-30 2021-09-10 中兴通讯股份有限公司 Request processing method and device, electronic equipment and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4901218A (en) * 1987-08-12 1990-02-13 Renishaw Controls Limited Communications adaptor for automated factory system
CN1386220A (en) * 2000-07-07 2002-12-18 多曼罗吉克斯公司 Automated tool management in multi-protocol environment
CN101419449A (en) * 2007-10-23 2009-04-29 北京北方微电子基地设备工艺研究中心有限责任公司 Method and system for implementing factory automation interface
CN103605318A (en) * 2013-11-14 2014-02-26 北京铭隆世纪科技有限公司 Method and apparatus for function customization of CNC controller and CNC controller
CN103793536A (en) * 2014-03-03 2014-05-14 陈念生 Intelligent platform obtaining method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104081796A (en) * 2011-12-02 2014-10-01 高通股份有限公司 Systems and methods for group based access control of machine to machine devices
CN104507054B (en) * 2014-12-29 2020-03-06 海尔优家智能科技(北京)有限公司 Group member information updating method and related equipment
CN104866650B (en) * 2015-04-28 2021-07-16 海尔优家智能科技(北京)有限公司 Method and device for creating abstract device
CN104852975B (en) * 2015-04-29 2020-07-31 海尔优家智能科技(北京)有限公司 Household equipment calling method and device
CN104955153B (en) * 2015-05-29 2022-03-11 青岛海尔智能家电科技有限公司 Method, device and equipment for discovering resources

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4901218A (en) * 1987-08-12 1990-02-13 Renishaw Controls Limited Communications adaptor for automated factory system
CN1386220A (en) * 2000-07-07 2002-12-18 多曼罗吉克斯公司 Automated tool management in multi-protocol environment
CN101419449A (en) * 2007-10-23 2009-04-29 北京北方微电子基地设备工艺研究中心有限责任公司 Method and system for implementing factory automation interface
CN103605318A (en) * 2013-11-14 2014-02-26 北京铭隆世纪科技有限公司 Method and apparatus for function customization of CNC controller and CNC controller
CN103793536A (en) * 2014-03-03 2014-05-14 陈念生 Intelligent platform obtaining method and device

Also Published As

Publication number Publication date
CN106557030B (en) 2019-08-20
CN106557030A (en) 2017-04-05

Similar Documents

Publication Publication Date Title
WO2016091174A1 (en) Search method and apparatus for graph data
TWI736123B (en) BLE communication method, device, equipment and storage medium
WO2018040722A1 (en) Table data query method and device
US8417690B2 (en) Automatically avoiding unconstrained cartesian product joins
EP3210133A1 (en) Tagging personal photos with deep networks
CN109491989A (en) Data processing method and device, electronic equipment, storage medium
WO2017097108A1 (en) Log information processing method, apparatus, and system
CN107636655B (en) System and method for providing data as a service (DaaS) in real time
CN112883125A (en) Entity data processing method, device, equipment and storage medium
US11875117B2 (en) Ontology management method and M2M platform
CN105335466A (en) Audio data retrieval method and apparatus
CN104484413A (en) Method and device for obtaining searching results
WO2017050285A1 (en) Entity-based operation instruction method and device
CN110784336A (en) Multi-device intelligent timing delay scene setting method and system based on Internet of things
WO2014166218A1 (en) Fault management method and apparatus
JP2022552435A (en) Methods and apparatus for pushing subscription data in the Internet of Things, and devices and storage media thereof
CN116894078A (en) Information interaction method, device, electronic equipment and medium
WO2023011237A1 (en) Service processing
US10409916B2 (en) Natural language processing system
CN112860811B (en) Method and device for determining data blood relationship, electronic equipment and storage medium
WO2020057439A1 (en) Answer determination method and system
US20210327437A1 (en) Electronic apparatus and method for recognizing speech thereof
CN111581490A (en) Information searching method and device, storage medium and electronic equipment
CN112783507B (en) Data stream guiding playback method and device, electronic equipment and readable storage medium
KR102255339B1 (en) Method for generating internet of media information and apparatus for the same

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16848166

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: 16848166

Country of ref document: EP

Kind code of ref document: A1