Data relationship definition method based on data mapping
Through the data relationship definition method based on data mapping, the associated data classes and association relationships are configured, and the problem of high coupling of data structures in rail transit data configuration is solved, and rapid search and status check are realized, reducing the complexity of data configuration and error probability. .
Patent Information
- Application Number
- CN202411029315.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-12-27
AI Technical Summary
In the configuration of rail transit data, the data structure is highly coupled in the prior art, which makes it difficult to add or change equipment, especially when the correlation relationship between different types or device objects is complex, the base class abstract reconstruction requirements are high.
Using a data relationship definition method based on data mapping, the association relationship is automatically generated or manually configured by configuring the associated data class, including source equipment, target equipment and association relationships, and supporting direct stock rebate, curved stock rebate and mixed rebate relationships, for use in Quickly find target information and status checks.
It reduces the impact of new devices on the data structure, reduces the amount of data configuration, improves the friendliness and ease of identification of configuration personnel, and simplifies the search and acquisition methods through association relationship types.
Smart Images

Figure CN119201075A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data integration and data mapping, and in particular to a data relationship definition method based on data mapping. Background Art
[0002] At present, when using drawing tools to configure rail transit data, the interface needs to draw equipment control objects such as sections, turnouts, and signals. By defining the object class corresponding to the control within the code and binding the attributes to a specific class, these attributes can be used as subsidiary attributes of the class. These attributes can be easily obtained when exporting data and generating other objects using existing equipment attributes or associations. When multiple classes contain the same or some attributes, the complexity of data structure definition can be reduced by refactoring and using the base class-derived class method.
[0003] However, in the above solution, when a single device is associated with multiple other types or devices of the same type, it needs to be defined multiple times in the data structure. By defining attributes in the class structure, the data structure is often highly coupled, and it is generally difficult to add or change it later. When the association relationship between different classes or device objects is complex, the abstract reconstruction of the base class is required to be high. Summary of the invention
[0004] The purpose of the present invention is to overcome the shortcomings of the prior art that when adding or changing the data of a device at a later stage, the data structure is often highly coupled and difficult, and when the association relationship between different classes or device objects is complex, the abstract reconstruction of the base class requires high requirements, and to provide a data relationship definition method based on data mapping.
[0005] The purpose of the present invention is achieved through the following technical solutions: A data relationship definition method based on data mapping comprises the following steps: Configure an association data class including a source device, a target device, and an association relationship between the source device and the target device; According to the associated data class, the route, logic, or output device data is assisted in generating the route, logic, or output device data, which is used to quickly find the target information or check the status of the target.
[0006] Preferably, the associated data class includes a unique identifier of a source device, a unique identifier of a target device, and an associated relationship type.
[0007] Preferably, the method for configuring the association data class including source devices, target devices and the association relationship between the source devices and the target devices is to automatically generate the association relationship: by defining the association type, automatically generating a target device of a specified type for the source device, and then automatically adding the association relationship.
[0008] Preferably, the method for configuring the association data class including source devices, target devices and the relationship between source devices and target devices is to manually configure the association relationship: obtain the association relationship editing window, create a new association relationship, select a device to add to the key source, click one or more suitable routes in the route list window as the association target, and select the appropriate association relationship type.
[0009] Preferably, the association relationship includes a straight-strand return association relationship, a curved-strand return association relationship and a mixed return association relationship.
[0010] Preferably, the association relationship is used as an output item of data configuration during data configuration, and is used to quickly find target information or check the status of the target.
[0011] Preferably, the association relationship is used as an output item of data configuration during data configuration, and is used to quickly find the target information as follows: When searching for a target device, the target device is searched through the association relationship corresponding to the source device, or when searching for a source device, the source device is searched through the association relationship corresponding to the target device.
[0012] Preferably, the association relationship is used as an output item of data configuration in data configuration, and is specifically used for target status check as follows: When checking the target state, the conditions for the target state are found through the association relationship, and whether the target state is normal is determined based on the conditions.
[0013] The beneficial effects of the present invention are as follows: when a new device has associated items with an existing device, the present invention has little impact on the program framework data structure and a small amount of new data configuration; it supports interface configuration for selecting sources, objects, and associated types, and is friendly and easy to identify to data configuration personnel / tool users; through different association relationship type definitions, when using the subsystem of associated data, the method of searching and obtaining is relatively simple. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 is a flow chart of the present invention; Figure 2 This is a schematic diagram showing the relevant status of the signal machine; Figure 3 This is a schematic diagram of the association relationship data item / association relationship configuration window. DETAILED DESCRIPTION
[0015] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0016] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0017] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0018] Example: A data relationship definition method based on data mapping, such as Figure 1 As shown, the following steps are included: Configure an association data class including a source device, a target device, and an association relationship between the source device and the target device; According to the associated data class, the route, logic, or output device data is assisted in generating the route, logic, or output device data, which is used to quickly find the target information or check the status of the target.
[0019] The associated data class includes a unique identifier of a source device, a unique identifier of a target device, and an associated relationship type.
[0020] The method for configuring the association data class including the source device, the target device and the association relationship between the source device and the target device is to automatically generate the association relationship: by defining the association type, automatically generate the target device of the specified type for the source device, and then automatically add the association relationship.
[0021] The method for configuring the association data class including source devices, target devices and the relationship between source devices and target devices is to manually configure the association relationship: obtain the association relationship editing window, create a new association relationship, select a device to add to the key source, click one or more suitable routes in the route list window as the association target, and select the appropriate association relationship type.
[0022] The association relationship includes a straight strand return association relationship, a curved strand return association relationship and a mixed return association relationship.
[0023] The association relationship is used as an output item of data configuration during data configuration, and is used to quickly find target information or check the status of the target.
[0024] The association relationship is used as an output item of data configuration during data configuration and is used to quickly find the target information. Specifically: When searching for a target device, the target device is searched through the association relationship corresponding to the source device, or when searching for a source device, the source device is searched through the association relationship corresponding to the target device.
[0025] The association relationship is used as an output item of data configuration in data configuration, and is specifically used for target status check as follows: when checking the target status, the conditions for the target status are found through the association relationship, and whether the target status is normal is determined based on the conditions.
[0026] Specifically, when the present invention is applied to signal-related equipment, the process is as follows: like Figure 2 As shown, taking the status display of signal machines as an example, in existing project applications, multiple status displays are required, such as guidance countdown, total man release countdown, protection section unlock countdown, filament alarm, etc., as well as operations such as train buttons, guidance buttons, and blockade enable. During data configuration, in order to ensure that the business software obtains which devices are associated with the signal machine, multiple object identifiers are defined in the signal machine class and indexed to the corresponding status devices. At the same time, identifiers also need to be defined in the status device class and indexed to the signal machine equipment. With the increase of status displays, the corresponding attributes in the signal machine class will gradually increase, and the amount of manual configuration is large.
[0027] In this solution, the specified type of state device is automatically generated for a specific type of signal through the definition of the association relationship type. In the process of automatic generation, the signal identifier is used as the source and the state device is used as the association target to add the association relationship. There is no need to add new definitions for the attributes in the signal class and the state device class, and no manual configuration is required.
[0028] This solution can also manually configure the association relationship. In the existing signal machine, the return button or the return status light identifies or associates a certain route, and the route is an abstract device, and there is no specific identification device in the interface. When configuring data, it is filled in through attributes, which is cumbersome and error-prone.
[0029] In this solution, the operation is performed by selecting in the interface, and the error probability is reduced through visual operation. The specific process is to provide an association relationship editing window, create a new association relationship, select the device and click to add it to the association source, click one or more suitable routes as the association target in the route list window, and select the appropriate association relationship type. In order to ensure that the downstream system using the data can quickly locate the association data for different usage purposes, and in particular to distinguish the association relationships with the same source, the present invention adds multiple types of association relationships, such as straight-strand return association relationships, curved-strand return association relationships, and mixed return association relationships. The configured association relationship data item / association relationship configuration window, such as Figure 3 shown.
[0030] In this solution, other data is generated through association relationships, including the following two types: A. Status device class: The ID and status value of the main device are transmitted during communication, and the control conditions of the status device are processed during display. When outputting data, you can flexibly find the target device through the source device through the associated relationship data, or find the source device through the target device. And output the device ID value of the specified type according to the needs.
[0031] B. When generating logic and checking interlocking data, the conditions for the corresponding equipment status are found through the association relationship. For example, the condition for the direct stock return indicator light to be lit can be found through the association relationship. The corresponding return route is open and in the return mode, that is, the direct stock return indicator light should be lit.
[0032] In summary, when a new device has associated items with an existing device, the present invention has little impact on the program framework data structure and a small amount of new data configuration; it supports interface configuration for selecting sources, objects, and associated types, and is friendly and easy to identify for data configuration personnel / tool users; through different association relationship type definitions, when using the subsystem of associated data, the method of searching and obtaining is relatively simple.
[0033] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0034] It should be understood that the present application is not limited to the precise structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A data relationship definition method based on data mapping, characterized in that: The following steps are involved: Configure an association data class including a source device, a target device, and an association relationship between the source device and the target device; According to the associated data class, the route, logic, or output device data is assisted in generating the route, logic, or output device data, which is used to quickly find the target information or check the status of the target.
2. The data relationship definition method based on data mapping according to claim 1 is characterized in that: The associated data class includes a unique identifier of a source device, a unique identifier of a target device, and an associated relationship type.
3. The data relationship definition method based on data mapping according to claim 2 is characterized in that: The method for configuring the association data class including the source device, the target device and the association relationship between the source device and the target device is to automatically generate the association relationship: by defining the association type, automatically generate the target device of the specified type for the source device, and then automatically add the association relationship.
4. The method for defining a data relationship based on data mapping according to claim 2 is characterized in that: The method for configuring the association data class including source devices, target devices and the relationship between source devices and target devices is to manually configure the association relationship: obtain the association relationship editing window, create a new association relationship, select a device to add to the key source, click one or more suitable routes in the route list window as the association target, and select the appropriate association relationship type.
5. The method for defining a data relationship based on data mapping according to claim 4 is characterized in that: The association relationship includes a straight strand return association relationship, a curved strand return association relationship and a mixed return association relationship.
6. The method for defining data relationships based on data mapping according to claim 1, characterized in that: The association relationship is used as an output item of data configuration during data configuration, and is used to quickly find target information or check the status of the target.
7. The method for defining data relationships based on data mapping according to claim 6, characterized in that: The association relationship is used as an output item of data configuration during data configuration and is used to quickly find the target information. Specifically: When searching for a target device, the target device is searched through the association relationship corresponding to the source device, or when searching for a source device, the source device is searched through the association relationship corresponding to the target device.
8. The method for defining data relationships based on data mapping according to claim 6, characterized in that: The association relationship is used as an output item of data configuration in data configuration, and is specifically used for target status check as follows: When checking the target state, the conditions for the target state are found through the association relationship, and whether the target state is normal is determined based on the conditions.
Citation Information
Cited By
Light-weight data object multi-state control method based on relation model
CN121210416A