A dynamic ontology incremental evolution method and system based on change event driving
By adopting a change event-driven dynamic ontology incremental evolution method, the problem that the affected scope of local changes in the dynamic ontology of the assertion layer is difficult to correspond with the actual scope of relevant constraint checks is solved. This achieves efficient and accurate local updates and reduces the risks of irrelevant processing and constraint checks.
Patent Information
- Application Number
- CN202611391236.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-09
- Publication Date
- 2026-11-24
AI Technical Summary
In scenarios where business operations such as equipment maintenance are constantly changing, when there are local changes to the dynamic ontology of the assertion layer, the affected scope is difficult to correspond to the actual scope of constraint checks, resulting in the omission of constraint endpoints or an increase in irrelevant processing.
A dynamic ontology incremental evolution method based on change event-driven approach is adopted. Allowable dependency edges are determined by standardizing change events and propagation operators, forming an labeled affected ontology subgraph. Updates are pre-performed in the isolated work area, and constraints are checked using boundary verification views. Forward and reverse ontology incremental patches with operation binding preconditions are generated, and only incremental triplet transactions within the subgraph are committed.
It reduces the omission of relevant endpoints caused by fixed hop count truncation and irrelevant processing caused by indiscriminate expansion, reduces the risk of local updates that fail relevant constraint checks entering ontology storage, and improves the accuracy and efficiency of local updates.
Smart Images

Figure CN123159487A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of knowledge engineering and ontology data processing technology, and in particular to a dynamic ontology incremental evolution method and system based on change event-driven evolution. Background Technology
[0002] In scenarios where business operations such as equipment maintenance are constantly changing, the assertion layer dynamic ontology stores business facts in entity triples, attribute assertion triples, and relation assertion triples, and limits the valid state of assertions through attribute types, enumeration value ranges, cardinality, and inverse relation pairing constraints. When equipment status attributes or the relationship between equipment and production lines are added, deleted, or modified, the ontology update needs to handle the directly changed assertions and their associated constraints simultaneously.
[0003] For local changes, existing methods use neighborhood expansion with a fixed number of hops or indiscriminate graph traversal to estimate the affected area, and then check whether the relevant assertions meet the rules. Fixed hops are used to extract the range based on the adjacency distance, and indiscriminate traversal is used to expand the range based on graph connections. The resulting range usually does not retain information about the type of dependency of each element.
[0004] However, when device attribute changes are associated with constraint endpoints on the neighborhood boundary, the above-mentioned range determination method makes it difficult to make the affected range correspond to the actual constraint check range involved in this change. If the truncation is too small, key constraint endpoints may be missed, and if the traversal is expanded, irrelevant elements will be included and the overhead of subsequent rule checks will be increased. Therefore, it is difficult to complete targeted local updates while keeping the declared constraints valid. Summary of the Invention
[0005] This application aims to address the problem that when the dynamic ontology of the assertion layer undergoes local changes, the affected scope is difficult to correspond with the actual relevant constraint check scope, leading to the omission of constraint endpoints or the increase of irrelevant processing.
[0006] This application provides a dynamic ontology incremental evolution method based on change event-driven approach, applied to an assertion-layer dynamic ontology stored in triples. The assertion-layer dynamic ontology maintains executable rule constraints for attribute types, enumeration ranges, cardinality, and inverse relation pairings. The method executes the following processes sequentially.
[0007] Convert business operations (addition, deletion, modification) into standardized change events. Select allowed dependency edges based on the operation type of the standardized change event to obtain the propagation operator.
[0008] Based on the standardized change events and propagation operators, the target entities and the directly rewritten assertions are labeled with influence annotations including source point identifiers, edge family identifiers, and hierarchical levels. Elements are retrieved from the priority worksheet in ascending order of hierarchical level and expanded along allowed dependency edges. Access keys composed of element identifiers and edge family identifiers are used to suppress repeated expansion until the priority worksheet is empty, resulting in an labeled affected ontology subgraph.
[0009] Based on the labeled affected ontology subgraph, structural cut boundaries and constraint reference boundaries are divided, updated in the pre-visualization subgraph of the isolated working area, and the subgraph outside read-only triples of the two types of boundary connections are included to obtain the boundary verification view.
[0010] Based on the boundary verification view, select the constraint subset that intersects with the edge family that affects the annotation, and obtain the verification result through attribute type, enumeration range, incremental cardinality count, and inverse relation witness check.
[0011] Based on the verification results, if the verification passes, an incremental patch of the positive and negative ontology with preconditions for operation binding is generated. Only incremental triple transactions within the subgraph are committed and the version is registered to obtain the updated assertion layer dynamic ontology; if the verification fails, the commit is rejected.
[0012] In one possible implementation, the standardized change event includes at least an event identifier, operation type, target entity identifier, attribute or relation identifier, value before change, value after change, and base version number; the dependency edge records the source element identifier, target element identifier, edge type, propagation cost, and hierarchical level; the propagation operator reads the propagation rule table according to the operation type to obtain a set of allowed dependency edge types, and sorts the candidate dependency edges at the same level in ascending order according to the propagation cost; for attribute value modification, expansion is carried out along constraint reference edges at lower hierarchical levels, and along direct relation edges at higher hierarchical levels; for relation assertion addition or deletion, expansion is allowed along relation edges, inverse relation pairing edges, and constraint reference edges; for enumerated value domain or cardinality constraint directory update, expansion is allowed along attribute reference edges and assertion instance edges, and candidate elements are not generated for edge types that are not allowed.
[0013] In one possible implementation, based on standardized change events and propagation operators, impact labels containing source node identifiers, edge family identifiers, and hierarchical levels are added to the target entity and directly rewritten assertions. Elements are retrieved from the priority worksheet in ascending order of hierarchical level and expanded along allowed dependency edges. Access keys composed of element identifiers and edge family identifiers are used to suppress repeated expansion until the priority worksheet is empty, resulting in an labeled affected ontology subgraph. This includes: using the target entity and directly rewritten assertions as initial seeds, with the seed itself as the source node, adding seed edge family identifiers and initial hierarchical levels, pushing them onto the priority worksheet, and registering the access keys; popping the element with the smallest hierarchical level from the priority worksheet, querying the dependency edges allowed by the propagation operators in the dependency directory, and obtaining candidate elements; based on the candidate elements, recording the current element identifier, the edge family identifier corresponding to the dependency edge, and the hierarchical level in the new impact label to obtain candidate access keys; based on the candidate access keys, registering candidate elements and new impact labels and adding them to the table if not visited, and skipping the corresponding candidates if visited; when the worksheet is empty, a labeled affected ontology subgraph containing the initial seed and expanded elements is obtained.
[0014] In one possible implementation, structural cut edges and constraint reference boundaries are defined based on the labeled affected ontology subgraph. The subgraph is then updated within the isolated working area, and read-only triples connecting the two types of boundaries outside the subgraph are included to obtain a boundary verification view. This includes: classifying nodes in the labeled affected ontology subgraph that have structural connections with nodes outside the subgraph as structural cut edges, and classifying constraint endpoints touched by constraint reference edges as constraint reference boundaries; retrieving triples connected to the two types of boundaries and located outside the subgraph from ontology storage based on the structural cut edges and constraint reference boundaries to obtain read-only boundary data; and obtaining the boundary verification view based on the read-only boundary data and the updated subgraph triples in the isolated working area. No modified subgraph triples are written during the pre-playing and submission processes.
[0015] In one possible implementation, based on the boundary verification view, a subset of constraints intersecting with the edge families affected by the annotation is selected. The verification result is obtained through checks on attribute type, enumeration range, incremental cardinality count, and inverse relation witnesses. This includes: extracting the set of edge family identifiers from the labeled affected ontology subgraph; selecting executable rule constraints that intersect with this set among associated edge families to obtain a constraint subset; checking the attribute type and enumeration range on the boundary verification view based on the constraint subset; counting the cardinality of boundary entities by increasing the count only based on the number of newly added assertions in this rehearsal and decreasing the count based on the number of deleted assertions, and comparing it with the upper and lower bounds of the constraints; checking whether positive and negative assertions appear in pairs or are deleted in pairs in the boundary verification view through the inverse relation witness table to obtain the verification result; the checks do not perform complete description logic reclassification.
[0016] In one possible implementation, when the verification result fails, a conflict report is output; the conflict report includes conflict type, conflict node identifier, conflict triple identifier, violated constraint identifier, impact label that triggered the conflict, and suggested handling action; the conflict type includes attribute type conflict, enumeration range conflict, cardinality conflict, and inverse relation pairing conflict, and the impact label that triggered the conflict is used to associate the conflicting object with the dependency edge family that includes it in the labeled affected ontology subgraph.
[0017] In one possible implementation, the ontology incremental patch includes a patch identifier, an event identifier, a starting version number, a target version number, an affected subgraph identifier, an impact annotation summary, a forward operation sequence, a reverse operation sequence, a set of preconditions, and a boundary check result. The preconditions include at least one of a version number consistency condition, a triple existence condition, a triple non-existence condition, and an attribute old value matching condition. The forward operation sequence records the addition or deletion operations of triples within the subgraph, and the reverse operation sequence records the reverse operations used to undo the corresponding forward operations. When a rollback request arrives, the corresponding reverse operations are executed in the reverse order of the forward operations, and the corresponding preconditions are checked at each step. If the preconditions are not met, the rollback is stopped and a failure message is output.
[0018] In one possible implementation, before the transaction is committed, the current version number of the assertion layer dynamic ontology is compared with the baseline version number in the standardized change event to obtain a version comparison result. Based on the version comparison result, if the versions are inconsistent, the labeled affected ontology subgraph is recalculated based on the latest version, the structural cut edge boundaries and constraint reference boundaries are re-divided, a boundary verification view is constructed, and constraint verification is performed to obtain an updated verification result. Based on the updated verification result, if it passes, a corresponding ontology incremental patch is generated and committed; if it fails, the commit is rejected. Duplicate commits are identified based on the event identifier in the standardized change event, and duplicate commits with the same event identifier do not generate a new version number.
[0019] This application also provides a dynamic ontology incremental evolution system based on change event driving, used to execute the above method, including a change event normalization module, a hierarchical annotation propagation module, a constraint projection verification module, an incremental patch submission and rollback module, as well as ontology storage, dependency directory library, witness index library and patch version library; each module respectively forms standardized change events and propagation operators, calculates the labeled affected ontology subgraph and divides two types of boundaries, constructs boundary verification views and performs projection constraint checks, and generates and submits forward and reverse ontology incremental patches with preconditions and performs rollback.
[0020] This application also provides a computer-readable storage medium on which a computer program stored is executed by a processor to implement the above-described method; where there is no logical conflict, the technical features of the various implementation methods described above can be combined with each other.
[0021] Beneficial effects This application instantiates propagation operators based on the operation type of standardized change events, performs hierarchical expansion according to allowed dependent edges, and suppresses repeated expansion through access keys composed of element identifiers and edge family identifiers. Since the affected elements retain the source point, edge family, and hierarchical level, and use the empty priority worksheet as the stopping condition, it can form an labeled affected ontology subgraph according to the dependency relationship corresponding to the change type, providing a specific basis for subsequent constraint selection, reducing the omission of relevant endpoints caused by fixed hop count truncation and irrelevant processing caused by indiscriminate expansion.
[0022] This application will rehearse the updated sub-system within the isolated work area. Figure 3 The subgraph outside read-only triples connected to the two types of boundaries form a boundary verification view. Then, the intersecting constraint subsets are selected according to the edge families that affect the annotation. Since the inspection object contains both local changes and relevant boundary facts, and incremental cardinality counting and inverse relation witnessing are used, cross-boundary constraints can be checked while keeping the subgraph outside triples from being rewritten, reducing rule scanning unrelated to the current change and repeated counting of historical assertions.
[0023] This application controls the submission based on the verification results, generating positive and negative ontology incremental patches with preconditions for operation binding only after the verification passes, and committing and registering versions for incremental triple transactions within the subgraph. Submission is rejected when the verification fails. By linking local write restrictions with boundary constraint checks, the risk of local updates that fail the relevant constraint checks entering ontology storage can be reduced. Positive and negative operations and preconditions also provide a basis for controlled rollback. Attached Figure Description
[0024] Figure 1 This is a schematic diagram of the overall process of the dynamic ontology incremental evolution method provided in the embodiments of this application.
[0025] Figure 2 This is a schematic diagram of the hierarchical annotation dependency propagation process provided in an embodiment of this application.
[0026] Figure 3 This is a schematic diagram illustrating the relationship between the affected ontology subgraph and the boundary verification view, provided for an embodiment of this application.
[0027] Figure 4 This is a schematic diagram of the constraint projection and conflict detection process provided in the embodiments of this application.
[0028] Figure 5 This is a schematic diagram of the ontology incremental patch submission and rollback process provided in the embodiments of this application.
[0029] Figure 6 A schematic diagram of the dynamic ontology incremental evolution system structure provided in the embodiments of this application. Detailed Implementation
[0030] The following is combined with Figures 1 to 6 The specific implementation of this application is described below. The same technical object is referred to by the same name in each embodiment. The modules shown in the figure are used to illustrate the functions and data relationships. The size of the figure does not represent the actual deployment ratio. The following embodiments focus on the local update of the dynamic ontology of the assertion layer. All processes are executed by the corresponding modules in the dynamic ontology incremental evolution system.
[0031] The assertion-layer dynamic ontology in this application is an ontology data set that takes existing entity facts, attribute facts, and relation facts as its processing objects. Entity triples are used to record entity facts, attribute assertion triples are used to record that an entity has a certain attribute and its value, and relation assertion triples are used to record the fact that entities are connected by a certain relation. Each triple contains a subject, a predicate, and an object. The attribute value is the object of the corresponding attribute assertion, and the entity pointed to by the relation is the object of the corresponding relation assertion.
[0032] The ontology storage stores the above triples, which can be implemented using a resource description framework data repository or a side table that records the subject, predicate, and object. Both implementations provide the local update process with the ability to locate assertions according to entity identifiers, attribute identifiers, and relation identifiers. Subsequent propagation, verification, and patching processes use the same entity and assertion identifiers, thereby ensuring consistency of the processed objects under different storage formats.
[0033] The system maintains an executable rule constraint directory, which stores attribute type constraints, enumeration range constraints, cardinality constraints, and inverse relation pairing constraints. Attribute type constraints limit the data type of attribute values, enumeration range constraints limit the allowed attribute values, cardinality constraints limit the upper and lower bounds of the number of specified attributes or relation assertions of the corresponding entity, and inverse relation pairing constraints limit the pairing state that positive relation assertions and negative relation assertions should maintain.
[0034] The executable rule constraints mentioned above apply to assertion states that can be directly checked. The conflict detection described in this paper does not perform full description logic reclassification, nor does it perform axiom automatic repair. The system does not rely on large models, deep learning, or full description logic classifiers. Therefore, each propagation and verification result is jointly determined by the dependency directory, rule constraints, and the current add, delete, and modify operations.
[0035] The dependency directory is used to represent the dependencies between ontology elements related to local updates. The elements can be entities, attribute assertions, relation assertions, or constraint endpoints. A dependency edge records at least the source element identifier, target element identifier, edge type, propagation cost, and hierarchical level. The source element identifier and target element identifier determine the two processing objects connected by the edge. The edge type determines which type of dependency the connection belongs to. The hierarchical level and propagation cost are used to arrange the processing order of candidate extensions.
[0036] Dependency edge types include constraint reference edges, direct relation edges, relation edges, reverse relation pairing edges, attribute reference edges, and assertion instance edges. Constraint reference edges represent the reference relationship between an element and the constraint endpoint of an executable rule. Direct relation edges and relation edges represent the dependencies generated by relation connections. Reverse relation pairing edges represent the pairing dependency between a positive assertion and its corresponding negative assertion. Attribute reference edges and assertion instance edges are used to locate referenced objects and assertion instances by attributes or corresponding directory entries.
[0037] Edge family identifiers are used to classify dependent edges according to the categories in which they participate in propagation and constraint verification. For example, constraint reference class, relation class, and attribute class correspond to the influence reasons of constraints, relations, and attributes, respectively. The correspondence between specific dependent edge types and edge families is determined by the type classification in the directory. During propagation, this correspondence is read out so that the influence of the same category can be used to select relevant constraints without having to interpret the edge family as the physical distance between ontology elements.
[0038] The hierarchical level is a sequence marker for the propagation process, and the propagation cost is a relative cost marker used for sorting within the same level. In this method, both are used to compare the order and are not used as actual time consumption or physical distance. The initial level and relatively low and high dependency levels are used to distinguish priorities. Candidates at the same level are processed in ascending order of propagation cost. Candidates with the same level and cost are not excluded because of this same state, and are still determined to be expanded item by item according to the access key.
[0039] The system also maintains a reverse relationship witness table and an optional cardinality cache. The reverse relationship witness table provides an index for finding the corresponding reverse relationship assertion from the forward relationship assertion. The cardinality cache stores the existing assertion count of an entity on a specified attribute or relationship. The witness index and the existing count provide a search basis for subsequent local checks. The actual verification is still based on the assertion status in the boundary verification view formed in this rehearsal.
[0040] See Figure 6 The system includes a change event normalization module 110, a hierarchical annotation propagation module 120, a constraint projection verification module 130, and an incremental patch submission and rollback module 140, and is configured with an ontology storage 210, a dependency directory library 220, a witness index library 230, and a patch version library 240. The output of the change event normalization module 110 is used by the hierarchical annotation propagation module 120, the propagation results are used by the constraint projection verification module 130, and the verification results are used by the incremental patch submission and rollback module 140 to determine whether to perform a partial write.
[0041] In the equipment operation and maintenance ontology, the status attributes of the equipment and the relationship between the equipment and the production line to which the equipment belongs are represented by different assertions. The status values are constrained by the enumeration value range. The forward and reverse relationships between the equipment and the production line may also be constrained by cardinality and reverse relationship pairing. Although a certain business change only directly rewrites one attribute assertion, the verification of the assertion may require reading the constraint endpoints or adjacent facts connected to it.
[0042] When extracting the neighborhood with a fixed number of hops, whether to visit the constraint endpoint depends on the adjacency distance between the endpoint and the seed, but this distance does not directly indicate whether the endpoint is related to the current change. When using indifference graph traversal, the system may continue to access along connections that are unrelated to the current change, causing the subsequent verification range to expand with the traversal range. In both of these cases, the range determination stage is difficult to provide a clear reason for the influence of the constraint check stage.
[0043] In this embodiment, the dependent edges that are allowed to propagate are determined by the standardized change event, the influence label of each extended element is retained, and the edge family in the label is used to further select executable rule constraints. By making the output of the range determination stage directly become the input of the verification range selection stage, the system can connect the propagation and verification around the same local change and restrict the submission to the subgraph determined by this process.
[0044] See Figure 1 The overall process includes steps S101 to S105 in sequence; step S101 forms a standardized change event and instantiates the propagation operator; step S102 calculates the labeled affected ontology subgraph according to the level and access key; step S103 divides the structural cut edge boundary and constraint reference boundary and constructs the boundary verification view; step S104 projects the relevant constraints according to the affected label and obtains the verification result; step S105 rejects the submission or generates an ontology incremental patch and completes the local transaction submission according to the verification result.
[0045] Standardized change events provide the target, operation, and baseline version of this processing; the labeled affected ontology subgraph provides the scope and constraint selection basis for local pre-simulation; the boundary verification view provides the changed facts and boundary facts used during verification; and the verification results provide the basis for whether submission is allowed. Each step reuses the output of the previous step to avoid using a different write scope that is inconsistent with the propagation results at the submission stage.
[0046] In step S101, the change event normalization module 110 collects the addition, modification and deletion operations of business data and converts the business operations into standardized change events for the dynamic ontology of the assertion layer. The standardized change event records at least the event identifier, operation type, target entity identifier, attribute or relationship identifier, value before change, value after change and base version number. The event identifier is used to associate the propagation, verification and patch records of the same business change, and the base version number indicates the ontology version on which this change is based.
[0047] For attribute value modification, the target entity identifier is used to locate the entity to which the attribute belongs, and the attribute identifier is used to locate the attribute assertion to be modified. The value before the change and the value after the change are used to identify the old assertion and generate the new assertion, respectively. For the addition or deletion of relation assertions, the relation identifier and the connected entity jointly locate the relation assertion, so that the propagation phase can start from the directly changed entity and assertion and expand.
[0048] For example, an event identifier for a device status modification is EVT-20241118-001, the operation type is attribute value modification, the target entity identifier is EQ-0317, the attribute identifier is status, the value before the change is standby, and the value after the change is running, and the base version number is V102; this event associates the status attribute change of device EQ-0317 with existing assertions in version V102, and subsequent processing revolves around deleting the old status assertion and adding the new status assertion.
[0049] The change event standardization module 110 reads the propagation rule table according to the operation type of the standardized change event and instantiates the propagation operator corresponding to this change. The propagation rule table records the operation type, starting element type, allowed dependency edge type, propagation direction, hierarchical level, whether cross-constraint node propagation is allowed, and propagation cost. The propagation operator obtains these fields according to the matched operation type and starting element type, which are used to determine whether the candidate dependency edge can generate the next hop seed and its impact label.
[0050] In the implementation of attribute value modification, the propagation rule table arranges constraint reference edges at lower hierarchical levels and assigns them relatively low propagation costs, while arranging direct relationship edges at higher hierarchical levels and assigning them relatively high propagation costs. For example, if the level of constraint reference edges is 0 and the level of direct relationship edges is 1, the constraint-related endpoints can be processed before the corresponding structural neighborhoods. The propagation cost is only responsible for the relative ordering of candidates at the same level and does not change the judgment of whether the edge type is allowed.
[0051] In the implementation of adding or deleting relation assertions, the propagation rule table allows expansion along relation edges, reverse relation pairing edges, and constraint reference edges; relation edges bring relation-connected objects into the candidate range, reverse relation pairing edges make the corresponding pairing assertions subject to inspection, and constraint reference edges bring rule endpoints related to relation changes into the scope of influence, thereby preserving relevant objects for subsequent cardinality and reverse relation pairing checks.
[0052] In the implementation of enumerated value range or cardinality constraint catalog updates, the propagation rule table allows expansion along attribute reference edges and assertion instance edges, locating the assertions that need to be checked through the correspondence between catalog entries and attribute reference objects and assertion instances; this expansion still targets the assertion state affected by catalog changes, and does not extend to complete description logic reclassification or axiom automatic repair.
[0053] During the propagation process, no candidate elements are generated for edges that are not included in the set of allowed dependency edge types. When it is necessary to determine the propagation across constraint nodes, the corresponding field of the propagation rule table determines whether to continue extending along the allowed dependency edge of that node. The propagation direction reads the adjacent edges in the dependency directory according to the direction specified in the rule table, so that the edge selection rule can be executed edge by edge after the event is formed.
[0054] In step S102, the hierarchical annotation propagation module 120 receives the standardized change event and propagation operator, and determines the initial seed from the target entity identifier, attribute or relation identifier and direct rewrite assertion in the event; the direct rewrite object is a component of the affected ontology subgraph, and the extended elements obtained from propagation are added on this basis, so the limitation of only writing data in the subgraph in the future will not exclude the current business change itself.
[0055] See Figure 2 At the start of propagation, an empty priority worksheet and visited set are created, and an initial influence label is attached to each initial seed. The source point identifier of the initial influence label is taken from the seed's own identifier, the edge family identifier is taken from the seed's edge family identifier, and the hierarchical level is taken from the initial level. The labeled seeds are pushed into the priority worksheet, and the access key composed of the seed element identifier and the seed edge family identifier is registered in the visited set.
[0056] Each record to be processed in the priority worksheet contains an element identifier, an influence label, and a propagation cost for sorting. The influence label includes a source node identifier, an edge family identifier, and a hierarchical level. The worksheet first compares the hierarchical levels, and records with lower levels are taken first. If the levels are the same, the propagation costs are compared, and records with lower costs are taken first, so that the priority order given by the rule table actually takes effect on successive propagation.
[0057] When the priority worksheet is not empty, the hierarchical annotation and propagation module 120 retrieves the record with the highest current priority, obtains the current element and its influence annotation, and then queries the dependency directory for dependency edges that start from the current element, conform to the propagation direction, and are allowed by the propagation operator. For each allowed dependency edge, its target element is taken as a candidate element, and the edge family identifier, hierarchical level, and propagation cost corresponding to the edge are read.
[0058] When generating new impact labels for candidate elements, the current element identifier is recorded as the source node identifier, the edge family identifier corresponding to the current dependent edge is recorded as the edge family identifier, and the hierarchical level of the current dependent edge is recorded as the hierarchical level. This label records which current element the candidate element entered the scope of influence from and through which type of dependency. Subsequent constraint projection uses the edge family information in it, and conflict reports can use this label to trace the dependency relationship that led to the inclusion of the current inspection object.
[0059] For candidate elements, the candidate element identifier and the edge family identifier in the new impact label are combined into a candidate access key. The candidate access key is queried in the visited set. If it has not been visited, the candidate access key is registered, the candidate element and the new impact label are added to the labeled affected set, and the candidate element is pushed into the priority work table according to its level and cost. If it has been visited, the duplicate registration and duplicate table entry of the candidate element under this edge family are skipped.
[0060] When the same element is reached through different edge families, its candidate access keys are different, so the influence labels corresponding to different edge families can be retained; when the same element is reached again through the same edge family, its candidate access keys are the same, so it is not expanded again. This process retains the distinction between constraint reference reasons and relational adjacency reasons, while suppressing the same type of repeated processing caused by repeated paths or loops.
[0061] After each candidate processing is completed, the priority worksheet is checked and the next record is retrieved until the priority worksheet is empty. Within the scope of the dependency directory read in this processing, the number of combinations of elements and edge families is limited. Each access key is entered into the table only when it appears for the first time. An empty worksheet means that there are no records of allowed extensions yet to be processed. The initial seed and the registered extension elements, along with their respective influence labels, are determined as the labeled affected ontology subgraph.
[0062] When an initial seed has no adjacent dependent edges allowed by the propagation operator, no new candidate records will be generated after the seed is removed, and the worksheet can be empty after the other records have been processed. The initial seed still belongs to the affected ontology subgraph, and subsequent checks are only carried out on the actual relevant boundaries and projection constraints, without adding an extra fixed number of hops to fill the neighborhood.
[0063] After propagation is completed, the hierarchical annotation propagation module 120 checks the connection relationship between each element in the affected ontology subgraph and the node outside the subgraph. If a node in the subgraph is connected to a node outside the subgraph through a structural connection, the node in the subgraph is classified as a structural cut edge boundary. If a constraint endpoint is touched through a constraint reference edge, the constraint endpoint is classified as a constraint reference boundary, thus obtaining the structural cut edge boundary and the constraint reference boundary respectively.
[0064] The two types of boundaries respectively represent the location where the structural connection crosses the subgraph and the location where the constraint reference reaches. Boundary classification is used to locate read-only boundary data and does not directly generate write operations outside the subgraph. When the same object meets the classification conditions of both types of boundaries at the same time, when constructing the verification view, its associated external triplet is read and it still participates in the verification as the same triplet. It is not interpreted as needing to modify the object repeatedly when it is classified into the two types of boundaries.
[0065] Taking a device status modification event as an example, the seed is determined by the direct overwrite assertion of the device EQ-0317 and the status attribute. At level 0, the enumerated constraint endpoints of status are included along the constraint reference edge, and at level 1, elements related to the belongsToLine relationship are included along the direct relationship edge. The example scope contains 17 elements, the structural cut edge boundary contains 5 nodes, and the constraint reference boundary contains 2 endpoints. These numbers are used to illustrate the composition of a local scope. The specific scope is determined by the dependency directory and propagation rules corresponding to this event.
[0066] In step S103, the constraint projection verification module 130 receives the labeled affected ontology subgraph, structural cut boundary, and constraint reference boundary, and rehearses the standardized change event in the isolated work area. The isolated work area saves the state in the subgraph corresponding to the change to be committed. During the rehearsal stage, only the relevant triples in the work area are changed. The committed state in the ontology storage is not rewritten due to the rehearsal before the verification is passed and the transaction is committed.
[0067] For attribute value modification, the constraint projection verification module 130 locates the old attribute assertion in the isolated work area, with the subject as the target entity, the predicate as the attribute to be rewritten, and the object as the value before the change. It then pre-deletes the old attribute assertion and pre-deletes the new attribute assertion with the subject and predicate unchanged and the object as the value after the change. For the addition or deletion of relation assertions, the module pre-deletes the addition or deletion of the corresponding triples according to the target relation identified by the event and the connected object, and obtains the updated triple state in the subgraph.
[0068] See Figure 3 The constraint projection verification module 130 reads the triples connected to these two types of boundaries and not belonging to the affected ontology subgraph from the ontology storage based on the structural cut boundary and constraint reference boundary, and obtains read-only boundary data. The read-only boundary data is associated with the updated subgraph triples in the isolated work area according to the corresponding entities and relations to form a boundary verification view, so that the verification can simultaneously observe the facts after local changes and the relevant facts outside the subgraph.
[0069] In the boundary verification view, the part inside the subgraph adopts the assertion state after this rehearsal. Therefore, old assertions that have been deleted in the rehearsal are no longer considered as valid assertions for the check, and new assertions that have been added in the rehearsal are considered as candidate commit states for the check. The part outside the subgraph adopts read-only triples read from the ontology storage. The rehearsal, patch generation and commit do not rewrite this read-only part as the object written in this time.
[0070] In the boundary example of equipment operation and maintenance, equipment EQ-0317 is located within the affected ontology subgraph, and production line PL-B01 is located outside the subgraph. The two are associated at the structural cut edge boundary through the belongsToLine relationship. The constraint projection verification module 130 includes the PL-B01 triple related to this boundary in the boundary verification view in read-only mode to check the inverse relationship pairing status or production line side cardinality. This patch still does not modify the PL-B01 subgraph outside triple.
[0071] This boundary example illustrates the read-only check method when the production line remains outside the subgraph. Whether a specific propagation includes production line-related elements in the subgraph is determined by the allowed dependent edges and their access results. Structural connections allow facts outside the subgraph to participate in the verification, but do not automatically grant these facts write permissions. Therefore, the scope of the check and the scope of the write can be clearly limited.
[0072] If the pre-run state needs to be paired with an assertion outside the subgraph to satisfy the relevant constraints, the constraint projection verification module 130 makes a judgment based on the read-only assertion actually read and the pre-run state inside the subgraph. If the pairing or cardinality check fails, the verification result is output and the submission is rejected. The conflict is not eliminated by modifying the triplet outside the subgraph during the verification phase, thereby maintaining the write boundary of the local update.
[0073] In step S104, the constraint projection verification module 130 extracts all the edge family identifiers that have appeared from the labeled affected ontology subgraph and removes duplicate edge family identifiers to obtain the set of edge family identifiers affected this time; then it reads the edge families associated with each constraint in the executable rule constraint directory, compares the constraint-associated edge families with the set of edge family identifiers affected this time item by item, and selects them if there is at least one identical edge family, otherwise it does not select them, thus obtaining a constraint subset.
[0074] The input to the constraint projection is the actual influence label formed during propagation, and the output is the subset of executable rule constraints that need to be executed this time. For example, when constraint class and relation class edge families appear in the influence label, the enumeration range, cardinality and inverse relation pairing constraints related to these edge families can be selected. The far-end constraints that do not intersect with the edge families in this time will not enter the subset. Therefore, the rule scan corresponds to the dependency reasons of the propagation record in this time.
[0075] See Figure 4 The constraint projection verification module 130 performs corresponding checks on the attribute types, enumeration ranges, cardinality and inverse relation pairing constraints existing in the constraint subset. Constraints not selected are not executed in this projection verification. The checks use the facts in the boundary verification view and do not directly determine the update validity based on the old state that has not yet been reflected in the ontology storage.
[0076] For attribute type constraints, the attribute identifier and allowed data types of the constraint are read, the relevant attribute assertions in the boundary verification view are located, and their values are checked to see if they conform to the data types declared in the constraint, resulting in a pass or attribute type conflict. For enumerated value range constraints, the allowed value set of the corresponding attribute in the catalog is read, and the actual values after the pre-propagation are compared with the allowed values one by one. If they belong to the set, they pass; otherwise, an enumerated value range conflict is obtained. The allowed values come from the existing constraint catalog and are not temporarily generated by this propagation.
[0077] For cardinality constraints, the counting object is located by the boundary entity identifier and the constrained attribute or relation identifier. The corresponding existing cardinality and the lower and upper bounds specified in the rule catalog are read. The existing cardinality represents the number of valid assertions of the entity on the attribute or relation before the pre-run, which can be provided by the maintained cardinality cache. The incremental cardinality counter records the quantity change of the counting object caused by this pre-run.
[0078] The constraint projection verification module 130 reads each of the newly added and deleted assertions involved in this rehearsal one by one. For newly added assertions belonging to the current counting object, the corresponding count is increased, and for deleted assertions belonging to the current counting object, the corresponding count is decreased. First, the existing cardinality is added to the number of newly added assertions, and then the number of deleted assertions is subtracted to obtain the cardinality after the rehearsal. The cardinality after the rehearsal is compared with the lower and upper bounds of the constraint. If it is not less than the lower bound and not greater than the upper bound, it passes; otherwise, a cardinality conflict is obtained.
[0079] The existing base, the number of newly added assertions, the number of deleted assertions, and the upper and lower bounds of constraints are all measured in terms of the number of assertions. The base is a non-negative integer. If no new or deleted assertions are added to the specified count object in a certain pre-run, the corresponding increment is zero. Only the current change is accumulated on the basis of the existing count, so that successive verification does not need to rescan all the historical assertions of the entity for each local event. However, this process is based on the baseline assertion state corresponding to the existing count.
[0080] For reverse relation pairing constraints, read the reverse relation corresponding to the current forward relation in the constraint directory, swap the start entity and end entity of the forward assertion, and replace the forward relation identifier with the corresponding reverse relation identifier to obtain the reverse assertion that should exist; the constraint projection verification module 130 queries the reverse relation witness table accordingly, locates the reverse assertion, and checks whether it exists in the boundary verification view in conjunction with the addition and deletion status of this rehearsal.
[0081] When a positive assertion is added or continues to exist during a pre-test, check whether the corresponding negative assertion appears in pairs in the boundary check view. When a positive assertion is deleted during a pre-test, check whether the paired negative assertion is deleted synchronously. The current pairing cannot be considered valid just because there are still historical index records in the witness table, nor can the fact that the pairing has been added or deleted in this pre-test be ignored. The result of the check is either pass or reverse relationship pairing conflict.
[0082] If a constraint requires pairwise deletion, and the relevant reverse assertion is located in a read-only region outside the subgraph and still exists, then the current boundary verification view does not meet the pairwise deletion condition, and the verification fails. The constraint projection verification module 130 refuses to submit and reports a reverse relation pairing conflict, so that the existence of the read-only boundary can prevent the writing that violates the constraint without triggering data modification outside the subgraph.
[0083] After completing all checks on the constraint subset, a pass result is obtained when all checked constraints pass, and a failure result is obtained when any checked constraint fails. This result only applies to the current projection constraints and the boundary check view used. It is not equivalent to performing a complete description logic reclassification on the ontology, nor does it represent a re-verification of all rules that are unrelated to the current change.
[0084] When the verification fails, the constraint projection verification module 130 outputs a conflict report, recording the conflict type, conflict node identifier, conflict triplet identifier, violated constraint identifier, impact annotation that triggered the conflict, and suggested handling actions. The conflict type distinguishes between attribute type conflict, enumeration range conflict, cardinality conflict, and inverse relation pairing conflict. The impact annotation is used to associate the failed constraint with the corresponding impact cause. The suggested handling actions are only output with the report and are not used as the basis for automatically repairing axioms or rewriting subgraph external assertions.
[0085] In step S105, the incremental patch submission and rollback module 140 receives the verification result. If the verification fails, it refuses to submit the current rehearsal update to the ontology storage. If the verification passes, it generates an ontology incremental patch based on the difference in assertions within the subgraph before and after the rehearsal. Assertions that need to be added form an add operation, and assertions that need to be deleted form a delete operation. Assertions that have not changed are not fully rewritten because they belong to the affected ontology subgraph.
[0086] See Figure 5 The ontology incremental patch record includes patch identifier, event identifier, starting version number, target version number, affected subgraph identifier, impact annotation summary, forward operation sequence, reverse operation sequence, precondition set, and boundary verification results. The patch identifier locates a patch record, the event identifier relates to business changes, the starting version number and target version number indicate version changes, the affected subgraph identifier locates the local processing range, and the impact annotation summary records the seed, constraint, and relationship impact information involved in this range.
[0087] The impact annotation summary can record the seed annotation corresponding to device EQ-0317, the constraint class annotation corresponding to the state enumeration constraint endpoint, and the relationship class annotation corresponding to the production line connection. These records are derived from the impact reasons retained in this hierarchical annotation propagation. When reviewing the patch later, you can use this to associate why this submission involves the corresponding elements. The summary does not replace the triplet objects explicitly recorded in the operation sequence.
[0088] When generating the forward operation sequence, the old triples to be deleted and the new triples to be added are arranged in the order required by the pre-update. For the forward addition operation, the reverse operation to delete the same triple is generated. For the forward deletion operation, the reverse operation to restore the same triple is generated. This forms the reverse operation sequence used to undo the corresponding forward operation, so that the rollback can restore the assertion state changed by this patch.
[0089] Each operation is bound to a corresponding precondition. The precondition can be at least one of the following: version number consistency condition, triple existence condition, triple non-existence condition, and attribute old value matching condition. The version number consistency condition restricts the operation to the expected version state, the triple existence or non-existence condition restricts the current existence state of the operation object, and the attribute old value matching condition enables the attribute rewriting to verify the expected old value. The version, triple, and old value in the condition are taken from the assertion state described by the corresponding event and patch, respectively.
[0090] Before committing, the incremental patch commit and rollback module 140 reads the current version number of the dynamic ontology in the assertion layer and compares it with the base version number in the standardized change event. When the two are consistent and the preconditions for the commit operation are met, the incremental triplet in the affected ontology subgraph is written to the ontology storage in a transactional manner, and the new version number and patch identifier are registered at the same time, so that the positive operation takes effect in a local atomic commit.
[0091] If the current version number is inconsistent with the base version number, it means that the state on which the previous propagation and rehearsal were based has changed. The incremental patch submission and rollback module 140 does not directly use the old verification results for writing. The system re-executes the hierarchical annotation propagation, boundary division, isolation rehearsal, boundary verification view construction and constraint check based on the latest version, and then generates the corresponding patch or rejects the submission based on the updated verification results, so that the submission is consistent with the base state it adopts.
[0092] For repeated submissions of the same event identifier, the incremental patch submission and rollback module 140 identifies whether the event has been submitted based on the registered event identifier and patch version record. The same event identifier will not generate a new version number due to repeated arrival. The event identifier is thus integrated through normalization, patch generation and version registration, and can distinguish between repeated submissions and submissions caused by different business changes.
[0093] When a rollback request arrives, the incremental patch submission and rollback module 140 obtains the corresponding operation record based on the patch identifier and executes the corresponding reverse operations in the reverse order of the forward operations. Before each execution, the preconditions corresponding to the reverse operation are checked. The step is executed only if the condition is met. If any precondition is not met, the subsequent rollback is stopped and a failure message is output to avoid continuing to roll back in an assertion state that does not meet expectations.
[0094] For a patch that first deletes the old state assertion and then adds the new state assertion, the actual rollback execution order is to first delete the new state assertion and then restore the old state assertion. If the reverse operation record has been arranged in this restoration order, it will be executed in the listed restoration order. The reverse order refers to the undo order of the corresponding forward operation, so that the patch record is consistent with the actual restoration action.
[0095] The rollback preconditions are checked against the assertion states actually required for each reverse operation. When deleting a new state assertion, the existence of the new state assertion is checked. When restoring an old state assertion, the corresponding restoration conditions are checked. The version number consistency condition is checked against the expected version corresponding to the rollback step when it is adopted. The old version conditions before the forward commit are not applied indiscriminately to the rollback steps where the version has changed.
[0096] This embodiment provides a verifiable undo path through reverse operation with preconditions. The mechanism of outputting failure information when the preconditions fail limits the boundaries of rollback and continued execution. This mechanism does not mean that rollback can be performed unconditionally after any subsequent changes occur, nor does it compensate for the failure of the preconditions by automatically rewriting other assertions after a failure.
[0097] Taking event EVT-20241118-001 as an example, the event indicates that the status attribute of device EQ-0317 has been changed from standby to running based on version V102. The corresponding old attribute assertion in the ontology storage consists of device EQ-0317, attribute status, and value standby. The standardized change event also provides the target entity, the attribute to be rewritten, the old and new values, and the base version, so that the input object of this local change can be directly located.
[0098] The change event normalization module 110 reads the propagation rules corresponding to the attribute value modification to obtain the allowed dependency edges and hierarchical arrangement. The hierarchical annotation propagation module 120 uses the device and directly modified state assertions as initial seeds, processes records according to the priority work table, first accesses the state enumeration constraint endpoints through constraint reference edges, and then accesses the production line connection related elements according to the allowed direct relationship edges. Each candidate uses element identifier and edge family identifier to check the accessed state.
[0099] After the priority worksheet is empty, the system outputs the affected ontology subgraph with annotations, and divides the boundaries into two types according to structural connections and constraint references. The constraint projection verification module 130 pre-deletes old state assertions with standby values and adds new state assertions with running values in the isolated work area, and reads the external triples of the subgraphs connected to the two types of boundaries to form a boundary verification view.
[0100] The constraint projection verification module 130 selects a subset of constraints based on the edge families appearing in this annotation, obtains the status type and enumeration value range conditions from the directory, and performs corresponding checks on the running values after the pre-run. When this projection also includes cardinality or inverse relation pairing constraints related to the production line, these checks are performed in the same boundary verification view based on the existing count, the current addition / deletion assertions, and the inverse relation witness table. When the production line is located outside the subgraph, only read-only facts are provided.
[0101] In the example where the above checks pass and the version before submission is still V102, an ontology incremental patch with patch identifier PATCH-103 is generated, the event identifier is EVT-20241118-001, the starting version number is V102, the target version number is V103, the affected subgraph identifier is SG-7781, and the boundary check result is passed; the recorded version number and identifier are used to chain a specific change, and there is no restriction that other events must use the same numbering format.
[0102] The forward operation of this status attribute update is to delete the triple consisting of device EQ-0317, attribute status, and value standby, and then add a triple consisting of device EQ-0317, attribute status, and value running; the reverse operation is to delete the same attribute assertion with the value running, and then restore the old attribute assertion with the value standby. Before committing, you can check that the current version is V102 and that the old status triple exists, and then execute step by step according to the bound conditions.
[0103] After a partial transaction is committed, the device status assertion in the ontology storage becomes running, and V103 and PATCH-103 are registered. When a commit with the same event identifier is received again, no new version number is generated. When a rollback request for the patch is received, the running assertion is checked step by step and the reverse operation is performed in the order of deleting the running assertion and restoring the standby assertion. If the conditions are not met, the subsequent rollback is stopped and a failure message is output.
[0104] If the verification phase finds that the enumeration value is not allowed in the current directory, the system outputs the enumeration value domain conflict and its associated annotation and refuses to commit. The old state will not be written or modified due to the replay in the work area. If the version has changed before the commit, the affected range will be recalculated and the verification will be performed based on the latest version. These two branches handle constraint failure and baseline state change respectively, and do not replace the original process by skipping the verification or expanding the write range.
[0105] A single illustrative impact range may include 17 elements, 5 structural cut edge boundary nodes, and 2 constraint reference boundary endpoints; these quantities describe the propagation results and boundary composition, while the deletion and addition operations of state attributes describe the actual write differences. The number of affected elements, the number of triples read, and the number of triples finally written are calculated using different statistical objects and cannot be directly substituted for each other.
[0106] Table 1 provides example statistics for scenarios involving partial changes to the device operation and maintenance entity, illustrating which metrics can be used to compare the processing scale and submission time of full reconstruction, fixed hop count expansion, and this method. The values in the table are examples and do not constitute a performance guarantee under any data scale or operating environment. The actual operations in the incremental patch are still generated based on the triplet changes in this simulation.
[0107] Table 1. Examples of partial changes to equipment maintenance components.
[0108] See Figure 6 The change event standardization module 110 receives business add, delete, and modify operations, forms standardized change events, and instantiates propagation operators. It provides the event, allowed dependency edges, and sorting rules to the hierarchical annotation and propagation module 120. This module corresponds to step S101, and the event identifier and base version number in its output are used for subsequent patch generation and version submission verification.
[0109] The hierarchical annotation propagation module 120 determines the initial seed based on the standardized change event, reads the dependency edge record from the dependency directory library 220, and maintains the priority worksheet, impact annotations, and access keys composed of element identifiers and edge family identifiers. This module corresponds to the boundary division part in steps S102 and S103, and provides the annotated affected ontology subgraph, structural cut edge boundary, and constraint reference boundary to the constraint projection verification module 130, so that the verification module can locate the pre-playout range and read-only boundary.
[0110] The constraint projection verification module 130 corresponds to the pre-play and view construction in step S103 and step S104. It reads the required subgraph and boundary facts from the ontology storage 210, forms a pre-play state in the isolated work area, and selects a subset of constraints from the executable rule constraint directory according to the influence annotation. This module obtains the inverse relation witness information from the witness index library 230, and completes the relevant constraint checks in combination with the incremental cardinality count. It then passes the verification results and boundary verification information to the incremental patch submission and rollback module 140.
[0111] The incremental patch submission and rollback module 140 corresponds to step S105 and the rollback process. Based on the verification result, it decides whether to reject the submission or generate a forward and reverse ontology incremental patch. Before submission, it checks the version and operation preconditions, performs a local transaction write of the incremental triplet in the subgraph to the ontology storage 210, and registers the patch and version information to the patch version repository 240. During rollback, it reads the corresponding patch from the patch version repository 240, checks the conditions step by step, and performs the corresponding reverse operation.
[0112] Ontology storage 210 stores committed triples of the dynamic ontology of the assertion layer; dependency directory 220 stores dependency records for propagation; witness index 230 stores witness information for reverse relation checking; and patch version repository 240 stores incremental patches and version records. These storage objects provide facts, dependencies, witnesses, and change records, respectively. Modules are associated using the same entity, assertion, event, and patch identifiers, and the processing objects in the methods do not change due to module division.
[0113] In the implementation of the computer-readable storage medium, the storage medium stores a computer program. When the processor executes the computer program, it sequentially completes event normalization, propagation rule selection, hierarchical annotation propagation, boundary verification view construction, constraint projection check, and ontology incremental patch submission. When a rollback request arrives, it performs the aforementioned reverse operation with preconditions. The data objects executed by the program, the read range, and the write boundary are consistent with the above method embodiments.
[0114] The technical features in each implementation can be combined when there is no logical conflict. Attribute value modification, relation assertion addition and deletion, and related constraint directory update should adopt the propagation rules corresponding to their operation types respectively. The combined processing still takes the labeled affected ontology subgraph as the local pre-rehearsal and submission scope, and takes the read-only participation of related triples outside the subgraph as the boundary, without changing the input and output dependencies between each step.
Claims
1. A dynamic ontology incremental evolution method based on change event-driven processes, characterized in that, The method, applied to a dynamic ontology of an assertion layer stored in triples, wherein the dynamic ontology of the assertion layer maintains executable rule constraints of attribute types, enumerated value ranges, cardinality, and inverse relation pairings, includes: Convert business operations (add, delete, modify) into standardized change events, select allowed dependency edges based on the operation type of the standardized change event, and obtain the propagation operator; Based on the standardized change events and propagation operators, the target entities and the directly rewritten assertions are labeled with influence annotations including source point identifiers, edge family identifiers and hierarchical levels. Elements are taken from the priority worksheet in ascending order of hierarchical level and expanded along the allowed dependency edges. Access keys composed of element identifiers and edge family identifiers are used to suppress repeated expansion until the priority worksheet is empty, resulting in an labeled affected ontology subgraph. Based on the labeled affected ontology subgraph, structural cut edges and constraint reference boundaries are divided, updated in the pre-visualization subgraph of the isolated working area, and the subgraph outside read-only triples of the two types of boundary connections are included to obtain the boundary verification view; Based on the boundary verification view, select the constraint subset that intersects with the edge family that affects the annotation, and obtain the verification result through attribute type, enumeration range, incremental cardinality count and inverse relation witness check; Based on the verification results, if the verification passes, an incremental patch of the positive and negative ontology with preconditions for operation binding is generated. Only incremental triple transactions within the subgraph are committed and the version is registered to obtain the updated assertion layer dynamic ontology; if the verification fails, the commit is rejected.
2. The dynamic ontology incremental evolution method based on change event driving according to claim 1, characterized in that, The standardized change event includes at least an event identifier, operation type, target entity identifier, attribute or relationship identifier, value before change, value after change, and base version number; the dependent edge records the source element identifier, target element identifier, edge type, propagation cost, and hierarchical level; The propagation operator reads the propagation rule table according to the operation type to obtain the set of allowed dependency edge types, and sorts the candidate dependency edges at the same level in ascending order according to the propagation cost. For attribute value modification, it expands along constraint reference edges at lower hierarchical levels and along direct relation edges at higher hierarchical levels. For relation assertion addition or deletion, it allows expansion along relation edges, inverse relation pairing edges, and constraint reference edges. For enumeration range or cardinality constraint directory update, it allows expansion along attribute reference edges and assertion instance edges. Candidate elements are not generated for edge types that are not allowed.
3. The dynamic ontology incremental evolution method based on change event driving according to claim 2, characterized in that, The process involves adding influence annotations, including source node identifiers, edge family identifiers, and hierarchical levels, to the target entity and directly rewritten assertions based on standardized change events and propagation operators. Elements are then retrieved from the priority worksheet in ascending hierarchical order and expanded along allowed dependency edges. Access keys composed of element identifiers and edge family identifiers are used to suppress repeated expansion until the priority worksheet is empty, resulting in an annotated affected ontology subgraph, including: Use the target entity and the directly rewritten assertions as the initial seed, with the seed itself as the source point, add the seed edge family identifier and the initial hierarchical level, push them into the priority worksheet and register the access key; Pop the element with the lowest hierarchical level from the priority worksheet, query the dependency edges allowed by the propagation operator in the dependency directory, and get the candidate elements; Based on the candidate elements, the current element identifier, the edge family identifier corresponding to the dependent edge, and the hierarchical level are recorded in the new influence annotation to obtain the candidate access key; Based on the candidate access key, if the candidate element and new influence label are not accessed, they are registered and added to the table; if the candidate has been accessed, the corresponding candidate is skipped. When the worksheet is empty, an labeled affected ontology subgraph containing the initial seed and extended elements is obtained.
4. The dynamic ontology incremental evolution method based on change event driving according to claim 3, characterized in that, The process involves dividing the structural cut boundary and constraint reference boundary based on the labeled affected ontology subgraph, updating it within the isolated working area pre-visualization subgraph, and incorporating the two types of boundary-connected subgraph out-of-graph read-only triples to obtain the boundary verification view, including: Nodes in the labeled affected ontology subgraph that have structural connections with nodes outside the subgraph are classified as structural cut edges, and constraint endpoints touched by constraint reference edges are classified as constraint reference boundaries. Based on the structural cut edge boundary and constraint reference boundary, read the triples that are connected to the two types of boundaries and are located outside the subgraph from the ontology storage to obtain read-only boundary data; Based on the read-only boundary data and the pre-updated subgraph triples in the isolated work area, a boundary verification view is obtained; no modified subgraph triples are written during the pre-run and submission processes.
5. The dynamic ontology incremental evolution method based on change event driving according to claim 4, characterized in that, The process involves selecting a subset of constraints intersecting with the edge family affecting the annotation based on the boundary verification view. The verification results are obtained through checks on attribute type, enumerated value range, incremental cardinality count, and inverse relation witnessing, including: Extract the set of edge family identifiers that appear from the labeled affected ontology subgraph, select the executable rule constraints that intersect with the associated edge families and this set, and obtain the constraint subset; Based on the constraint subset, the attribute type and enumeration range are checked on the boundary verification view; the cardinality count of the boundary entity is increased only by the number of newly added assertions in this rehearsal and decreased by the number of deleted assertions, and compared with the upper and lower bounds of the constraints; the positive and negative assertions are checked in pairs or deleted in pairs in the boundary verification view through the inverse relation witness table to obtain the verification result; the check does not perform complete description logic reclassification.
6. The dynamic ontology incremental evolution method based on change event driving according to claim 5, characterized in that, When the verification result is a failure, a conflict report is output. The conflict report includes the conflict type, conflict node identifier, conflict triple identifier, violated constraint identifier, impact label of triggering the conflict, and suggested handling action. The conflict type includes attribute type conflict, enumeration range conflict, cardinality conflict, and inverse relation pairing conflict. The impact label of triggering the conflict is used to associate the conflicting object with the dependency edge family that includes it in the labeled affected ontology subgraph.
7. The dynamic ontology incremental evolution method based on change event driving according to claim 1, characterized in that, The ontology incremental patch includes a patch identifier, an event identifier, a starting version number, a target version number, an affected subgraph identifier, an impact annotation summary, a forward operation sequence, a reverse operation sequence, a set of prerequisite conditions, and a boundary check result. The prerequisite conditions include at least one of the following: version number consistency condition, triple existence condition, triple non-existence condition, and attribute old value matching condition. The forward operation sequence records the addition or deletion operations of triples within the subgraph, and the reverse operation sequence records the reverse operations used to undo the corresponding forward operation. When a rollback request arrives, the corresponding reverse operation is executed in the reverse order of the forward operation, and the corresponding preconditions are checked at each step. If the preconditions are not met, the rollback is stopped and a failure message is output.
8. The dynamic ontology incremental evolution method based on change event driving according to claim 7, characterized in that, Before the transaction is committed, the current version number of the dynamic ontology of the assertion layer is compared with the baseline version number in the standardized change event to obtain the version comparison result. Based on the version comparison results, when versions are inconsistent, the affected ontology subgraph with annotations is recalculated based on the latest version. The structural cut edge boundaries and constraint reference boundaries are redefined, a boundary verification view is constructed, and constraint verification is performed to obtain the updated verification results. Based on the updated verification results, if the verification passes, the corresponding ontology incremental patch is generated and submitted; if it fails, the submission is rejected. Duplicate submissions are identified based on the event identifier in the standardized change event. Duplicate submissions with the same event identifier do not generate a new version number.
9. A dynamic ontology incremental evolution system based on change event-driven processes, characterized in that, include: The change event normalization module is used to generate standardized change events and instantiate propagation operators; The hierarchical annotation and propagation module is used to maintain a priority worksheet and access keys based on standardized change events and propagation operators, obtain annotated affected ontology subgraphs, and delineate structural cut edges and constraint reference boundaries. The constraint projection verification module is used to update within the pre-visualized subgraph in the isolated work area, construct a boundary verification view containing read-only triples outside the subgraph, select a constraint subset according to the influence annotation, perform attribute type, enumeration range, incremental cardinality count and inverse relation witness checks, and obtain the verification results. The incremental patch commit and rollback module is used to generate positive and negative ontology incremental patches with preconditions based on the verification results, and to perform local transaction commits, version registration, and rollback according to preconditions. Ontology storage is used to store dynamic ontologies of the assertion layer; Dependency directory library, used to store dependency directories; Witness index library, used to store reverse relationship witness tables; A patch repository for storing incremental patches and version records of the ontology; the system is used to execute the method described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the dynamic ontology incremental evolution method based on change event driving as described in any one of claims 1 to 8.
