CN115774707B - Object attribute-based data processing method and device, electronic equipment and storage medium - Google Patents

Object attribute-based data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115774707B
CN115774707B CN202310113867.7A CN202310113867A CN115774707B CN 115774707 B CN115774707 B CN 115774707B CN 202310113867 A CN202310113867 A CN 202310113867A CN 115774707 B CN115774707 B CN 115774707B
Authority
CN
China
Prior art keywords
target
model
attribute
target attribute
attribution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310113867.7A
Other languages
Chinese (zh)
Other versions
CN115774707A (en
Inventor
李保平
谢超
戴思敏
欧再辉
龙荣豪
张耀惠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huitong Guoxin Technology Co ltd
Original Assignee
Guangzhou Huitong Guoxin Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huitong Guoxin Technology Co ltd filed Critical Guangzhou Huitong Guoxin Technology Co ltd
Priority to CN202310113867.7A priority Critical patent/CN115774707B/en
Publication of CN115774707A publication Critical patent/CN115774707A/en
Application granted granted Critical
Publication of CN115774707B publication Critical patent/CN115774707B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application provides a method and a device for processing data based on object attributes, electronic equipment and a storage medium, wherein the method comprises the following steps: constructing a target model based on target requirements; constructing a target attribute correspondingly contained according to the target model; determining the source of the target attribute according to a preset business rule to obtain the association relationship between the target attribute and the target model; under the condition that an instruction for updating the target attribute is received, directly changing the target attribute at a target position or searching a home model of the target attribute based on a source of the target attribute according to the association relation, and changing the target attribute in the home model, wherein the target position is a position of the target attribute in the target model. According to the method and the device, the problems that the complexity of data development is increased and the service efficiency is reduced due to the fact that the difference of the data models needs to be repeatedly defined when the data processing is carried out on the same attribute in the related technology are solved.

Description

Object attribute-based data processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of database modeling technologies, and in particular, to a method and an apparatus for processing data based on object attributes, an electronic device, and a storage medium.
Background
The two data modeling modes in the current mainstream are relationship modeling and dimension modeling, and each of the two data modeling modes has advantages and disadvantages, so that the requirements of business data processing and mass data analysis are respectively met. Regardless of the modeling approach, it is clear when describing the relationship between the model and the attributes, any attribute has a unique attributed model. In reality, however, different data models often have the same attribute, and it is understood that one attribute belongs to multiple models.
In the modeling method, the same attributes are repeatedly defined in different models, and the same essence can be represented only in the business process or in the blood edge analysis or standard definition of the data processing process, so that the difficulty of data development is greatly improved, and the risk of data analysis is increased.
Therefore, in the related art, when data processing is performed on the same attribute, since the difference of the data models needs to be repeatedly defined, there is a problem that complexity of data development is increased and service efficiency is reduced.
Disclosure of Invention
The application provides a data processing method and device based on object attributes, electronic equipment and a storage medium, which at least solve the problems that in the related technology, when data processing is performed on the same attributes, the data model difference needs to be repeatedly defined, so that the complexity of data development is increased and the service efficiency is reduced.
According to an aspect of the embodiments of the present application, there is provided an object attribute-based data processing method, including:
constructing a target model based on target requirements;
constructing a target attribute correspondingly contained according to the target model;
determining the source of the target attribute according to a preset business rule to obtain the association relationship between the target attribute and the target model;
and under the condition that an instruction for updating the target attribute is received, directly changing at a target position or searching a home model of the target attribute based on the source of the target attribute according to the association relation, and changing the target attribute in the home model, wherein the target position is the position of the target attribute in the target model.
According to another aspect of the embodiments of the present application, there is also provided an object attribute-based data processing apparatus, including:
the first construction module is used for constructing a target model based on target requirements;
the second construction module is used for constructing target attributes correspondingly contained according to the target model;
the obtaining module is used for determining the source of the target attribute according to a preset business rule and obtaining the association relationship between the target attribute and the target model;
And the modification module is used for directly modifying the target attribute at a target position according to the association relation or searching a home model of the target attribute based on the source of the target attribute under the condition that an instruction for updating the target attribute is received, and modifying the target attribute in the home model, wherein the target position is the position of the target attribute in the target model.
Optionally, the obtaining module includes:
the first determining unit is used for determining that the target attribute is derived from the target model if the target attribute is generated in a business process or a data processing process corresponding to the target model, and taking the target model as a attribution model of the target attribute;
and the recording unit is used for creating the target attribute in the target model and recording the attribution relation between the target model and the target attribute.
Optionally, the obtaining module includes:
a second determining unit, configured to determine that the target attribute does not belong to the target model if the target attribute is generated before or after a business process or a data processing process corresponding to the target model, and use the target model as a reference model of the target attribute;
The establishing unit is used for analyzing the attribution model of the target attribute according to the preset business rule and establishing a reference relation between the target model and the target attribute.
Optionally, the apparatus further comprises:
and the change module is used for synchronizing the changed target attribute into the reference model of the target attribute when the target attribute in the attribution model is changed, so that the target attribute in the reference model is updated to be the changed target attribute.
Optionally, the second building block comprises:
a third determining unit, configured to determine a service logic and a service boundary of the target model according to the target model;
and the obtaining unit is used for determining an attribute list required by the target model according to the service logic and the service boundary to obtain a plurality of target attributes.
Optionally, the apparatus further comprises:
the building module is used for building an upstream-downstream dependency relationship between the reference model and the attribution model of the target attribute based on the target attribute;
the determining module is used for determining the data flow direction according to the upstream-downstream dependency relationship under the condition that the indication information of the monitoring abnormality is received;
And the positioning module is used for positioning the abnormal problem according to the data flow direction.
Optionally, the apparatus further comprises:
the verification module is used for verifying the target attribute before receiving the indication information of the monitoring abnormality;
and the sending module is used for judging that the reference model is abnormal under the condition that the target attribute in the reference model is inconsistent with the target attribute in the attribution model, and sending the indication information of the monitoring abnormality, wherein the reference model is any model in the reference models.
According to yet another aspect of the embodiments of the present application, there is also provided an electronic device including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus; wherein the memory is used for storing a computer program; a processor for performing the method steps of any of the embodiments described above by running the computer program stored on the memory.
According to a further aspect of the embodiments of the present application, there is also provided a computer-readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the method steps of any of the embodiments described above when run.
In the embodiment of the application, a target model is built based on target requirements; constructing a target attribute correspondingly contained according to the target model; determining the source of the target attribute according to a preset business rule to obtain the association relationship between the target attribute and the target model; and under the condition that an instruction for updating the target attribute is received, directly changing at a target position or searching a home model of the target attribute based on the source of the target attribute according to the association relation, and changing the target attribute in the home model, wherein the target position is the position of the target attribute in the target model. According to the method and the device for processing the data, after the target attribute of the target model is obtained, the association relation between the target attribute and the target model is obtained, the attribution model of the target attribute is determined based on the association relation, then the attribution model is only changed in the attribution model when the target attribute is changed, so that the semantic difference between different data models is eliminated, the repeated definition of the target attribute in a plurality of data models is avoided, the development complexity caused by the fact that the complex blood-edge relation needs to be built in data processing analysis is avoided, the maintenance cost of a database is reduced, the efficiency of responding to service change is improved, and the problems that in the related art, when the data processing is conducted for the same attribute, the data development complexity is increased and the service efficiency is reduced due to the fact that the difference of the data model needs to be repeatedly defined are solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a hardware environment of an alternative object attribute-based data processing method according to an embodiment of the present application;
FIG. 2 is a flow diagram of an alternative object attribute-based data processing method according to an embodiment of the present application;
FIG. 3 is an alternative relational modeling schematic in accordance with an embodiment of the present application;
FIG. 4 is an alternative attribute modeling schematic according to an embodiment of the present application;
FIG. 5 is a block diagram of an alternative object attribute-based data processing apparatus according to an embodiment of the present application;
fig. 6 is a block diagram of an alternative electronic device according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiments of the present application, there is provided a method for processing data based on object properties. Alternatively, in the present embodiment, the above-described object attribute-based data processing method may be applied to a hardware environment as shown in fig. 1. As shown in fig. 1, the terminal 102 may include a memory 104, a processor 106, and a display 108 (optional components). The terminal 102 may be communicatively coupled to a server 112 via a network 110, the server 112 being operable to provide services (e.g., application services, etc.) to the terminal or to clients installed on the terminal, and a database 114 may be provided on the server 112 or independent of the server 112 for providing data storage services to the server 112. In addition, a processing engine 116 may be run in the server 112, which processing engine 116 may be used to perform the steps performed by the server 112.
Alternatively, the terminal 102 may be, but is not limited to, a terminal capable of calculating data, such as a mobile terminal (e.g., a mobile phone, a tablet computer), a notebook computer, a PC (personal computer) or the like, and the network may include, but is not limited to, a wireless network or a wired network. Wherein the wireless network comprises: bluetooth, WIFI (wireless fidelity) and other networks that enable wireless communications. The wired network may include, but is not limited to: wide area network, metropolitan area network, local area network. The server 112 may include, but is not limited to, any hardware device that can perform calculations.
In addition, in this embodiment, the method for processing data based on object attribute may be applied to, but not limited to, a stand-alone processing device with a relatively high processing capability, without data interaction. For example, the processing device may be, but is not limited to, a more processing-capable terminal device, i.e., the operations of the object-attribute-based data processing method described above may be integrated into a single processing device. The above is merely an example, and is not limited in any way in the present embodiment.
Alternatively, in the present embodiment, the above-described object attribute-based data processing method may be performed by the server 112, may be performed by the terminal 102, or may be performed by both the server 112 and the terminal 102. The terminal 102 may perform the object attribute-based data processing method according to the embodiment of the present application by a client installed thereon.
Taking the example of running on the server side, fig. 2 is a schematic flow chart of an alternative object attribute-based data processing method according to an embodiment of the present application, as shown in fig. 2, the flow of the method may include the following steps:
step S201, constructing a target model based on target requirements.
Optionally, in the embodiment of the present application, the target model to be constructed may be confirmed according to the current target requirement, such as the service requirement or the analysis requirement. The business requirements may be device purchase requirements, price analysis requirements, and the like.
Step S202, constructing a correspondingly contained target attribute according to the target model.
Optionally, some target attributes corresponding to the target attributes are generated according to the target model, and it is to be understood that the target attributes are typically attribute information to be built in the target model, for example, the target model is a device purchase model, and the corresponding target attributes should include a device ID, a device name, a device type, a device commissioning time, and the like.
Step S203, determining the source of the target attribute according to the preset business rule, and obtaining the association relationship between the target attribute and the target model.
Optionally, taking the target attribute as an equipment ID as an example, the attribution and the source of the attribute are analyzed according to the relationship between the value of the target attribute and the preset business rule. After determining the source of the target attribute, obtaining whether the association relationship between the target attribute and the target model is a attribution relationship or a reference relationship outside attribution.
Step S204, under the condition that an instruction for updating the target attribute is received, directly changing the target attribute at a target position or searching a home model of the target attribute based on a source of the target attribute according to the association relation, and changing the target attribute in the home model, wherein the target position is a position of the target attribute in the target model.
Optionally, if the target attribute needs to be changed, the server receives an instruction about updating the target attribute, then checks the target model to see all the attributes of the model, and then according to the association relationship between the target model and the target attribute, if the target attribute is generated by the target model, the target model is the attributive model of the target attribute, at this time, the target position of the target attribute in the target model is found, and the change of the attribute value is directly carried out at the target position; if the target property is not generated by the target model, then the relationship of the target property to the target model is a "reference," then the property rules cannot be modified directly in the target model. If the modification is confirmed to be continued, searching a attribution model of the target attribute based on the source of the target attribute, and modifying the target attribute through the attribution model.
In the embodiment of the application, a target model is built based on target requirements; constructing a target attribute correspondingly contained according to the target model; determining the source of the target attribute according to a preset business rule to obtain the association relationship between the target attribute and the target model; under the condition that an instruction for updating the target attribute is received, directly changing the target attribute at a target position or searching a home model of the target attribute based on a source of the target attribute according to the association relation, and changing the target attribute in the home model, wherein the target position is a position of the target attribute in the target model. According to the method and the device for processing the data, after the target attribute of the target model is obtained, the association relation between the target attribute and the target model is obtained, the attribution model of the target attribute is determined based on the association relation, then the attribution model is only changed in the attribution model when the target attribute is changed, so that the semantic difference between different data models is eliminated, the repeated definition of the target attribute in a plurality of data models is avoided, the development complexity caused by the fact that the complex blood-edge relation needs to be built in data processing analysis is avoided, the maintenance cost of a database is reduced, the efficiency of responding to service change is improved, and the problems that in the related art, when the data processing is conducted for the same attribute, the data development complexity is increased and the service efficiency is reduced due to the fact that the difference of the data model needs to be repeatedly defined are solved.
As an optional embodiment, determining a source of the target attribute according to a preset business rule to obtain an association relationship between the target attribute and the target model, including:
if the target attribute is generated in a business process or a data processing process corresponding to the target model, determining that the target attribute is derived from the target model, and taking the target model as a attribution model of the target attribute;
and creating target attributes in the target model, and recording the attribution relation between the target model and the target attributes.
Alternatively, as shown in fig. 3, the following model 1: equipment, model 2: measuring points; model 3: the device samples show that the device IDs are defined in three models, respectively, and then the device IDs are common attributes of the three models.
Taking the target attribute as the equipment ID, taking the model 1 as the target model as an example to describe the relationship between the attribute and the model and between the models: by business analysis, the device ID is generated during the business process or data processing process of the model 1, so the device ID is generated by the model 1 with respect to the model 1, so the model 1 is a home model of the device ID, at this time, an attribute of the device ID is created in the model 1, and a home relation between the model 1 and the device ID is recorded.
Similarly, if model 3 is used as the target model, then for model 3, the target properties are: the attribute values of the sampling ID, the sampling value and the sampling time are generated in the service process of equipment sampling, so that the model 3 is in a attribution relationship with the sampling ID, the sampling value and the sampling time, the model 3 is newly built with the three attributes, and the attribution relationship between the three attributes and the model 3 is recorded.
As an optional embodiment, determining a source of the target attribute according to a preset business rule to obtain an association relationship between the target attribute and the target model, including:
if the target attribute is generated before or after the business process or the data processing process corresponding to the target model, determining that the target attribute does not belong to the target model, and taking the target model as a reference model of the target attribute;
and analyzing the attribution model of the target attribute according to the preset business rule, and establishing a reference relation between the target model and the target attribute.
Alternatively, as shown in fig. 3, the following model 1: equipment, model 2: measuring points; model 3: the device samples show that the device IDs are defined in three models, respectively, and then the device IDs are common attributes of the three models.
Taking the target attribute as the equipment ID, taking the model 3 as the target model as an example to describe the relationship between the attribute and the model and between the models:
the device ID attribute value is not generated during the business of model 3, so that the device ID does not need to be created in the present model to be added as a new attribute; since the device ID is derived from the model 1 as seen from the model 1, the device ID of the model 3 is derived from the model 1, which is the device ID in the model 1, and the device ID and the model 3 are in a reference relationship (see fig. 4), and the model 1 and the model 3 are in an upstream-downstream relationship after the device ID is derived from the model 1.
Similarly, the attribute value of the measurement point ID in the model 3 is not generated in the service process, the measurement point ID comes from the model 2, and in this case, as shown in fig. 4, the reference relationship is also between the measurement point ID and the model 3, and the upstream-downstream relationship is also between the model 2 and the model 3.
Similarly, when the target attribute is taken as the device ID and the model 2 is taken as the target model, the device ID in the model 2 is also derived from the model 1, and in this case, as shown in fig. 4, the relationship between the device ID and the model 2 is a reference relationship, and the relationship between the model 1 and the model 2 is an upstream-downstream relationship.
To sum up, model 1 is downstream of model 2 and model 3, and model 2 is downstream of model 3.
In addition, when the attribute value of the target attribute is changed, the target attribute is a device ID, the sample value, and the target model is model 3, and the sample value is generated in the service of the model, and the attribute and the model are in the attribution relationship, so that the change can be modified in the model. Whereas the device ID is not generated in the present model, which refers only to attributes and therefore cannot be directly modified. The device ID is found to be attributed to the device model (i.e., model 1) by the attribute-model relationship, and therefore, to modify the device ID attribute, it is only possible to modify it in the device model. After modifying the device ID attribute in the device model, the site model referencing the device ID attribute (i.e., model 2) and the device sampling model (i.e., model 3) are acted upon simultaneously.
In the embodiment of the application, a new thought is provided for data management, which model the data is generated in is the standard, and which model is the standard, so that the attribute value is only changed in the attribution model, the repeated definition of the physical model attribute of the database is reduced, and the semantic difference between different models is eliminated.
As an alternative embodiment, the method further comprises:
when the target attribute in the attribution model is changed, the changed target attribute is synchronized into the reference model of the target attribute, so that the target attribute in the reference model is updated to be the changed target attribute.
Optionally, in the embodiment of the present application, in order to maintain consistency of data between all models, when it is determined that a target attribute in a home model changes, for example, when a character type, a length, a decimal point, and the like of the attribute change, a final changed attribute value is synchronized into a reference model of the target attribute, so that synchronization of the reference model is affected, and consistency of changing the target attribute is achieved.
In the embodiment of the application, the risk of inconsistent data models is eliminated fundamentally, so that maintenance of a data system is not difficult to advance due to the fact that the data volume is increased suddenly, the complexity of the data is increased, the flow of developers and the like.
As an alternative embodiment, constructing the object attribute correspondingly included according to the object model includes:
determining service logic and service boundary of the target model according to the target model;
and determining an attribute list required by the target model according to the service logic and the service boundary to obtain a plurality of target attributes.
Optionally, the target attribute is usually related to the target model, and in this case, when the target attribute is constructed, the service logic and the service boundary of the target model need to be determined first according to the target model, and then the attribute list required by the target model is determined based on the service logic and the service boundary, so as to obtain a plurality of target attributes. For example, in fig. 3, the attribute list of model 1 includes a plurality of target attributes: device ID, device name, device type, etc.
In the embodiment of the application, after the target attribute is constructed, the relation between the model and the attribute is conveniently established, so that the maintenance cost of the database is reduced, and the efficiency of responding to the service change is improved.
As an alternative embodiment, the method further comprises:
establishing an upstream-downstream dependency relationship between a reference model and a attribution model of the target attribute based on the target attribute;
under the condition that indication information of monitoring abnormality is received, determining a data flow direction according to the upstream-downstream dependency relationship;
and positioning the abnormal problem according to the data flow direction.
Optionally, query the usage model of the target attribute: selecting target attributes to be monitored in any model (if the whole model is required to be subjected to data monitoring, all the attributes of the model are subjected to the same processing, taking an attribute as an example below), obtaining an attribution model and all reference models of the attribute through a target attribute and model relation table by the system, and then establishing upstream and downstream dependency relations between the reference models and the attribution model.
After the above-mentioned upstream-downstream dependency relationship is obtained, the data flow direction of the attribute data can be obtained. When determining that a monitoring anomaly currently occurs, it is possible to locate where the anomaly problem occurs based on this data flow direction.
In the embodiment of the application, a brand new thought is provided for monitoring the data link, and the situation that complex blood-cause relations need to be constructed when data processing analysis is carried out is avoided.
As an alternative embodiment, before receiving the indication information of the monitoring abnormality, the method further includes:
verifying the target attribute;
and under the condition that the target attribute in the reference model is inconsistent with the target attribute in the attribution model, judging that the reference model is abnormal, and sending indication information for monitoring the abnormality, wherein the reference model is any model in the reference models.
Optionally, in the embodiment of the present application, the data link anomaly monitoring is performed according to verification of a target attribute, specifically, an attribute value corresponding to a home model of the attribute is used as a verification reference, and the attribute values of all reference models are verified, if all the values are matched with the value of the home model, it is indicated that the data is accurate and the monitoring is normal. If a reference model is found by comparison, for example, the data in the reference model is not matched, the condition that the data in the reference model is abnormal is indicated, the abnormality indication information is sent, and then the problem is further located.
The reference model of abnormal data is taken as a base point, and the process with problems can be analyzed and positioned through the circulation direction of the data. And finally, monitoring is completed, and a monitoring result is obtained.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM (Read-only memory)/RAM (RandomAccess Memory), magnetic disk, optical disc), including instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the embodiments of the present application.
According to another aspect of the embodiments of the present application, there is also provided an object-based attribute data processing apparatus for implementing the above-described object-based attribute data processing method. FIG. 5 is a block diagram of an alternative object attribute-based data processing apparatus according to an embodiment of the present application, as shown in FIG. 5, which may include:
a first construction module 501, configured to construct a target model based on target requirements;
a second construction module 502, configured to construct a target attribute correspondingly included according to the target model;
an obtaining module 503, configured to determine a source of the target attribute according to a preset business rule, and obtain an association relationship between the target attribute and the target model;
and the modification module 504 is configured to, when receiving an instruction for updating the target attribute, directly modify the target attribute at a target location according to the association relationship or search a home model of the target attribute based on a source of the target attribute, and modify the target attribute in the home model, where the target location is a location where the target attribute is located in the target model.
It should be noted that, the first building block 501 in this embodiment may be used to perform the above-mentioned step S201, the second building block 502 in this embodiment may be used to perform the above-mentioned step S202, the obtaining block 503 in this embodiment may be used to perform the above-mentioned step S203, and the modifying block 504 in this embodiment may be used to perform the above-mentioned step S204.
Through the module, after the target attribute of the target model is obtained, the association relation between the target attribute and the target model is obtained, the attribution model of the target attribute is determined based on the association relation, and then the attribution model is only changed in the attribution model when the target attribute is changed, so that the semantic difference between different data models is eliminated, the repeated definition of the target attribute in a plurality of data models is avoided, the development complexity caused by the fact that the complex blood-edge relation needs to be built in data processing analysis is avoided, the maintenance cost of a database is reduced, the efficiency of responding to service change is improved, and the problems that in the related art, when the data processing is carried out on the same attribute, the data development complexity is increased and the service efficiency is reduced due to the fact that the difference of the data model needs to be repeatedly defined are solved.
As an alternative embodiment, the obtaining module comprises:
the first determining unit is used for determining that the target attribute is derived from the target model and taking the target model as a attribution model of the target attribute if the target attribute is generated in a business process or a data processing process corresponding to the target model;
and the recording unit is used for creating the target attribute in the target model and recording the attribution relation between the target model and the target attribute.
Optionally, the obtaining module includes:
the second determining unit is used for determining that the target attribute does not belong to the target model if the target attribute is generated before or after the business process or the data processing process corresponding to the target model, and taking the target model as a reference model of the target attribute;
the building unit is used for analyzing the attribution model of the target attribute according to the preset business rule and building the reference relation between the target model and the target attribute.
Optionally, the apparatus further comprises:
and the change module is used for synchronizing the changed target attribute into the reference model of the target attribute when the target attribute in the attribution model is changed, so that the target attribute in the reference model is updated to be the changed target attribute.
Optionally, the second building block comprises:
the third determining unit is used for determining service logic and service boundaries of the target model according to the target model;
the obtaining unit is used for determining an attribute list required by the target model according to the service logic and the service boundary to obtain a plurality of target attributes.
Optionally, the apparatus further comprises:
the building module is used for building an upstream-downstream dependency relationship between the reference model and the attribution model of the target attribute based on the target attribute;
The determining module is used for determining the data flow direction according to the upstream-downstream dependency relationship under the condition that the indication information of the monitoring abnormality is received;
and the positioning module is used for positioning the abnormal problem according to the data flow direction.
Optionally, the apparatus further comprises:
the verification module is used for verifying the target attribute before receiving the indication information of the monitoring abnormality;
the sending module is used for judging that the reference model is abnormal under the condition that the target attribute in the reference model is inconsistent with the target attribute in the attribution model, and sending indication information for monitoring the abnormality, wherein the reference model is any model in the reference models.
According to still another aspect of the embodiments of the present application, there is also provided an electronic device for implementing the above object attribute-based data processing method, where the electronic device may be a server, a terminal, or a combination thereof.
Fig. 6 is a block diagram of an alternative electronic device, according to an embodiment of the present application, including a processor 601, a communication interface 602, a memory 603, and a communication bus 604, as shown in fig. 6, wherein the processor 601, the communication interface 602, and the memory 603 perform communication with each other via the communication bus 604, wherein,
A memory 603 for storing a computer program;
the processor 601 is configured to execute the computer program stored in the memory 603, and implement the following steps:
constructing a target model based on target requirements;
constructing a target attribute correspondingly contained according to the target model;
determining the source of the target attribute according to a preset business rule to obtain the association relationship between the target attribute and the target model;
under the condition that an instruction for updating the target attribute is received, directly changing the target attribute at a target position or searching a home model of the target attribute based on a source of the target attribute according to the association relation, and changing the target attribute in the home model, wherein the target position is a position of the target attribute in the target model.
Alternatively, in the present embodiment, the above-described communication bus may be a PCI (Peripheral ComponentInterconnect, peripheral component interconnect standard) bus, or an EISA (Extended Industry Standard Architecture ) bus, or the like. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, only one thick line is shown in fig. 6, but not only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The memory may include RAM or may include non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
As an example, as shown in fig. 6, the memory 603 may include, but is not limited to, the first building block 501, the second building block 502, the obtaining block 503, and the modifying block 504 in the object attribute-based data processing apparatus. In addition, other module units in the object attribute-based data processing apparatus may be included, but are not limited to, and are not described in detail in this example.
The processor may be a general purpose processor and may include, but is not limited to: CPU (Central Processing Unit ), NP (Network Processor, network processor), etc.; but also DSP (Digital SignalProcessing, digital signal processor), ASIC (Application SpecificIntegrated Circuit ), FPGA (Field-ProgrammableGate Array, field programmable gate array) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
In addition, the electronic device further includes: and a display for displaying the object attribute data processing result.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the structure shown in fig. 6 is only illustrative, and the device implementing the object attribute data processing method may be a terminal device, and the terminal device may be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palm computer, a mobile internet device (MobileInternet Devices, MID), a PAD, etc. Fig. 6 is not limited to the structure of the electronic device described above. For example, the terminal device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in fig. 6, or have a different configuration than shown in fig. 6.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute in association with hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, ROM, RAM, magnetic or optical disk, etc.
According to yet another aspect of embodiments of the present application, there is also provided a storage medium. Alternatively, in the present embodiment, the above-described storage medium may be used to execute the program code of the object attribute-based data processing method.
Alternatively, in this embodiment, the storage medium may be located on at least one network device of the plurality of network devices in the network shown in the above embodiment.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of:
constructing a target model based on target requirements;
constructing a target attribute correspondingly contained according to the target model;
determining the source of the target attribute according to a preset business rule to obtain the association relationship between the target attribute and the target model;
under the condition that an instruction for updating the target attribute is received, directly changing the target attribute at a target position or searching a home model of the target attribute based on a source of the target attribute according to the association relation, and changing the target attribute in the home model, wherein the target position is a position of the target attribute in the target model.
Alternatively, specific examples in the present embodiment may refer to examples described in the above embodiments, which are not described in detail in the present embodiment.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a U disk, ROM, RAM, a mobile hard disk, a magnetic disk or an optical disk.
According to yet another aspect of embodiments of the present application, there is also provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium; the processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the object attribute based data processing method steps of any of the embodiments described above.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the object attribute data processing method according to the embodiments of the present application.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and are merely a logical functional division, and there may be other manners of dividing the apparatus in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in the present embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (7)

1. A method for processing data based on object properties, the method comprising:
constructing a target model based on target requirements;
constructing a target attribute correspondingly contained according to the target model;
determining the source of the target attribute according to a preset business rule to obtain the association relationship between the target attribute and the target model; the determining the source of the target attribute according to the preset business rule to obtain the association relationship between the target attribute and the target model includes: if the target attribute is generated in a business process or a data processing process corresponding to the target model, determining that the target attribute is derived from the target model, and taking the target model as a attribution model of the target attribute; creating the target attribute in the target model, and recording the attribution relation between the target model and the target attribute; if the target attribute is generated before or after a business process or a data processing process corresponding to the target model, determining that the target attribute is not attributed to the target model, and taking the target model as a reference model of the target attribute; analyzing the attribution model of the target attribute according to the preset business rule, and establishing a reference relation between the target model and the target attribute;
Under the condition that an instruction for updating the target attribute is received, directly changing a target position or searching a home model of the target attribute based on a source of the target attribute according to the association relation, and changing the target attribute in the home model, wherein the target position is a position of the target attribute in the target model;
and synchronizing the changed target attribute into the reference model of the target attribute when the target attribute in the attribution model is changed, so that the target attribute in the reference model is updated to be the changed target attribute.
2. The method of claim 1, wherein constructing the correspondingly included target attribute from the target model comprises:
determining service logic and service boundaries of the target model according to the target model;
and determining an attribute list required by the target model according to the service logic and the service boundary to obtain a plurality of target attributes.
3. The method according to claim 1, wherein the method further comprises:
establishing an upstream-downstream dependency relationship between the reference model and the attribution model of the target attribute based on the target attribute;
Under the condition that indication information of monitoring abnormality is received, determining a data flow direction according to the upstream-downstream dependency relationship;
and positioning the abnormal problem according to the data flow direction.
4. A method according to claim 3, wherein before receiving the indication of the monitoring anomaly, the method further comprises:
verifying the target attribute;
and under the condition that the target attribute in the reference model is inconsistent with the target attribute in the attribution model, judging that the reference model is abnormal, and sending indication information of the monitoring abnormality, wherein the reference model is any model in the reference models.
5. An object attribute-based data processing apparatus, the apparatus comprising:
the first construction module is used for constructing a target model based on target requirements;
the second construction module is used for constructing target attributes correspondingly contained according to the target model;
the obtaining module is used for determining the source of the target attribute according to a preset business rule and obtaining the association relationship between the target attribute and the target model; wherein the obtaining module comprises: the first determining unit is used for determining that the target attribute is derived from the target model if the target attribute is generated in a business process or a data processing process corresponding to the target model, and taking the target model as a attribution model of the target attribute; the recording unit is used for creating the target attribute in the target model and recording the attribution relation between the target model and the target attribute; a second determining unit, configured to determine that the target attribute does not belong to the target model if the target attribute is generated before or after a business process or a data processing process corresponding to the target model, and use the target model as a reference model of the target attribute; the establishing unit is used for analyzing the attribution model of the target attribute according to the preset business rule and establishing a reference relation between the target model and the target attribute;
The modification module is used for directly modifying the target attribute at a target position according to the association relation or searching a home model of the target attribute based on the source of the target attribute under the condition that an instruction for updating the target attribute is received, and modifying the target attribute in the home model, wherein the target position is the position of the target attribute in the target model;
and the change module is used for synchronizing the changed target attribute into the reference model of the target attribute when the target attribute in the attribution model is changed, so that the target attribute in the reference model is updated to be the changed target attribute.
6. An electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus, characterized in that,
the memory is used for storing a computer program;
the processor is configured to perform the method steps of any of claims 1 to 4 by running the computer program stored on the memory.
7. A computer-readable storage medium, characterized in that the storage medium has stored therein a computer program, wherein the computer program, when executed by a processor, implements the method steps of any of claims 1 to 4.
CN202310113867.7A 2023-02-15 2023-02-15 Object attribute-based data processing method and device, electronic equipment and storage medium Active CN115774707B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310113867.7A CN115774707B (en) 2023-02-15 2023-02-15 Object attribute-based data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310113867.7A CN115774707B (en) 2023-02-15 2023-02-15 Object attribute-based data processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115774707A CN115774707A (en) 2023-03-10
CN115774707B true CN115774707B (en) 2023-05-12

Family

ID=85393709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310113867.7A Active CN115774707B (en) 2023-02-15 2023-02-15 Object attribute-based data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115774707B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116204554B (en) * 2023-05-04 2023-08-08 浙江康勒工业软件有限公司 Data processing method, system, electronic device and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115469833A (en) * 2022-07-29 2022-12-13 天翼云科技有限公司 Method and device for implementing dynamic rule engine, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182410A (en) * 2013-05-24 2014-12-03 利德科技发展有限公司 Dynamic proxy system and method of target relation mapping system
CN107766396B (en) * 2017-03-03 2020-03-27 平安医疗健康管理股份有限公司 Resource data management method and device
CN112650855B (en) * 2020-12-26 2022-09-13 曙光信息产业股份有限公司 Knowledge graph engineering construction method and device, computer equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115469833A (en) * 2022-07-29 2022-12-13 天翼云科技有限公司 Method and device for implementing dynamic rule engine, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115774707A (en) 2023-03-10

Similar Documents

Publication Publication Date Title
CN105580032B (en) For reducing instable method and system when upgrading software
WO2018000607A1 (en) Method and electronic apparatus for identifying test case failure causes
CN111694592A (en) Management method and system for project version release
CN111309734B (en) Method and system for automatically generating table data
US11531539B2 (en) Automated compliance and testing framework for software development
CN115774707B (en) Object attribute-based data processing method and device, electronic equipment and storage medium
CN113448862B (en) Software version testing method and device and computer equipment
CN114116496A (en) Automatic testing method, device, equipment and medium
CN112380145A (en) SDK generation method, device, equipment and readable storage medium
CN111108481A (en) Fault analysis method and related equipment
CN111435367A (en) Knowledge graph construction method, system, equipment and storage medium
CN109284331B (en) Certificate making information acquisition method based on service data resources, terminal equipment and medium
CN114490375A (en) Method, device and equipment for testing performance of application program and storage medium
CN114489762A (en) Method and system for realizing multi-version application and electronic equipment
CN111523921B (en) Funnel analysis method, analysis device, electronic device, and readable storage medium
CN113220907A (en) Business knowledge graph construction method and device, medium and electronic equipment
CN109828883B (en) Task data processing method and device, storage medium and electronic device
CN114817482A (en) Method, device and equipment for determining product manufacturing program and storage medium
CN113706098B (en) Business-based deviation reason identification method and device and electronic equipment
CN113656318A (en) Software version testing method and device and computer equipment
CN111444170B (en) Automatic machine learning method and equipment based on predictive business scene
CN112631905A (en) Execution process data management method and device, computer equipment and storage medium
CN112579458A (en) Test method, device, equipment and storage medium of actuarial system
CN112416896A (en) Data abnormity warning method and device, storage medium and electronic device
CN113010424B (en) Interface automatic test processing method, system, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant