An object-based intelligent agent ontology modeling method and system
By defining metrological semantic declarations for computing nodes and verifying data consistency, the problems of engine misjudging attribute changes and data discrepancies were solved, achieving efficient and accurate intelligent agent ontology modeling.
Patent Information
- Application Number
- CN202611697219.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-30
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, engines use uniform criteria to measure attribute changes, which leads to business-equivalent fluctuations being misjudged as changes and triggering invalid recalculations. Furthermore, discrepancies between the data standards of the modeling side and external systems are difficult to detect.
An object-based intelligent agent ontology modeling method is adopted. By defining metric semantic declarations for computing nodes, the calculation method is triggered when attributes change. The consistency of the caliber is checked when the data is imported. The minimum distinguishable increment is updated synchronously using the rule base. The scenario-level solution method is optimized to ensure the self-consistency of the results.
It effectively avoids invalid recalculation and data discrepancies, improves computational efficiency and result accuracy, and ensures the self-consistency and reliability of scenario-level solutions.
Smart Images

Figure CN123178101A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of ontology modeling technology, and in particular to an object-based intelligent agent ontology modeling method and system. Background Technology
[0002] Ontology modeling is a method for organizing concepts, attributes, and relationships within a business domain into a computer-processable model. In recent years, it has been used to build model systems that can directly drive business operations. Patent publication number CN116187441A discloses a method for mapping data tables and inter-table relationships in a relational model to meta-concepts, instance concepts, attributes, and relationships of an ontology, used to build a domain knowledge graph from existing structured data. Patent publication number CN117077777A discloses a method for building a domain knowledge base based on an ontology, defining relationships between classes and restricting the attributes of those relationships, with an inference engine inferring the results based on the ontology model. These approaches indicate that ontology modeling typically uses classes, instances, attributes, and relationships as basic building blocks, and the engine drives the output of results after the model is built.
[0003] In enterprise planning-related business scenarios, the ontology model is further required to continuously drive computation in runtime. These platforms typically have two different object types: business objects are defined as computation nodes, organized in three layers: classes, instances, and object groups. Their attributes are categorized into basic attributes, associated attributes, and computed attributes. Computed attributes are obtained by computational methods based on other attributes. Large-scale data storage and high-frequency external data import are handled by data nodes. Imported data is processed, mapped, and synchronized to the attributes of the computation nodes. When an attribute of a computation node changes, the computational method based on it is automatically triggered for evaluation, and this process propagates downstream along the derivation dependencies between attributes, ensuring the model remains consistent with changes in business data. Business rules and parameters are carried by rule tables in a rule base. Rule tables manage the values they carry by branches, allowing for reuse across multiple scenarios. Scenario contexts are created when a scenario is activated and destroyed when it expires, supporting parallel operation of multiple scenarios.
[0004] In this operating mechanism, whether an assignment should be passed down depends on how the engine determines whether the attribute value has changed. The usual practice is to compare the new value with the old value; if they are equal, the process stops; otherwise, it propagates downwards. However, the attribute values for planning-related businesses almost all have quantitative implications: purchase quantities are rounded to the nearest whole number based on packaging specifications and minimum order quantity; amounts are rounded to the smallest unit of currency; working hours are calculated per shift; and production capacity is calculated as whole numbers per shift. Using a uniform standard for comparison means that values that are already identical after conversion, as well as subtle fluctuations that are imperceptible to the business logic, will all be judged as changes, triggering unnecessary recalculations across the entire process. Conversely, changing the comparison to approximate equality with a globally fixed tolerance will swallow up genuine small changes—even a half-batch adjustment in the plan is still considered a replenishment and should not be ignored.
[0005] The majority of attributes in the planning domain are business quantities with units and rounding rules, but the sub-scales are indistinguishable, and each attribute is different: purchasing materials by box is not the same as purchasing by ton, and calculating work hours by shift is not the same as calculating amount by minute. Equality comparison, however, is a uniform behavior at the engine layer, dealing with all attributes, making it impossible to assign a separate scale to each attribute. In systems without responsive derived computation, recalculation is initiated manually or in batch processing, and the accuracy of the comparison does not affect the result; however, in models where attribute changes automatically trigger downstream calculations, each misjudgment is amplified along the derived dependencies into a series of invalid calculations.
[0006] Under the current evaluation criteria, invalid recalculation does not report errors, and the calculated results are correct. The only manifestations are slower models and delayed scene refreshes, which are often attributed to increased data volume or insufficient machine performance. When addressing this issue, relaxing or tightening the criteria leads to a conflicting dilemma: tightening to exact equality requires accepting false triggers, while relaxing to global tolerance requires accepting missed triggers. Both involve trade-offs based on the same unified criterion, with the cost shifting only between the two types of errors.
[0007] Adjacent to the above judgment are two other difficulties. There may be discrepancies between the scope declared in the attributes on the modeling side and the scope of the data actually sent by the external system through the data nodes—whether the inventory refers to available inventory or book inventory including inventory in transit, whether the unit is a piece or a box, and whether the granularity is by day or by week—both sides are numbers, both can be calculated, the model does not report errors, but the result is quietly wrong, often only when the plan deviates from the execution and we have to go back to investigate, and it is difficult to pinpoint which mapping is wrong.
[0008] Scenario-level solution methods read the current state of the model, solve the problem, and then write the results back to the attributes of the computation nodes in batches. This writing back triggers derived calculations and changes the inputs upon which the solution was based. As a result, the solution and the model state become inconsistent, and the proposed plan becomes infeasible once it is implemented back into the model. Modelers can only manually freeze relevant attributes before solving, manually verify the solution afterward, or repeatedly resolve until no further changes occur—a process that is slow and lacks a guarantee of termination. Summary of the Invention
[0009] The technical problem to be solved by this invention is to provide an object-based intelligent agent ontology modeling method and system to solve the problem that the engine uses a unified criterion to measure all attributes and misjudges business-equivalent fluctuations as changes, thus triggering invalid recalculation.
[0010] To achieve the above objectives, the present invention adopts the following technical solution: An object-based intelligent agent ontology modeling method, the method being executed by a computer, includes: An intelligent agent ontology model is established based on ontology. The intelligent agent ontology model has two types of objects: computing nodes and data nodes. Business objects are defined as computing nodes. Attributes are defined for the computing nodes. The computing attributes are obtained by the computing method based on other attributes, and the attributes form a derived dependency relationship. Each time the attribute of the computing node is assigned a value, the system determines whether to automatically trigger a calculation method based on the attribute and propagate it downstream, depending on whether the assignment constitutes a change in the attribute. When defining the attributes of the computing node, register a measurement semantic declaration for the attribute. The measurement semantic declaration includes the measurement unit, rounding rule and minimum distinguishable increment of the attribute. The minimum distinguishable increment is the smallest value difference of the attribute that can be distinguished in business. When the attribute of the computing node is assigned a new value, the new value and the old value of the attribute before this assignment are converted to the unit of measurement. Then, with the smallest resolvable increment as the step size, the two converted values are each rounded to an integer multiple of the step size according to the rounding rule to obtain their respective unit of measurement. When two measurement cells are the same, the attribute is determined to be semantically equal, and the evaluation of the calculation method based on the attribute is skipped, and the current assignment ends here; when two measurement cells are different, the attribute is determined to have changed, the calculation method is evaluated and propagated downstream along the derived dependency relationship.
[0011] Furthermore, the intelligent agent ontology model also includes a rule base, which carries business rules and business parameters in rule tables, and the rule tables manage the values of the business rules and business parameters they carry by branches; Configure a metering specification source item for the attribute of the computing node. The metering specification source item points to a rule table field in the rule base. The rule table field records the minimum transaction volume or minimum metering unit quantity of the business volume corresponding to the attribute in the business. When registering the measurement semantic declaration, the value of the rule table field pointed to by the measurement specification source item is read under the current branch, and the read value is used as the minimum resolvable increment of the attribute. When the value of a field in the rule table changes due to a branch switch or version update, the minimum distinguishable increment of the attribute is updated synchronously, and the updated minimum distinguishable increment takes effect in subsequent assignment judgments.
[0012] Optionally, the instance of the computing node is an object, and when the attributes of the computing node are assigned in batches on multiple objects through a single data import transaction, the determination of the metering grid is performed on each of the objects that are assigned values. Collect objects whose new values differ from their old values among the objects being assigned values, forming a set of changed objects for this data import transaction. Then, trigger the evaluation of the calculation method based on the attribute within the scope of the set of changed objects. When the set of changed objects is empty, the current data import transaction terminates.
[0013] Furthermore, the data node carries externally imported data and archived data. Externally imported data is written to the data node in batches. The data in the imported batches is processed and mapped to the attributes of the computing node, and a caliber check is performed on each attribute covered by the processing mapping. The quantitative semantic declaration and structural declaration of the attribute are used to form a declaration-side profile. The structural declaration includes the temporal granularity, upper and lower bounds of the value, uniqueness, and nullability of the attribute. The data side profile is constructed by taking the unit of measurement marked in the corresponding field of the attribute in the imported batch, the time granularity represented by the difference of timestamps of adjacent records, the upper and lower bounds of the value, the uniqueness represented by the proportion of duplicate values, and the nullability represented by the proportion of non-empty records. The declaration-side caliber profile and the data-side caliber profile are aligned and compared one by one along the processing mapping according to five dimensions: unit of measurement, time granularity, upper and lower bounds of values, uniqueness, and nullability. When there are dimensions with inconsistent values, it is determined that the mapping item of the processing mapping is out of caliber, and the identifier of the mapping item and the dimension in which the inconsistency occurs are output.
[0014] Optionally, after determining that the mapping item's scope is inconsistent, it is handled separately according to the dimension in which the inconsistency occurred: If only one dimension of the measurement unit is inconsistent, and the processing mapping has a conversion factor between the measurement unit of the data-side caliber profile and the measurement unit of the declaration-side caliber profile, the data of the imported batch is converted to the measurement unit in the measurement semantic declaration according to the conversion factor, and the current synchronization continues after the conversion. If only one dimension of the time granularity is inconsistent, and the difference between the timestamps of adjacent records is less than the time granularity in the structure declaration, the data of the imported batch will be aggregated according to the time granularity in the structure declaration, and the current synchronization will continue after aggregation. In other cases of inconsistency, an alarm is output, the current value of the attribute remains unchanged, and the current synchronization of the mapping item is terminated.
[0015] Furthermore, the intelligent agent ontology model creates a scene context when the scene is activated, and the scene context carries the attribute values of each computing node in the scene; For the scene-level solution method executed in the scene context, register the input attribute set and the output attribute set. The scene-level solution method reads the values of each attribute in the input attribute set, solves the problem, and writes the solution results back to each attribute in the output attribute set. Using the derived dependency relationship as a directed graph, each attribute in the output attribute set and the attributes reachable from each attribute along the directed graph are taken to form a reachable attribute set. The intersection of the reachable attribute set and the input attribute set is taken, and the attributes in the intersection are marked as backflow attributes. When executing the scenario-level solution method and writing back the solution results, attributes in the output attribute set that do not belong to the reflow attributes are directly written back; The attributes belonging to the backflow attributes in the output attribute set are iteratively written back according to the set upper limit of the rounds. In each round, the solution result of the current round is written back to the backflow attribute, and then the scene-level solution method is re-executed with the attribute value after writing back to obtain the solution result of the next round. The determination result of the measurement grid is used as the termination criterion. The iteration terminates when the measurement grid of each backflow attribute is the same in two adjacent rounds.
[0016] Optionally, when the iterative write-back reaches the upper limit of the number of rounds and there are still reflow attributes with different measurement grid positions between two adjacent rounds, the iteration is stopped and the write-back result of the last round is retained. The identifiers of the still different reflow attributes and the identifiers of the computing nodes to which the reflow attributes belong are output, and the solution result is marked as inconsistent. Before the scenario context expires and is destroyed, the solution results marked as inconsistent, along with the identifier of the reflow attribute, are written into the data node archive.
[0017] Preferably, the measurement semantic declaration also includes numerical precision, which is the number of decimal places retained for the value of the attribute. After the conversion to the measurement unit and before rounding to an integer multiple of the step size, the converted value is truncated according to the numerical precision. The rounding rule is one of rounding up, rounding down, and rounding to the nearest integer.
[0018] Specifically, the attributes of the computing node include basic attributes, association attributes, and computing attributes. The association attributes express the association relationship between objects of the computing node. The association relationship is divided into three types: one-to-one, one-to-many, and many-to-many. The other attributes on which the calculation method of the computing attributes is based are taken from the attributes of the computing node itself or the attributes of other computing nodes that are associated with the computing node through the association attributes. The instance of the computing node is an object. The intelligent agent ontology model creates a scene context when the scene is activated. All objects of the computing node in the same scene context constitute an object group. The computing nodes are divided into scene nodes and ordinary computing nodes. The objects of the scene nodes are initialized when the scene context is created and are unique in each scene context. The objects of the ordinary computing nodes are created by the constructor and added to their respective object groups.
[0019] This invention also discloses an object-based intelligent agent ontology modeling system for implementing the method described herein, comprising: The ontology modeling module is used to build an intelligent agent ontology model according to ontology. The intelligent agent ontology model has two types of objects: computing nodes and data nodes. Business objects are defined as computing nodes, and attributes are defined for the computing nodes. The computing attributes are obtained by the computing method based on other attributes, and the attributes form a derived dependency relationship. The measurement semantic registration module is used to register measurement semantic declarations for the attributes when defining the attributes of the computing node. The measurement semantic declarations include the measurement unit, rounding rules, and minimum resolvable increment of the attribute. The grid reduction module is used to convert the new value and the old value of the attribute before the current assignment to the unit of measurement when the attribute of the computing node is assigned a new value, and to round the two converted values to an integer multiple of the step size according to the rounding rule, using the smallest resolvable increment as the step size, to obtain the respective grids of measurement for the two. The trigger propagation module is used to determine that the attribute is semantically equal when two measurement cells are the same and skip the evaluation of the calculation method based on the attribute; and to determine that the attribute has changed when two measurement cells are different, evaluate the calculation method and propagate it downstream along the derived dependency relationship.
[0020] The beneficial effects of this invention are as follows: This invention solves the problem that engines use a single, uniform equality criterion to measure all attributes, misjudging business-equivalent fluctuations as changes and triggering invalid recalculations across the entire dataset. It also avoids the loss of genuine small changes after adopting global tolerance. This invention registers the smallest business-distinguished difference in attribute values, along with the unit of measurement and rounding rules, as a measurement semantic declaration, as part of the attribute definition. When assigning a new value, the old and new values are normalized according to this declaration and reduced to their respective measurement cells. Values in the same cell are considered semantically equivalent, skipping downstream calculations; only values in different cells are considered changes and propagated along derived dependencies. This eliminates the engine-level uniform equality comparison. This approach is feasible because the business-equivalence of two values is determined by the attribute's measurement semantics: the unit and rounding rules are essential information that modelers must specify when defining attributes, while the smallest value cannot be distinguished and is directly provided in the planning domain by existing business facts such as packaging specifications, shift units, and the smallest unit of currency. Existing reactive computing frameworks place equality criteria at the engine layer and apply them to all attributes, leaving no room for attribute-specific standards. They are forced to choose between exact equality and global tolerance. In contrast, this invention decentralizes the criteria to the declaration of each attribute, making the granularity of the triggering judgment precise to a level that is truly discernible in the business logic. Only indistinguishable differences are absorbed.
[0021] This invention also enables the establishment of this criterion without separate calibration, and elevates the judgment to the object set level in high-frequency data import scenarios. Specifically, this invention configures a measurement specification source item for attributes, pointing to a rule table field in the rule base that records the minimum transaction volume or minimum measurement unit for that business volume. During registration and declaration, the value under the current branch is taken as the minimum distinguishable increment. This field changes synchronously with branch switching or version updates. When a data import transaction assigns values to multiple objects in batches, the grid position is determined for each object. Downstream evaluation is triggered only when the set of changed objects with different grid positions is used as the scope. If the set is empty, the transaction terminates. The underlying technical feature is that the minimum distinguishable increment is not a parameter that needs to be trial-and-error; it already exists in the rule base as a business parameter. Therefore, this invention eliminates the calibration step, and high-frequency imports no longer trigger downstream evaluation on a record-by-record basis.
[0022] This invention provides an explicit way to detect discrepancies between the definitions declared on the modeling side and the definitions of externally sent data, transforming what would otherwise be silent calculation errors into alarms that can be located as soon as data is entered into the model. To this end, this invention constructs a definition profile for each attribute covered by the processing mapping from both sides: the declaration side uses the attribute's quantitative semantic and structural declarations, and the data side uses the statistics from the corresponding imported batch data. The two profiles are compared along the processing mapping according to measurement units, time granularity, upper and lower bounds of values, uniqueness, and nullability. Any inconsistency in any dimension is judged as a definition discrepancy, indicating which mapping is mismatched in which dimension. Subsequently, the deviation is handled according to the dimension: those that can be converted or aggregated are resolved on the spot; other cases trigger alarms and synchronization is stopped. These arrangements are based on the fact that the same business fact is described twice on this platform—by attribute definitions on the computation node side and by imported batch statistics on the data node side. These two descriptions correspond one-to-one after processing mapping and should overlap. Existing import validation typically only checks formal conditions such as field type, NOT NULL, and primary key conflicts, lacking a reliable reference for discrepancies at the conceptual level. In this approach, the reference is taken from the description of another type of object within the platform itself. Discrepancies are brought to light during the data entry process, allowing the modeler to determine which side needs correction.
[0023] This invention re-establishes consistency between the scene-level solution results and the model state, and converges previously unguaranteed iterative solutions to a definite stopping point. The invention registers the input and output attribute sets of the scene-level solution method. During modeling, on the directed graph formed by derived dependencies, the intersection of the output attribute itself, its reachable attributes, and the input attribute set is marked as a backflow attribute. During write-back, attributes outside this range are directly assigned values. Backflow attributes are iteratively written back according to the upper limit of the rounds. Each round is re-solved using the write-back results, and the termination criterion is the determination result of the measurement cell position. If the upper limit is reached but the attributes are still not aligned, the last round result is retained, marked as inconsistent, and archived to the data node. The basis for this approach is that the attribute sets read and written back by the solution method are enumerable, and whether they interfere with each other depends only on whether the output attribute on the dependency graph can reach the input attribute. This cycle does not lie on the dependency graph but is closed through the external path of the solution method, and can be identified by a single reachability determination during modeling. In this way, the present invention replaces the convergence problem during the runtime with a single determination on the modeling graph. Only a small portion of the attributes are selected for iteration. Whether the change is still occurring in each round is determined by the distinguishable granularity of each attribute, and the shutdown point falls on the correct position in the business.
[0024] This invention transforms the quantitative semantics of attributes from merely readable documentation into criteria directly used during model runtime. The same declaration is used not only to determine whether the value has truly changed, but also to verify the data caliber entering the model and to determine whether the solution write-back has converged. This saves a whole series of invalid calculations triggered by misjudgments, and in return, deviations are identified and located at the entry point, and the results of the scenario solution remain feasible after falling back into the model. Attached Figure Description
[0025] Figure 1 A schematic diagram of the overall architecture of the intelligent agent ontology model provided in an embodiment of the present invention; Figure 2 This is a schematic diagram illustrating the attribute composition and derived dependency relationships of a computing node provided in an embodiment of the present invention. Figure 3 This is a schematic diagram illustrating the composition of the measurement semantic declaration and structural declaration in the attribute definition provided in the embodiments of the present invention, and the reference of the measurement specification source item to the rule table field; Figure 4 This is a schematic diagram illustrating the comparison between the attribute value division measurement grid and the determination of the same grid and different grids provided in the embodiments of the present invention; Figure 5 A schematic diagram illustrating the propagation and truncation of a single assignment along derived dependencies, provided for an embodiment of the present invention; Figure 6 A schematic diagram illustrating the delineation of the set of changed objects in a single data import transaction provided in an embodiment of the present invention; Figure 7 This is a schematic diagram showing a dimensional comparison of the declaration-side profile and the data-side profile along the processing mapping provided in an embodiment of the present invention. Figure 8 This is a schematic diagram illustrating the delineation of backflow attributes on a directed graph of derived dependencies provided in an embodiment of the present invention. Figure 9 This is a schematic diagram comparing the convergence and non-consistency of the rounds of iterative write-back of the backflow attribute provided in an embodiment of the present invention.
[0026] Figure Label Explanation: 10-Agent Ontology Model; 11-Business Object; 13-Object; 14-Object Group; 20-Computation Node; 21-Attribute; 30-Data Node; 31-Import Batch; 32-Archived Data; 33-Process Mapping; 40-Rule Base; 41-Rule Table; 50-Scene Context; 22-Basic Attribute; 23-Associated Attribute; 24-Computation Attribute; 25-Computation Method; 26-Derived Dependency; 27-Measurement Semantic Declaration; 28-Structure Declaration; 42-Measurement Specification Source Item; 29-Measurement Grid; 61-New Value; 62-Old Value; 64-Set of Changing Objects; 34-Declaration-Side Profile; 35-Data-Side Profile; 36-Mapping Item; 51-Scene-Level Solution Method; 52-Input Attribute Set; 53-Output Attribute Set; 54-Reachable Attribute Set; 55-Return Attribute; 65-Solution Result. Detailed Implementation
[0027] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions in the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this invention, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0028] In ontology models where changes in attributes automatically trigger downstream calculations, whether an assignment should be passed down depends on how the engine determines whether the attribute value has changed. The engine uses a uniform standard for all attributes: comparing the new and old values; if they are equal, it stops; otherwise, it propagates downwards. Values that are essentially the same after conversion, as well as minor fluctuations imperceptible to the business logic, are judged as changes, triggering unnecessary recalculations across the entire dataset. Changing the comparison to approximate equality with a globally fixed tolerance would also swallow up genuine minor changes. Both approaches trade off based on the same uniform criterion, with the cost shifting only between the two types of errors. However, whether two values are equivalent in a business context is determined by the attribute's own measurement semantics: the unit of measurement and rounding rules are essential information that the modeler must specify when defining the attribute. The exact unit of measurement is not discernible; in planning-related businesses, it is directly provided by existing business facts such as packaging specifications, minimum order quantities, shift quantities, and the minimum unit of currency. This invention utilizes this principle. When defining the attributes of a computation node, a measurement semantic declaration is registered for each attribute. When an attribute is assigned a new value, the new and old values are reduced to their respective measurement cells according to the declaration. If the two cells are the same, they are considered semantically equivalent, and the evaluation of the calculation method based on that attribute is skipped. Only if they are different is a change detected, and the change propagates downstream along the derived dependency relationship. Thus, the granularity of the triggering judgment is precise to the level truly discernible in business operations; only indistinguishable differences are absorbed, and the uniform standard of the engine layer is eliminated. The above scheme and its various embodiments are described below with reference to the accompanying drawings.
[0029] like Figure 1 As shown, the intelligent agent ontology model 10 upon which this embodiment of the invention relies is established according to ontology, and includes two different object types: computing nodes 20 and data nodes 30. The main modeling action is to define business objects 11 as computing nodes 20, that is, entities such as materials, warehouses, and work orders in the business become a type of computing node 20 in the model, and their business meaning is carried by the attributes 21 defined by the modeler on the computing nodes 20. The division of labor between computing nodes 20 and data nodes 30 is determined according to the purpose of the data: the amount that needs to continuously participate in the calculation in the running state and drive the downstream recalculation as the value changes belongs to computing nodes 20; large-scale data storage and high-frequency external data import belong to data nodes 30. The imported data first falls on data nodes 30, and then is processed and mapped 33 to synchronize to the attributes 21 of computing nodes 20. The consideration for this division is that the trigger propagation in the running state only needs to be carried out on the computing node 20 side, and the batch writing on data nodes 30 does not need to trigger downstream evaluation one by one. The scale and update frequency of the two types of object types can therefore be designed separately. It should be noted that... Figure 1 and Figure 2Both hollow and solid arrows are used, and their meanings differ: hollow arrows represent definitions and attributions established during the modeling phase. Figure 1 The arrow pointing from business object 11 to compute node 20 indicates that business object 11 is defined as compute node 20, and the arrow pointing from attribute 21 to object group 14 indicates that object 13 of compute node 20 is included in object group 14 of compute node 20. Figure 2 In the context of self-association attribute 23, the arrow pointing to another compute node indicates an attribute that is associated with that compute node; a solid arrow indicates the flow of values during runtime. Figure 1 The arrows in the imported batch 31, processed and mapped 33 pointing to attribute 21, and the arrows in rule table 41 pointing to attribute 21 both belong to this category. All other arrows in the diagrams are solid arrows.
[0030] Reference Figure 2 The attributes 21 of computation node 20 are divided into three categories: basic attributes 22, related attributes 23, and computed attributes 24. Basic attributes 22 are given directly by external assignment or manual input; related attributes 23 express the relationship between objects of computation node 20, and the relationship is divided into one-to-one, one-to-many, and many-to-many; computed attributes 24 are obtained by computation method 25 based on other attributes. The other attributes based on computation method 25 can be taken from the attributes 21 of this computation node 20 itself, or from the attributes of another computation node that is related to this computation node 20 through related attributes 23. Figure 2 The computed node on the right illustrates the latter method. Its attribute values are fed into computed method 25 for evaluation via association. This computed node and its attributes are not separately labeled; their meanings are the same as computed node 20 and attribute 21. Each time computed method 25 evaluates an attribute, a derivation dependency 26 is left between the evaluated attribute and computed attribute 24. Figure 2 The solid arrows in the diagram represent the attributes of the entire model, forming a directed dependency network. A change in the value of one attribute propagates along this network to its downstream computed attribute 24. It's important to distinguish that the associated attribute 23 is not an operand of computation method 25; rather, it serves as a pathway to other computed node attributes. Figure 2 The hollow arrow in the middle represents this relationship, which has two different meanings from the solid arrow that represents the flow of values.
[0031] Back Figure 1Data node 30 carries externally imported data and archived data 32. Externally imported data is written to data node 30 in batches 31. Rule base 40 carries business rules and parameters in rule table 41. Rule table 41 manages the values it carries by branches. The same model can switch to different branches in different planning scenarios to retrieve their respective parameter values. The intelligent agent ontology model 10 creates a scenario context 50 when a scenario is activated. Scenario context 50 carries the attribute values of each computing node 20 in that scenario. Instances of computing nodes 20 are objects 13. All objects 13 of a computing node 20 within the same scenario context 50 constitute the object group 14 of that computing node 20. Figure 1 The two boxes drawn side-by-side within object group 14 simply indicate that there can be multiple objects 13; one is labeled with the number 13, and the other has the same meaning. In some embodiments, computing nodes 20 are further divided into scene nodes and ordinary computing nodes: the objects 13 of scene nodes are initialized when scene context 50 is created and are unique in each scene context 50, suitable for carrying quantities that are unique throughout the entire scene, such as planning period and version number; the objects 13 of ordinary computing nodes are created by the constructor method and added to their respective object group 14, and their number varies with the scale of business data. Scene context 50 is destroyed when the scene fails, and multiple scene contexts 50 can exist in parallel without interfering with each other.
[0032] The following embodiments use inventory planning scenarios in planning-type business as examples. In this scenario, inventory details, product association, inventory alerts and replenishment rules, and historical inventory archives are located in different positions in the model. The available inventory, in-transit quantity, and average daily outbound quantity in the inventory details are defined as attribute 21 of the material calculation node 20; product association refers to the correspondence between materials and substitute materials, and between materials and warehouses, which is expressed by the association attribute 23; the safety stock days, minimum order quantity, and packaging specifications used in inventory alerts and replenishment rules are recorded in the rule table 41 of the rule base 40; historical inventory remains on the data node 30 in the form of archived data 32 and does not participate in the triggering propagation of the runtime state. The quantity that the method can obtain is the current value of attribute 21 on each calculation node 20 and the new value carried by each assignment, and the action that can be issued is to evaluate a certain calculation method 25 and write the result into its calculation attribute 24.
[0033] The processing in this embodiment focuses on one point: sinking the criterion for triggering the judgment from the engine layer to the declaration of the attribute itself. When the modeler defines the attribute 21 of the compute node 20, in addition to the attribute name and data type, the modeler also registers the measurement semantic declaration 27 of the attribute 21. During runtime, each time the attribute 21 is assigned a new value 61, the engine no longer directly compares whether the new value 61 and the old value 62 are equal. Instead, it first converts the two values to the same measurement unit according to the measurement semantic declaration 27, and then rounds both values with the smallest difference in the attribute 21 that can be distinguished in business as the step size, to obtain the measurement cell 29 of each value, that is, the cell where the rounded value falls. If the two measurement cells 29 are the same, they are judged to be semantically equal, and the current assignment ends here. Only if they are different is it judged that the attribute 21 has changed and propagates downstream along the derived dependency relationship 26.
[0034] The model built in the aforementioned manner continuously receives assignments during runtime. Each time attribute 21 of computation node 20 is assigned a value, the engine must determine whether the assignment constitutes a change in attribute 21, and accordingly decide whether to automatically trigger computation method 25 based on attribute 21 to evaluate and propagate it downstream. This determination was originally a uniform behavior of the engine layer, applicable to all attributes, without providing a separate set of criteria for each attribute.
[0035] Therefore, in this embodiment of the invention, when defining attribute 21 of computing node 20, a metering semantic declaration 27 is registered for attribute 21. For example... Figure 3 As shown, the measurement semantic declaration 27 is a component of the attribute 21 definition itself, listed alongside the attribute name and data type. It flows along with attribute 21 and the model version. It includes the measurement unit, rounding rules, and minimum distinguishable increment of attribute 21. The minimum distinguishable increment is the smallest difference in value that attribute 21 can distinguish in business terms. Alongside the measurement semantic declaration 27 is the structure declaration 28, which records the time granularity, upper and lower bounds of values, uniqueness, and nullability of attribute 21. It is used for caliber verification; that is, when external data is synchronized to attribute 21 via data node 30, it is compared item by item with the caliber actually presented by the imported data to determine whether the two calibers are consistent. The reason why the measurement semantic declaration 27 is placed in the definition of attribute 21 instead of being made into a separate configuration table on the engine side is that the separate configuration table and the model version are located in two places. When the attribute is renamed, split, or taken offline, the maintenance of the two places will inevitably be disconnected. The declaration on which the value is based and the actual semantics of the attribute will be subtly misaligned in a certain version. When the modeler defines attribute 21, he already needs to specify the unit and precision. Registering it in the attribute definition is a convenient step.
[0036] During the modeling phase, the measurement semantic declaration 27 is filled in as a field on the attribute definition interface: the unit of measurement is selected from the platform's dimension table, the rounding rule is selected from rounding up, rounding down, and rounding to the nearest whole number, and the minimum resolvable increment is filled in with a value of the same dimension as the unit of measurement. Optionally, the attribute definition interface also provides a numerical precision item, which is the number of decimal places retained for the value of attribute 21. After converting the value to the unit of measurement, the engine truncates the value according to the numerical precision before rounding it to an integer multiple of the minimum resolvable increment. For attribute 21 for which the measurement semantic declaration 27 is not filled in, the engine will return to compare the new value 61 with the old value 62 digit by digit to determine whether there has been a change, and the function will not be interrupted; this fallback arrangement is prepared for the smooth migration of existing models. Modelers can register attributes one by one without stopping the system. The attributes 21 that have been registered will then run according to the criteria of this embodiment of the invention, and the attributes 21 that have not been registered will maintain their original behavior.
[0037] The minimum resolvable increment is not a parameter that needs to be trial and error or calibrated; it is directly given by existing business facts in planned operations. The minimum resolvable increment for planned purchase quantity is taken from the packaging specifications or minimum order quantity of materials. For example, if a material is purchased by the box, with 12 pieces per box, then the minimum resolvable increment for the planned purchase quantity of that material is 12 pieces. The packaging specifications for common materials range from 1 to 1000 pieces. The minimum resolvable increment for working hours is taken in shift increments, generally between 0.25 hours and 8 hours. The minimum resolvable increment for monetary value is taken from the smallest unit of currency, such as 0.01 yuan for RMB and 1 yen for JPY. The minimum resolvable increment for production capacity is taken as the integer of the shift output, typically ranging from 1 to 10000 pieces. These quantities are inherently given in the business context; modelers only need to register them in the attribute definition without needing to find a suitable tolerance or accumulate operational data for them.
[0038] One point needs clarification regarding the determination of incremental values. When the downstream calculation attribute 24 amplifies the change in the upstream attribute 21, for example, for materials with high unit prices, the monetary attribute is obtained by multiplying the quantity attribute by the unit price. A difference that is indistinguishable in the quantity attribute may become distinguishable in the monetary attribute after amplification. The approach of this embodiment is that the minimum distinguishable increment of each attribute 21 is given only according to the business distinguishability of that attribute itself: a difference that is indistinguishable in this attribute does not constitute a business change of that attribute 21 according to this approach, and therefore does not drive its downstream. Once the upstream is judged to be semantically equivalent, it is truncated at the source. No matter how detailed the measurement semantic declaration 27 of the downstream attribute is registered, it will not be triggered. Therefore, when the downstream does need more detailed distinguishability, the correct approach is to re-register the minimum distinguishable increment of the upstream attribute 21 itself according to the more detailed business distinguishability, rather than remedy it on the downstream attribute. Continuing the previous example, when the monetary attribute needs to be distinguished down to a change of 0.01 yuan, the minimum distinguishable increment of its upstream quantity attribute cannot remain at the whole box, but should be registered as 1 piece. In a further embodiment, the modeler calculates the difference in resolution between upstream and downstream attributes when saving the measurement semantic declaration 27: it substitutes the minimum resolvable increment of the upstream attribute 21 into the calculation method 25 to calculate the change in the value of the downstream calculated attribute 24. If the change is significantly greater than the minimum resolvable increment registered by the downstream attribute, it indicates to the modeler that the difference within one cell upstream is already resolvable downstream, and the upstream increment may be registered too coarsely. The modeler then decides whether to refine the increment. This calculation is performed only once during the modeling period, and the determination during runtime still uses separate declarations for each attribute.
[0039] When attribute 21 is assigned a new value 61, the engine executes cell reduction according to the measurement semantics declaration 27. First, the new value 61 and the old value 62 of attribute 21 before this assignment are converted to the measurement unit in the measurement semantics declaration 27. Then, using the smallest distinguishable increment as the step size, the two converted values are rounded to integer multiples of the step size according to the rounding rules, resulting in their respective measurement cells 29. The measurement cell 29 is the identifier of the cell in which the continuous value falls after being divided according to the step size. Its value is equal to the rounded value itself and is not a new data structure introduced in the model. Two values falling into the same measurement cell 29 means that they are indistinguishable in terms of business logic. When attribute 21 is first assigned a value, there is no old value 62. At this time, no cell comparison is performed. It is directly determined that a change has occurred and the downstream calculation method 25 is triggered to evaluate, so as to ensure that the calculated attribute 24 on the newly created object 13 obtains a value after the first assignment.
[0040] like Figure 4 As shown, a row of grids with fixed boundaries is drawn below the value axis according to the minimum resolvable increment. The width of the grid circled by the double arrow is the minimum resolvable increment. Figure 4The left column shows the case where two measurement cells 29 are the same: the old value 62 and the new value 61 are not equal, but after rounding they fall into the same measurement cell 29, and the semantics of the attribute 21 are determined to be equal; the right column shows the case where two measurement cells 29 are different: the two values fall into two adjacent cells respectively, and the attribute 21 is determined to change. Figure 4 The solid dot represents the new value 61, and the hollow dot represents the old value 62. The two values in the right column have the same meaning as those in the left column and are not marked repeatedly. Figure 4 Taking the rounding rule of rounding down as an example, the value falls vertically into the cell it belongs to. When the rounding rule is changed to rounding to the nearest whole number or rounding up, the cell where the value falls is determined according to the rule, while the position of the cell boundary is determined by the step size and does not change with the value.
[0041] The reason why this embodiment of the invention does not generate cumulative deviation is that it compares the values in the cell after rounding, rather than comparing whether the difference between the two values is less than a certain tolerance. The difference tolerance only considers the increment between two adjacent assignments. Continuous changes that are multiple times less than the tolerance will be judged as unchanged, and the deviation accumulates with the number of assignments, but the model never recalculates. The boundary of the absolute cell position is independent of the two values themselves. Once a value crosses the cell boundary, it is judged as a change. Therefore, small changes will inevitably be captured when they accumulate to a level that is distinguishable in business operations. Correspondingly, when a value oscillates around a certain cell boundary, it will be judged as a change each time. This is the correct behavior triggered as soon as it is distinguishable in business operations, not a false trigger. If it is necessary to suppress such oscillations, an additional level of hysteresis can be added in addition to the cell position judgment as usual.
[0042] In one embodiment, unit conversion is performed by a built-in dimensional conversion table on the platform. The conversion table records the conversion relationships between commonly used units under each dimension, and the engine performs the conversion by looking up the table according to the unit of measurement in the measurement semantic declaration 27. In another embodiment, the conversion coefficient is directly registered in the mapping item 36 of the processing mapping 33, which is suitable for cases where the units sent by the external system are fixed. The conversion must be completed before rounding because the step size is expressed in units of measurement. If the step size is rounded before the conversion, the step size used for rounding is not consistent with the unit of the value, and the resulting measurement grid 29 is meaningless. When the unit of the value is different from the unit of measurement in the measurement semantic declaration 27, and no conversion relationship can be found in the conversion table and mapping item 36, the engine does not make a grid determination, keeps the current value of attribute 21 unchanged, and outputs an alarm, which is then handed over to the modeler to correct the declaration or correct the source data.
[0043] After obtaining the respective metric cells 29 for both, the engine processes them in two ways depending on whether the cells are the same. If the two metric cells 29 are the same, the semantics of attribute 21 are determined to be equal, and the evaluation of calculation method 25 based on attribute 21 is skipped, thus ending the current assignment. It should be noted that the new value 61 is still written to attribute 21 as usual, and the data in the model remains consistent with the external data. The only action that is suppressed is the evaluation of downstream calculation method 25 and its continued propagation. The next assignment will still use the value written this time as the old value 62 for evaluation, so attribute 21 will not remain at an outdated value due to skipping the evaluation. If the two metric cells 29 are different, attribute 21 is determined to have changed, the evaluation of calculation method 25 based on attribute 21 is performed, and the propagation is carried out downstream along the derived dependency relationship 26. After the downstream calculation attribute 24 obtains a new value, each of them performs the same cell reduction and evaluation according to its own metric semantic declaration 27. The propagation thus naturally stops at a certain level without the need for additional propagation layer restrictions.
[0044] like Figure 5 As shown, the left column illustrates the downstream propagation: the new value 61 assigned to attribute 21 falls into different measurement cells 29 compared to the old value 62. Each derived dependency 26 originating from attribute 21 is traversed level by level, and the downstream computed attributes 24 are evaluated sequentially. The right column shows the termination of this assignment: the two measurement cells 29 are identical, and each derived dependency 26 originating from attribute 21 is truncated immediately adjacent to attribute 21, marked by two short slashes in the diagram. Subsequent levels are drawn with dashed lines without arrows, indicating that this assignment did not traverse along these dependencies. The truncation only occurs at the source; the fact that the entire downstream computed attribute 24 is no longer evaluated at the truncation point is a consequence of this truncation, rather than each dependency being evaluated individually. Figure 5 The value points in the right column are not repeatedly marked with any node, and their meanings are the same as those in the left column. Figure 5 The three-level nodes shown are for illustrative purposes only. In the actual model, the number of levels and branches of the derived dependency relationship 26 are determined by the calculation method 25 defined by the modeler.
[0045] Measurement semantic declaration 27 is defined on attribute 21, therefore all objects 13 of this calculation node 20 share the same set of declarations: for one thousand material objects 13 under the same type of material calculation node 20, the unit of measurement, rounding rules, and minimum distinguishable increment of their planned purchase quantity attributes are all registered from the same place. The judgment of each object simply substitutes their respective new value 61 and old value 62 into the same set of declarations. In the case where individual objects 13 do require another set of increments, a measurement specification source item 42 is configured for attribute 21, so that the minimum distinguishable increment is taken from the field recorded by material in the rule table 41. The measurement specification source item 42 is the reference in the attribute definition to the field of the rule table. At this time, the minimum distinguishable increment is not determined by a value during the modeling period, but the engine locates the corresponding row of the field according to the material to which the object 13 to be assigned belongs before each assignment judgment, and takes the value of that row under the current branch as the step size of this judgment; as for the practice of reading the value at once when registering measurement semantic declaration 27, it corresponds to the case where all objects 13 of this attribute 21 share the same increment. The differences between individual objects thus fall on the rows of rule table 41, without the need for a separate declaration for each individual object on attribute 21.
[0046] When saving the measurement semantic declaration 27, the modeler performs a validation on the entered values: the minimum resolvable increment must be positive and have the same dimensions as the unit of measurement, and cannot be zero or negative; the minimum resolvable increment should not exceed the span of the upper and lower bounds of the values in the structural declaration 28, otherwise all valid values of the attribute 21 will at most span two measurement cells 29, and downstream evaluation will almost never be triggered thereafter; the rounding rule must be within the range of rounding up, rounding down, and rounding to the nearest whole number. If the validation fails, the modeler refuses to save and points out the unqualified items to prevent unqualified declarations from appearing as long-term non-recalculation in downstream applications, making it difficult to trace. It should also be clarified that the measurement semantic declaration 27 is only meaningful for numeric attributes 21; text, enumeration, and Boolean attributes 21 are not registered in the measurement semantic declaration 27, and whether they have changed is still determined by comparing the new value 61 with the old value 62 digit by digit.
[0047] The engine processes an assignment in the following order: first, it makes a judgment according to the cell position specification; then, it writes the new value 61 to attribute 21; and finally, it determines whether to trigger downstream evaluation based on the judgment result. The reason for placing the writing after the judgment is that the judgment needs to use the old value 62 before this assignment. If the writing is done first, the old value 62 will be overwritten and cannot be obtained. By placing the trigger after the writing, it ensures that the downstream calculation method 25 reads the latest value of attribute 21, and there will be no situation where the downstream evaluates based on the old value 62.
[0048] Let's take an attribute from an inventory planning scenario as an example to illustrate the above judgment process. The unit of measurement for the available inventory attribute in material calculation node 20 is "piece," and the rounding rule is to round down, with the minimum resolvable increment being 12 pieces (the packaging specification of the material). The replenishment quantity attribute is calculated using calculation method 25 based on the available inventory, and there is a derived dependency relationship 26 between the two. In a certain inventory count, the available inventory was changed from 1180 pieces to 1187 pieces. After conversion, both values are in pieces, and rounded down by a step of 12 pieces, 1180 pieces and 1187 pieces both fall into the same cell, 1176 pieces. The two measurement cells 29 are identical, and the attribute is determined to be semantically equivalent. 1187 pieces are written to attribute 21 as usual, but the replenishment quantity attribute is not recalculated because the difference of less than one box does not change the number of boxes replenished under the business approach of replenishing by box. The next warehousing entry changed the available inventory to 1195 units. Rounding down by the same step size, it landed at 1188 units, which is different from 1176 units. The attribute was determined to have changed, and the replenishment quantity attribute was recalculated and continued to propagate downstream along the derived dependency relationship 26.
[0049] After a change is detected, the engine evaluates the dependencies in order of priority. Starting from the assigned attribute 21, the engine collects all downstream computed attributes 24 along derived dependencies 26, arranging them in evaluation order according to their dependencies. It evaluates the level that the attribute is dependent on first, then evaluates the level that depends on it. When the same computed attribute 24 is pointed to by multiple derived dependencies 26, it is evaluated only once after all its upstream dependencies have obtained their values for this round; it is not evaluated repeatedly simply because there are multiple upstream dependencies. After each level of computed attribute 24 obtains a new value, that value is also an assignment, and it must also undergo lattice reduction according to its own metric semantic declaration 27. If the lattice is the same, that level is the end of the propagation, and its downstream dependencies are no longer collected. Therefore, the scope of a single assignment spreading downstream is not determined by the size of the dependency graph, but by the metric semantic declarations 27 of each attribute along the way.
[0050] The derived dependencies 26 within the model are derived from the attributes upon which the computation method 25 is based, and can be determined during the modeling phase. This embodiment of the invention requires that this dependency graph be acyclic: if a computation attribute 24 returns to itself after several levels of dependency, the modeler will report the cycle and refuse to save it when saving the computation method 25, because such a model cannot provide a definite evaluation order during runtime. It should be noted that this requirement only constrains the graph formed by the derived dependencies 26. Cycles formed by the scene-level solution method through reading and writing attributes do not fall on this graph. The handling of such cycles is as follows: register the input attribute set and output attribute set for the scene-level solution method; take each attribute in the output attribute set itself and the attributes reachable from each attribute along the derived dependencies 26; mark the attributes that also belong to the input attribute set as backflow attributes 55; when writing back the solution results, iterate backflow attributes 55 according to the set upper limit of rounds, with the termination condition being that the measurement cell 29 of each backflow attribute 55 is the same between two adjacent rounds.
[0051] Measure cell 29 is calculated only during the decision-making process according to the metric semantic declaration 27, and is not persisted as a field of attribute 21 along with the value. This is because the minimum resolvable increment may change due to branch switching in rule table 41. If measure cell 29 is stored along with the value, the stored cell will no longer correspond to the new step size after the branch switch, requiring a backcalculation of the attribute values for the entire model. Calculation only requires recalculation during the next assignment, based on the declaration at that time, without needing a backcalculation. In terms of computational complexity, a single cell reduction involves two unit conversions, two roundings, and one comparison; relative to the evaluation of the area of calculation methods 25 it determines, its overhead is negligible.
[0052] In one embodiment, the modeler modifies the quantitative semantic declaration 27 of an attribute 21 during model runtime, for example, changing the minimum resolvable increment from 12 to 24. The modification takes effect upon saving and applies to subsequent assignments; values already written to attribute 21 are unaffected, and a full model recalculation is not triggered. If the modeler wants the modified declaration to immediately apply to the current value, they can reassign the current value to the relevant attribute 21, and the engine will redo the determination based on the new declaration. The reason for not automatically recalculating upon declaration changes is that declaration changes occur more frequently during the modeling adjustment phase, and the cost of a full model recalculation far outweighs its benefits. On-demand reassignment gives the modeler more flexibility.
[0053] In another embodiment, the same attribute 21 is assigned multiple times consecutively within a single transaction. In this case, the engine performs a check for each assignment, using the previously written value as the old value 62 each time. If a transaction-based check is desired, the value of attribute 21 can be recorded as the old value 62 at the beginning of the transaction, and the final value can be used as the new value 61 at the time of transaction commit. The assignments in the middle of the transaction do not trigger downstream evaluations individually. This latter approach is suitable for situations where the same attribute is repeatedly adjusted within a single transaction, preventing intermediate values from triggering a round of downstream evaluations only to be randomly overwritten.
[0054] The way values are represented directly affects cell reduction. When the value of attribute 21 is represented as a binary floating-point number, representation errors during conversion and rounding may push a value that happens to fall on a cell boundary to an adjacent cell, causing two values that should be in the same cell to be judged as different. In one embodiment, the numeric attribute 21 with measurement semantics declaration 27 is always stored and operated on in decimal fixed-point numbers, and the step size and value are rounded by integer division on the same scale, so representation errors no longer occur. In another embodiment, the value is still stored as a floating-point number, but before rounding, it is truncated according to numerical precision, reducing the value to a finite number of decimal places, and then the rounding is completed by integer operations. The common point of both approaches is that the division on which the rounding is based is completed in the integer field, rather than comparing the quotient with the rounded result in the floating-point field.
[0055] The scenario where attribute 21 is assigned a value externally before a propagation is complete is also addressed. In one embodiment, the engine uses the assigned attribute 21 as the root and includes all computed attributes 24 involved in the current propagation in the same evaluation batch. During batch execution, new assignments to the same attribute 21 are queued first, and then processed one by one according to the aforementioned decision after the batch is completed, without interleaving with the current batch. In this way, the old value 62 used in each decision is a definite value, and intermediate results are not read halfway. In another embodiment, new assignments are allowed to interrupt the current batch. In this case, the engine discards the unevaluated parts of the current batch and starts a new propagation from the root with the latest value. This is suitable for situations where value updates are frequent and intermediate results have no value to retain. Neither approach changes the aforementioned lattice reduction and decision itself; the difference lies only in the batch arrangement.
[0056] The engine tracks the results of each assignment, recording the assigned attribute 21, the measurement cell 29 where the new value 61 and the old value 62 fall, and whether downstream evaluation is triggered. The tracks can be viewed by attribute 21 and time interval. The necessity of these tracks is that skipping evaluation is a silent action; the model does not report errors, the downstream value remains unchanged, and the modeler cannot tell from the results whether it was determined to be semantically equivalent and thus not triggered, or whether the calculation method 25 malfunctioned and did not perform the calculation. With each successive tracking of the decisions, these two situations can be easily distinguished, and the appropriateness of the smallest distinguishable incremental registration can be checked by reviewing the proportion of skipped values in the tracks.
[0057] After the above processing, the engine's response to an assignment is no longer determined by a uniform standard applicable to all attributes, but by the measurement semantics declaration 27 of the attribute being assigned. Coarse-grained attributes absorb jitter that is not discernible in the business logic, while fine-grained attributes are still triggered sequentially. The two coexist in the same engine without affecting each other; the previous trade-off between exact equality and global tolerance is no longer needed as the criterion is lowered to the attribute level.
[0058] In one embodiment, the minimum resolvable increment of attribute 21 is not directly entered as a value by the modeler, but rather a measurement specification source item 42 is configured for attribute 21. For example... Figure 3 As shown, the measurement specification source item 42 is a reference in the attribute definition to a field in a rule table 41 of the rule base 40. This field records the minimum transaction quantity or minimum measurement unit quantity for business quantities such as packaging specifications, minimum order quantity, and shift particle size. These are business parameters that already exist in the rule base 40 and are not additional configuration items set by this invention. When registering the measurement semantic declaration 27, the engine reads the value of the rule table field pointed to by the measurement specification source item 42 in the current branch and uses the read value as the minimum resolvable increment of attribute 21. Figure 3 The solid line that traces the path from the rule table field back to the minimum resolvable increment illustrates this value path. Rule table 41 manages the values it carries by branch. Under the domestic and export branches of the same model, the packaging specifications for the same material can be 12 pieces and 24 pieces respectively. When the value of a rule table field changes due to branch switching or version update, the minimum resolvable increment of attribute 21 is updated synchronously. The updated increment takes effect in subsequent assignment judgments, and previous judgments are not retrospective. This arrangement saves the step of manually marking the increment for each attribute: if the packaging specifications change in business, the granularity of the triggering judgment changes accordingly, and the two no longer need manual alignment.
[0059] In another embodiment, such as Figure 6As shown, attribute 21 of computing node 20 is batch-assigned to multiple objects 13 in a single data import transaction. Triggering downstream evaluation for each record individually would be too costly, while triggering the entire batch would involve objects 13 that haven't changed in the batch. In this embodiment, the measurement cell 29 is determined for each assigned object 13 individually. Objects 13 whose new value 61 differs from their old value 62 at measurement cell 29 are collected, forming a set 64 of changed objects in this data import transaction. The evaluation of calculation method 25 based on attribute 21 is then triggered within the scope of this set 64. When the set 64 is empty, the data import transaction terminates, and no evaluation is generated downstream. The determination and collection are completed uniformly at the end of a data import transaction, rather than being determined for each record read. The old value 62 of each object 13 is taken from the value taken at the beginning of the data import transaction. Therefore, the evaluation range is determined once at the transaction boundary, and the downstream calculation method 25 is only invoked once. Figure 6 Each import batch 31 carries one data import transaction. In the diagram, the two cells below each object 13 are the measurement cells 29 for attribute 21. Hollow dots in the cells represent the old value 62, and solid dots represent the new value 61. Objects 13 whose two dots fall in two different cells are included in the changed object set 64. Other objects 13 are assigned values but are not included in the current evaluation scope. Labels 61 and 62 are marked only once on the cell of the leftmost object 13, and label 29 is marked only once on the cell of the rightmost object 13. The meanings of the other cells and dots are the same. Figure 6 The number of objects 13 and the number of cells in each cell bar are for illustrative purposes only. The actual number of records and the value distribution in this batch 31 are determined by the number of records imported.
[0060] Adjacent to the above judgment is another point: the scope declared on attribute 21 by the modeling side may deviate from the scope of the data actually sent from the external data node 30. Whether inventory refers to available inventory or book inventory including in-transit inventory, whether the unit is a piece or a box, whether the granularity is daily or weekly, both sides are numbers, both can be calculated, the model does not report errors, but the result is silently wrong. In a further embodiment, such as... Figure 7As shown, the data imported into batch 31 in data node 30 is synchronized to attribute 21 in computing node 20 through processing mapping 33. For each attribute 21 covered by processing mapping 33, a caliber check is performed: the measurement semantic declaration 27 and structural declaration 28 of attribute 21 are taken to form a declaration-side caliber profile 34; the measurement unit, time granularity represented by the difference in timestamps between adjacent records, upper and lower bounds of values, uniqueness represented by the proportion of duplicate values, and nullability represented by the proportion of non-empty records are taken from the corresponding field of attribute 21 in the imported batch 31 data to form a data-side caliber profile 35; the two profiles are aligned and compared one by one along processing mapping 33 according to five dimensions: measurement unit, time granularity, upper and lower bounds of values, uniqueness, and nullability. When there are dimensions with inconsistent values, it is determined that the caliber of mapping item 36 in processing mapping 33 is inconsistent, and the identifier of mapping item 36 is output along with the dimension where the inconsistency occurs. It should be noted that the declaration-side caliber profile 34 is composed of the two declarations of attribute 21. Figure 7 The five elements listed are the five dimensions involved in the comparison. The unit of measurement is taken from Measurement Semantics Declaration 27, while the time granularity, upper and lower bounds of values, uniqueness, and nullability are taken from Structure Declaration 28. The rounding rules, minimum resolvable increment, and numerical precision in Measurement Semantics Declaration 27 are not involved in the caliber comparison and are therefore not included. Figure 7 ; Figure 7 The cross in the middle indicates that the values on both sides of this dimension are inconsistent.
[0061] The thresholds for determining inconsistency across different dimensions are as follows: Unit of measurement is determined by whether the unit identifiers on both sides are identical; time granularity is determined by whether the difference in timestamps between adjacent records is equal to the time granularity in Structure Declaration 28; upper and lower bounds of values are determined by whether the upper and lower bounds of the imported batch 31 data fall within the upper and lower bounds of the values in Structure Declaration 28; uniqueness is determined when the percentage of duplicate values is greater than 0 while Structure Declaration 28 registers it as unique; nullability is determined when the percentage of non-null records is less than 1 while Structure Declaration 28 registers it as non-nullable. The boundary criteria for data-side statistics are also explained: when the difference in timestamps between adjacent records is not unique, the mode is used; when imported batch 31 contains only one record, the time granularity dimension is not included in this comparison; when the fields in imported batch 31 are not labeled with units of measurement, the unit of measurement dimension is not included in the comparison and is marked as missing in the output to avoid misjudging inconsistency due to missing labels.
[0062] The output of the discrepancy check includes the identifier of mapping item 36, the dimension where the inconsistency occurred, and the values of both portraits on that dimension, presented to the modeler along with the import results. The reason for placing the verification during the data input stage, rather than investigating after the calculation results are incorrect, is that once the discrepancy enters the model with the data, its impact will spread along the derivation dependency relationship 26 to multiple calculated attributes 24. The later it is discovered, the more difficult it is to pinpoint which item is mapped incorrectly. The reason the two portraits should overlap is that the same business fact is described twice on this platform: once by the definition of attribute 21 on the calculation node 20 side, and once by the data statistics of the import batch 31 on the data node 30 side. The two descriptions are mapped one-to-one after processing 33. Existing import validation usually only checks formal conditions such as field type, non-null, and primary key conflicts. Discrepancies at the discrepancy level lack a reliable reference, while the reference in this embodiment is taken from the description of another type of object on the platform itself. There is also a semantic boundary that needs to be clearly defined in the comparison of the two portraits. This comparison can only indicate inconsistencies between the two sides and locate the specific mapping item 36 and the dimension of deviation. It cannot determine whether the declaration side is written incorrectly or the data side is sent incorrectly. Therefore, the purpose of this verification is to explicitly expose the deviation and let the modeler judge which side should be corrected, rather than verifying the correctness of the quantitative semantic declaration 27 itself.
[0063] After determining that mapping item 36 has a discrepancy, further embodiments handle the inconsistency according to the dimension in which it occurs. If only the unit of measurement is inconsistent, and the processing mapping 33 has a conversion factor between the unit of measurement of the data-side caliber profile 35 and the unit of measurement of the declaration-side caliber profile 34, the data of imported batch 31 is converted to the unit of measurement in the measurement semantic declaration 27 according to the conversion factor, and the current synchronization continues after the conversion. If only the time granularity is inconsistent, and the difference between the timestamps of adjacent records is less than the time granularity in the structure declaration 28, the data of imported batch 31 is aggregated according to the time granularity in the structure declaration 28, and the current synchronization continues after the aggregation. The operator used for aggregation is determined according to the semantics of attribute 21. The time point quantity takes the last value of the interval, and the cumulative quantity is summed according to the interval. Selecting the wrong operator will introduce a new layer of caliber deviation after dimension alignment. Therefore, the operator is registered together when the attribute is defined, and not a single one is used uniformly. In other cases of inconsistency, an alarm is output, the current value of attribute 21 is kept unchanged, and the current synchronization of the mapping item 36 is terminated. The reason for keeping the current value and not writing is that since the caliber is already unclear, writing will only send known questionable data to the downstream calculation method 25.
[0064] In one embodiment, such as Figure 8As shown, the scene-level solution method 51 executed in the aforementioned scene context 50 separately registers the input attribute set 52 and the output attribute set 53. The scene-level solution method 51 reads the values of each attribute in the input attribute set 52, solves the problem, and writes the solution result 65 back to each attribute in the output attribute set 53. The write-back itself is also an assignment, which will trigger downstream evaluation along the derivation dependency relationship 26. If an attribute falls into the input attribute set 52, the input on which the solution is based will be modified by its own output, and the generated plan will no longer be feasible once it falls back into the model. In this embodiment of the invention, such attributes are identified in one determination during the modeling period: taking the derivation dependency relationship 26 as a directed graph, each attribute in the output attribute set 53 and the attributes reachable from each attribute along the directed graph are taken to form a reachable attribute set 54. The intersection of the reachable attribute set 54 and the input attribute set 52 is taken, and the attributes in the intersection are marked as backflow attributes 55. Figure 8 The intersection of the three dashed boxes is the reflow attribute 55. It is within the output attribute set 53 and will therefore be written back. It is also reachable from another attribute in the output attribute set 53 along the derivation dependency 26, and is also read by the solver within the input attribute set 52. Figure 8 The attribute in the upper left corner belongs to the output attribute set 53 and the reachable attribute set 54, but is not within the input attribute set 52; Figure 8 The intermediate attributes are reachable from the output attribute set 53, and therefore also within the reachable attribute set 54, but not within the input attribute set 52. Figure 8 Although the attribute in the lower right corner is within the input attribute set 52, it is unreachable from the output attribute set 53. None of these three are return attributes 55, nor do they participate in iterative write-back.
[0065] There are two ways to register the input attribute set 52 and the output attribute set 53: in one embodiment, the modeler declares them one by one when defining the scene-level solution method 51; in another embodiment, the platform performs a static analysis on the attribute read and write statements in the method body, assigning read attributes to the input attribute set 52 and written attributes to the output attribute set 53, with the modeler only confirming the assignment. The reachable attribute set 54 includes zero-step self-identification, meaning that each attribute in the output attribute set 53, regardless of whether it has downstream components, is itself within the reachable attribute set 54. It should be noted that conventional circular dependency detection cannot detect this cycle. This cycle does not fall on the directed graph formed by derived dependency relations 26, which itself is cycle-free; the cycle is closed through the external path of the scene-level solution method 51. The reachability of this path can be determined during modeling and is independent of runtime data, thus eliminating the need for repeated detection during runtime.
[0066] When executing scenario-level solution method 51 and writing back the solution result 65, attributes in output attribute set 53 that do not belong to backflow attribute 55 are directly written back, and the downstream evaluations triggered by them do not return to the solution input; one write-back completes the process. Attributes in output attribute set 53 that belong to backflow attribute 55 are iteratively written back according to the set upper limit of rounds: in each round, the solution result 65 of this round is written back to backflow attribute 55, and then scenario-level solution method 51 is re-executed with the written-back attribute values to obtain the solution result 65 of the next round. The termination criterion is based on the judgment result of meter 29; iteration terminates when the meter 29 of each backflow attribute 55 is the same in two adjacent rounds. In actual models, most output attributes do not fall within the intersection of reachable attribute set 54 and input attribute set 52; backflow attribute 55 is usually only a small part of output attribute set 53. The upper limit of rounds is set based on engineering experience, generally ranging from 3 to 10 rounds. Most scenarios in the planning domain satisfy the termination criterion within 3 rounds.
[0067] like Figure 9 As shown, Figure 9 The vertical axis represents the number of rounds, with downward arrows indicating increasing rounds. The horizontal axis represents the attribute values, with the smallest resolvable increment divided into measurement cells (29) below. The solid dots represent the solution results (65) for each round's write-back attribute (55). Figure 9 The left column shows the conditions that meet the termination criterion: the solution result 65 of the third and fourth rounds falls into the same measurement cell 29, and the iteration terminates; Figure 9 Only the round-by-round values of a single reflux attribute 55 are drawn. The termination criterion requires that the measurement cell 29 of each reflux attribute 55 is the same between two adjacent rounds. That is, the termination will only occur when all the circled reflux attributes 55 meet this condition. Figure 9 The system only draws the indicator lines for the last two rounds, and only gives the direction of the values for the first two rounds, because the termination criterion only compares two adjacent rounds. Figure 9 The number of circles and grids drawn are also illustrative. In a further embodiment, such as... Figure 9 As shown in the right column, when the iterative write-back reaches the upper limit of the number of rounds and there are still two adjacent rounds with different backflow attributes 55 in the measurement cell 29, the iteration stops and the write-back result of the last round is retained. The identifier of the still different backflow attribute 55 and the identifier of the computing node 20 to which the backflow attribute 55 belongs are output. The solution result 65 of this time is marked as inconsistent. Before the scene context 50 expires and is destroyed, the solution result 65 marked as inconsistent, together with the identifier of the backflow attribute 55, is written into the data node 30 for archiving, becoming part of the archived data 32, for later verification of why this plan did not converge.
[0068] In one embodiment, the measurement semantic declaration 27 also includes numerical precision, which is the number of decimal places retained for the value of attribute 21. After conversion to the unit of measurement and before rounding to an integer multiple of the step size, the converted value is truncated according to the numerical precision. The numerical precision is generally taken in the range of 0 to 6 digits, with 2 digits for monetary attributes, 3 digits for weight attributes, and 4 digits for proportional attributes. Precision truncation and step size rounding are two levels of quantization in series. The relationship between them should be that the precision is not finer than the resolution represented by the smallest resolvable increment; otherwise, the precision level will not be effective. When the smallest resolvable increment is 12 pieces, setting the numerical precision to 4 decimal places will not make the judgment finer because rounding to an integer multiple of 12 has already swallowed all the decimal places. The three rounding rules each have their applicable scenarios: Purchase batch and replenishment quantity can only be rounded up based on the quantity issued in the whole batch, and the rounded value is not lower than the actual requirement; Available quantity and allocable quantity, which are unavailable if less than one unit, are rounded down, and the rounded value is not higher than the actual available value; Measurement value and ratio, which are quantities without issuance constraints or availability constraints, are rounded to the nearest value.
[0069] In the aforementioned embodiments, the grid specification and trigger propagation are performed independently on each object 13 of the computation node 20. The computation method 25 evaluates each object 13 in the object group 14 one by one, and the associated object it is based on is taken from the object 13 of another computation node pointed to by the associated attribute 23. If an object 13 is determined to be semantically equivalent but not triggered, it does not affect the determination and propagation of other objects 13 in the same object group 14. Since the object 13 of the scene node is unique for each scene, a single assignment of its attribute 21 often affects the calculation of the entire scene context 50. When registering the measurement semantic declaration 27, the increment should be determined according to the actual business.
[0070] Based on the same concept, this invention also provides an object-based intelligent agent ontology modeling system for implementing the method provided in the foregoing embodiments. The system includes an ontology modeling module, a measurement semantic registration module, a lattice reduction module, and a trigger propagation module. These four modules correspond one-to-one with the four parts of the foregoing method, and the model elements they handle are respectively described in [the relevant documentation]. Figures 1 to 5 .
[0071] The ontology modeling module is used to build an intelligent agent ontology model 10 according to ontology. The model sets up two object types: computational nodes 20 and data nodes 30. The business object 11 is defined as a computational node 20, and attributes 21 are defined for computational nodes 20. The computational attribute 24 is obtained by computation method 25 based on other attributes, thus forming a derived dependency relationship 26 between the attributes. This module performs the functions described above. Figure 1 and Figure 2 The modeling section of the explanation.
[0072] The measurement semantic registration module is used to register measurement semantic declarations 27 for attribute 21 when defining attribute 21 of computing node 20, including the unit of measurement, rounding rules, and minimum resolvable increment. This is done in conjunction with the preceding text. Figure 3 The registration section of the description, in which the smallest resolvable increment is taken from the field of rule table 41 by the source item 42 of the metrological specification, is also handled by this module. The aforementioned embodiments regarding the comparison of the declaration-side caliber profile 34 and the data-side caliber profile 35 and the handling of caliber discrepancies are also executed by this module before the data of the imported batch 31 is processed and mapped to attribute 21. The declaration-side caliber profile 34 on which it is based is taken from the metrological semantic statement 27 registered by this module and the structural statement 28 defined in the attribute at the same location.
[0073] The grid specification module is used to convert the new value 61 and the old value 62 to the unit of measurement in the measurement semantics declaration 27 when attribute 21 is assigned a new value 61. Then, using the smallest resolvable increment as a step size, it rounds each of the two converted values to an integer multiple of that step size according to the rounding rules, obtaining their respective grid cells 29. This is the same as the previous description. Figure 4 The specification section explains that the trigger propagation module determines the semantic equivalence of attribute 21 and skips the evaluation of calculation method 25 based on attribute 21 when two measure cells 29 are the same. When two measure cells 29 are different, it determines that attribute 21 has changed, evaluates calculation method 25, and propagates it downstream along the derived dependency relationship 26. This is the execution of the aforementioned combination. Figure 5 The determination and propagation section of the description, as well as the aforementioned embodiments regarding the set of changed objects 64, iterative write-back, and non-consistent marking, are also implemented in this module.
[0074] In one embodiment, the four modules are deployed on the same server. The ontology modeling module and the quantitative semantic registration module are provided to the modeler along with the modeler, while the lattice specification module and the trigger propagation module reside in the runtime engine. In another embodiment, the runtime engine and the modeler are deployed separately. The two exchange attribute definitions and quantitative semantic declarations 27 through the model version repository. The registration results during the modeling period are released to the engine side and take effect along with the model version.
[0075] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit them. Those skilled in the art should understand that modifications can be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features, and such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An object-based intelligent agent ontology modeling method, characterized in that, The method is executed by a computer and includes: An intelligent agent ontology model is established based on ontology. The intelligent agent ontology model has two types of objects: computing nodes and data nodes. Business objects are defined as computing nodes. Attributes are defined for the computing nodes. The computing attributes are obtained by the computing method based on other attributes, and the attributes form a derived dependency relationship. Each time the attribute of the computing node is assigned a value, the system determines whether to automatically trigger a calculation method based on the attribute and propagate it downstream, depending on whether the assignment constitutes a change in the attribute. When defining the attributes of the computing node, register a measurement semantic declaration for the attribute. The measurement semantic declaration includes the measurement unit, rounding rule and minimum distinguishable increment of the attribute. The minimum distinguishable increment is the smallest value difference of the attribute that can be distinguished in business. When the attribute of the computing node is assigned a new value, the new value and the old value of the attribute before this assignment are converted to the unit of measurement. Then, with the smallest resolvable increment as the step size, the two converted values are each rounded to an integer multiple of the step size according to the rounding rule to obtain their respective unit of measurement. When two measurement cells are the same, the attribute is determined to be semantically equal, and the evaluation of the calculation method based on the attribute is skipped, and the current assignment ends here; when two measurement cells are different, the attribute is determined to have changed, the calculation method is evaluated and propagated downstream along the derived dependency relationship.
2. The object-based intelligent agent ontology modeling method according to claim 1, characterized in that, The intelligent agent ontology model also includes a rule base, which carries business rules and business parameters in rule tables. The rule tables manage the values of the business rules and business parameters they carry by branch. Configure a metering specification source item for the attribute of the computing node. The metering specification source item points to a rule table field in the rule base. The rule table field records the minimum transaction volume or minimum metering unit quantity of the business volume corresponding to the attribute in the business. When registering the measurement semantic declaration, the value of the rule table field pointed to by the measurement specification source item is read under the current branch, and the read value is used as the minimum resolvable increment of the attribute. When the value of a field in the rule table changes due to a branch switch or version update, the minimum distinguishable increment of the attribute is updated synchronously, and the updated minimum distinguishable increment takes effect in subsequent assignment judgments.
3. The object-based intelligent agent ontology modeling method according to claim 1, characterized in that, The instance of the computing node is an object. When the attributes of the computing node are assigned in batches on multiple objects through a single data import transaction, the determination of the metering grid is performed on each of the objects that are assigned values. Collect objects whose new values differ from their old values among the objects being assigned values, forming a set of changed objects for this data import transaction. Then, trigger the evaluation of the calculation method based on the attribute within the scope of the set of changed objects. When the set of changed objects is empty, the current data import transaction terminates.
4. The object-based intelligent agent ontology modeling method according to claim 1, characterized in that, Also includes: The data node carries externally imported data and archived data. Externally imported data is written to the data node in batches. The data in the imported batches is processed and mapped to the attributes of the computing node. A caliber check is performed on each attribute covered by the processing mapping. The quantitative semantic declaration and structural declaration of the attribute are used to form a declaration-side profile. The structural declaration includes the temporal granularity, upper and lower bounds of the value, uniqueness, and nullability of the attribute. The data side profile is constructed by taking the unit of measurement marked in the corresponding field of the attribute in the imported batch, the time granularity represented by the difference of timestamps of adjacent records, the upper and lower bounds of the value, the uniqueness represented by the proportion of duplicate values, and the nullability represented by the proportion of non-empty records. The declaration-side caliber profile and the data-side caliber profile are aligned and compared one by one along the processing mapping according to five dimensions: unit of measurement, time granularity, upper and lower bounds of values, uniqueness, and nullability. When there are dimensions with inconsistent values, it is determined that the mapping item of the processing mapping is out of caliber, and the identifier of the mapping item and the dimension in which the inconsistency occurs are output.
5. The object-based intelligent agent ontology modeling method according to claim 4, characterized in that, After determining that the mapping term deviates from its definition, it is handled according to the dimension in which the inconsistency occurred: If only one dimension of the measurement unit is inconsistent, and the processing mapping has a conversion factor between the measurement unit of the data-side caliber profile and the measurement unit of the declaration-side caliber profile, the data of the imported batch is converted to the measurement unit in the measurement semantic declaration according to the conversion factor, and the current synchronization continues after the conversion. If only one dimension of the time granularity is inconsistent, and the difference between the timestamps of adjacent records is less than the time granularity in the structure declaration, the data of the imported batch will be aggregated according to the time granularity in the structure declaration, and the current synchronization will continue after aggregation. In other cases of inconsistency, an alarm is output, the current value of the attribute remains unchanged, and the current synchronization of the mapping item is terminated.
6. The object-based intelligent agent ontology modeling method according to claim 1, characterized in that, Also includes: The intelligent agent ontology model creates a scene context when the scene is activated, and the scene context carries the attribute values of each computing node in the scene; For the scene-level solution method executed in the scene context, register the input attribute set and the output attribute set. The scene-level solution method reads the values of each attribute in the input attribute set, solves the problem, and writes the solution results back to each attribute in the output attribute set. Using the derived dependency relationship as a directed graph, each attribute in the output attribute set and the attributes reachable from each attribute along the directed graph are taken to form a reachable attribute set. The intersection of the reachable attribute set and the input attribute set is taken, and the attributes in the intersection are marked as backflow attributes. When executing the scenario-level solution method and writing back the solution results, attributes in the output attribute set that do not belong to the reflow attributes are directly written back; The attributes belonging to the backflow attributes in the output attribute set are iteratively written back according to the set upper limit of the rounds. In each round, the solution result of the current round is written back to the backflow attribute, and then the scene-level solution method is re-executed with the attribute value after writing back to obtain the solution result of the next round. The determination result of the measurement grid is used as the termination criterion. The iteration terminates when the measurement grid of each backflow attribute is the same in two adjacent rounds.
7. The object-based intelligent agent ontology modeling method according to claim 6, characterized in that, When the iterative write-back reaches the upper limit of the number of rounds and there are still reflow attributes with different measurement grid positions between two adjacent rounds, the iteration stops and the write-back result of the last round is retained. The identifiers of the still different reflow attributes and the identifiers of the computing nodes to which the reflow attributes belong are output, and the solution result is marked as inconsistent. Before the scenario context expires and is destroyed, the solution results marked as inconsistent, along with the identifier of the reflow attribute, are written into the data node archive.
8. The object-based intelligent agent ontology modeling method according to claim 1, characterized in that, The measurement semantic declaration also includes numerical precision, which is the number of decimal places retained for the value of the attribute. After the conversion to the measurement unit and before rounding to an integer multiple of the step size, the converted value is truncated according to the numerical precision. The rounding rule is one of rounding up, rounding down, and rounding to the nearest integer.
9. The object-based intelligent agent ontology modeling method according to claim 1, characterized in that, The attributes of the computing node include basic attributes, association attributes, and computing attributes. The association attributes express the association relationship between objects of the computing node. The association relationship is divided into three types: one-to-one, one-to-many, and many-to-many. The other attributes on which the calculation method of the computing attributes is based are taken from the attributes of the computing node itself or the attributes of other computing nodes that are associated with the computing node through the association attributes. The instance of the computing node is an object. The intelligent agent ontology model creates a scene context when the scene is activated. All objects of the computing node in the same scene context constitute an object group. The computing nodes are divided into scene nodes and ordinary computing nodes. The objects of the scene nodes are initialized when the scene context is created and are unique in each scene context. The objects of the ordinary computing nodes are created by the constructor and added to their respective object groups.
10. An object-based intelligent agent ontology modeling system for implementing the method of claim 1, characterized in that, include: The ontology modeling module is used to build an intelligent agent ontology model according to ontology. The intelligent agent ontology model has two types of objects: computing nodes and data nodes. Business objects are defined as computing nodes, and attributes are defined for the computing nodes. The computing attributes are obtained by the computing method based on other attributes, and the attributes form a derived dependency relationship. The measurement semantic registration module is used to register measurement semantic declarations for the attributes when defining the attributes of the computing node. The measurement semantic declarations include the measurement unit, rounding rules, and minimum resolvable increment of the attribute. The grid reduction module is used to convert the new value and the old value of the attribute before the current assignment to the unit of measurement when the attribute of the computing node is assigned a new value, and to round the two converted values to an integer multiple of the step size according to the rounding rule, using the smallest resolvable increment as the step size, to obtain the respective grids of measurement for the two. The trigger propagation module is used to determine that the attribute is semantically equal when two measurement cells are the same and skip the evaluation of the calculation method based on the attribute; and to determine that the attribute has changed when two measurement cells are different, evaluate the calculation method and propagate it downstream along the derived dependency relationship.
Citation Information
Patent Citations
Complex equipment knowledge graph cold start method based on relation model conversion
CN116187441A
Measurement instrument intelligent optimization method based on Ontology
CN117077777A
