CN110569362B - Ontology instantiation method and device - Google Patents

Ontology instantiation method and device Download PDF

Info

Publication number
CN110569362B
CN110569362B CN201810291779.5A CN201810291779A CN110569362B CN 110569362 B CN110569362 B CN 110569362B CN 201810291779 A CN201810291779 A CN 201810291779A CN 110569362 B CN110569362 B CN 110569362B
Authority
CN
China
Prior art keywords
rule
target
sub
identifier
information
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
Application number
CN201810291779.5A
Other languages
Chinese (zh)
Other versions
CN110569362A (en
Inventor
邵勇
展丽霞
季哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201810291779.5A priority Critical patent/CN110569362B/en
Priority to PCT/CN2019/079804 priority patent/WO2019184933A1/en
Publication of CN110569362A publication Critical patent/CN110569362A/en
Application granted granted Critical
Publication of CN110569362B publication Critical patent/CN110569362B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Abstract

The invention relates to an ontology instantiation method and an ontology instantiation device, which belong to the field of ontology construction, and the method comprises the following steps: acquiring a target rule identifier corresponding to a target body identifier from a preset corresponding relation, wherein the preset corresponding relation is used for recording the corresponding relation between the body identifier and the rule identifier, the body identifier is used for uniquely identifying one body, and the rule identifier is used for uniquely identifying one rule; acquiring information of a target rule indicated by a target rule identifier; and executing the target rule based on the information of the target rule to perform ontology instantiation on the target ontology, wherein the information of the target rule is information required to be used when the ontology instantiation is performed on the target ontology. The invention solves the problem of complicated operation of ontology instantiation in the related technology, and achieves the effect of simplifying the operation of ontology instantiation. The invention is used for ontology instantiation.

Description

Ontology instantiation method and device
Technical Field
The invention relates to the field of ontology construction, in particular to an ontology instantiation method and device.
Background
Ontology (Ontology) refers to a description of a canonical set of concepts and their logical relationships within a particular domain. Ontology instantiation refers to extracting entities, attributes and relationships in a knowledge graph from an information base by a certain rule, and is a process of concept concretization. The process of performing instantiation of an ontology is the process of executing a rule, which may also be referred to as a function. For example, when data of a certain employee is obtained from data of a plurality of employees of a certain unit (the data of the employees are associated), the data can be obtained by executing the process of ontology instantiation. For example, the data of the employee may be the name, age, job age, position, department of the employee, department of higher level, and the like of the employee.
In the related art, when a computer device executes an ontology instantiation for a certain ontology, at least one step, such as extraction, filtering, and storage, is usually executed, and each step needs to run a corresponding set of codes. The extraction refers to extracting relevant data from a data set, the filtering refers to screening and deduplication processing of the extracted data, and the storage refers to storage of the data obtained after the deduplication processing.
In the related art, codes corresponding to each step are not managed in a unified manner, and each time ontology instantiation is executed for one ontology, the codes corresponding to each step acquired last time need to be modified to adapt to the current ontology instantiation process, so that the ontology instantiation operation is complicated.
Disclosure of Invention
The embodiment of the invention provides a method and a device for instantiating a body, which can solve the problem that the operation of instantiating the body in the related technology is complicated. The technical scheme is as follows:
according to a first aspect of the embodiments of the present invention, there is provided an ontology instantiation method, the method including:
acquiring a target rule identifier corresponding to a target body identifier from a preset corresponding relation, wherein the preset corresponding relation is used for recording the corresponding relation between the body identifier and the rule identifier, the body identifier is used for uniquely identifying one body, and the rule identifier is used for uniquely identifying one rule;
acquiring information of the target rule indicated by the target rule identification;
and executing the target rule based on the information of the target rule to perform ontology instantiation on the target ontology, wherein the information of the target rule is information required to be used when the ontology is instantiated on the target ontology.
Optionally, before the target rule identifier corresponding to the target ontology identifier is obtained from the preset corresponding relationship, the method further includes:
generating information of the target rule, wherein the information of the target rule comprises: a target rule identification, a target rule type, a target rule description, and a target rule constant parameter list,
the target rule type is used for indicating the name of the target rule, the target rule description is used for indicating the type of data output after the target rule is executed, and the target rule constant parameter list is used for recording constant parameters required by the target rule execution.
Optionally, the target rule includes at least one layer of nested sub-rules, the target rule and the nested sub-rules are stored in a tree-like storage structure, the target rule corresponds to a root node in the tree, the nested sub-rules correspond to sub-nodes in the tree,
the information of the target rule further comprises: a root node identification, a target rule execution state and a first list of identifications,
the root node identifier is an identifier of the root node, the target rule execution state is used for indicating whether the target rule is executed, and the first identifier list is used for recording identifiers of next-level sub-rules of the target rule;
the executing the target rule based on the information of the target rule comprises:
when the target rule is determined not to be executed based on the target rule execution state, sequentially selecting the identifiers of the next-level sub-rules from the first identifier list according to a preset selection sequence;
after selecting the identifier of each next-level sub-rule, acquiring the information of a first sub-rule indicated by the identifier of the next-level sub-rule;
and executing the first sub-rule based on the information of the first sub-rule, wherein the information of the first sub-rule is the information required to be used for executing the first sub-rule, and the form of the information of each next-level sub-rule is the same as that of the information of the target rule.
Optionally, before the obtaining the first sub-rule indicated by the identifier of the next-level sub-rule, the method further includes:
generating information of the first sub-rule, wherein the information of the first sub-rule comprises: the method comprises the following steps of identifying a child node, a child rule execution state, a child rule type, a child rule description, a child rule constant parameter list, a second identification list and a parent node;
the child node identifier is an identifier of a child node corresponding to the first child rule, the child rule execution state is used for indicating whether the first child rule is executed, the child rule type is used for indicating a name of the first child rule, the child rule description is used for indicating a type of data output after the first child rule is executed, the child rule constant parameter list is used for recording constant parameters required for executing the first child rule, the second identifier list is used for recording identifiers of next-level child rules of the first child rule, and the parent node identifier is an identifier of a parent node of the child node corresponding to the first child rule.
Optionally, the preset selection order is an order obtained by ranking according to the priority of the identifier of each next-level sub-rule in the first identifier list.
Optionally, the priority level of the identifier of each next-level sub-rule is set according to a subsequent traversal order of the sub-tree in which the sub-node corresponding to each next-level rule is located.
Optionally, the target ontology is configured to reflect a relationship between data of a plurality of objects, the target rule type is specified data of a target object obtained from the data of the plurality of objects, the target rule constant parameter list includes a start time and an execution period for executing the target rule, the target object is any retrieval object in the plurality of objects,
the sub-rule type is extraction, filtering or storage, the sub-rule constant parameter list is used for recording a storage address, the storage address is a storage address of a data set required by executing the target rule, and the data set comprises data of a plurality of objects.
According to a second aspect of the embodiments of the present invention, there is provided an ontology instantiation apparatus, the apparatus including:
the system comprises a first acquisition module, a first storage module and a second acquisition module, wherein the first acquisition module is used for acquiring a target rule identifier corresponding to a target body identifier from a preset corresponding relation, the preset corresponding relation is used for recording the corresponding relation between the body identifier and the rule identifier, the body identifier is used for uniquely identifying one body, and the rule identifier is used for uniquely identifying one rule;
the second acquisition module is used for acquiring the information of the target rule indicated by the target rule identification;
and the execution module is used for executing the target rule based on the information of the target rule so as to instantiate the ontology of the target ontology, and the information of the target rule is information required to be used when the ontology of the target ontology is instantiated.
Optionally, the apparatus further comprises:
a generating module, configured to generate information of the target rule, where the information of the target rule includes: a target rule identification, a target rule type, a target rule description, and a target rule constant parameter list,
the target rule type is used for indicating the name of the target rule, the target rule description is used for indicating the type of data output after the target rule is executed, and the target rule constant parameter list is used for recording constant parameters required by the target rule execution.
Optionally, the target rule includes at least one layer of nested sub-rules, the target rule and the nested sub-rules are stored in a tree-like storage structure, the target rule corresponds to a root node in the tree, the nested sub-rules correspond to sub-nodes in the tree,
the information of the target rule further comprises: a root node identification, a target rule execution state and a first list of identifications,
the root node identifier is an identifier of the root node, the target rule execution state is used for indicating whether the target rule is executed, and the first identifier list is used for recording identifiers of next-level sub-rules of the target rule;
the execution module is configured to:
when the target rule is determined not to be executed based on the target rule execution state, sequentially selecting the identifiers of the next-level sub-rules from the first identifier list according to a preset selection sequence;
after selecting the identifier of each next-level sub-rule, acquiring the information of a first sub-rule indicated by the identifier of the next-level sub-rule;
and executing the first sub-rule based on the information of the first sub-rule, wherein the information of the first sub-rule is the information required to be used for executing the first sub-rule, and the form of the information of each next-level sub-rule is the same as that of the information of the target rule.
Optionally, the execution module is further configured to:
generating information of the first sub-rule, wherein the information of the first sub-rule comprises: the method comprises the following steps of identifying a child node, a child rule execution state, a child rule type, a child rule description, a child rule constant parameter list, a second identification list and a parent node;
the child node identifier is an identifier of a child node corresponding to the first child rule, the child rule execution state is used for indicating whether the first child rule is executed, the child rule type is used for indicating a name of the first child rule, the child rule description is used for indicating a type of data output after the first child rule is executed, the child rule constant parameter list is used for recording constant parameters required for executing the first child rule, the second identifier list is used for recording identifiers of next-level child rules of the first child rule, and the parent node identifier is an identifier of a parent node of the child node corresponding to the first child rule.
Optionally, the preset selection order is an order obtained by ranking according to the priority of the identifier of each next-level sub-rule in the first identifier list.
Optionally, the priority level of the identifier of each next-level sub-rule is set according to a subsequent traversal order of the sub-tree in which the sub-node corresponding to each next-level rule is located.
Optionally, the target ontology is configured to reflect a relationship between data of a plurality of objects, the target rule type is specified data of a target object obtained from the data of the plurality of objects, the target rule constant parameter list includes a start time and an execution period for executing the target rule, the target object is any retrieval object in the plurality of objects,
the sub-rule type is extraction, filtering or storage, the sub-rule constant parameter list is used for recording a storage address, the storage address is a storage address of a data set required by executing the target rule, and the data set comprises data of a plurality of objects.
According to a third aspect of the embodiments of the present invention, there is provided an ontology instantiation apparatus, comprising a processor and a memory,
a processor configured to execute the computer program stored in the memory to implement the ontology instantiation method of the first aspect.
According to a fourth aspect of the embodiments of the present invention, there is provided a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the ontology instantiation method of the first aspect.
According to a fifth aspect of embodiments of the present invention, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method of ontology instantiation as described above in relation to the first aspect.
According to a sixth aspect of embodiments of the present invention, there is provided a chip comprising programmable logic and/or program instructions for performing the method of ontology instantiation according to the first aspect described above when the chip is run.
According to the ontology instantiation method and device provided by the embodiment of the invention, when ontology instantiation is carried out, the target rule identification corresponding to the target ontology identification can be directly obtained from the preset corresponding relation, the information of the target rule indicated by the target rule identification is obtained, and then the target rule is executed based on the information of the target rule without executing a code modification process, so that the operation of ontology instantiation is simplified.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure, the drawings that are needed to be used in the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present disclosure, and that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is a schematic diagram of an implementation environment involved in an ontology instantiation method provided by an embodiment of the present invention;
FIG. 2 is a flow diagram illustrating a method of ontology instantiation in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating another method of instantiation of an ontology in accordance with an illustrative embodiment;
FIG. 4 is a diagram illustrating a target rule and nested sub-rules stored using a tree storage structure in accordance with an illustrative embodiment;
FIG. 5 is a flow diagram illustrating a terminal executing a target rule based on information of the target rule in accordance with an illustrative embodiment;
FIG. 6 is a block diagram illustrating an ontology instantiation apparatus in accordance with an illustrative embodiment;
FIG. 7 is a block diagram illustrating another ontology instantiation apparatus in accordance with an illustrative embodiment;
fig. 8 is a block diagram illustrating yet another ontology instantiation apparatus according to an exemplary embodiment.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more clear, the present disclosure will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments, which can be derived by one of ordinary skill in the art from the embodiments disclosed herein without making any creative effort, shall fall within the scope of protection of the present disclosure.
In the related art, when a computer device executes an ontology instantiation for a certain ontology, at least one step, such as extraction, filtering, and storage, is usually executed, and each step needs to run a corresponding set of codes. Because the codes corresponding to each step are not managed uniformly in the related art, each time ontology instantiation is executed for one ontology, the codes corresponding to each step acquired last time need to be modified to adapt to the current ontology instantiation process, which results in tedious operation of ontology instantiation. For example, when data of a certain employee is obtained from data of a plurality of employees (data of the plurality of employees are associated) of the unit X1, the process of ontology instantiation can be performed. For example, the data of the employee may be the name, age, job age, position, department of the employee, department of higher level, and the like of the employee.
Assuming that the age data of employee a in unit X1 is to be obtained, first, the relevant data of employee a is extracted from the data of a plurality of employees in unit X1 by executing the codes corresponding to the extraction step, then the codes corresponding to the filtering step are executed to obtain the age data of employee a, finally the codes corresponding to the storage step are executed to store the age data of employee a, and then the process of instantiating the current ontology is completed. Since the codes corresponding to each step are not managed uniformly in the related art, when the ontology instantiation is executed next time for another ontology, for example, the age data of employee B is obtained from the data of multiple employees in unit X2, the codes corresponding to each step, such as extraction, filtering, and storage, need to be modified, which is cumbersome to operate.
The ontology instantiation method provided by the embodiment of the invention can acquire the target rule identification corresponding to the target ontology identification from the preset corresponding relation, acquire the information of the target rule indicated by the target rule identification, and then execute the target rule based on the information of the target rule without executing a code modification process, thereby simplifying the operation of ontology instantiation.
For example, the ontology B1 is used to reflect the relationship between data of multiple employees in the unit X1, the identity of the ontology B1 is B1, the rule corresponding to B1 is G1, and G1 indicates the information of rule 1; the ontology B2 is used for reflecting the relationship among the data of the multiple employees in the unit X2, the identity of the ontology B2 is B2, the rule identity corresponding to the B2 is G2, and G2 indicates the information of the rule 2, so when the age data of the employee a is extracted from the data of the multiple employees in the unit X1, since the ontology B1 reflects the relationship among the data of the multiple employees in the unit X1 to which the employee a belongs, the rule identity G1 corresponding to the ontology B1 can be directly obtained from the preset corresponding relationship, the information of the rule 1 indicated by the rule identity G1 is obtained, then the rule 1 is executed based on the information of the rule 1, and the age data of the employee a is extracted from the data of the multiple employees in the unit X1. When the work age data of the employee B is obtained from the data of the employees in the unit X2 next time, since the body B2 reflects the relationship between the data of the employees in the unit X2 to which the employee B belongs, the rule identifier G2 corresponding to the body B2 can be directly obtained from the preset corresponding relationship, the information of the rule 2 indicated by the rule identifier G2 is obtained, then the rule 2 is executed based on the information of the rule 2, and the work age data of the employee B can be extracted from the data of the employees in the unit X2.
In the embodiment of the present invention, the process of executing the target rule may include: a data set required for executing a target rule is acquired, the data set including data of a plurality of objects, and then specified data of the target object is acquired from the data set in accordance with information of the target rule. The information of the data set and the target rule may be stored in the same device or different devices. Fig. 1 shows a schematic diagram of an implementation environment involved in the ontology instantiation method in the case where information of a data set and a target rule is stored in different devices. By way of example, the implementation environment may include: a first device 110 and a second device 120, the first device 110 storing information of the target rule, the second device 120 storing a data set. A wireless connection or a wired connection may be established between the first device 110 and the second device 120.
The first device 110 and the second device 120 may be the same type of device or may be different types of devices. For example, the first device 110 may be a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like, and the second device 120 may be a server, a server cluster composed of several servers, or a cloud computing service center.
An embodiment of the present invention provides an ontology instantiation method, which is used for a terminal, and as shown in fig. 2, the method includes:
step 101, obtaining a target rule identifier corresponding to a target body identifier from a preset corresponding relationship, where the preset corresponding relationship is used to record a corresponding relationship between the body identifier and the rule identifier, the body identifier is used to uniquely identify a body, and the rule identifier is used to uniquely identify a rule.
Step 102, information of the target rule indicated by the target rule identification is obtained.
And 103, executing the target rule based on the information of the target rule to instantiate the ontology of the target ontology, wherein the information of the target rule is information required to be used when the ontology of the target ontology is instantiated.
In summary, in the ontology instantiation method provided in the embodiments of the present invention, when the ontology is instantiated, the target rule identifier corresponding to the target ontology identifier can be directly obtained from the preset corresponding relationship, the information of the target rule indicated by the target rule identifier is obtained, and then the target rule is executed based on the information of the target rule, and a code modification process is not required to be executed, so that the operation of ontology instantiation is simplified.
An embodiment of the present invention provides another ontology instantiation method, which is used for a terminal, and as shown in fig. 3, the method includes:
step 201, the terminal generates information of the target rule.
The information of the target rule is information needed to be used when the ontology is instantiated on the target ontology. In the embodiment of the invention, the target ontology corresponds to the target rule.
In the embodiment of the present invention, the ontology is used for reflecting the relationship between data of a plurality of objects, and the rule may be called a function. For example, the plurality of objects may be a plurality of employees of a certain unit.
The information of the target rule includes: target rule identification, target rule type, target rule description and target rule constant parameter list. Wherein, the target rule identifier is used for uniquely indicating the target rule, the target rule identifier may be represented by a number or a letter, and when the target rule identifier is represented by a number, the target rule identifier may be 1 as an example; when represented by letters, the target rule identification may be, for example, a. In an embodiment of the present invention, the target rule identification is denoted by the numeral 1. The target rule type is used to indicate the name of the target rule, which may be, for example: specified data of a target object is acquired from data of a plurality of objects. The target rule description is used to indicate a type of data output after the target rule is executed, and for example, when the age of a certain employee is obtained through a terminal, the target rule description may be integer (int). When the gender of a certain employee is acquired through the terminal, the target rule description may be character-type. The target rule constant parameter list is used for recording constant parameters required by executing the target rule. The target rule constant parameter list may include a starting time of executing the target rule and an execution period, for example, the starting time of executing the target rule may be 3/8/9: 00 in 2018, and the execution period of executing the target rule may be 3 days.
For example, the information of the target rule may be as shown in table 1. For example, in table 1, the information of the target rule includes: the target rule is identified as 1, and the target rule is described as a character type, etc.
TABLE 1
Figure BDA0001617725520000091
Step 202, the terminal obtains a target rule identifier corresponding to the target body identifier from the preset corresponding relation.
The preset corresponding relation is used for recording the corresponding relation between the body identification and the rule identification, the body identification is used for uniquely identifying one body, and the rule identification is used for uniquely identifying one rule. In the embodiment of the present invention, the body identifier may be represented by a number or a letter, for example, when represented by a number, the body identifier may be 1; when represented by letters, the ontology identifier may be, for example, a.
Table 2 exemplarily shows a corresponding relationship between 3 ontology identifiers and 3 rule identifiers, referring to table 2, when an ontology identifier is 1, the corresponding rule identifier is 1; when the body identifier is 2, the corresponding rule identifier is 2; when the ontology identification is 3, the corresponding rule identification is 3. If the target ontology identifier is 1 in this step, the terminal may obtain, through the lookup table 2, that the target rule identifier corresponding to the target ontology identifier is 1.
TABLE 2
Body mark Rule identification
1 1
2 2
3 3
Step 203, the terminal obtains the information of the target rule indicated by the target rule identification.
After the target rule identification is obtained, the terminal obtains the target rule indicated by the target rule identification.
In the embodiment of the present invention, for example, a corresponding relationship between a rule identifier and an information identifier may be established in advance, where the information identifier is used to uniquely indicate information of a rule. The information identifier may be represented by a number or a letter, and when represented by a number, for example, the information identifier may be 5; when represented by letters, the information identifier may be b, for example.
Table 3 exemplarily shows a corresponding relationship between 3 rule identifiers and 3 information identifiers, referring to table 3, when a rule identifier is 1, the corresponding information identifier is a; when the rule identifier is 2, the corresponding information identifier is b; when the rule identification is 3, the corresponding information is identified as c.
TABLE 3
Rule identification Information identification
1 a
2 b
3 c
In this step, for example, when the target rule identifier is 1, the terminal may obtain, through the lookup table 3, the target information identifier a corresponding to the target rule identifier, and further obtain the information of the target rule shown in table 1.
And step 204, the terminal executes the target rule based on the information of the target rule so as to instantiate the target ontology.
Step 204 may include: the terminal acquires a data set required by executing the target rule, wherein the data set comprises data of a plurality of objects; and the terminal acquires the specified data of the target object from the data set according to the information of the target rule. For example, the terminal may store the data set and the information of the target rule at the same time, or the terminal may store only the information of the target rule, and the data set is stored in another device.
Optionally, in this embodiment of the present invention, the target rule may include at least one layer of nested sub-rules, where the target rule and the nested sub-rules are stored in a tree storage structure, the target rule corresponds to a root node in the tree, and the nested sub-rules correspond to sub-nodes in the tree. FIG. 4 shows a schematic diagram of target rules and nested sub-rules stored using a tree-like storage structure. Shown in fig. 4 is a schematic diagram of a target rule comprising two layers of nested sub-rules, wherein the target rule comprises 3 next level sub-rules: sub-rule Z1, sub-rule Z2, and sub-rule Z3. Sub-rule Z1 includes 1 next-level sub-rule: sub-rule Z4; sub-rule Z2 includes 2 next-level sub-rules: sub-rule Z5 and sub-rule Z6. For example, the name of the target rule may be: acquiring the specified data of the target object from the data of the plurality of objects, the name of the sub-rule Z1 may be: to extract, the name of sub-rule Z2 may be: filtering, the name of the sub-rule Z3 may be: store, the name of sub-rule Z4 may be: all data sets of the specified object are obtained from the location indicated by the storage address, and the name of the sub-rule Z5 may be: the name of the filter, sub-rule Z6 may be: and (4) removing the weight. The screening refers to acquiring specified data of a target object from the data set, and the deduplication refers to performing deduplication processing on the acquired specified data of the target object.
Correspondingly, the information of the target rule further comprises: a root node identification, a target rule execution state, and a first identification list. The root node identifier of the target rule can be represented by numbers or letters, and when the root node identifier of the target rule is represented by numbers, the root node identifier of the target rule can be 0; when represented by letters, the root node identification of the target rule may be a, for example. The target rule execution state is used to indicate whether the target rule has been executed, for example, the target execution state may be represented by 0 or 1, and when the target execution state is represented by 0, it indicates that the target rule has not been executed; when the target execution state is represented by 1, it indicates that the target rule has been executed. The first identification list is used for recording the identification of the next level sub-rule of the target rule. The next level sub-rule identification may be a number or a letter, and when represented by a number, the next level sub-rule identification may be 2, for example; when represented by letters, the next level of sub-rule identification may be k, for example. For example, in fig. 4, the identifier of the sub-rule Z1 may be 2, the identifier of the sub-rule Z2 may be 3, and the identifier of the sub-rule Z3 may be 4, so that the identifiers recorded in the first identifier list include: 2. 3 and 4. For example, the root node identifier, the target rule execution state, and the first identifier list in the information of the target rule may be stored in table 1.
When the target rule includes at least one layer of nested sub-rules, as shown in FIG. 5, step 204 may include:
step 2041, when the target rule is determined not to be executed based on the target rule execution state, the terminal sequentially selects the identifier of the next-level sub-rule from the first identifier list according to a preset selection order.
Optionally, the preset selection order is an order obtained by ranking according to the priority of the identifier of each next-level sub-rule in the first identifier list.
Assuming that it is determined that the target rule is not executed based on the target rule execution state, the identifiers of the next-level sub-rules of the target rule recorded in the first identifier list in the target rule are 2, 3 and 4, respectively, where the priority of 2 is higher than the priority of 3, and the priority of 3 is higher than the priority of 4, then the preset selection order may be 2, 3 and 4, so that the terminal may select 2, then 3, and finally 4 from the first identifier list according to the preset selection order.
For example, the level of the priority of the identifier of each next-level sub-rule may be set according to the subsequent traversal order of the sub-tree in which the sub-node corresponding to each next-level sub-rule is located. For example, referring to FIG. 4, when set in the subsequent traversal order, the identification of sub-rule Z1 has a higher priority than the identification of sub-rule Z2, and the identification of sub-rule Z2 has a higher priority than the identification of sub-rule Z3.
Step 2042, after each next level sub-rule identifier is selected, the terminal generates information of the first sub-rule.
In this step, the first sub-rule is any selected next-level sub-rule.
The information of the first sub-rule is the information used for executing the first sub-rule, and the form of the information of each next-level sub-rule is the same as that of the target rule. For example, the information of each next-level sub-rule may refer to table 1.
In this embodiment of the present invention, the information of the first sub-rule includes: the system comprises a child node identifier, a child rule execution state, a child rule type, a child rule description, a child rule constant parameter list, a second identifier list and a parent node identifier.
The child node identifier is an identifier of a child node corresponding to the first sub rule, and the child node identifier may be represented by a number or a letter, and when the child node identifier is represented by a number, for example, the child node identifier may be 1; when denoted by letters, for example, the child node identification may be k. The sub-rule execution state is used to indicate whether the first sub-rule has been executed, and for example, the sub-rule execution state may be represented by 0 or 1. When the sub-rule execution state is represented by 0, it indicates that the first sub-rule is not executed, and when the sub-rule execution state is represented by 1, it indicates that the first sub-rule is executed. The sub-rule type is used to indicate the name of the first sub-rule, which may be, for example, a decimation. Optionally, the first sub-rule type may also be filtering or storing. The sub-rule description is used for indicating the type of data output after the first sub-rule is executed, for example, when the age of a certain employee is obtained through a terminal, the first sub-rule description may be an int type; when the gender of a certain employee is acquired through the terminal, the first sub-rule description may be character-type. Optionally, the first sub-rule description may also be used to indicate a corresponding priority for the first sub-rule when executed. The sub-rule constant parameter list is used to record the constant parameters required for executing the first sub-rule, and for example, the sub-rule constant parameter list may be used to record the storage address of the data set required for executing the target rule. The storage address may be a network link. Further, when the data set is not stored in the terminal but stored in another device, the sub-rule constant parameter list may be further configured to record a target port number, where the target port number is a port number of the another device, and the terminal may obtain the data set from the another device through a port indicated by the target port number, thereby completing instantiation of the ontology of the target ontology.
The second list of identifiers is used to record identifiers of next-level sub-rules of the first sub-rule, for example, 1 next-level sub-rule of the first sub-rule is sub-rule Z4, and the identifier of sub-rule Z4 is 5, then the identifiers recorded in the second list of identifiers may include: 5. when the first sub-rule does not have the next-level sub-rule, the second identification list is empty.
The parent node identifier is the identifier of the parent node of the child node corresponding to the first child rule, for example, the parent node of the child node corresponding to the first child rule is the root node, and the identifier of the root node is 0, then the parent node identifier is 0.
For example, the information of the first sub-rule may be as shown in table 4, and in table 4, for example, the information of the first sub-rule includes: the sub-rule identification is 2 and the sub-rule type is decimation.
TABLE 4
Figure BDA0001617725520000131
Step 2043, the terminal obtains the information of the first sub-rule indicated by the identifier of the next sub-rule.
And after selecting the identifier of each next-level sub-rule, the terminal acquires the information of the first sub-rule indicated by the identifier of the next-level sub-rule. In this step, the terminal may obtain the information identifier corresponding to the identifier of the next-level sub-rule through the lookup table 3, and further obtain the information of the first sub-rule shown in table 4.
Step 2044, the terminal executes the first sub-rule based on the information of the first sub-rule.
The process of executing the target rule in the embodiment of the present invention will be described by taking the target rule shown in fig. 4 as an example. Assume, in FIG. 4, that the identification of sub-rule Z5 has a higher priority than the identification of sub-rule Z6, the identification of sub-rule Z1 has a higher priority than the identification of sub-rule Z2, and the identification of sub-rule Z2 has a higher priority than the identification of sub-rule Z3. And the preset selection order is an order obtained by sorting according to the priority level of the identifier of each next-level sub-rule.
When it is determined that the target rule is not executed based on the target rule execution state, the terminal acquires identity 2 of sub-rule Z1 from the first identity list of the target rule and acquires information of sub-rule Z1 indicated by identity 2 of sub-rule Z1, and then may determine that sub-rule Z1 is not executed based on the sub-rule execution state in the information of sub-rule Z1, then acquires identity 5 of sub-rule Z4 from the second identity list of sub-rule Z1, and acquires information of sub-rule Z4 from identity 5 of sub-rule Z4, the terminal may determine that sub-rule Z4 is not executed based on the information of sub-rule Z4, then the terminal acquires identity having the highest priority among identities of next-level sub-rules for which sub-rule Z4 is not executed from the second identity list of sub-rule Z4, since the second identity list is empty, the terminal executes sub-rule Z4 based on the information of sub-rule Z4, after execution is completed, the execution state of sub-rule Z4 is set to the executed state, and then the execution state of sub-rule Z1 is set to the executed state.
Then, the terminal acquires the identifier 3 of the sub-rule Z2 from the first identifier list of the target rule, and acquires the information of the sub-rule Z2 indicated by the identifier 3 of the sub-rule Z2, it may then be determined that sub-rule Z2 was not executed based on the sub-rule execution status in the information of sub-rule Z2, then the identification 6 of sub-rule Z5 is obtained from the second identification list of sub-rule Z2, and acquires information of the sub-rule Z5 from the identity 6 of the sub-rule Z5, the terminal can determine that the sub-rule Z5 is not executed based on the information of the sub-rule Z5, the terminal acquires an identity having the highest priority among identities of next-level sub-rules for which the sub-rule Z5 is not executed from the second identity list of the sub-rule Z5, since the second identification list is empty, the terminal executes the sub-rule Z5 based on the information of the sub-rule Z5, and after the execution is completed, the terminal sets the execution state of the sub-rule Z5 to the executed state.
Then, the terminal acquires the identification 7 of the sub-rule Z6 from the second identification list of the sub-rule Z2, and acquires the information of the sub-rule Z6 from the identification 7 of the sub-rule Z6, the terminal may determine that the sub-rule Z6 is not executed based on the information of the sub-rule Z6, then the terminal acquires the identification with the highest priority among the identifications of the next-level sub-rules for which the sub-rule Z6 is not executed from the second identification list of the sub-rule Z6, since the second identification list is empty, the terminal executes the sub-rule Z6 based on the information of the sub-rule Z6, after the execution is completed, the terminal sets the execution state of the sub-rule Z6 to the executed state, and then sets the execution state of the sub-rule Z2 to the executed state.
Thereafter, the terminal acquires the identity 4 of the sub-rule Z3 from the first identity list of the target rule and acquires the information of the sub-rule Z3 indicated by the identity 4 of the sub-rule Z3, and then may determine that the sub-rule Z3 is not executed based on the sub-rule execution state in the information of the sub-rule Z3, then acquires the identity with the highest priority among the identities of the next-level sub-rules for which the sub-rule Z3 is not executed from the second identity list of the sub-rule Z3, since the second identity list is empty, the terminal executes the sub-rule Z3 based on the information of the sub-rule Z3, and after the execution is completed, sets the execution state of the sub-rule Z3 to the executed state, and finally the terminal sets the execution state of the target rule to the executed state. At this point, the target rule is executed.
According to the execution process of the target rule, when the target rule shown in fig. 4 is executed, the target rule is executed according to the traversal order of Z4- > Z1- > Z5- > Z6- > Z2- > Z3- > target rule.
For example, in fig. 4, the name of the target rule is to obtain the age data of employee a from the data of a plurality of employees. The name of the sub-rule Z1 is extraction, the sub-rule in the information of the sub-rule Z1 is described as the type of data output after the sub-rule Z1 is executed, the sub-rule constant parameter list is empty, and the identifier of the sub-rule Z4 is recorded in the second identifier list; the name of the sub-rule Z2 is filtering, the sub-rule in the information of the sub-rule Z2 is described as the type of data output after the sub-rule Z2 is executed, the sub-rule constant parameter list is empty, and the second identification list records the identifications of the sub-rule Z5 and the sub-rule Z6; the name of the sub-rule Z3 is storage, the sub-rule in the information of the sub-rule Z3 is described as the type of data output after the sub-rule Z3 is executed, a storage address for storing the obtained age of the employee A is recorded in a sub-rule constant parameter list, and the second identification list is empty; the name of the sub-rule Z4 is that all information of the employee A is extracted from the storage addresses where the data of the employees are recorded, the sub-rule in the information of the sub-rule Z4 is described as the type of the data output after the sub-rule Z4 is executed, the storage addresses where the data of the employees are recorded in the sub-rule constant parameter list, and the second identification list is empty; the name of the sub-rule Z5 is screening, the sub-rule in the information of the sub-rule Z5 is described as the type of data output after the sub-rule Z5 is executed, the number of data tables including age data screened from data tables of all data about employee A is recorded in the sub-rule constant parameter list, and the second identification list is empty; the name of the sub-rule Z6 is deduplication, the sub-rule in the information of the sub-rule Z6 is described as the type of data output after the sub-rule Z6 is executed, the number of data tables of age data obtained by deduplication from the data table of the age data of employee a is recorded in the sub-rule constant parameter list, and the second identification list is empty.
For example, after the terminal sets the execution state of sub-rule Z4 to the executed state, all data of employee a can be obtained, and all data of employee a is stored in a plurality of data tables. The terminal may obtain a plurality of identical age data for employee a, each from a different data table, by setting the execution state of sub-rule Z5 to the executed state. After the terminal sets the execution state of sub-rule Z6 to the executed state, it may perform deduplication on a plurality of identical age data of employee a to obtain one of the age data. The terminal may store employee a's age data, e.g., to another device, after setting the execution state of sub-rule Z3 to the executed state. After the execution state of the target rule is set to be the executed state, the terminal can acquire the age data of the employee A.
It should be noted that, the order of the steps of the ontology instantiation method provided in the embodiment of the present invention may be appropriately adjusted, and the steps may also be increased or decreased according to the circumstances, and any method that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention, and therefore, the details are not described again.
In summary, in the ontology instantiation method provided in the embodiments of the present invention, when the ontology is instantiated, the target rule identifier corresponding to the target ontology identifier can be directly obtained from the preset corresponding relationship, the information of the target rule indicated by the target rule identifier is obtained, and then the target rule is executed based on the information of the target rule, and a code modification process is not required to be executed, so that the operation of ontology instantiation is simplified.
As shown in fig. 6, an ontology instantiation device 30 provided in an embodiment of the present invention, the ontology instantiation device 30 includes: a first obtaining module 301, a second obtaining module 302 and an executing module 303.
The first obtaining module 301 is configured to obtain a target rule identifier corresponding to a target body identifier from a preset corresponding relationship, where the preset corresponding relationship is used to record a corresponding relationship between the body identifier and the rule identifier, the body identifier is used to uniquely identify one body, and the rule identifier is used to uniquely identify one rule.
A second obtaining module 302, configured to obtain information of the target rule indicated by the target rule identifier.
And the executing module 303 is configured to execute the target rule based on information of the target rule to perform ontology instantiation on the target ontology, where the information of the target rule is information that is required to be used when the target ontology is instantiated.
In summary, the ontology instantiation device provided in the embodiments of the present invention can directly obtain the target rule identifier corresponding to the target ontology identifier from the preset corresponding relationship when the ontology is instantiated, obtain the information of the target rule indicated by the target rule identifier, and then execute the target rule based on the information of the target rule without executing a code modification process, thereby simplifying the operation of ontology instantiation.
As shown in fig. 7, another ontology instantiation device 30 provided in the embodiment of the present invention, the ontology instantiation device 30 includes: a first obtaining module 301, a second obtaining module 302, an executing module 303 and a generating module 304.
The first obtaining module 301 is configured to obtain a target rule identifier corresponding to a target body identifier from a preset corresponding relationship, where the preset corresponding relationship is used to record a corresponding relationship between the body identifier and the rule identifier, the body identifier is used to uniquely identify one body, and the rule identifier is used to uniquely identify one rule.
A second obtaining module 302, configured to obtain information of the target rule indicated by the target rule identifier.
And the executing module 303 is configured to execute the target rule based on information of the target rule to perform ontology instantiation on the target ontology, where the information of the target rule is information that is required to be used when the target ontology is instantiated.
A generating module 304, configured to generate information of a target rule, where the information of the target rule includes: a target rule identification, a target rule type, a target rule description, and a target rule constant parameter list,
the target rule type is used for indicating the name of the target rule, the target rule description is used for indicating the type of data output after the target rule is executed, and the target rule constant parameter list is used for recording constant parameters required by the target rule execution.
Optionally, the target rule includes at least one layer of nested sub-rules, the target rule and the nested sub-rules are stored by using a tree-like storage structure, the target rule corresponds to a root node in the tree, the nested sub-rules correspond to sub-nodes in the tree,
the information of the target rule further includes: a root node identification, a target rule execution state and a first list of identifications,
the first identification list is used for recording the identification of the next-level sub-rule of the target rule;
an executing module 303, configured to:
when the target rule is determined not to be executed based on the target rule execution state, sequentially selecting the identifiers of the next-level sub-rules from the first identifier list according to a preset selection sequence;
after selecting the identifier of each next-level sub-rule, acquiring the information of a first sub-rule indicated by the identifier of the next-level sub-rule;
and executing the first sub-rule based on the information of the first sub-rule, wherein the information of the first sub-rule is the information needed to be used for executing the first sub-rule, and the form of the information of each next-level sub-rule is the same as that of the information of the target rule.
Optionally, the executing module 303 is further configured to:
generating information of a first sub-rule, the information of the first sub-rule comprising: the method comprises the following steps of identifying a child node, a child rule execution state, a child rule type, a child rule description, a child rule constant parameter list, a second identification list and a parent node;
the child node identifier is an identifier of a child node corresponding to the first child rule, the child rule execution state is used for indicating whether the first child rule is executed or not, the child rule type is used for indicating the name of the first child rule, the child rule description is used for indicating the type of data output after the first child rule is executed, the child rule constant parameter list is used for recording constant parameters required for executing the first child rule, the second identifier list is used for recording identifiers of next-level child rules of the first child rule, and the parent node identifier is an identifier of a parent node of the child node corresponding to the first child rule.
Optionally, the preset selection order is an order obtained by ranking according to the priority of the identifier of each next-level sub-rule in the first identifier list.
Optionally, the priority level of the identifier of each next-level sub-rule is set according to a subsequent traversal order of the sub-tree in which the sub-node corresponding to each next-level rule is located.
Optionally, the target ontology is configured to reflect a relationship between data of a plurality of objects, the target rule type is to obtain specified data of the target object from the data of the plurality of objects, the target rule constant parameter list includes a start time and an execution period for executing the target rule, the target object is any retrieval object in the plurality of objects,
the sub-rule type is extraction, filtering or storage, the sub-rule constant parameter list is used for recording a storage address, the storage address is a storage address of a data set required by executing the target rule, and the data set comprises data of a plurality of objects.
In summary, the ontology instantiation device provided in the embodiments of the present invention can directly obtain the target rule identifier corresponding to the target ontology identifier from the preset corresponding relationship when the ontology is instantiated, obtain the information of the target rule indicated by the target rule identifier, and then execute the target rule based on the information of the target rule without executing a code modification process, thereby simplifying the operation of ontology instantiation.
Fig. 8 is a schematic diagram of an ontology instantiation device, which can be used in a terminal according to an embodiment of the present invention. As shown in fig. 8, the ontology instantiation method shown in fig. 2 or fig. 3 is implemented by a processor 401 and a memory 402, wherein the processor 401 is configured to execute a computer program 4021 stored in the memory 402.
An embodiment of the present invention provides a computer-readable storage medium, which is a non-volatile readable storage medium, and stores a computer program, and when the computer program is executed by a processor, the ontology instantiation method shown in fig. 2 or fig. 3 is implemented.
Embodiments of the present invention provide a computer program product containing instructions which, when run on a computer, cause the computer to perform the method of ontology instantiation illustrated in figure 2 or figure 3.
Embodiments of the present invention provide a chip including programmable logic circuits and/or program instructions, which when run, are used to implement the ontology instantiation method as shown in fig. 2 or fig. 3.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (15)

1. An ontology instantiation method, the method comprising:
acquiring a target rule identifier corresponding to a target body identifier from a preset corresponding relation, wherein the preset corresponding relation is used for recording the corresponding relation between the body identifier and the rule identifier, the body identifier is used for uniquely identifying one body, and the rule identifier is used for uniquely identifying one rule;
acquiring a target information identifier corresponding to the target rule identifier, and acquiring the information of the target rule indicated by the target rule identifier based on the target information identifier, wherein the target information identifier is used for uniquely indicating the information of the target rule;
and executing the target rule based on the information of the target rule to perform ontology instantiation on the target ontology, wherein the information of the target rule is information required to be used when the ontology is instantiated on the target ontology.
2. The method according to claim 1, wherein before the obtaining of the target rule identifier corresponding to the target ontology identifier from the preset corresponding relationship, the method further comprises:
generating information of the target rule, wherein the information of the target rule comprises: a target rule identification, a target rule type, a target rule description, and a target rule constant parameter list,
the target rule type is used for indicating the name of the target rule, the target rule description is used for indicating the type of data output after the target rule is executed, and the target rule constant parameter list is used for recording constant parameters required by the target rule execution.
3. The method of claim 2, wherein the target rule comprises at least one layer of nested sub-rules, wherein the target rule and the nested sub-rules are stored in a tree-like storage structure, wherein the target rule corresponds to a root node in the tree, wherein the nested sub-rules correspond to sub-nodes in the tree,
the information of the target rule further comprises: a root node identification, a target rule execution state and a first list of identifications,
the root node identifier is an identifier of the root node, the target rule execution state is used for indicating whether the target rule is executed, and the first identifier list is used for recording identifiers of next-level sub-rules of the target rule;
the executing the target rule based on the information of the target rule comprises:
when the target rule is determined not to be executed based on the target rule execution state, sequentially selecting the identifiers of the next-level sub-rules from the first identifier list according to a preset selection sequence;
after selecting the identifier of each next-level sub-rule, acquiring the information of a first sub-rule indicated by the identifier of the next-level sub-rule;
and executing the first sub-rule based on the information of the first sub-rule, wherein the information of the first sub-rule is the information required to be used for executing the first sub-rule, and the form of the information of each next-level sub-rule is the same as that of the information of the target rule.
4. The method of claim 3, wherein prior to the obtaining the first sub-rule indicated by the identification of the next-level sub-rule, the method further comprises:
generating information of the first sub-rule, wherein the information of the first sub-rule comprises: the method comprises the following steps of identifying a child node, a child rule execution state, a child rule type, a child rule description, a child rule constant parameter list, a second identification list and a parent node;
the child node identifier is an identifier of a child node corresponding to the first child rule, the child rule execution state is used for indicating whether the first child rule is executed, the child rule type is used for indicating a name of the first child rule, the child rule description is used for indicating a type of data output after the first child rule is executed, the child rule constant parameter list is used for recording constant parameters required for executing the first child rule, the second identifier list is used for recording identifiers of next-level child rules of the first child rule, and the parent node identifier is an identifier of a parent node of the child node corresponding to the first child rule.
5. The method according to claim 3, wherein the predetermined selection order is an order sorted according to the priority level of the identifier of each next-level sub-rule in the first identifier list.
6. The method of claim 5, wherein the identified priority level of each next-level sub-rule is set according to a subsequent traversal order of the sub-tree in which the sub-node corresponding to each next-level rule is located.
7. The method of claim 4,
the target ontology is used for reflecting the relationship among data of a plurality of objects, the target rule type is specified data of a target object obtained from the data of the plurality of objects, the target rule constant parameter list comprises a starting time and an execution period for executing the target rule, and the target object is any retrieval object in the plurality of objects,
the sub-rule type is extraction, filtering or storage, the sub-rule constant parameter list is used for recording a storage address, the storage address is a storage address of a data set required by executing the target rule, and the data set comprises data of a plurality of objects.
8. An ontology instantiation apparatus, the apparatus comprising:
the system comprises a first acquisition module, a first storage module and a second acquisition module, wherein the first acquisition module is used for acquiring a target rule identifier corresponding to a target body identifier from a preset corresponding relation, the preset corresponding relation is used for recording the corresponding relation between the body identifier and the rule identifier, the body identifier is used for uniquely identifying one body, and the rule identifier is used for uniquely identifying one rule;
a second obtaining module, configured to obtain a target information identifier corresponding to the target rule identifier, and obtain information of the target rule indicated by the target rule identifier based on the target information identifier, where the target information identifier is used to uniquely indicate information of the target rule;
and the execution module is used for executing the target rule based on the information of the target rule so as to instantiate the ontology of the target ontology, and the information of the target rule is information required to be used when the ontology of the target ontology is instantiated.
9. The apparatus of claim 8, further comprising:
a generating module, configured to generate information of the target rule, where the information of the target rule includes: a target rule identification, a target rule type, a target rule description, and a target rule constant parameter list,
the target rule type is used for indicating the name of the target rule, the target rule description is used for indicating the type of data output after the target rule is executed, and the target rule constant parameter list is used for recording constant parameters required by the target rule execution.
10. The apparatus of claim 9, wherein the target rule comprises at least one layer of nested sub-rules, wherein the target rule and the nested sub-rules are stored in a tree-like storage structure, wherein the target rule corresponds to a root node in the tree, and wherein the nested sub-rules correspond to sub-nodes in the tree,
the information of the target rule further comprises: a root node identification, a target rule execution state and a first list of identifications,
the root node identifier is an identifier of the root node, the target rule execution state is used for indicating whether the target rule is executed, and the first identifier list is used for recording identifiers of next-level sub-rules of the target rule;
the execution module is configured to:
when the target rule is determined not to be executed based on the target rule execution state, sequentially selecting the identifiers of the next-level sub-rules from the first identifier list according to a preset selection sequence;
after selecting the identifier of each next-level sub-rule, acquiring the information of a first sub-rule indicated by the identifier of the next-level sub-rule;
and executing the first sub-rule based on the information of the first sub-rule, wherein the information of the first sub-rule is the information required to be used for executing the first sub-rule, and the form of the information of each next-level sub-rule is the same as that of the information of the target rule.
11. The apparatus of claim 10, wherein the execution module is further configured to:
generating information of the first sub-rule, wherein the information of the first sub-rule comprises: the method comprises the following steps of identifying a child node, a child rule execution state, a child rule type, a child rule description, a child rule constant parameter list, a second identification list and a parent node;
the child node identifier is an identifier of a child node corresponding to the first child rule, the child rule execution state is used for indicating whether the first child rule is executed, the child rule type is used for indicating a name of the first child rule, the child rule description is used for indicating a type of data output after the first child rule is executed, the child rule constant parameter list is used for recording constant parameters required for executing the first child rule, the second identifier list is used for recording identifiers of next-level child rules of the first child rule, and the parent node identifier is an identifier of a parent node of the child node corresponding to the first child rule.
12. The apparatus according to claim 10, wherein the predetermined selection order is an order sorted according to a priority level of the identifier of each next-level sub-rule in the first identifier list.
13. The apparatus of claim 12, wherein the identified priority level of each next-level sub-rule is set according to a subsequent traversal order of the sub-tree in which the sub-node corresponding to each next-level rule is located.
14. The apparatus of claim 11,
the target ontology is used for reflecting the relationship among data of a plurality of objects, the target rule type is specified data of a target object obtained from the data of the plurality of objects, the target rule constant parameter list comprises a starting time and an execution period for executing the target rule, and the target object is any retrieval object in the plurality of objects,
the sub-rule type is extraction, filtering or storage, the sub-rule constant parameter list is used for recording a storage address, the storage address is a storage address of a data set required by executing the target rule, and the data set comprises data of a plurality of objects.
15. An ontology instantiation device, which is characterized by comprising a processor and a memory,
the processor, configured to execute the computer program stored in the memory, and implement the ontology instantiation method according to any one of claims 1 to 7.
CN201810291779.5A 2018-03-30 2018-03-30 Ontology instantiation method and device Active CN110569362B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810291779.5A CN110569362B (en) 2018-03-30 2018-03-30 Ontology instantiation method and device
PCT/CN2019/079804 WO2019184933A1 (en) 2018-03-30 2019-03-27 Ontology instantiation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810291779.5A CN110569362B (en) 2018-03-30 2018-03-30 Ontology instantiation method and device

Publications (2)

Publication Number Publication Date
CN110569362A CN110569362A (en) 2019-12-13
CN110569362B true CN110569362B (en) 2022-03-25

Family

ID=68062550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810291779.5A Active CN110569362B (en) 2018-03-30 2018-03-30 Ontology instantiation method and device

Country Status (2)

Country Link
CN (1) CN110569362B (en)
WO (1) WO2019184933A1 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7930288B2 (en) * 2006-10-20 2011-04-19 Oracle International Corp. Knowledge extraction for automatic ontology maintenance
US8725774B2 (en) * 2012-10-05 2014-05-13 Xerox Corporation Enforcing policies over linked XML resources
CN103279458B (en) * 2013-02-22 2015-11-25 电子科技大学 A kind of structure of domain body and instantiation method
CN103489056A (en) * 2013-07-08 2014-01-01 福州大学 Land evaluation method and expert system integrating ontologe knowledge reasoning and analytical hierarchy process
CN103700019A (en) * 2013-12-17 2014-04-02 吉林大学 Food quality analysis method
CN105808706B (en) * 2016-03-06 2019-01-29 中国人民解放军国防科学技术大学 Space Target Recognition based on applied ontology
CN106228247A (en) * 2016-07-22 2016-12-14 中国人民解放军信息工程大学 A kind of situation inductive decision method based on body

Also Published As

Publication number Publication date
CN110569362A (en) 2019-12-13
WO2019184933A1 (en) 2019-10-03

Similar Documents

Publication Publication Date Title
CN110738577B (en) Community discovery method, device, computer equipment and storage medium
CN103678446B (en) Improved mode map based on Data View and database table
CN112807697A (en) List generation method and device, electronic equipment and storage medium
CN107391506A (en) Method and apparatus for inquiring about data
CN108776587A (en) Data capture method, device, computer equipment and storage medium
CN110224859A (en) The method and system of clique for identification
CN110674413B (en) User relationship mining method, device, equipment and storage medium
CN108154024A (en) A kind of data retrieval method, device and electronic equipment
CN112307297B (en) User identification unification method and system based on priority rule
CN112068812B (en) Micro-service generation method and device, computer equipment and storage medium
CN110569362B (en) Ontology instantiation method and device
CN110597789B (en) Automatic generation method, device and equipment of architecture diagram and computer readable storage medium
CN110502549B (en) User data processing method and device, computer equipment and storage medium
CN108076032A (en) A kind of abnormal behaviour user identification method and device
CN109919762A (en) Reporting method, device, equipment and the storage medium of customer information
JP2010072876A (en) Rule creation program, rule creation method, and rule creation device
CN113010510B (en) Service identification method, device, system and computing equipment
CN104951550B (en) Date storage method and device
CN113434596A (en) Method and device for generating test data of distributed database
CN114386853A (en) Data auditing processing method, device and equipment based on universal auditing model
CN113849520A (en) Intelligent identification method and device of abnormal SQL (structured query language), electronic equipment and storage medium
CN113031835A (en) Menu data processing method and device
CN107247904A (en) A kind of security baseline project synchronous method and device
CN112540820A (en) User interface updating method and device and electronic equipment
CN113313505B (en) Abnormality positioning method and device and computing equipment

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