Linear cultural heritage disaster data traceable database construction method and system
By constructing a traceable disaster database, the problem of broken source links in the process of building disaster data from multiple sources in existing technologies has been solved, enabling accurate location of query results and statistical results, and improving the accuracy and efficiency of data verification.
Patent Information
- Application Number
- CN202611661708.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-26
- Publication Date
- 2026-11-20
AI Technical Summary
After implementing field unification, classification and merging, and multi-table association, the existing database construction program has difficulty accurately locating the original records, resulting in the source link being broken during the conversion and database construction process of heterogeneous disaster data.
By acquiring route data packets, a set of registrable routes is determined, and a set of business-related records is constructed, including the hierarchical relationship between routes, heritage sites, disaster events, and post-disaster management. Using the original business IDs, original fields, and source row location information in the standardized set of related records, a traceable disaster database is constructed to ensure that query results or statistical results can be located to the original Excel data rows.
After transforming and building a database of disaster data from multiple sources, the probability of source link breakage was reduced, and the accuracy and reproduction efficiency of disaster data verification were improved.
Smart Images

Figure CN123138255A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of digital management and data processing technology for cultural heritage, and in particular to a method and system for establishing a traceable database of linear cultural heritage disaster data. Background Technology
[0002] Linear cultural heritage sites typically span multiple administrative regions, with numerous heritage sites distributed along the route. Related disaster data was generated during different survey periods and research projects, and is stored separately in heritage base tables, disaster record tables, post-disaster response tables, and other data files. Due to differences in field names, numbering rules, disaster classifications, and data formats, the server needs to perform conversion and correlation on data from multiple sources.
[0003] Existing database construction programs, after implementing field unification, classification and merging, and multi-table joins, typically only save the transformation results, easily losing the correspondence between business records and the original workbooks, worksheets, and specific data rows. When researchers verify query or statistical results, it is difficult to accurately locate the original records. Therefore, how to avoid source link breaks during the transformation and database construction process of heterogeneous disaster data has become an urgent technical problem to be solved. Summary of the Invention
[0004] This application proposes a linear cultural heritage disaster data traceability database construction method and system, aiming to maintain a continuous correspondence between the database construction results and the original data locations while uniformly organizing disaster data from multiple sources.
[0005] In a first aspect, embodiments of this application provide a method for establishing a traceable database of linear cultural heritage disaster data, applied to a database server, the method comprising:
[0006] Obtain the line data packet, which is a data set consisting of three types of source tables: heritage, disaster situation, and disposal, and line directory information;
[0007] The set of registrable lines is determined based on the line data packets. The registrable lines are those with complete source tables of all three types and whose line directory codes are consistent with the line prefixes in the heritage ID.
[0008] A business association record set is constructed based on the set of registable routes and the route data packets. The business association record set represents the hierarchical relationship between routes, heritage sites, disaster events, and post-disaster management through route codes, heritage IDs, disaster IDs, and repair IDs.
[0009] A standardized set of associated records is determined based on the business-related record set. The standardized associated records are records in which the original business ID, original fields, standardized fields, and source row location information coexist. The source row location information is the source workbook name, the source worksheet name, and the Excel row number.
[0010] A traceable disaster database is constructed based on the standardized set of associated records. The traceable disaster database is used to return source line location information corresponding to the query results or statistical results according to the business ID.
[0011] As can be seen, this embodiment first limits the scope of line registration according to the completeness of the source table and the consistency of the line code, then establishes the business relationship between lines, heritage sites, disaster events and post-disaster management, and allows the original fields, standardized fields and source row location information to enter the database together, so that the query results or statistical results can be located to the original Excel data row along the business ID.
[0012] In one possible example, constructing a service association record set based on the set of registrable lines and the line data packets includes:
[0013] A set of heritage records is determined based on the set of registable routes and the route data packets, wherein the heritage records are identified by heritage IDs representing the heritage points within the routes;
[0014] The disaster record set is determined based on the heritage record set and the line data packet, wherein the disaster record is represented by a disaster ID to indicate an independent disaster event occurring at the heritage site;
[0015] A post-disaster response record set is determined based on the disaster record set and the line data packet, wherein the post-disaster response record uses a repair ID to represent the response status corresponding to the disaster event;
[0016] The business-related record set is constructed based on the heritage record set, the disaster record set, and the post-disaster response record set. The topological direction of the business-related record set is from the line to the heritage site, from the heritage site to the disaster event, and from the disaster event to the post-disaster response.
[0017] As can be seen, this example uses business IDs at different levels to maintain the topological direction of various records, which can reduce the relationship confusion caused by the independent management of multiple source tables, and allow the upper-level business objects that lack disaster records or post-disaster handling records to continue to be retained.
[0018] In one possible example, determining the disaster record set based on the heritage record set and the line data packets includes:
[0019] The disaster source record set is determined based on the heritage record set and the line data packet, wherein the disaster source record is the record in the disaster record table that maintains the original row order;
[0020] The heritage ID matching relationship is determined based on the disaster source record set and the heritage record set. The heritage ID matching relationship represents the reference correspondence between the heritage IDs in the disaster source record and the heritage IDs in the heritage record.
[0021] The disaster record set is determined based on the heritage ID matching relationship and the disaster source record set. The disaster record set is distinguished by the relationship status between associated records and associated missing records.
[0022] As can be seen, this example distinguishes between associated records and records with missing associations by using heritage ID matching relationships while maintaining the original row order of disaster source records, thereby avoiding the deletion of disaster source records due to missing individual relationships.
[0023] In one possible example, determining the heritage ID matching relationship based on the disaster source record set and the heritage record set includes:
[0024] A set of ID pairs to be matched is determined based on the disaster source record set and the heritage record set. The ID pairs to be matched consist of disaster-side heritage IDs and heritage-side heritage IDs within the same line domain.
[0025] The ID matching state is determined based on the set of ID pairs to be matched, and the ID matching state represents the result of the bit-by-bit comparison of the pair of character sequences;
[0026] Based on the ID consistency status and the set of ID pairs to be matched, the association integrity status is determined, wherein the association integrity status is one of unique correspondence, no correspondence, or multiple correspondences.
[0027] The heritage ID matching relationship is determined based on the complete association status, the set of ID pairs to be matched, and the ID consistency status. The heritage ID matching relationship carries a relationship status where no unique correspondence has been formed.
[0028] As can be seen, this example uses both ID character consistency and the number of corresponding relationships to determine the matching relationship of legacy IDs, so that the states of no correspondence and multiple correspondences can be explicitly preserved, reducing the possibility of the server silently selecting incorrect records.
[0029] In one possible example, determining the ID consistency status based on the set of ID pairs to be matched includes:
[0030] The set of original ID character sequences is determined based on the set of ID pairs to be matched, wherein the original ID character sequences are bitwise representations of the business IDs without rewriting them;
[0031] The character position alignment relationship is determined based on the original set of ID character sequences, and the character position alignment relationship represents the positional correspondence of a pair of IDs from the first character to the last character.
[0032] The ID consistency state is determined based on the character position alignment relationship and the original ID character sequence set. The ID consistency state is defined as having the same length and all characters in the same position being identical.
[0033] As can be seen, this example uses the bitwise representation of the original business ID to perform consistency judgment, without the need to regenerate or overwrite the business ID, thus maintaining the consistency between the data association judgment and the business number in the source table.
[0034] In one possible example, determining the character position alignment based on the original set of ID character sequences includes:
[0035] The ID length correspondence is determined based on the original set of ID character sequences, and the ID length correspondence represents the boundary position of the paired character sequences;
[0036] A set of corresponding character pairs is determined based on the ID length correspondence and the original ID character sequence set. The corresponding character pair is a comparison unit formed by two characters with the same ordinal position.
[0037] A set of difference positions is determined based on the set of corresponding character pairs, and the set of difference positions represents the ordinal position of characters with different or missing character values.
[0038] The character position alignment relationship is determined based on the ID length correspondence and the set of differences in position, and the character position alignment relationship carries positional evidence of ID length differences and character differences.
[0039] As can be seen, this example can record the specific location where the business ID has a length difference or a character difference, so that the reason for the association failure has verifiable character location evidence.
[0040] In one possible example, determining the standardized set of associated records based on the business-related record set includes:
[0041] The original field mirror set is determined based on the business-related record set, and the original field mirror is a read-only copy that corresponds to each field in the source table;
[0042] The source row location information set is determined based on the original field mirror set, wherein the source row location information is a combination of the source workbook name, the source worksheet name, and the Excel row number;
[0043] A standard classification field set is determined based on the original field mirror set and the preset classification mapping relationship. The standard classification fields represent the primary disaster type and the secondary disaster type under a unified caliber.
[0044] A dual-field record set is constructed based on the original field mirror set and the standard classification field set, wherein the dual-field record is a record in which the original disaster type and the standard disaster type coexist.
[0045] The standardized associated record set is determined based on the dual-field record set and the source row location information set. The standardized associated record set associates the classification result with the physical location of the source table using the business ID as the data hierarchy anchor point.
[0046] As can be seen, this example enables the server to perform queries and statistics using the standard classification fields by saving the original field mirror, standard classification fields, and source row location information in parallel, while also returning the original disaster types that were not covered and their source table locations.
[0047] In one possible example, determining the standard classification field set based on the original field mirror set and the preset classification mapping relationship includes:
[0048] A candidate standard classification set is determined based on the original field mirror set and the preset classification mapping relationship. The candidate standard classification represents the possible semantic position of the original disaster type in the unified classification system.
[0049] The classification hierarchy consistency state is determined based on the candidate standard classification set, and the classification hierarchy consistency state represents the hierarchical constraint between the primary disaster type and the secondary disaster type;
[0050] The standard classification matching result is determined based on the classification hierarchy consistency status and the candidate standard classification set. The standard classification matching result is either a unique matching result or an unconfirmed result.
[0051] The standard classification field set is determined based on the standard classification matching result and the original field mirror set, and the standard classification field set carries the classification result corresponding to the original disaster type.
[0052] As can be seen, this example eliminates candidate classifications with inconsistent hierarchical relationships by using classification hierarchy constraints, and marks records that cannot form a unique correspondence as unconfirmed, which can reduce misclassification caused by similar disaster names.
[0053] In one possible example, after constructing the traceable disaster database based on the standardized set of related records, the method further includes:
[0054] The record quality status set is determined based on the traceable disaster database. The record quality status set is a quality report data layer independent of the business fields, used to characterize duplicate business IDs, broken links, abnormal dates, abnormal links, abnormal images, abnormal coordinates, or abnormal administrative divisions.
[0055] The continuously built record set is determined based on the record quality status set and the traceable disaster database. The continuously built record is a record in which anomaly markers and available business fields coexist in a hierarchical manner. The coordinate anomaly marker or link anomaly marker is used to block the corresponding field from driving spatial positioning or link jump.
[0056] The formal statistical record set is determined based on the statistical status field in the continuously constructed record set, and the formal statistical record set corresponds only to disaster records whose statistical status is clearly "yes";
[0057] Statistical results are constructed based on the formal statistical record set, with the number of archival records as the statistical unit.
[0058] Based on the statistical results and the traceable disaster database, a statistical tracing result is constructed, which represents the correspondence between statistical classification, disaster records and source location information.
[0059] As can be seen, this example stores abnormal states and available business fields in layers, so that abnormal records will not directly block database construction; at the same time, only records with a statistical status of "yes" are included in the formal statistics, so that the statistical results can drill down to the disaster records and their source row locations according to the same filtering conditions.
[0060] Secondly, embodiments of this application provide a linear cultural heritage disaster data traceability database system, the system including a database server, the database server comprising:
[0061] The data acquisition unit is used to acquire line data packets, which are data sets composed of three types of source tables: heritage, disaster situation, and disposal, and line directory information;
[0062] The line determination unit is used to determine a set of registrable lines based on the line data packet. The registrable lines are those with complete source tables of three types and whose line directory codes are consistent with the line prefixes in the heritage ID.
[0063] The association construction unit is used to construct a business association record set based on the set of registable lines and the line data packets. The business association record set represents the hierarchical relationship between lines, heritage sites, disaster events and post-disaster treatment through line codes, heritage IDs, disaster IDs and repair IDs.
[0064] A standardization unit is used to determine a standardized set of associated records based on the business associated record set. The standardized associated records are records in which the original business ID, original fields, standardized fields, and source row location information coexist. The source row location information is the source workbook name, the source worksheet name, and the Excel row number.
[0065] The database construction unit is used to construct a traceable disaster database based on the standardized set of related records. The traceable disaster database is used to return source row location information corresponding to the query results or statistical results according to the business ID.
[0066] In this embodiment, each functional unit transmits intermediate results in the same database server according to the data processing sequence, which can achieve the technical effect corresponding to the method described in the first aspect.
[0067] Thirdly, embodiments of this application provide an electronic device including a processor, a memory, a communication interface, and one or more programs, the one or more programs being stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps in the first aspect of embodiments of this application.
[0068] Fourthly, embodiments of this application provide a computer storage medium storing a computer program for electronic data interchange, wherein the computer program causes a computer to perform some or all of the steps described in the first aspect of this embodiment.
[0069] As can be seen, in this embodiment of the application, compared with the existing database construction method that only saves the conversion results after processing multi-source Excel data, this application retains the continuous data lineage between the conversion results and the source table data rows; the database construction server of this application first obtains the line data packets, then determines the set of registrable lines based on the line data packets, then constructs a set of business-related records based on the set of registrable lines and the line data packets, then determines a set of standardized related records based on the set of business-related records, and finally constructs a traceable disaster database based on the set of standardized related records; since line registration is constrained by the completeness of the source table and the consistency of the line code, and the original business ID, original fields and source row location information in the standardized related records are entered into the database together, the query results or statistical results can be located to the original Excel data rows through the business relationship, thereby reducing the probability of source link breakage caused by field standardization and multi-table association, which is conducive to improving the accuracy and reproduction efficiency of disaster data verification. Attached Figure Description
[0070] Figure 1 This is a schematic diagram of the hardware architecture of the database creation system in this application embodiment;
[0071] Figure 2 This is a schematic diagram of the software architecture of the database creation server in the embodiments of this application;
[0072] Figure 3 This is a schematic diagram illustrating a scenario of building and querying disaster data from multiple sources, as described in this application embodiment.
[0073] Figure 4This is a flowchart illustrating the method for constructing a traceable disaster database in the embodiments of this application;
[0074] Figure 5 This is a schematic diagram illustrating the association of business objects and the source line tracing relationship in the embodiments of this application;
[0075] Figure 6 This is a flowchart illustrating the process of constructing the business-related record set in an embodiment of this application;
[0076] Figure 7 This is a flowchart illustrating the process of determining the disaster record set in an embodiment of this application;
[0077] Figure 8 This is a flowchart illustrating the process of determining the matching relationship of heritage IDs in an embodiment of this application.
[0078] Figure 9 This is a flowchart illustrating the ID consistency determination process in an embodiment of this application.
[0079] Figure 10 This is a flowchart illustrating the process of determining character position alignment in an embodiment of this application.
[0080] Figure 11 This is a flowchart illustrating the process of determining the standardized associated record set in the embodiments of this application;
[0081] Figure 12 This is a flowchart illustrating the process of determining the standard classification field set in the embodiments of this application;
[0082] Figure 13 This is a flowchart illustrating the fault tolerance and statistical tracing process in the embodiments of this application;
[0083] Figure 14 This is a schematic diagram illustrating the relationship between quality status, statistical results, and source row location in an embodiment of this application.
[0084] Figure 15 This is a schematic diagram of the functional modules of the traceable database system in the embodiments of this application. Detailed Implementation
[0085] The infrastructure in the following embodiments consists of hardware architecture, software architecture, business scenarios, and data processing procedures. Each embodiment can be implemented by a processor executing program instructions in memory, or by a server cluster with corresponding data processing capabilities.
[0086] See Figure 1The database server 100 is equipped with a processor 110 and a memory 120. The source data storage device 130 is connected to the database server 100 via a data interface 140, and the user terminal 150 is communicatively connected to the database server 100. The source data storage device 130 is used to store the Excel source tables and line directory files for each line; the processor 110 is used to execute instructions for source table reading, relation building, classification mapping, and database generation; the memory 120 is used to store programs, process intermediate data, and the traceable disaster database; and the user terminal 150 is used to submit query conditions and receive archive results, statistical results, and source location results.
[0087] The hardware architecture described above can use a single server or a server group consisting of an application server, a file server, and a database server. The servers communicate with each other via an internal network, transmitting business IDs, intermediate record sets, and source row location information, without requiring any changes to the storage structure of the source Excel file.
[0088] See Figure 2 The database server's software architecture includes a data acquisition unit 210, a route determination unit 220, an association construction unit 230, a standardization unit 240, a database construction unit 250, a quality statistics unit 260, and a query output unit 270. The data acquisition unit 210 provides route data packets to the route determination unit 220 and the association construction unit 230; the association construction unit 230 provides a set of business-related records to the standardization unit 240; the database construction unit 250 receives the standardized set of related records; the quality statistics unit 260 generates quality status and statistical results; and the query output unit 270 returns archive data and source line location information based on the business ID.
[0089] Each software unit can be represented as an independent program module or as different functions within the same database creation program. Structured records and their states are passed between units, eliminating the need to repeatedly save statistics or rebuild business relationships in the front-end page.
[0090] See Figure 3 The route directory file 310, heritage basic table 320, disaster record table 330, and post-disaster response table 340 are organized into a route data package 350. The database server reads the route data package 350 and generates a traceable disaster database 360. The map query module 370, heritage case library 380, disaster event library 390, and statistical analysis module 395 jointly read the traceable disaster database 360. Specifically, the map query module 370 returns heritage points based on routes or spatial locations; the heritage case library 380 returns heritage files based on heritage IDs; the disaster event library 390 returns disaster events based on disaster type or date; and the statistical analysis module 395 generates statistical results based on official statistical records.
[0091] For example, after selecting a route in the map query module 370, a user can access the heritage case library 380 to view the heritage sites along that route, and then use the heritage ID to access the corresponding disaster timeline. When a user has questions about a disaster record, they can find the original data row in the disaster record table 330 based on the source row location information carried by that record.
[0092] For heritage sites that only have basic heritage information but no disaster records, the database server retains the corresponding heritage records and sets their disaster association status to "no associated record." For disaster events that have disaster records but no post-disaster response records, the database server retains the disaster records and sets their response association status to "missing."
[0093] The above status is not equivalent to record deletion. Heritage records can still be entered into the heritage case database, and disaster records can still be entered into the disaster event database. Records with missing relationships are entered into the quality report data layer, allowing maintenance personnel to supplement source data later, thus preventing the loss of higher-level business records due to inner-join data processing.
[0094] In one example, multiple survey data points use "flood erosion," "water damage," and "flood damage" to describe similar disasters. The database server retains each original disaster type and description, while simultaneously determining a unified primary and secondary disaster type according to a preset classification mapping relationship. When a classification cannot be uniquely determined, the corresponding standard classification matching result is set to unconfirmed.
[0095] During statistical analysis, the database server further reads the "Include in statistics" field. Disaster records with a field explicitly marked "Yes" are included in the formal statistical record set; records with a field marked "No," empty, or with ambiguous semantics are not included in the formal statistical record set. After a user selects a statistical category, the server returns the disaster records that constitute that statistical figure according to the same conditions, and the disaster records further return the source workbook, source worksheet, and Excel row numbers.
[0096] In one possible embodiment, see Figure 4 and Figure 5 The traceable disaster database construction process can be achieved through steps S101 to S105. The business relationship consists of route object 410, heritage site object 420, disaster event object 430, post-disaster response object 440, and data source object 450; route code 411, heritage ID 421, disaster ID 431, and repair ID 441 serve as business identifiers at the corresponding levels, and source location information 451 is used to characterize the physical location of data source object 450 in the original Excel file.
[0097] S101, Obtain line data packets;
[0098] The line data packet is a data set consisting of three types of source tables: heritage, disaster situation, and handling, along with line directory information.
[0099] The line data packet is a logical input container established for a single line, and it does not require multiple Excel files to be pre-merged into one file. The heritage source table records the heritage site name, heritage ID, administrative jurisdiction, coordinates, and heritage type; the disaster source table records the disaster ID, associated heritage ID, disaster type, occurrence time, and damage description; the treatment source table records the repair ID, associated disaster ID, treatment time, and treatment method; and the line directory information records the explicit correspondence between line codes and line names.
[0100] For example, a certain route folder contains a heritage basic table, a disaster record table, and a post-disaster response table, while the route directory file registers the route code. The data acquisition program reads the corresponding workbooks, worksheets, and data rows according to the preset file range, and records the workbook name, worksheet name, and Excel row number during the reading process.
[0101] S102. Determine the set of registrable lines based on the line data packets;
[0102] The registrable routes are those with complete source tables of all three categories and whose route directory codes match the route prefixes in the heritage ID.
[0103] Furthermore, the set of registrable routes is used to limit the range of routes allowed to enter the subsequent relationship building process. The server checks the existence status of the three types of source tables, the registration status of the route directory code, and the consistency status of the heritage ID route prefix. When all three conditions are met, the corresponding route enters the set of registrable routes.
[0104] When a line lacks a disaster recovery table, has an empty heritage ID, or has conflicting heritage ID prefixes, the server does not infer the line code based on the folder name. This line is temporarily excluded from the registerable line set, and the cause of the anomaly is retained as a quality status for manual verification.
[0105] S103. Construct a set of business association records based on the set of registable lines and line data packets;
[0106] The set of business-related records represents the hierarchical relationship between routes, heritage sites, disaster events, and post-disaster management through route codes, heritage IDs, disaster IDs, and repair IDs.
[0107] Furthermore, route object 410 establishes a subordinate relationship with heritage site object 420 through route code 411; heritage site object 420 establishes a reference relationship with disaster event object 430 through heritage ID 421; disaster event object 430 establishes a reference relationship with post-disaster response object 440 through disaster ID 431; repair ID 441 is used to distinguish different post-disaster response records. The business association record set stores the above object relationships and their corresponding status.
[0108] A single heritage site can correspond to multiple disaster events, and a single disaster event can correspond to multiple post-disaster response records. The server uses a one-to-many relationship to store these records, without compressing multiple disaster events into a single heritage record, and without deleting disaster events due to missing response records.
[0109] S104. Determine the standardized set of related records based on the set of business related records;
[0110] The standardized associated record is a record in which the original business ID, original fields, standardized fields, and source row location information coexist. The source row location information includes the source workbook name, the source worksheet name, and the Excel row number.
[0111] Furthermore, standardized related records are derived records established for querying, statistics, and tracing. Original fields are used to retain the original expressions in the survey data, standardized fields are used to provide unified query and statistical standards, and source row location information 451 is used to establish the physical location relationship between the derived records and the data source object 450.
[0112] For example, if the original disaster type in the disaster source table is "water damage", the server can record the corresponding unified disaster type in the standardized field, but the original disaster type "water damage", the original disaster description and the original disaster ID are still retained in the same standardized associated record.
[0113] S105. Construct a traceable disaster database based on a standardized set of related records.
[0114] The traceable disaster database is used to return source line location information corresponding to the query results or statistical results according to the business ID.
[0115] Furthermore, a traceable disaster database is a dataset capable of simultaneously supporting object queries, event queries, statistical calculations, and source location. The database can be implemented using relational tables, document-oriented data files, or a combination of both. Each record in the database maintains a correspondence between a business ID and the source line location information.
[0116] When a user selects a disaster category from the statistical results, the server first returns the disaster ID that constitutes that statistical result, and then reads the disaster records and source row location information according to the disaster ID. In this way, the statistical classification, disaster events, and original Excel data rows form a continuous and verifiable path.
[0117] As can be seen, this embodiment enables data from multiple sources to still be located to the original data row after conversion and database creation by checking the completeness of the source table, associating business IDs, storing original fields and standardized fields in parallel, and locating the source row. This reduces the possibility of source link breakage caused by field conversion and multi-table association.
[0118] In one possible example, see Figure 6 The process of constructing the business association record set in step S103 can be achieved through steps S201 to S204.
[0119] S201. Determine the set of heritage records based on the set of registrable routes and route data packets;
[0120] The heritage records use heritage IDs to identify heritage sites within the route.
[0121] The heritage record set is a collection of heritage site records within the registrable route area. Each heritage record has at least a heritage ID and may include the heritage name, route, administrative region, coordinates, year, conservation level, and heritage type. The heritage ID retains its original value from the source table and is not renumbered by the database server.
[0122] S202. Determine the disaster record set based on the heritage record set and the line data package;
[0123] The disaster records are represented by disaster IDs, indicating independent disaster events occurring at heritage sites.
[0124] Furthermore, the server reads the disaster ID and heritage ID from the disaster source table, using the disaster ID as the event identifier and the heritage ID to determine the heritage site to which the event belongs. Disaster events from different dates or different data sources are stored separately to maintain the disaster timeline.
[0125] S203. Determine the post-disaster response record set based on the disaster record set and the line data packet;
[0126] The post-disaster response records use repair IDs to represent the response status of the disaster event.
[0127] Furthermore, the server reads the repair ID and disaster ID from the disposal source table, and uses the disaster ID to determine the disaster event corresponding to the disposal record. The disposal time, disposal method, disposal result, and data source are stored as business fields corresponding to the repair ID.
[0128] S204. Construct the business-related record set based on the heritage record set, the disaster record set, and the post-disaster response record set.
[0129] The topological direction of the business-related record set is from the route to the heritage site, from the heritage site to the disaster event, and from the disaster event to the post-disaster response.
[0130] Furthermore, the topology direction is used to describe the directed membership relationships between different business objects. The server uses the network line as the superior object, the heritage site as the spatial object, the disaster event as the temporal object, and post-disaster response as the subsequent object. All objects are connected via the business ID in the source table.
[0131] In one possible implementation, to address the issue of missing lower-level records causing the deletion of higher-level records, the server can set a relationship existence status for heritage records and disaster records. When a lower-level record is missing, the higher-level record retains its original business content, and the relationship existence status record is considered missing. This process allows incomplete files to still be accessed on the query page and preserves stable data anchors for subsequent data entry.
[0132] As can be seen, this embodiment forms record sets according to the business levels of routes, heritage sites, disaster events, and post-disaster management, and then constructs directed association relationships, which can express the data structure of one route corresponding to multiple heritage sites, one heritage site corresponding to multiple disaster events, and one disaster event corresponding to multiple management records.
[0133] In one possible example, see Figure 7 The process of determining the disaster record set in step S202 can be achieved through steps S301 to S303.
[0134] S301. Determine the disaster source record set based on the heritage record set and the line data packet;
[0135] The disaster source record is a record that maintains the original row order in the disaster record table.
[0136] The original row order refers to the sequential relationship of data rows in the source worksheet when disaster source records are accessed. When the server reads the disaster record table, it saves the Excel row number for each disaster source record, allowing the record sorting and source location to be verified during subsequent processing.
[0137] S302. Determine the heritage ID matching relationship based on the disaster source record set and the heritage record set;
[0138] The heritage ID matching relationship represents the reference correspondence between the heritage ID in the disaster source record and the heritage ID in the heritage record.
[0139] Furthermore, the reference correspondence indicates whether a disaster source record can point to a unique heritage record in the heritage record set through its heritage ID. The server performs matching within the current line range to reduce the possibility of misassociations caused by different lines using similar numbers.
[0140] In one possible implementation, to address the issue of duplicate local IDs across different lines, the server can first limit the matching field according to the line code, and then compare legacy IDs within the matching field. The line code is only used to limit the candidate range, and the final association still retains the legacy IDs from the source table, thus balancing cross-line isolation and preservation of the original IDs.
[0141] S303. Determine the disaster record set based on the heritage ID matching relationship and the disaster source record set.
[0142] The disaster record set is distinguished by relational status between associated records and records with missing associations.
[0143] Furthermore, associated records carry references to the corresponding heritage records, while records with missing associations carry relationship statuses of no corresponding record or multiple corresponding records. Records with missing associations still retain the disaster ID, original fields, and source row position, and do not disappear from the data processing chain due to relationship verification failure.
[0144] As can be seen, this embodiment, while maintaining the original line order of disaster source records, explicitly preserves the heritage ID reference status, enabling normal records to form a disaster timeline and allowing related missing records to enter the quality verification process.
[0145] In one possible example, see Figure 8 The process of determining the heritage ID matching relationship in step S302 can be achieved through steps S401 to S404.
[0146] S401. Determine the set of ID pairs to be matched based on the disaster source record set and the heritage record set;
[0147] The ID pairs to be matched consist of disaster-side legacy IDs and legacy-side legacy IDs within the same line domain.
[0148] Within this framework, the same line domain is a data comparison range defined by the line directory code. For each disaster source record, the server combines its legacy ID with the legacy IDs of other legacy records within the current line domain to form matching ID pairs, thus preventing legacy records from other lines from being included in the current comparison range.
[0149] S402. Determine the ID consistency status based on the set of ID pairs to be matched;
[0150] The ID consistency state represents the result of a bit-by-bit comparison of the paired character sequences.
[0151] Furthermore, the server compares the two IDs in each pair of IDs to be matched according to their character order. ID pairs with the same length and all corresponding characters are in a consistent state; ID pairs with differences in length, character values, or missing characters are in an inconsistent state.
[0152] S403. Determine the complete association status based on the ID consistency status and the set of ID pairs to be matched;
[0153] The complete association state is one of unique correspondence, no correspondence, or multiple correspondences.
[0154] Furthermore, when a disaster source record has only one heritage record with the same ID, its association status is unique correspondence; when there is no heritage record with the same ID, its status is no correspondence; when there are two or more heritage records with the same ID, its status is multiple correspondence.
[0155] In one possible implementation, to address the issue of hidden errors caused by arbitrary record selection in cases of multiple correspondences, the server does not automatically select one record for either no correspondence or multiple correspondences. Instead, it saves candidate records, the number of corresponding records, and the source row position. This allows uncertain relationships to be handled by a quality control process and prevents erroneous relationships from entering subsequent file chains.
[0156] S404. Determine the heritage ID matching relationship based on the associated complete state, the set of ID pairs to be matched, and the ID consistency state.
[0157] The heritage ID matching relationship carries a state where no unique correspondence has been formed.
[0158] Furthermore, a unique corresponding state forms a valid heritage ID matching relationship; a state with no corresponding state forms a missing relationship; and multiple corresponding states form a conflict relationship. All three types of relationships are stored using the same data structure, enabling subsequent steps to select the appropriate processing path (association or exception handling) based on the relationship state.
[0159] As can be seen, this embodiment considers both ID character consistency and the number of candidate records, enabling the server to distinguish between unique relationships, missing relationships, and conflicting relationships, thereby reducing the possibility of erroneous associations being silently written to the database.
[0160] In one possible example, see Figure 9 The ID consistency determination process in step S402 can be implemented through steps S501 to S503.
[0161] S501. Determine the set of original ID character sequences based on the set of ID pairs to be matched;
[0162] The original ID character sequence is a bitwise representation of the business ID without rewriting it.
[0163] The bitwise representation is a character sequence formed according to the original ordinal position of the character in the business ID. This character sequence is used as a comparison copy, and the legacy ID in the source table remains unchanged, so that the comparison process does not change the original business number.
[0164] S502. Determine the character position alignment relationship based on the original ID character sequence set;
[0165] The character position alignment relationship represents the positional correspondence of a pair of IDs from the first character to the last character.
[0166] Furthermore, character alignment is established according to character sequence. The first character corresponds to the first character, the second character corresponds to the second character, and so on, until at least one character sequence reaches the end. Characters that exceed the boundary of the shorter character sequence are recorded as missing correspondences.
[0167] In one possible implementation, to address the issue of comparison preprocessing covering the subdivision of the original ID, an independent comparison view can be established for the original ID character sequence. Format checking and character alignment only apply to the comparison view, and the output difference positions still point to the original ID character sequence, thus balancing program comparison and original number verification.
[0168] S503. Determine the ID consistency status based on the character position alignment relationship and the original ID character sequence set.
[0169] The consistency of IDs is defined as having the same length and all characters in the same position being identical.
[0170] Furthermore, the server only sets the ID consistency status to consistent if the two character sequences have the same boundary and all their corresponding characters are identical. In other cases, they are set to inconsistent, and the corresponding length difference or character difference status is retained.
[0171] As can be seen, this embodiment performs a bit-by-bit comparison without rewriting the business ID, so that the ID consistency status has a definite character judgment basis, and maintains the verifiability between the judgment result and the business number in the source table.
[0172] In one possible example, see Figure 10 The process of determining the character position alignment in step S502 can be achieved through steps S601 to S604.
[0173] S601. Determine the ID length correspondence based on the original set of ID character sequences;
[0174] The ID length correspondence represents the boundary position of the paired character sequence.
[0175] The boundary positions correspond to the first and last character positions of the two business IDs, respectively. The server uses the boundary positions to determine whether the two character sequences have the same length and to determine the valid sequence range for subsequent comparisons of characters in the same position.
[0176] S602. Determine the set of corresponding character pairs based on the ID length correspondence and the original ID character sequence set;
[0177] The corresponding character pair is a comparison unit formed by two characters with the same ordinal position.
[0178] Furthermore, within the valid sequence range, the server forms pairs of corresponding characters according to their position. If one character sequence has reached its boundary while the other character sequence still contains characters, one side of the corresponding comparison unit is marked as missing characters.
[0179] S603. Determine the set of differing positions based on the set of pairs of corresponding characters;
[0180] The set of difference positions represents the ordinal position of characters with different or missing character values.
[0181] Furthermore, comparison units with the same character value do not enter the difference position set; comparison units with different character values or missing characters enter the difference position set and save the corresponding character sequence.
[0182] S604. Determine the character position alignment relationship based on the ID length correspondence and the set of differences in position.
[0183] The character position alignment relationship carries positional evidence of ID length differences and character differences.
[0184] Furthermore, when the ID lengths are the same and the set of differences is empty, the character position alignment relationship represents complete alignment; when the ID lengths are different or the set of differences is not empty, the character position alignment relationship simultaneously preserves the difference type and the character order.
[0185] As can be seen, this embodiment refines the ID consistency judgment into boundary identification, same-position character comparison and difference position recording, so that the reason for association failure can be located to the specific character sequence, which is beneficial to checking for errors in business ID entry.
[0186] In one possible example, see Figure 11 The process of determining the standardized associated record set in step S104 can be achieved through steps S701 to S705.
[0187] S701. Determine the original field mirror set based on the business-related record set;
[0188] The original field mirror is a read-only copy that corresponds to each field in the source table.
[0189] The original field mirroring is used to save the original field names and values of the source table cells. Read-only copies indicate that subsequent standardization processing will not modify the mirrored content by overwriting. Business ID, original disaster type, original description, and statistical status can all be saved as mirrored fields.
[0190] S702. Determine the source row location information set based on the original field mirror set;
[0191] The source row location information is a combination of the source workbook name, the source worksheet name, and the Excel row number.
[0192] Furthermore, when reading each record from the source table, the server simultaneously records its workbook name, worksheet name, and Excel row number, and associates this combination with the corresponding business ID. When the same Excel row number appears in different workbooks, it can be distinguished by the workbook name and worksheet name.
[0193] S703. Determine the standard classification field set based on the original field mirror set and the preset classification mapping relationship;
[0194] The standard classification fields represent the primary and secondary disaster types under a unified definition.
[0195] Furthermore, a pre-defined classification mapping relationship is established to record the correspondence rules between the original disaster names and the unified classification system. After reading the original disaster type and original disaster description, the server determines the primary disaster type and its subordinate secondary disaster types according to the corresponding rules.
[0196] S704. Construct a two-field record set based on the original field mirror set and the standard classification field set;
[0197] The dual-field record is a record in which the original disaster type and the standard disaster type coexist.
[0198] Furthermore, dual-field records do not replace the original disaster type with the standard disaster type. The query and statistics module can read the standard disaster type, while the archive display and source tracing process can read the original disaster type and original description, ensuring that the unified analysis criteria and the original survey statements are kept in parallel.
[0199] S705. Determine the standardized associated record set based on the dual-field record set and the source row location information set.
[0200] The standardized association records use the business ID as the anchor point for the data hierarchy to associate the classification results with the physical location of the source table.
[0201] Furthermore, data hierarchy anchors are standardized records that maintain a stable business identity before and after data transformation. The server associates the original fields, standard classification fields, and source row location information with the same record through the business ID, so that each derived classification result has a corresponding original data basis.
[0202] As can be seen, this embodiment forms a data structure that combines original fields, standard classification fields, and source row location information, which can support unified classification, combined queries, and result tracing without covering the original research data.
[0203] In one possible example, see Figure 12 The process of determining the standard classification field set in step S703 can be achieved through steps S801 to S804.
[0204] S801. Determine the candidate standard classification set based on the original field mirror set and the preset classification mapping relationship;
[0205] The candidate standard classification characterizes the possible semantic position of the original disaster type in the unified classification system.
[0206] The candidate classification criteria can be determined by the original disaster type text, disaster keywords in the original disaster description, and preset synonyms. For example, multiple water hazard descriptions with similar meanings can each correspond to one or more candidate secondary types under the same primary disaster type.
[0207] S802. Determine the consistency status of classification hierarchy based on the candidate standard classification set;
[0208] The classification hierarchy consistency status represents the hierarchical constraints between the primary disaster type and the secondary disaster type.
[0209] Furthermore, each secondary disaster type is assigned to a pre-determined primary disaster type. When a candidate secondary type and a candidate primary type have a pre-defined hierarchical relationship, the corresponding candidate classifications are hierarchically consistent; otherwise, they are hierarchically inconsistent.
[0210] S803. Determine the standard classification matching result based on the classification hierarchy consistency status and the candidate standard classification set;
[0211] The standard classification matching result is either a unique match or an unconfirmed result.
[0212] Furthermore, the server excludes candidate categories with inconsistent hierarchical levels. When there is only one remaining candidate category, a unique matching result is formed; when there are no remaining candidate categories or there are still multiple remaining candidate categories, an unconfirmed result is formed, and a definite category is not generated through arbitrary selection.
[0213] S804. Determine the standard classification field set based on the standard classification matching results and the original field mirror set.
[0214] The standard classification field set carries the classification results corresponding to the original disaster type.
[0215] Furthermore, the primary and secondary disaster types corresponding to the unique matching results are entered into the standard classification field. The standard classification field corresponding to unconfirmed results carries the unconfirmed status and continues to be associated with the original disaster type and original disaster description for subsequent manual judgment.
[0216] As can be seen, this embodiment forms a deterministic classification processing path through candidate classification and hierarchical constraints, and retains an unconfirmed state for records that cannot be uniquely matched, thereby reducing the possibility of incorrect classification entering the statistical results.
[0217] In one possible example, see Figure 13 and Figure 14 The anomaly tolerance and statistical tracing process after step S105 can be implemented through steps S901 to S905. The quality report data layer 1410 provides anomaly status to the continuously constructed record set 1420, the continuously constructed record set 1420 provides records with clear statistical status to the formal statistical record set 1430, the formal statistical record set 1430 forms statistical result 1440, and the statistical result 1440 is associated with the archive record 1460 and the source line location 1470 through the statistical tracing result 1450.
[0218] S901. Determine the set of record quality statuses based on the traceable disaster database;
[0219] The record quality status set is a quality report data layer independent of the business fields, used to characterize duplicate business IDs, broken associations, abnormal dates, abnormal links, abnormal images, abnormal coordinates, or abnormal administrative divisions.
[0220] The quality report data layer 1410 is stored in a separate layer from the business records. Each quality status entry must at least point to the corresponding business ID and exception type, and may further include the source workbook name, source worksheet name, and Excel row number. Quality status entries do not eliminate exceptions by rewriting the source table.
[0221] S902. Determine the continuously constructed record set based on the record quality status set and the traceable disaster database;
[0222] The continuously built records are records in which anomaly markers and available business fields coexist in a hierarchical manner. Coordinate anomaly markers or link anomaly markers are used to block the corresponding fields from driving spatial positioning or link jumps.
[0223] Furthermore, the record set 1420 is continuously constructed to retain normally readable business fields and corresponding exception markers. When coordinates are missing or abnormal, the server does not generate false precise locations; when link formats are abnormal, the server does not generate corresponding redirects; other valid fields can still be used for document display and quality verification.
[0224] For example, a disaster record may have a valid date, disaster type, and damage description, but the coordinate field is outside the allowed range. The server can retain the disaster record and disable its coordinate-driven map positioning, ensuring that an anomaly in a single spatial field does not interrupt the generation of the disaster event database and archive pages.
[0225] S903. Determine the formal statistical record set based on the statistical status field in the continuously constructed record set;
[0226] The formal statistical record set only corresponds to disaster records whose statistical status is clearly "yes".
[0227] Furthermore, the formal statistical record set 1430 has clearly defined data boundaries. Records with a statistical status of "No" are excluded; records with an empty or undetermined statistical status are marked as unconfirmed and excluded by default. These records remain in the traceable disaster database and are not deleted simply because they are not included in the formal statistics.
[0228] S904. Construct statistical results based on the set of official statistical records;
[0229] The statistical results are based on the number of archival records.
[0230] Furthermore, the statistical result 1440 can be categorized according to route, disaster type, heritage type, administrative region, time range, credibility, or post-disaster response method. The server calculates the number of categories based on actual archival records in the official statistical record set, without extrapolating additional disaster counts based on natural language descriptions.
[0231] S905. Construct statistical tracing results based on statistical results and traceable disaster database.
[0232] The statistical tracing results represent the correspondence between statistical classification, disaster records, and source location information.
[0233] Furthermore, statistical traceability result 1450 stores the disaster ID set corresponding to the statistical category. When a user selects a category from statistical result 1440, the server returns file record 1460, and then the business ID in file record 1460 returns the source row position 1470. Statistical calculations and result drill-down use the same formal statistical record set and filtering conditions.
[0234] As can be seen, this embodiment maintains the ability to continuously build under abnormal data conditions by storing quality status and business fields in a hierarchical manner, and enables statistical results to be verified by the underlying disaster records and original data rows through clear statistical status boundaries and drill-down of results under the same conditions.
[0235] In one possible embodiment, see Figure 15 The traceable database building system includes a database building server 100, which is equipped with a data acquisition unit 210, a route determination unit 220, an association construction unit 230, a standardization unit 240, and a database construction unit 250.
[0236] The data acquisition unit 210 is used to acquire line data packets, which are data sets composed of three types of source tables: heritage, disaster, and disposal, and line directory information.
[0237] The data acquisition unit 210 can read source tables in local file directories, network file directories or file servers through a data interface, and simultaneously obtain the workbook name, worksheet name and Excel row number when reading data rows.
[0238] The line determination unit 220 is used to determine a set of registrable lines based on the line data packet. The registrable lines are those with complete source tables of three types and whose line directory codes are consistent with the line prefixes in the heritage ID.
[0239] Furthermore, the line determination unit 220 receives the line data packets output by the data acquisition unit 210 and outputs a set of registerable lines. Lines that do not meet the registration conditions carry the cause of the abnormality and enter the quality verification path.
[0240] The association construction unit 230 is used to construct a business association record set based on the set of registable lines and the line data packets. The business association record set represents the hierarchical relationship between lines, heritage sites, disaster events and post-disaster management through line codes, heritage IDs, disaster IDs and repair IDs.
[0241] Furthermore, the association construction unit 230 forms object reference relationships according to business IDs, and saves the relationship status for unique correspondence, no correspondence, and multiple correspondences respectively.
[0242] The standardization unit 240 is used to determine a standardized association record set based on the business association record set. The standardized association record is a record in which the original business ID, original fields, standardized fields and source row location information coexist. The source row location information is the source workbook name, the source worksheet name and the Excel row number.
[0243] Furthermore, the standardization unit 240 generates derived fields for querying and statistics, while maintaining the mirror image of the original fields and the source row location information. The classification mapping process does not overwrite the original disaster type or original disaster description.
[0244] Database construction unit 250 is used to construct a traceable disaster database based on the standardized set of related records. The traceable disaster database is used to return source row location information corresponding to the query results or statistical results according to the business ID.
[0245] Furthermore, the database construction unit 250 can generate heritage data, disaster data, post-disaster response data, route data, and statistical data respectively, and can also write the above data into a unified database. Map, archive, disaster query, and statistical analysis functions read the same batch of generated data; when the source table is updated, the database server 100 re-executes the data acquisition, route determination, association construction, standardization, and database construction processes.
[0246] As can be seen, this embodiment forms a one-way data processing chain corresponding to the linear cultural heritage disaster data traceability database construction method through five functional units, so that the route registration results, business association records and standardized association records enter the database construction process in sequence, and the final database has the ability to return source line location information from query results or statistical results.
[0247] This application also provides a computer storage medium storing a computer program for electronic data interchange, which causes a computer to perform some or all of the steps of any of the methods described in the above method embodiments, wherein the computer includes an electronic device.
[0248] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0249] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0250] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical or other forms.
[0251] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0252] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0253] If the aforementioned integrated units are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, electronic device, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0254] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage device, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.
[0255] The embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for establishing a traceable database of linear cultural heritage disaster data, characterized in that, Applied to a database creation server, the method includes: Obtain the line data packet, which is a data set consisting of three types of source tables: heritage, disaster situation, and disposal, and line directory information; The set of registrable lines is determined based on the line data packets. The registrable lines are those with complete source tables of all three types and whose line directory codes are consistent with the line prefixes in the heritage ID. A business association record set is constructed based on the set of registable routes and the route data packets. The business association record set represents the hierarchical relationship between routes, heritage sites, disaster events, and post-disaster management through route codes, heritage IDs, disaster IDs, and repair IDs. A standardized set of associated records is determined based on the business-related record set. The standardized associated records are records in which the original business ID, original fields, standardized fields, and source row location information coexist. The source row location information is the source workbook name, the source worksheet name, and the Excel row number. A traceable disaster database is constructed based on the standardized set of associated records. The traceable disaster database is used to return source line location information corresponding to the query results or statistical results according to the business ID.
2. The method according to claim 1, characterized in that, The step of constructing a service association record set based on the set of registrable lines and the line data packets includes: A set of heritage records is determined based on the set of registable routes and the route data packets, wherein the heritage records are identified by heritage IDs representing the heritage points within the routes; The disaster record set is determined based on the heritage record set and the line data packet, wherein the disaster record is represented by a disaster ID to indicate an independent disaster event occurring at the heritage site; A post-disaster response record set is determined based on the disaster record set and the line data packet, wherein the post-disaster response record uses a repair ID to represent the response status corresponding to the disaster event; The business-related record set is constructed based on the heritage record set, the disaster record set, and the post-disaster response record set. The topological direction of the business-related record set is from the line to the heritage site, from the heritage site to the disaster event, and from the disaster event to the post-disaster response.
3. The method according to claim 2, characterized in that, The step of determining the disaster record set based on the heritage record set and the line data packets includes: The disaster source record set is determined based on the heritage record set and the line data packet, wherein the disaster source record is the record in the disaster record table that maintains the original row order; The heritage ID matching relationship is determined based on the disaster source record set and the heritage record set. The heritage ID matching relationship represents the reference correspondence between the heritage IDs in the disaster source record and the heritage IDs in the heritage record. The disaster record set is determined based on the heritage ID matching relationship and the disaster source record set. The disaster record set is distinguished by the relationship status between associated records and associated missing records.
4. The method according to claim 3, characterized in that, The step of determining the heritage ID matching relationship based on the disaster source record set and the heritage record set includes: A set of ID pairs to be matched is determined based on the disaster source record set and the heritage record set. The ID pairs to be matched consist of disaster-side heritage IDs and heritage-side heritage IDs within the same line domain. The ID matching state is determined based on the set of ID pairs to be matched, and the ID matching state represents the result of the bit-by-bit comparison of the pair of character sequences; Based on the ID consistency status and the set of ID pairs to be matched, the association integrity status is determined, wherein the association integrity status is one of unique correspondence, no correspondence, or multiple correspondences. The heritage ID matching relationship is determined based on the complete association status, the set of ID pairs to be matched, and the ID consistency status. The heritage ID matching relationship carries a relationship status where no unique correspondence has been formed.
5. The method according to claim 4, characterized in that, The step of determining the ID consistency status based on the set of ID pairs to be matched includes: The set of original ID character sequences is determined based on the set of ID pairs to be matched, wherein the original ID character sequences are bitwise representations of the business IDs without rewriting them; The character position alignment relationship is determined based on the original set of ID character sequences, and the character position alignment relationship represents the positional correspondence of a pair of IDs from the first character to the last character. The ID consistency state is determined based on the character position alignment relationship and the original ID character sequence set. The ID consistency state is defined as having the same length and all characters in the same position being identical.
6. The method according to claim 5, characterized in that, The step of determining the character position alignment relationship based on the original ID character sequence set includes: The ID length correspondence is determined based on the original set of ID character sequences, and the ID length correspondence represents the boundary position of the paired character sequences; A set of corresponding character pairs is determined based on the ID length correspondence and the original ID character sequence set. The corresponding character pair is a comparison unit formed by two characters with the same ordinal position. A set of difference positions is determined based on the set of corresponding character pairs, and the set of difference positions represents the ordinal position of characters with different or missing character values. The character position alignment relationship is determined based on the ID length correspondence and the set of differences in position, and the character position alignment relationship carries positional evidence of ID length differences and character differences.
7. The method according to claim 1, characterized in that, The step of determining the standardized set of associated records based on the business-related record set includes: The original field mirror set is determined based on the business-related record set, and the original field mirror is a read-only copy that corresponds to each field in the source table; The source row location information set is determined based on the original field mirror set, wherein the source row location information is a combination of the source workbook name, the source worksheet name, and the Excel row number; A standard classification field set is determined based on the original field mirror set and the preset classification mapping relationship. The standard classification fields represent the primary disaster type and the secondary disaster type under a unified caliber. A dual-field record set is constructed based on the original field mirror set and the standard classification field set, wherein the dual-field record is a record in which the original disaster type and the standard disaster type coexist. The standardized associated record set is determined based on the dual-field record set and the source row location information set. The standardized associated record set associates the classification result with the physical location of the source table using the business ID as the data hierarchy anchor point.
8. The method according to claim 7, characterized in that, The step of determining the standard classification field set based on the original field mirror set and the preset classification mapping relationship includes: A candidate standard classification set is determined based on the original field mirror set and the preset classification mapping relationship. The candidate standard classification represents the possible semantic position of the original disaster type in the unified classification system. The classification hierarchy consistency state is determined based on the candidate standard classification set, and the classification hierarchy consistency state represents the hierarchical constraint between the primary disaster type and the secondary disaster type; The standard classification matching result is determined based on the classification hierarchy consistency status and the candidate standard classification set. The standard classification matching result is either a unique matching result or an unconfirmed result. The standard classification field set is determined based on the standard classification matching result and the original field mirror set, and the standard classification field set carries the classification result corresponding to the original disaster type.
9. The method according to claim 1, characterized in that, After constructing the traceable disaster database based on the standardized set of related records, the method further includes: The record quality status set is determined based on the traceable disaster database. The record quality status set is a quality report data layer independent of the business fields, used to characterize duplicate business IDs, broken links, abnormal dates, abnormal links, abnormal images, abnormal coordinates, or abnormal administrative divisions. The continuously built record set is determined based on the record quality status set and the traceable disaster database. The continuously built record is a record in which anomaly markers and available business fields coexist in a hierarchical manner. The coordinate anomaly marker or link anomaly marker is used to block the corresponding field from driving spatial positioning or link jump. The formal statistical record set is determined based on the statistical status field in the continuously constructed record set, and the formal statistical record set corresponds only to disaster records whose statistical status is clearly "yes"; Statistical results are constructed based on the formal statistical record set, with the number of archival records as the statistical unit. Based on the statistical results and the traceable disaster database, a statistical tracing result is constructed, which represents the correspondence between statistical classification, disaster records and source location information.
10. A linear cultural heritage disaster data traceability database system, characterized in that, The system includes a database creation server, which includes: The data acquisition unit is used to acquire line data packets, which are data sets composed of three types of source tables: heritage, disaster situation, and disposal, and line directory information; The line determination unit is used to determine a set of registrable lines based on the line data packet. The registrable lines are those with complete source tables of three types and whose line directory codes are consistent with the line prefixes in the heritage ID. The association construction unit is used to construct a business association record set based on the set of registable lines and the line data packets. The business association record set represents the hierarchical relationship between lines, heritage sites, disaster events and post-disaster treatment through line codes, heritage IDs, disaster IDs and repair IDs. A standardization unit is used to determine a standardized set of associated records based on the business associated record set. The standardized associated records are records in which the original business ID, original fields, standardized fields, and source row location information coexist. The source row location information is the source workbook name, the source worksheet name, and the Excel row number. The database construction unit is used to construct a traceable disaster database based on the standardized set of related records. The traceable disaster database is used to return source row location information corresponding to the query results or statistical results according to the business ID.
