CN106557030B - Method of instructing operation and device based on entity - Google Patents
Method of instructing operation and device based on entity Download PDFInfo
- Publication number
- CN106557030B CN106557030B CN201510618840.9A CN201510618840A CN106557030B CN 106557030 B CN106557030 B CN 106557030B CN 201510618840 A CN201510618840 A CN 201510618840A CN 106557030 B CN106557030 B CN 106557030B
- Authority
- CN
- China
- Prior art keywords
- functive
- entity
- model
- attribute information
- instance
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- 241000208340 Araliaceae Species 0.000 claims description 2
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims description 2
- 235000003140 Panax quinquefolius Nutrition 0.000 claims description 2
- 235000008434 ginseng Nutrition 0.000 claims description 2
- 238000012545 processing Methods 0.000 abstract description 6
- 230000009897 systematic effect Effects 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 18
- 230000006870 function Effects 0.000 description 15
- 238000005259 measurement Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000006399 behavior Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000004378 air conditioning Methods 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B15/00—Systems controlled by a computer
- G05B15/02—Systems controlled by a computer electric
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/418—Total 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] or computer integrated manufacturing [CIM]
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Manufacturing & Machinery (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The present invention provides a kind of method of instructing operation and device based on entity, in this method, after receiving physical operation request, the functive that entity corresponding with entity identifier in physical operation request has incidence relation is searched in default ontology model, the functive include and physical operation request in attribute information identify corresponding attribute information and operation corresponding with operation mark in physical operation request, and then the operational order that systematic function body can identify.Since the functive preset in ontology model has attribute information, so that the relationship in default ontology model between entity and functive is clear and is easily achieved, in turn, in processing entities operation requests, only corresponding functive need to can be found according to entity identifier and attribute information mark, to realize the simple clear easily realization of search procedure, the efficiency of the operational order identified using default ontology model systematic function body can further be allowed to improve.
Description
Technical field
The present invention relates to computer technology more particularly to a kind of method of instructing operation and device based on entity.
Background technique
Ontology is the Formal Specification of a concept, can by concept definition be object, attribute and with other concepts
Relationship.Ontology can be used to define the shared vocabulary of description section real world (subject area) basic conception, and specify this
The operation that a little concepts and concept include.Therefore, in multiple fields can using ontology come to the field things and pass
System is modeled.Such as in machine communication (Machine-to-Machine Communications, abbreviation M2M), i.e. Internet of Things
Pair in field, so that it may carry out Ontology Modeling to entity defined in internet of things field International Organization for standardization oneM2M, i.e.,
In oneM2M system physics, virtual and abstract entity carries out semantic modeling, and forms ontology model, and then use mark
Quasi- Ontology Modeling language converts ontology model to machine readable ontology library, and for completing the various of oneM2M system
Operation.
In the prior art, when completing such as various operations of oneM2M system using ontology library, used in ontology library
Two kinds of entities of equipment and things are contained in ontology model, meanwhile, things and things pass through correlation model between things and equipment
Establish connection.When completing various operations using ontology library, semantic engine by analysis ontology library in each entity and its between
Association, the operational order that generating device can identify are used to indicate equipment and complete corresponding operation.
But when using the operational order that ontology model generating device can identify in the prior art, used ontology
Correlation model is established between the operation of aspect and equipment that be by things in model included to indicate between things and equipment
Relationship, when things in system and equipment constantly extend, the relationship between things and equipment can become complicated and unintelligible, lead
The efficiency for generating operational order with ontology model is caused to reduce.
Summary of the invention
The present invention provides a kind of method of instructing operation and device based on entity, for solving ontology model in the prior art
The problem that structure is complicated causes operational order formation efficiency low.
First aspect present invention provides a kind of method of instructing operation based on entity, comprising:
Receiving entity operation requests, the physical operation request include: entity identifier, attribute information mark and operation mark
Know;
It is requested according to the physical operation, searches the corresponding model of the first functive in default ontology model, described the
One functive entity corresponding with the entity identifier has incidence relation, and first functive includes: the attribute letter
Breath identifies corresponding attribute information and the corresponding operation of the operation mark;
According to the corresponding model of first functive, physical operation request is converted to first functive can
The operational order of identification;
The operational order is sent to first functive, wherein the operational order is used to indicate described first
Functive executes the corresponding operation of the operation mark to the corresponding entity of the entity identifier.
With reference to first aspect, in the first possible embodiment of first aspect, if in the default ontology model
In do not find the corresponding model of first functive, then the method also includes:
Entity corresponding with the entity identifier has inclusion relation at least one is searched in the default ontology model
The corresponding model of a fructification, and searched in the default ontology model there is incidence relation at least one described fructification
The corresponding model of the second functive.
With reference to first aspect or the first possible embodiment of first aspect, second in first aspect are possible
In embodiment, before the receiving entity operation requests, further includes:
Establish the default ontology model.
The possible embodiment of second with reference to first aspect, in the third possible embodiment of second aspect
In, it is described to establish the default ontology model, comprising:
Obtain the fructification with first instance with inclusion relation, the reality arranged side by side with the first instance with incidence relation
Body and at least one functive with the first instance with incidence relation;
The inclusion relation established between the corresponding model of first instance model corresponding with the fructification establishes institute
It states the incidence relation between the corresponding model of first instance model corresponding with the entity arranged side by side and to establish described first real
Incidence relation between the corresponding model of body model corresponding at least one described functive;
At least one attribute information and extremely is added for the corresponding model of each functive at least one described functive
A few operation, forms the default ontology model.
The third possible embodiment with reference to first aspect, in the 4th kind of possible embodiment of first aspect
In, the corresponding model of each functive at least one described functive adds at least one attribute information and at least
After one operation, further includes:
At least one parameter information is added for each operation, the parameter information is used to be arranged the parameter of operation.
Second aspect of the present invention provides a kind of operation instruction device based on entity, comprising:
Receiving module is used for receiving entity operation requests, and the physical operation request includes: entity identifier, attribute information
Mark and operation mark;
Searching module is searched the first functive in default ontology model and is corresponded to for being requested according to the physical operation
Model, first functive entity corresponding with the entity identifier has incidence relation, and the first functive packet
Contain: the attribute information identifies corresponding attribute information and the corresponding operation of the operation mark;
Generation module, for according to the corresponding model of first functive, physical operation request to be converted to institute
State the identifiable operational order of the first functive;
Sending module, for the operational order to be sent to first functive, wherein the operational order is used for
Indicate that first functive executes the corresponding operation of the operation mark to the corresponding entity of the entity identifier.
In conjunction with second aspect, in the first possible embodiment of second aspect, described device further include:
Second searching module, for not finding first function in the default ontology model in the searching module
Can body corresponding model when, entity corresponding with the entity identifier is searched in the default ontology model with inclusion relation
The corresponding model of at least one fructification, and search in the default ontology model and have at least one described fructification
The corresponding model of the second functive of incidence relation.
In conjunction with the possible embodiment of the first of second aspect or second aspect, second in second aspect is possible
In embodiment, described device further include:
Module is established, for establishing the default ontology model before the receiving module receiving entity operation requests.
In conjunction with second of possible embodiment of second aspect, in the third possible embodiment of second aspect
In, the module of establishing includes:
Acquiring unit has pass with fructification of the first instance with inclusion relation, with the first instance for obtaining
The entity arranged side by side of connection relationship and at least one functive with the first instance with incidence relation;
Unit is established, the packet for establishing between the corresponding model of first instance model corresponding with the fructification
Containing relationship, establish incidence relation between the corresponding model of first instance model corresponding with the entity arranged side by side and
Establish the incidence relation between the corresponding model of first instance model corresponding at least one described functive;
Generation unit, for adding at least one category for the corresponding model of each functive at least one described functive
Property information and at least one operation, form the default ontology model.
In conjunction with the third possible embodiment of second aspect, in the 4th kind of possible embodiment of second aspect
In, it is described to establish module further include:
Adding unit, for being the corresponding model of each functive at least one described functive in the generation unit
After adding at least one attribute information and at least one operation, at least one parameter information, institute are added for each operation
Parameter information is stated for the parameter of operation to be arranged.
Method of instructing operation provided by the present invention based on entity is presetting this after receiving physical operation request
The functive that entity corresponding with entity identifier in physical operation request has incidence relation, the functive packet are searched in body Model
Include with attribute information in physical operation request identify corresponding attribute information and with operation mark in physical operation request it is corresponding
Operation, and then the operational order that systematic function body can identify.Believe due to presetting the functive in ontology model with attribute
Breath in turn, is grasped so that the relationship in default ontology model between entity and functive is clear and is easily achieved in processing entities
When requesting, only corresponding functive need to can be found according to entity identifier and attribute information mark, be looked into realize
It looks for process is simple clear easily to realize, can further allow the operation identified using default ontology model systematic function body
The efficiency of instruction improves.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the flow diagram of the embodiment one of the method for instructing operation provided by the invention based on entity;
Fig. 2 is the flow diagram of the embodiment two of the method for instructing operation provided by the invention based on entity;
Fig. 3 is the flow diagram of the embodiment three of the method for instructing operation provided by the invention based on entity;
Fig. 4 is according to Fig. 2 and method shown in Fig. 3 complete ontology model generated;
Fig. 5 is the structural schematic diagram of the embodiment one of the operation instruction device provided by the invention based on entity;
Fig. 6 is the structural schematic diagram of the embodiment two of the operation instruction device provided by the invention based on entity;
Fig. 7 is the structural schematic diagram of the embodiment three of the operation instruction device provided by the invention based on entity;
Fig. 8 is the structural schematic diagram of the example IV of the operation instruction device provided by the invention based on entity;
Fig. 9 is the structural schematic diagram of the embodiment five of the operation instruction device provided by the invention based on entity;
Figure 10 is the structural schematic diagram of the embodiment six of the operation instruction device provided by the invention based on entity.
Specific embodiment
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to these attached drawings.
It should be noted that following embodiments of the invention in this way can for the use in oneM2M system into
Row explanation, but be not limited thereto, this method can be applied equally in other any applicable fields.
Fig. 1 is the flow diagram of the embodiment one of the method for instructing operation provided by the invention based on entity, this method
Executing subject can be the equipment such as terminal, such as computer, server, as shown in Figure 1, this method comprises:
S101, receiving entity operation requests, physical operation request include: entity identifier, attribute information mark and behaviour
It makes a check mark.
By taking oneM2M system as an example, above-mentioned entity refers to that itself does not have measurement or control function, can be surveyed by other equipment
Amount or the entity of control, for example, above-mentioned entity can refer to room, bedroom, refrigerator etc..
It include entity identifier, attribute information mark and operation mark, example in the physical operation request received
Such as, in " temperature in inquiry room " this operation requests, entity identifier " room ", attribute information mark " temperature " are just contained
And operation mark " inquiry ".
S102, it is requested according to above-mentioned physical operation, searches the corresponding model of the first functive in default ontology model, it should
First functive entity corresponding with above-mentioned entity identifier has incidence relation, and first functive includes: above-mentioned attribute letter
Breath identifies corresponding attribute information and aforesaid operations identify corresponding operation.
By taking oneM2M system as an example, above-mentioned functive refers to measurement or control function, can complete to measure or control
Certain attributes of above-mentioned entity, for example, above-mentioned functive can refer to temperature sensor, optical sensor, humidity sensor, air-conditioning
Deng.
Above-mentioned first functive, which refers to, requests found functive according to above-mentioned physical operation.
Functive is with attribute information, function, feature etc. for describing the functive, correspondingly, the attribute of functive
Information can include functional attributes information, characteristic attribute information etc..For example, temperature sensor has the function of " temperature " this category
Property, then show that temperature sensor is provided with measurement or controls the function of temperature.
In addition, functive can support at least one operation, and such as: measurement humidity, measurement temperature etc..
In default ontology model, defined entity and functive, and defined entity and functive it
Between relationship.After establishing incidence relation between entity and functive, indicate that entity is provided with and functive attribute information pair
The feature answered.For example, " temperature sensor " has temperature property, when " room " this entity and " temperature sensor " this function
After body establishes incidence relation, " room " this entity is just provided with " temperature " feature.In turn, when receive physical operation request
When, it is only necessary to the functive for meeting following condition is found in default ontology model: entity tool corresponding with entity identifier
It is relevant;Corresponding attribute information is identified comprising attribute information;Include the corresponding operation of operation mark.In addition, when needing
When entity and functive in expansion system, also only need entity and functive with corresponding attribute information establishing association pass
System, above-mentioned incidence relation in the specific implementation process, only can be realized by a body statement, i.e., between entity and functive
Incidence relation it is not only simple clear, and be easily achieved.
And equipment in ontology model in the prior art and do not have attribute information, for each feature of things, i.e.,
Aspect requires to establish correlation model in ontology model for the operation of this aspect and the equipment relevant with it, due to
Each things includes at least one aspect, and each equipment includes at least one operation, therefore, the aspect and equipment of things
Operation between relationship be multi-to-multi relationship, when in system things and equipment constantly extend when, the aspect of things with set
Relationship between standby operation can become more intricate, and then cause using ontology model generating device in the prior art
The efficiency for the operational order that can be identified reduces.
S103, according to the corresponding model of above-mentioned first functive, the request of above-mentioned physical operation is converted into above-mentioned first function
It can the identifiable operational order of body.
S104, aforesaid operations instruction is sent to above-mentioned first functive, wherein aforesaid operations instruction is used to indicate above-mentioned
First functive executes aforesaid operations to the corresponding entity of above-mentioned entity identifier and identifies corresponding operation.
It specifically, can be by being connect with the first functive after generating the identifiable operational order of the first functive
Operational order is sent to the first functive by physical unit, is carried out corresponding operation by the first functive and is returned to result.
In the present embodiment, after receiving physical operation request, searches in default ontology model and requested with physical operation
The corresponding entity of middle entity identifier has a functive of incidence relation, the functive include and physical operation request in attribute information
Corresponding attribute information and operation corresponding with operation mark in physical operation request are identified, and then systematic function body can be known
Other operational order, since the functive preset in ontology model has attribute information so that in default ontology model entity with
Relationship between functive is clear and is easily achieved, in turn, in processing entities operation requests, only need to according to entity identifier with
And attribute information mark can find corresponding functive, to realize the simple clear easily realization of search procedure, further
Ground can allow the efficiency of the operational order identified using default ontology model systematic function body to improve.
Fig. 2 is the flow diagram of the embodiment two of the method for instructing operation provided by the invention based on entity, such as Fig. 2 institute
Show, this method comprises:
S201, receiving entity operation requests, physical operation request include: entity identifier, attribute information mark and behaviour
It makes a check mark.
S202, it is requested according to above-mentioned physical operation, searches the corresponding model of the first functive in default ontology model, it should
First functive entity corresponding with above-mentioned entity identifier has incidence relation, and first functive includes: above-mentioned attribute letter
Breath identifies corresponding attribute information and aforesaid operations identify corresponding operation and hold if not finding above-mentioned first functive
Row S203.
If having found the first functive in default ontology model, follow-up processing flow and above-described embodiment one
Follow-up process is identical.
S203, lookup entity corresponding with above-mentioned entity identifier has inclusion relation extremely in above-mentioned default ontology model
Few corresponding model of a fructification, and search to have at least one above-mentioned fructification in above-mentioned default ontology model and be associated with
The corresponding model of the second functive of relationship.
In default ontology model, the relationship between entity and entity is defined, the relationship between entity can be with
It is coordination, is also possible to inclusion relation.For example, " room " and bedroom, are all inclusion relations between " room " and " kitchen ".
It and is coordination between " bedroom " and " kitchen ".
When that can not find satisfactory functive according to physical operation request, will continue to search downwards has with entity
At least one fructification of inclusion relation, and search to have at least one above-mentioned fructification in default ontology model and be associated with
The corresponding model of the second functive of system.Wherein, the second functive refers to according at least one above-mentioned fructification mark, attribute letter
The satisfactory functive that breath mark and operation mark are found.
It should be noted that in some cases, the same physical operation requests above-mentioned first functive inquired
It may be the same functive with above-mentioned second functive.
For example, physical operation request is " temperature in inquiry room ", is looked into default ontology model according to the request
It looks for " room " with incidence relation and with the functive of " temperature " attribute, and " room " is not an actual physics
Entity, but the concept of a summary, thus can not find in default ontology model it is relevant with " room " and
Functive with " temperature " attribute, in this case, can search in default ontology model has with " room " comprising closing
The fructification of system, it is assumed that the fructification in default ontology model with " room " with inclusion relation is " bedroom " and " kitchen ",
Second functive with " bedroom " and " kitchen " with incidence relation can be then searched respectively in default ontology model at this time, this
Two functives have " temperature " attribute, and include the corresponding operation of operation mark.
S204, according to the corresponding model of above-mentioned second functive, the request of above-mentioned physical operation is converted into above-mentioned second function
It can the identifiable operational order of body.
S205, aforesaid operations instruction is sent to above-mentioned second functive, wherein aforesaid operations instruction is used to indicate above-mentioned
Second functive executes aforesaid operations to the corresponding entity of above-mentioned entity identifier and identifies corresponding operation.
It should be noted that finding at least one fructification and its corresponding functive and behaviour in above-mentioned steps S203
After work, at least one operational order for each fructification can be generated respectively by step S204 and S205, is finally returned that
Operating result is the set for the result that each operational order returns.
In the present embodiment, if according to physical operation request in entity identifier can not find corresponding functive,
Continue lookup and its fructification with inclusion relation downwards and generate the operational order for being directed to each fructification, i.e., by default
Inclusion relation in ontology model between entity can parse and correctly order and return to correct operating result.
And in the prior art, between things and things and do not have inclusion relation, and only there is a kind of incidence relation.When making
When being requested with ontology model processing operation in the prior art, if searched in ontology model less than establishing in terms of with things
When the operation of the equipment of correlation model, it will continue to search all things with things with incidence relation, to these things again
Operation requests are executed, such way may result in the operating result for returning to mistake.For example, operation requests are " inquiry
The temperature in room ", searches " room " and its aspect " temperature " according to the request in the ontology model of the prior art, and search with
" temperature " this aspect establishes the operation of the equipment of correlation model.Since " room " is an abstract things, in ontology
The operation of corresponding equipment can not be found in model, in this case, closed due to only having between things in the prior art
Connection relationship, therefore, can in ontology model search with " room " have incidence relation things, it is assumed that in ontology model with
There is the things of incidence relation to have " bedroom ", " kitchen " and " refrigerator " in room, then can be directed in ontology model at this time " sleeping
The operation of room ", " kitchen " and the corresponding equipment of " refrigerator " lookup.It in the operating result finally returned that, also just contains " sleeping
Room ", these three things of " kitchen " and " refrigerator " temperature.But it is clear that " refrigerator " and being not belonging to " room ", therefore, make
When being instructed with the ontology model processing operation of the prior art, it is returned to the operating result of mistake.
In another embodiment, before above-mentioned receiving entity operation requests, further includes:
Establish above-mentioned default ontology model.
Fig. 3 is the flow diagram of the embodiment three of the method for instructing operation provided by the invention based on entity, such as Fig. 3 institute
Show, above-mentioned to establish above-mentioned default ontology model and specifically include:
Fructification with inclusion relation of S301, acquisition and first instance has the arranged side by side of incidence relation with first instance
Entity and at least one functive with first instance with incidence relation.
By taking oneM2M system as an example, above-mentioned first instance refers to any entity in oneM2M system.
S302, establish inclusion relation between the corresponding model of above-mentioned first instance model corresponding with above-mentioned fructification,
It the incidence relation established between the corresponding model of above-mentioned first instance model corresponding with above-mentioned entity arranged side by side and establishes above-mentioned
Incidence relation between the corresponding model of first instance model corresponding at least one above-mentioned functive.
S303, added for the corresponding model of each functive at least one above-mentioned functive at least one attribute information with
And at least one operation, form above-mentioned default ontology model.
The present embodiment is the process for establishing ontology model, in oneM2M system, entity and entity, entity and functive it
Between there are various connections, after collecting and getting these entities, functive and connection between them, can be used
Model of the Ontology Modeling language to establish the models of these entities, functive and the connection between them, also, be each function
The corresponding model addition attribute information of body and operation, to form completely default ontology model.
Wherein, functive may include multiple attribute informations, can be according to system when for functive addition attribute information
Actual conditions add multiple attribute informations.For example, functional attributes " temperature ", characteristic attribute " owner " etc..
Further, at least one is added in the above-mentioned corresponding model of each functive at least one above-mentioned functive
After attribute information and at least one operation, further includes:
At least one parameter information is added for each operation, which is used to be arranged the parameter of operation.
Specifically, it " can be surveyed comprising at least one operation for example, temperature sensor may include in each functive
This operation of amount temperature " can also add some parameter informations for these operations, for example, can wrap in " measurement temperature " operation
Containing " temperature " parameter.Further, parameter information can also include parameter value, Parameter units, parameter the information such as data type.
Fig. 4 is according to Fig. 2 and method shown in Fig. 3 complete ontology model generated, when object in real system
When reason device and its corresponding relationship change, it is only necessary to carry out corresponding modification in the model.As shown in figure 4, should
It include entity and functive in ontology model, wherein can be coordination between entity and entity, be also possible to comprising closing
System, when between entity be inclusion relation when, by comprising entity be fructification.It can have and be associated between entity and functive
Relationship.Such as in Fig. 4, entity with entity with coordination and with entity there is the fructification of inclusion relation to be ok
There is incidence relation between functive.Functive has attribute information, such as functional attributes, characteristic attribute etc..When entity with
After functive establishes incidence relation, entity is just provided with the corresponding feature of functional attributes of functive.Functive also has at least
One operates, and can include at least one parameter in each operation.
Using above-mentioned ontology model, when increasing an entity, it is only necessary at it and with the function for corresponding to attribute information
A simple incidence relation can be established between body, be one by one no longer as the prior art entity various aspects with this
Correlation model is resettled between the operation of the relevant equipment of aspect, so that modeling process becomes simple and is easy to real
It is existing, meanwhile, when in ontology model entity and functive gradually increase, when ontology model constantly extends, entity and functive it
Between relationship will not become unintelligible.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or
The various media that can store program code such as person's CD.
Fig. 5 is the structural schematic diagram of the embodiment one of the operation instruction device provided by the invention based on entity, such as Fig. 5 institute
Show, which includes:
Receiving module 501 is used for receiving entity operation requests, and physical operation request includes: entity identifier, attribute information
Mark and operation mark.
Searching module 502 searches the first functive pair in default ontology model for requesting according to above-mentioned physical operation
The model answered, first functive entity corresponding with above-mentioned entity identifier has incidence relation, and first functive includes:
Above-mentioned attribute information identifies corresponding attribute information and aforesaid operations identify corresponding operation.
Generation module 503, for according to the corresponding model of above-mentioned first functive, the request of above-mentioned physical operation to be converted to
The above-mentioned identifiable operational order of first functive.
Sending module 504, for aforesaid operations instruction to be sent to above-mentioned first functive, wherein aforesaid operations instruction
It is used to indicate above-mentioned first functive and the corresponding operation of aforesaid operations mark is executed to the corresponding entity of above-mentioned entity identifier.
The device is for executing embodiment of the method above-mentioned, and it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Fig. 6 is the structural schematic diagram of the embodiment two of the operation instruction device provided by the invention based on entity, Fig. 5's
On the basis of, as shown in fig. 6, the device further include:
Second searching module 505, for not finding above-mentioned first in above-mentioned default ontology model in searching module 502
When the corresponding model of functive, searching entity corresponding with above-mentioned entity identifier to have in above-mentioned default ontology model includes pass
The corresponding model of at least one fructification of system, and search in above-mentioned default ontology model and have at least one above-mentioned fructification
The relevant corresponding model of the second functive.
Fig. 7 is the structural schematic diagram of the embodiment three of the operation instruction device provided by the invention based on entity, Fig. 6's
On the basis of, as shown in fig. 7, the device further include:
Module 506 is established, for establishing above-mentioned default ontology mould before above-mentioned receiving module receiving entity operation requests
Type.
Fig. 8 is the structural schematic diagram of the example IV of the operation instruction device provided by the invention based on entity, such as Fig. 8 institute
Show, establishing module 506 includes:
Acquiring unit 5061 has pass with fructification of the first instance with inclusion relation, with first instance for obtaining
The entity arranged side by side of connection relationship and at least one functive with first instance with incidence relation.
Unit 5062 is established, for establishing between the corresponding model of above-mentioned first instance model corresponding with above-mentioned fructification
Inclusion relation, establish incidence relation between the corresponding model of above-mentioned first instance model corresponding with above-mentioned entity arranged side by side,
And establish incidence relation between the corresponding model of above-mentioned first instance model corresponding at least one above-mentioned functive.
Generation unit 5063, for adding at least one for the corresponding model of each functive at least one above-mentioned functive
A attribute information and at least one operation, form above-mentioned default ontology model.
Fig. 9 is the structural schematic diagram of the embodiment five of the operation instruction device provided by the invention based on entity, Fig. 8's
On the basis of, as shown in figure 9, establishing module 506 further include:
Adding unit 5064, for corresponding for each functive at least one above-mentioned functive in generation unit 5063
After model adds at least one attribute information and at least one operation, at least one parameter letter is added for each aforesaid operations
Breath, above-mentioned parameter information are used to be arranged the parameter of operation.
Figure 10 is the structural schematic diagram of the embodiment six of the operation instruction device provided by the invention based on entity, such as Figure 10
Shown, which includes: memory 601 and processor 602.
Memory 601 is used to call the program instruction in memory 601, execute for storing program instruction, processor 602
Following methods:
Receiving entity operation requests, physical operation request include: entity identifier, attribute information mark and operation mark
Know.
It is requested according to above-mentioned physical operation, searches the corresponding model of the first functive in default ontology model, this first
Functive entity corresponding with above-mentioned entity identifier has incidence relation, and first functive includes: above-mentioned attribute information mark
Know corresponding attribute information and aforesaid operations identify corresponding operation.
According to the corresponding model of above-mentioned first functive, the request of above-mentioned physical operation is converted to above-mentioned first functive can
The operational order of identification.
Aforesaid operations instruction is sent to above-mentioned first functive, wherein aforesaid operations instruction is used to indicate above-mentioned first
Functive executes aforesaid operations to the corresponding entity of above-mentioned entity identifier and identifies corresponding operation.
The device is for executing preceding method embodiment, and it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Further, processor 602 is used to request according to above-mentioned physical operation, does not find in default ontology model
When the corresponding model of the first functive, in above-mentioned default ontology model searches entity corresponding with above-mentioned entity identifier and have and wrap
The corresponding model of at least one fructification containing relationship, and searched at least one above-mentioned son in fact in above-mentioned default ontology model
Body has the corresponding model of the second functive of incidence relation.
Further, processor 602 before above-mentioned receiving entity operation requests for establishing above-mentioned default ontology model.
Further, processor 602 is used to establish above-mentioned default ontology model before above-mentioned receiving entity operation requests,
It specifically includes:
Obtain with fructification of the first instance with inclusion relation, the entity arranged side by side with first instance with incidence relation,
And there is at least one functive of incidence relation with first instance.
Establish the inclusion relation between the corresponding model of above-mentioned first instance model corresponding with above-mentioned fructification, in foundation
It states the incidence relation between the corresponding model of first instance model corresponding with above-mentioned entity arranged side by side and to establish above-mentioned first real
Incidence relation between the corresponding model of body model corresponding at least one above-mentioned functive.
At least one attribute information and extremely is added for the corresponding model of each functive at least one above-mentioned functive
A few operation, forms above-mentioned default ontology model.
Further, processor 602 is used in the above-mentioned corresponding mould of each functive at least one above-mentioned functive
After type adds at least one attribute information and at least one operation, at least one parameter information, the ginseng are added for each operation
Number information is used to be arranged the parameter of operation.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (6)
1. a kind of method of instructing operation based on entity characterized by comprising
Receiving entity operation requests, the physical operation request include: entity identifier, attribute information mark and operation mark;
It is requested according to the physical operation, searches the corresponding model of the first functive, first function in default ontology model
Energy body entity corresponding with the entity identifier has incidence relation, and first functive includes: the attribute information mark
Know corresponding attribute information and the corresponding operation of the operation mark;
According to the corresponding model of first functive, physical operation request, which is converted to first functive, be can recognize
Operational order;
The operational order is sent to first functive, wherein the operational order is used to indicate first function
Body executes the corresponding operation of the operation mark to the corresponding entity of the entity identifier;
Before the receiving entity operation requests, further includes:
Establish the default ontology model;
It is described to establish the default ontology model, comprising:
Obtain with fructification of the first instance with inclusion relation, the entity arranged side by side with the first instance with incidence relation,
And there is at least one functive of incidence relation with the first instance;
The inclusion relation established between the corresponding model of first instance model corresponding with the fructification establishes described
Incidence relation between the corresponding model of one entity model corresponding with the entity arranged side by side and establish the first instance pair
Incidence relation between the model answered model corresponding at least one described functive;
At least one attribute information and at least one are added for the corresponding model of each functive at least one described functive
A operation forms the default ontology model.
2. the method according to claim 1, wherein if not finding described in the default ontology model
The corresponding model of one functive, then the method also includes:
At least one son that entity corresponding with the entity identifier has inclusion relation is searched in the default ontology model
The corresponding model of entity, and that there is incidence relation at least one described fructification is searched in the default ontology model
The corresponding model of two functives.
3. the method according to claim 1, wherein each functive at least one described functive
Corresponding model adds after at least one attribute information and at least one operation, further includes:
At least one parameter information is added for each operation, the parameter information is used to be arranged the parameter of operation.
4. a kind of operation instruction device based on entity characterized by comprising
Receiving module, is used for receiving entity operation requests, and the physical operation request includes: entity identifier, attribute information mark
And operation mark;
Searching module searches the corresponding mould of the first functive in default ontology model for requesting according to the physical operation
Type, first functive entity corresponding with the entity identifier has incidence relation, and first functive includes: institute
It states attribute information and identifies corresponding attribute information and the corresponding operation of the operation mark;
Physical operation request is converted to described for according to the corresponding model of first functive by generation module
The identifiable operational order of one functive;
Sending module, for the operational order to be sent to first functive, wherein the operational order is used to indicate
First functive executes the corresponding operation of the operation mark to the corresponding entity of the entity identifier;
Further include:
Module is established, for establishing the default ontology model before the receiving module receiving entity operation requests;
The module of establishing includes:
Acquiring unit is associated with for obtaining fructification with first instance with inclusion relation, having with the first instance
The entity arranged side by side of system and at least one functive with the first instance with incidence relation;
Establish unit, for establish between the corresponding model of first instance model corresponding with the fructification comprising close
It is, establishes the incidence relation between the corresponding model of first instance model corresponding with the entity arranged side by side and establish
Incidence relation between the corresponding model of first instance model corresponding at least one described functive;
Generation unit, for adding at least one attribute letter for the corresponding model of each functive at least one described functive
Breath and at least one operation, form the default ontology model.
5. device according to claim 4, which is characterized in that further include:
Second searching module, for not finding first functive in the default ontology model in the searching module
When corresponding model, searching entity corresponding with the entity identifier in the default ontology model has inclusion relation extremely
Few corresponding model of a fructification, and search to have at least one described fructification in the default ontology model and be associated with
The corresponding model of the second functive of relationship.
6. device according to claim 4, which is characterized in that described to establish module further include:
Adding unit, for being the corresponding model addition of each functive at least one described functive in the generation unit
After at least one attribute information and at least one operation, at least one parameter information, the ginseng are added for each operation
Number information is used to be arranged the parameter of operation.
Priority Applications (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 |
PCT/CN2016/099971 WO2017050285A1 (en) | 2015-09-25 | 2016-09-23 | Entity-based operation instruction method and device |
Applications Claiming Priority (1)
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 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106557030A CN106557030A (en) | 2017-04-05 |
CN106557030B true CN106557030B (en) | 2019-08-20 |
Family
ID=58385653
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510618840.9A Active CN106557030B (en) | 2015-09-25 | 2015-09-25 | Method of instructing operation and device based on entity |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106557030B (en) |
WO (1) | WO2017050285A1 (en) |
Families Citing this family (1)
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 (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101419449A (en) * | 2007-10-23 | 2009-04-29 | 北京北方微电子基地设备工艺研究中心有限责任公司 | Method and system for implementing factory automation interface |
CN104081796A (en) * | 2011-12-02 | 2014-10-01 | 高通股份有限公司 | Systems and methods for group based access control of machine to machine devices |
CN104507054A (en) * | 2014-12-29 | 2015-04-08 | 北京海尔广科数字技术有限公司 | Group member information updating method and related devices |
CN104852975A (en) * | 2015-04-29 | 2015-08-19 | 北京海尔广科数字技术有限公司 | A method and device for invoking household equipment |
CN104866650A (en) * | 2015-04-28 | 2015-08-26 | 北京海尔广科数字技术有限公司 | Abstract equipment creating method and device |
CN104955153A (en) * | 2015-05-29 | 2015-09-30 | 青岛海尔智能家电科技有限公司 | Method, device and appliances for discovering resources |
Family Cites Families (4)
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 |
US7403984B2 (en) * | 2000-02-01 | 2008-07-22 | Asyst Technologies, Inc. | Automated tool management in a multi-protocol environment |
CN103605318B (en) * | 2013-11-14 | 2017-02-15 | 北京铭隆世纪科技有限公司 | Method and apparatus for function customization of CNC controller and CNC controller |
CN103793536B (en) * | 2014-03-03 | 2017-04-26 | 陈念生 | Intelligent platform obtaining method and device |
-
2015
- 2015-09-25 CN CN201510618840.9A patent/CN106557030B/en active Active
-
2016
- 2016-09-23 WO PCT/CN2016/099971 patent/WO2017050285A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101419449A (en) * | 2007-10-23 | 2009-04-29 | 北京北方微电子基地设备工艺研究中心有限责任公司 | Method and system for implementing factory automation interface |
CN104081796A (en) * | 2011-12-02 | 2014-10-01 | 高通股份有限公司 | Systems and methods for group based access control of machine to machine devices |
CN104507054A (en) * | 2014-12-29 | 2015-04-08 | 北京海尔广科数字技术有限公司 | Group member information updating method and related devices |
CN104866650A (en) * | 2015-04-28 | 2015-08-26 | 北京海尔广科数字技术有限公司 | Abstract equipment creating method and device |
CN104852975A (en) * | 2015-04-29 | 2015-08-19 | 北京海尔广科数字技术有限公司 | A method and device for invoking household equipment |
CN104955153A (en) * | 2015-05-29 | 2015-09-30 | 青岛海尔智能家电科技有限公司 | Method, device and appliances for discovering resources |
Also Published As
Publication number | Publication date |
---|---|
WO2017050285A1 (en) | 2017-03-30 |
CN106557030A (en) | 2017-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109697500B (en) | Data processing method and device, electronic equipment and storage medium | |
CN110502227A (en) | The method and device of code completion, storage medium, electronic equipment | |
CN105556517A (en) | Smart search refinement | |
CN113987842B (en) | BDI modeling method, device, equipment and medium based on knowledge graph | |
CN114791846B (en) | Method for realizing observability aiming at cloud-originated chaos engineering experiment | |
CN102624865A (en) | Cluster load forecasting method and distributed cluster management system | |
Cagnin et al. | A multi-agent system approach for management of industrial IoT devices in manufacturing processes | |
CN106202288A (en) | The optimization method of a kind of man-machine interactive system knowledge base and system | |
Al-alshuhai et al. | An extension of UML activity diagram to model the behaviour of context-aware systems | |
Stevens et al. | Reducing run-time adaptation space via analysis of possible utility bounds | |
KR20180128805A (en) | System and method for dynamic expansion of dialogue model based on real time data aggregation | |
Lathrop et al. | Exploring the functional advantages of spatial and visual cognition from an architectural perspective | |
CN113677583B (en) | Graph calculation-based vehicle driving data processing method and device and computer equipment | |
CN106557030B (en) | Method of instructing operation and device based on entity | |
EP3637273A1 (en) | Ontology management method and m2m platform | |
CN109818950A (en) | A kind of access control rule optimization method and device, computer readable storage medium | |
Ziegler et al. | RFID as universal entry point to linked data clouds | |
Usländer et al. | How to analyse user requirements for service-oriented environmental information systems | |
CN104793984A (en) | Equipment modeling method and device and cloud platform | |
EP3454259B1 (en) | Autonomous agent system | |
CN103901824A (en) | Intelligent household control method and system, intelligent household control center and mobile terminal | |
CN116822631A (en) | Graph-based interpretable cognitive reasoning penetration robot system | |
CN114564523B (en) | Big data vulnerability analysis method and cloud AI system for intelligent virtual scene | |
Binder et al. | Enabling model-based requirements engineering in a complex industrial System of Systems environment | |
CN116954705A (en) | Function optimization method, device and equipment of application program and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |