CN113127689B - Data processing method, device, equipment and storage medium - Google Patents

Data processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN113127689B
CN113127689B CN202110488801.7A CN202110488801A CN113127689B CN 113127689 B CN113127689 B CN 113127689B CN 202110488801 A CN202110488801 A CN 202110488801A CN 113127689 B CN113127689 B CN 113127689B
Authority
CN
China
Prior art keywords
text content
object information
text
transaction
line
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
CN202110488801.7A
Other languages
Chinese (zh)
Other versions
CN113127689A (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.)
Zhengfeng Runjie Technology Shanxi Co ltd
Original Assignee
Zhengfeng Runjie Technology Shanxi 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 Zhengfeng Runjie Technology Shanxi Co ltd filed Critical Zhengfeng Runjie Technology Shanxi Co ltd
Priority to CN202110488801.7A priority Critical patent/CN113127689B/en
Publication of CN113127689A publication Critical patent/CN113127689A/en
Application granted granted Critical
Publication of CN113127689B publication Critical patent/CN113127689B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/81Indexing, e.g. XML tags; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/83Querying
    • G06F16/838Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention relates to the field of data processing, and discloses a data processing method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring a service structure graph in a specified format which is drawn by a user through a front end, and analyzing the service structure graph in the specified format to obtain one or more service object information corresponding to the service structure graph; constructing a transaction structure model by using one or more business object information; according to the corresponding relation between the preset template and the model, a transaction data display template corresponding to the transaction structure model is determined, the transaction data display template and the transaction structure model are bound, and a target transaction structure model for displaying transaction data by the transaction data display template is determined, so that the automatic and intelligent requirements of users on the transaction structure model are met, the information transmission quality is improved, and the information visualization is improved. The present invention relates to blockchain technology, such as task data may be written into the blockchain for use in data forensics and other scenarios.

Description

Data processing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a data processing method, apparatus, device, and storage medium.
Background
At present, the management of business transaction data is mainly that a transaction structure model for displaying the transaction data is deployed at the rear end for a front-end user to use, and the method lacks information visualization, if the transaction structure model is required to be changed according to business requirements, a rear-end research and development personnel is required to modify the transaction structure model according to the business requirements and then can use the transaction structure model, the business progress is slow, and the efficiency of business data processing is reduced, so that how to realize the requirements of the user on the automation and the intellectualization of the transaction structure model, so that the data processing efficiency is improved, and the realization of information visualization is particularly important.
Disclosure of Invention
The embodiment of the invention provides a data processing method, a device, equipment and a storage medium, which meet the requirements of users on automation and intellectualization of a transaction structure model, improve the information transmission quality and improve the information visualization.
In a first aspect, an embodiment of the present invention provides a data processing method, where the method includes:
Acquiring a service structure graph in a specified format which is drawn by a user through a front end mxGraph, wherein the service structure graph is used for indicating service relations among a plurality of service entities;
Analyzing the business structure graph in the appointed format to obtain one or more business object information corresponding to the business structure graph;
storing the one or more business object information to a database, and constructing a transaction structure model by using the one or more business object information through the database;
determining a transaction data display template corresponding to the transaction structure model according to the corresponding relation between a preset template and a model, binding the transaction data display template corresponding to the transaction structure model with the transaction structure model, and determining a target transaction structure model for displaying transaction data by using the transaction data display template.
Further, the specified format includes an xml format; the analyzing the service structure graph with the specified format to obtain one or more service object information corresponding to the service structure graph comprises the following steps:
reading an xml file of the business structure graph in the xml format to a memory;
reading text content of each line of text in the xml file, and filtering and screening the text content of each line of text;
And analyzing the text content of the target text object obtained by filtering and screening to obtain one or more pieces of business object information corresponding to the business structure graph.
Further, the filtering and screening the text content of each line of text includes:
selecting text content information matched with the specified label from the text content of each line of text by using the specified regular expression;
And storing the text content information matched with the specified label into a target text object.
Further, the business object information comprises transaction entity object information; analyzing the text content of the target text object obtained by filtering and screening to obtain one or more pieces of service object information corresponding to the service structure graph, wherein the method comprises the following steps:
Detecting whether each line of text content in the target text object contains first appointed text content or not;
If the detection result is yes, determining that the line text content containing the first appointed text content in the target text object is transaction entity object information, and analyzing the line text content containing the first appointed text content to obtain the transaction entity object information.
Further, the parsing the line text content including the first specified text content to obtain the transaction entity object information includes:
Performing segmentation operation on the line text content containing the first appointed text content to obtain segmented text data;
and traversing each item of data in the segmented text data, and searching attribute information corresponding to the first appointed keyword.
Further, the business object information comprises funding flow object information; analyzing the text content of the target text object obtained by filtering and screening to obtain one or more pieces of service object information corresponding to the service structure graph, wherein the method comprises the following steps:
acquiring directed link object information and tag object information associated with the directed link object from text content of the target text object;
and determining fund flow object information according to the directed link object and a tag object associated with the directed link object.
Further, the determining the fund flow object information according to the directed link object and the tag object associated with the directed link object includes:
detecting whether each line of text content of the target text object comprises second designated text content or not;
If the detection result is yes, segmenting the line text content containing the second specified text content to obtain segmented text data, and traversing each item of data of the segmented text data to determine directed link object information and tag object information associated with the directed link object;
querying attribute information in line text content of tag object information associated with the directed link object from line text content of tag object information associated with the directed link object, and determining fund flow object information according to the attribute information in the line text content.
In a second aspect, an embodiment of the present invention provides a data processing apparatus, including:
The system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a service structure graph in a specified format which is drawn by a user through a front end mxGraph, wherein the service structure graph is used for indicating service relations among a plurality of service entities;
The analysis unit is used for analyzing the business structure graph in the appointed format to obtain one or more business object information corresponding to the business structure graph;
The construction unit is used for storing the one or more business object information into a database and constructing a transaction structure model by utilizing the one or more business object information through the database;
The display unit is used for determining a transaction data display template corresponding to the transaction structure model according to the corresponding relation between a preset template and the model, binding the transaction data display template corresponding to the transaction structure model with the transaction structure model, and determining a target transaction structure model for displaying transaction data by using the transaction data display template.
In a third aspect, an embodiment of the present invention provides a computer device, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, and the memory is configured to store a computer program that supports a data processing apparatus to execute the method described above, where the computer program includes a program, and where the processor is configured to invoke the program to execute the method of the first aspect described above.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium storing a computer program for execution by a processor to implement the method of the first aspect.
The embodiment of the invention can acquire the service structure graph in the appointed format which is drawn by the user through the front end mxGraph, wherein the service structure graph is used for indicating the service relationship among a plurality of service entities; analyzing the business structure graph in the appointed format to obtain one or more business object information corresponding to the business structure graph; storing the one or more business object information to a database, and constructing a transaction structure model by using the one or more business object information through the database; determining a transaction data display template corresponding to the transaction structure model according to the corresponding relation between a preset template and a model, binding the transaction data display template corresponding to the transaction structure model with the transaction structure model, and determining a target transaction structure model for displaying transaction data by using the transaction data display template. By the method, the automatic and intelligent requirements of users on the transaction structure model are met, the information transmission quality is improved, and the information visualization is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a business architecture diagram according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a transaction structure model according to an embodiment of the present invention;
FIG. 4 is a schematic block diagram of a data processing apparatus provided by an embodiment of the present invention;
Fig. 5 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The data processing method provided by the embodiment of the invention can be applied to a data processing device, and in some embodiments, the data processing device is arranged in a computer device. In certain embodiments, the computer device includes, but is not limited to, one or more of a smart phone, tablet, laptop, etc.
The embodiment of the invention can acquire the service structure graph of the appointed format which is drawn by the user through the front end, filter the service structure graph of the appointed format, screen out the text content information matched with the appointed label, and analyze the text content information matched with the appointed label so as to obtain the attribute information corresponding to each appointed text content; determining transaction entity object information and fund flow object information according to the attribute information, storing the transaction entity object information and the fund flow object information into a database, and constructing a transaction structure model by utilizing the transaction entity object information and the fund flow object information through the database; binding a transaction data display template corresponding to the transaction structure model with the transaction structure model according to the corresponding relation between the preset template and the model, and determining to generate a target transaction structure model for displaying transaction data by using the transaction data display template.
A data processing method according to an embodiment of the present invention is schematically described below with reference to fig. 1.
Referring to fig. 1, fig. 1 is a schematic flowchart of a data processing method according to an embodiment of the present invention, and as shown in fig. 1, the method may be performed by a data processing apparatus, where the data processing apparatus is disposed in a computer device. Specifically, the method of the embodiment of the invention comprises the following steps.
S101: and acquiring a service structure graph in a specified format which is drawn by a user through the front end mxGraph, wherein the service structure graph is used for indicating service relations among a plurality of service entities.
In the embodiment of the invention, the data processing device can acquire the service structure graph in the specified format which is drawn by the user through the front end mxGraph, wherein the service structure graph is used for indicating the service relationship among a plurality of service entities. In some embodiments, the specified format may be an xml format; in some embodiments, the business relationship includes, but is not limited to, a funding flow relationship.
In one embodiment, the business structure graph with the specified format comprises a plurality of transaction entity objects and fund flow objects. In some embodiments, the transaction entity object includes, but is not limited to, an entity number, an entity name such as a company logo, a business name, etc., and the funds flow object includes, but is not limited to, funds flow information including, but is not limited to, a funds name, a funds identification, a funds action type (payment/billing, etc.), and a funds flow direction, which is determined from the egress entity and the ingress entity.
Specifically, fig. 2 is taken as an example to schematically illustrate a service structure graph in a specified format that is drawn by the front end mxGraph, and fig. 2 is a schematic diagram of a service structure graph provided by an embodiment of the present invention. The business structure graph shown in fig. 2 includes 4 transaction entity objects, specifically including: the country has a card holding institution, a resource management company, an external collection company and a fund party, wherein the direction pointed by the arrow is the direction of the fund flow flowing into the entity.
S102: and analyzing the business structure graph in the appointed format to obtain one or more pieces of business object information corresponding to the business structure graph.
In the embodiment of the invention, the data processing device can analyze the business structure graph with the specified format to obtain one or more pieces of business object information corresponding to the business structure graph.
In one embodiment, the specified format comprises an xml format; the data processing device can read an xml file of the business structure graph in the xml format to a memory when analyzing the business structure graph in the specified format to obtain one or more pieces of business object information corresponding to the business structure graph; reading text content of each line of text in the xml file, and filtering and screening the text content of each line of text; and analyzing the text content of the target text object obtained by filtering and screening to obtain one or more pieces of business object information corresponding to the business structure graph.
In one embodiment, when the data processing device filters and screens the text content of each line of text, a specified regular expression can be utilized to screen text content information matched with a specified label from the text content of each line of text; and storing the text content information matched with the specified label into a target text object.
In some embodiments, the specified label may be "< mxCell", and the data processing apparatus may screen out the text content of the line starting with "< mxCell" from the text content of each line of text using the specified regular expression. In some embodiments, the target text object may be strParsedGraphXml.
In one embodiment, redundant data such as text content of noise class lines corresponding to tags such as "< mxGraphModel" and "< root >" may be deleted when filtering text content of each line of text.
Therefore, the method and the device can be used for deleting redundant data by screening the text content of each line of text corresponding to the business structure graph in the xml format, so that the speed of subsequent analysis and searching can be improved.
In one embodiment, when the service structure graph with the specified format is analyzed, the text content of the target text object obtained by screening can be analyzed to obtain one or more pieces of service object information corresponding to the service structure graph. In some embodiments, the business object information includes transaction entity object information, funds stream object information.
In one embodiment, the business object information comprises transaction entity object information; the data processing device can detect whether each line of text content in the target text object contains first appointed text content or not when analyzing the text content of the target text object obtained by filtering and screening to obtain one or more pieces of service object information corresponding to the service structure graph; if the detection result is yes, determining that the line text content containing the first appointed text content in the target text object is transaction entity object information, and analyzing the line text content containing the first appointed text content to obtain the transaction entity object information.
For example, assume that the text content of the current line in the target text object contains a first specified text content "style=" rotated=1; WHITESPACE = wrap; html=1; and if yes, acquiring all text contents corresponding to the specified label < mxCell corresponding to the first specified text content as follows: < mxCell id = "2" value= "company a" style= "rounded = 1; WHITESPACE = wrap; html=1; "vertex=" 1 "parent=" 1 ". It should be noted that, in mxGraph, a rectangle, a directional arrow line segment, and even a label on a line segment are all considered as a mxCell, with id corresponding to a unique label of a specified label mxCell of a line text in the whole Graph. mxCell, which is used to indicate a rectangle, part=1, and vertrex is denoted as a transaction entity.
In one embodiment, when the data processing device parses the line text content including the first specified text content to obtain the transaction entity object information, the data processing device may perform a segmentation operation on the line text content including the first specified text content to obtain segmented text data; and traversing each item of data in the segmented text data, and searching attribute information corresponding to the first appointed keyword.
In one embodiment, the text content of the line may be subjected to a segmentation operation through a space symbol ("") to obtain segmented text data, each item of data in the segmented text data is traversed, and when the segmented text data is found to include a first specified keyword, attribute configuration information of the first specified keyword may be obtained, so that attribute information corresponding to the first specified keyword is determined according to the attribute configuration information. For example, assuming that a first specified keyword is a value, the obtained attribute configuration information of the first specified keyword value is: value= "company a", attribute information corresponding to the first specified keyword value may be determined as: "company A".
In one embodiment, when determining the attribute information corresponding to the first specified keyword according to the attribute configuration information, the attribute configuration information may be subjected to a slicing operation by an equal sign ("=") to obtain the attribute information corresponding to the first specified keyword. For example, segment information is configured for the attribute by an equal sign ("="): the value= "company a" performs a slicing operation to obtain 2 strings of "value" and "" "company a" (including quotation marks), and calls a general replay function, replaces "" (half-angle double quotation marks) with an empty string "", that is, replaces the second string "" "company a" with "company a", thereby obtaining a value of "value" company a "(including quotation marks).
In one embodiment, the business object information comprises funding stream object information; the data processing device can acquire directed connection object information and tag object information related to the directed connection object from the text content of the target text object when analyzing the text content of the target text object obtained by filtering and screening to obtain one or more pieces of service object information corresponding to the service structure graph; and determining fund flow object information according to the directed link object and a tag object associated with the directed link object.
In one embodiment, the data processing apparatus may detect whether the second specified text content is included in each line of text content of the target text object when determining the fund flow object information according to the directed link object and the tag object associated with the directed link object; if the detection result is yes, segmenting the line text content containing the second specified text content to obtain segmented text data, and traversing each item of data of the segmented text data to determine directed link object information and tag object information associated with the directed link object; querying attribute information in line text content of tag object information associated with the directed link object from line text content of tag object information associated with the directed link object, and determining fund flow object information according to the attribute information in the line text content.
For example, assume that the current line of text content of the target text object includes a second specified text content therein: style= "edgeLabel; html=1; align = center; VERTICALALIGN = middle; resizable = 0; points= [ ]; "vertex=" 1", the line text content included in the specified tag < mxCell corresponding to the second specified text content may be obtained as follows: < mxCell id = "7" value= "funds flow 2"style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];"vertex="1"connectable="0"parent="5">.
In one embodiment, the text content of the line may be subjected to a segmentation operation through a space symbol ("") to obtain segmented text data, each item of data of the segmented text data is traversed, when the segmented text data includes a first specified keyword, attribute configuration information of the first specified keyword may be obtained, so as to determine attribute information corresponding to the first specified keyword according to the attribute configuration information, and determine a directed link object according to the attribute information corresponding to the first specified keyword.
For example, the line text content of the second specified text content is: < mxCell id = "7" value= "value of the first specified keyword of the funds flow 2"style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];"vertex="1"connectable="0"parent="5">, is value, the attribute configuration information of the first specified keyword value may be obtained as follows: value= "funds flow 2", attribute information corresponding to the first specified keyword value may be determined as: "funds stream 2" and thus a directed join object may be determined to be funds stream 2.
In one embodiment, when the segmented text data is found to include the second specified keyword, attribute information of the second specified keyword may be obtained, and an outgoing label object of the label object associated with the directed link object may be determined according to the attribute information of the second specified keyword.
For example, the line text content of the second specified text content is: < mxCell id = "7" value= "the second specified keyword of the fund flow 2"style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];"vertex="1"connectable="0"parent="5">, is id, the attribute configuration information of the second specified keyword id may be obtained as follows: id= "7", attribute information corresponding to the second specified keyword id may be determined as: and 7, determining that the outflow label object of the label object associated with the directed link object is id= "7" according to the attribute information of the second specified keyword.
In one embodiment, when the segmented text data is found to include the third specified keyword, attribute information of the third specified keyword may be obtained, and the inflow tag object of the tag object associated with the directed link object may be determined according to the attribute information of the third specified keyword.
For example, the line text content of the second specified text content is: < mxCell id = "7" value= "funds flow 2"style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];"vertex="1"connectable="0"parent="5">, the attribute configuration information of the third specified keyword" parent "may be obtained by the third specified keyword" parent "as follows: the parent= "5", the attribute information of the third specified keyword parent may be determined as: "5", here parent points to an object with id= "5".
In one embodiment, the attribute information in the line text content of the tag object associated with the directed link object can be queried according to the line text content of the tag object associated with the directed link object, and the fund flow object information can be determined according to the attribute information in the line text content.
For example, assuming that the tag object associated with the directed link object is id= "5", the line text content :"<mxCell id="5"style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.75;exitY=0;exitDx=0;exitDy=0;entryX=0.75;entryY=1;entryDx=0;entryDy=0;"edge="1"parent="1"source="3"target="2">", included in the specified tag < mxCell corresponding to id= "5" may be acquired, and the value of the source attribute thereof may be acquired as "3", and the value of the target attribute as "2", whereby the funds stream named "funds stream 2" may be known, the payment object thereof is a transaction entity object of id= "2", and the payment party thereof is a transaction entity object of id= "3". Further, the line text content of the object with id=2 can be determined according to the object with id=2 as follows: < mxCell id = "2" value= "company a" style= "rounded = 1; WHITESPACE = wrap; html=1; "vertex=" 1 "parent=" 1">; and determining the line text content of the object with id=3 as follows: < mxCell id = "3" value= "company B" style= "rounded = 1; WHITESPACE = wrap; html=1; "vertex=" 1 "parent=" 1 ". It can thus be determined that id= "2" corresponds to "company a", id= "3" corresponds to "company B", and that the funds flow 2 is company a paid to company B. Note that edge=1 of mxCell is used to indicate a line segment; source is used for indicating the starting id of the line segment, and Target is used for indicating the Target id of the line segment; with these 2 values, one can define the outgoing transaction entity object and the incoming transaction entity object in the fund flow object.
S103: storing the one or more business object information to a database, and constructing a transaction structure model by the database by utilizing the one or more business object information.
In the embodiment of the invention, the data processing device can store the one or more business object information into a database, and construct a transaction structure model by using the one or more business object information through the database.
In one particular embodiment, a transaction structure model may be built in a database based on the determined funds flow object information, the outgoing transaction entity object, and the incoming transaction entity object. In one example, the constructed transaction structure model is shown in fig. 3, and fig. 3 is a schematic diagram of a transaction structure model according to an embodiment of the present invention.
S104: determining a transaction data display template corresponding to the transaction structure model according to the corresponding relation between a preset template and a model, binding the transaction data display template corresponding to the transaction structure model with the transaction structure model, and determining a target transaction structure model for displaying transaction data by using the transaction data display template.
In the embodiment of the invention, the data processing device can determine the transaction data display template corresponding to the transaction structure model according to the corresponding relation between the preset template and the model, bind the transaction data display template corresponding to the transaction structure model with the transaction structure model, and determine the target transaction structure model for displaying the transaction data by using the transaction data display template.
In one embodiment, the transaction data display template is used to display the amount of transaction data, transaction entity, transaction time, transaction direction, etc.
In one embodiment, an accounting rule may be further determined, and the transaction data display template corresponding to the transaction structure model, the accounting rule, and the transaction structure model are bound to determine to generate the target transaction structure model, where a binding manner of the accounting rule is the same as that of the certification template, and will not be described herein.
When the data query request is acquired, the embodiment of the invention can input the data identifier in the data query request into the target transaction structure model to obtain the transaction result information which corresponds to the data identifier and displays the transaction data by using the transaction data display template. Wherein the transaction outcome information includes, but is not limited to, funds exiting entity, inflow entity, transaction amount, and the like.
In the embodiment of the invention, the data processing device can filter the business structure graph of the specified format by acquiring the business structure graph of the specified format which is drawn by a user through the front end, screen text content information matched with the specified label, analyze the screened text content information matched with the specified label to obtain attribute information corresponding to each specified text content, determine transaction entity object information and fund flow object information according to each attribute information, further store the transaction entity object information and the fund flow object information into a database, construct a transaction structure model by utilizing the transaction entity object information and the fund flow object information through the database, bind a transaction data display template corresponding to the transaction structure model with the transaction structure model according to the corresponding relation between a preset template and the model, and determine to generate the target transaction structure model for displaying transaction data by the transaction data display template. By the method, the automatic and intelligent requirements of users on the transaction structure model are met, the information transmission quality is improved, and the information visualization is improved.
The embodiment of the invention also provides a data processing device, which is used for executing the unit of the method. In particular, referring to fig. 4, fig. 4 is a schematic block diagram of a data processing apparatus according to an embodiment of the present invention. The data processing apparatus of the present embodiment includes: an acquisition unit 401, an analysis unit 402, a construction unit 403, and a display unit 404.
An obtaining unit 401, configured to obtain a service structure graph in a specified format that is drawn by a user through a front end mxGraph, where the service structure graph is used to indicate a service relationship between a plurality of service entities;
An parsing unit 402, configured to parse the service structure graph in the specified format to obtain one or more service object information corresponding to the service structure graph;
a construction unit 403, configured to store the service object information into a database, and construct a transaction structure model by using the service object information through the database;
The display unit 404 is configured to determine a transaction data display template corresponding to the transaction structure model according to a preset correspondence between a template and a model, bind the transaction data display template corresponding to the transaction structure model with the transaction structure model, and determine a target transaction structure model for displaying transaction data with the transaction data display template.
Further, the specified format includes an xml format; the parsing unit 402 parses the service structure graph in the specified format, and is specifically configured to:
reading an xml file of the business structure graph in the xml format to a memory;
reading text content of each line of text in the xml file, and filtering and screening the text content of each line of text;
And analyzing the text content of the target text object obtained by filtering and screening to obtain one or more pieces of business object information corresponding to the business structure graph.
Further, when the parsing unit 402 performs filtering on the text content of each line of text, the parsing unit is specifically configured to:
selecting text content information matched with the specified label from the text content of each line of text by using the specified regular expression;
And storing the text content information matched with the specified label into a target text object.
Further, the business object information comprises transaction entity object information; the parsing unit 402 parses the text content of the target text object obtained by filtering and screening to obtain one or more service object information corresponding to the service structure graph, where the parsing unit is specifically configured to:
Detecting whether each line of text content in the target text object contains first appointed text content or not;
If the detection result is yes, determining that the line text content containing the first appointed text content in the target text object is transaction entity object information, and analyzing the line text content containing the first appointed text content to obtain the transaction entity object information.
Further, the parsing unit 402 parses the line text content including the first specified text content to obtain the transaction entity object information, where the transaction entity object information is specifically configured to:
Performing segmentation operation on the line text content containing the first appointed text content to obtain segmented text data;
and traversing each item of data in the segmented text data, and searching attribute information corresponding to the first appointed keyword.
Further, the business object information comprises funding flow object information; the parsing unit 402 parses the text content of the target text object obtained by filtering and screening to obtain one or more service object information corresponding to the service structure graph, where the parsing unit is specifically configured to:
acquiring directed link object information and tag object information associated with the directed link object from text content of the target text object;
and determining fund flow object information according to the directed link object and a tag object associated with the directed link object.
Further, when the parsing unit 402 determines the fund flow object information according to the directed link object and the tag object associated with the directed link object, the parsing unit is specifically configured to:
detecting whether each line of text content of the target text object comprises second designated text content or not;
If the detection result is yes, segmenting the line text content containing the second specified text content to obtain segmented text data, and traversing each item of data of the segmented text data to determine directed link object information and tag object information associated with the directed link object;
querying attribute information in line text content of tag object information associated with the directed link object from line text content of tag object information associated with the directed link object, and determining fund flow object information according to the attribute information in the line text content.
In the embodiment of the invention, the data processing device can filter the business structure graph of the specified format by acquiring the business structure graph of the specified format which is drawn by a user through the front end, screen text content information matched with the specified label, analyze the screened text content information matched with the specified label to obtain attribute information corresponding to each specified text content, determine transaction entity object information and fund flow object information according to each attribute information, further store the transaction entity object information and the fund flow object information into a database, construct a transaction structure model by utilizing the transaction entity object information and the fund flow object information through the database, bind a transaction data display template corresponding to the transaction structure model with the transaction structure model according to the corresponding relation between a preset template and the model, and determine to generate the target transaction structure model for displaying transaction data by the transaction data display template. By the method, the automatic and intelligent requirements of users on the transaction structure model are met, the information transmission quality is improved, and the information visualization is improved.
Referring to fig. 5, fig. 5 is a schematic block diagram of a computer device according to an embodiment of the present invention. The apparatus in this embodiment as shown in the figure may include: one or more processors 501; one or more input devices 502, one or more output devices 503, and a memory 504. The processor 501, the input device 502, the output device 503, and the memory 504 are connected via a bus 505. The memory 504 is used for storing a computer program comprising a program, and the processor 501 is used for executing the program stored in the memory 404. Wherein the processor 501 is configured to invoke the program execution:
Acquiring a service structure graph in a specified format which is drawn by a user through a front end mxGraph, wherein the service structure graph is used for indicating service relations among a plurality of service entities;
Analyzing the business structure graph in the appointed format to obtain one or more business object information corresponding to the business structure graph;
storing the one or more business object information to a database, and constructing a transaction structure model by using the one or more business object information through the database;
determining a transaction data display template corresponding to the transaction structure model according to the corresponding relation between a preset template and a model, binding the transaction data display template corresponding to the transaction structure model with the transaction structure model, and determining a target transaction structure model for displaying transaction data by using the transaction data display template.
Further, the specified format includes an xml format; the processor 501 is configured to parse the service structure graph in the specified format to obtain one or more service object information corresponding to the service structure graph, where the service structure graph is specifically configured to:
reading an xml file of the business structure graph in the xml format to a memory;
reading text content of each line of text in the xml file, and filtering and screening the text content of each line of text;
And analyzing the text content of the target text object obtained by filtering and screening to obtain one or more pieces of business object information corresponding to the business structure graph.
Further, when the processor 501 performs filtering on the text content of each line of text, the method is specifically used for:
selecting text content information matched with the specified label from the text content of each line of text by using the specified regular expression;
And storing the text content information matched with the specified label into a target text object.
Further, the business object information comprises transaction entity object information; the processor 501 is specifically configured to, when analyzing the text content of the target text object obtained by filtering and screening to obtain one or more service object information corresponding to the service structure graph:
Detecting whether each line of text content in the target text object contains first appointed text content or not;
If the detection result is yes, determining that the line text content containing the first appointed text content in the target text object is transaction entity object information, and analyzing the line text content containing the first appointed text content to obtain the transaction entity object information.
Further, when the processor 501 parses the line text content including the first specified text content to obtain the transaction entity object information, the processor is specifically configured to:
Performing segmentation operation on the line text content containing the first appointed text content to obtain segmented text data;
and traversing each item of data in the segmented text data, and searching attribute information corresponding to the first appointed keyword.
Further, the business object information comprises funding flow object information; the processor 501 is specifically configured to, when analyzing the text content of the target text object obtained by filtering and screening to obtain one or more service object information corresponding to the service structure graph:
acquiring directed link object information and tag object information associated with the directed link object from text content of the target text object;
and determining fund flow object information according to the directed link object and a tag object associated with the directed link object.
Further, when the processor 501 determines the fund flow object information according to the directed link object and the tag object associated with the directed link object, it is specifically configured to:
detecting whether each line of text content of the target text object comprises second designated text content or not;
If the detection result is yes, segmenting the line text content containing the second specified text content to obtain segmented text data, and traversing each item of data of the segmented text data to determine directed link object information and tag object information associated with the directed link object;
querying attribute information in line text content of tag object information associated with the directed link object from line text content of tag object information associated with the directed link object, and determining fund flow object information according to the attribute information in the line text content.
In the embodiment of the invention, the computer equipment can filter the business structure graph in the specified format by acquiring the business structure graph in the specified format which is drawn by a user through the front end, screen text content information matched with the specified label, analyze the screened text content information matched with the specified label to obtain attribute information corresponding to each specified text content, determine transaction entity object information and fund flow object information according to each attribute information, further store the transaction entity object information and the fund flow object information into a database, construct a transaction structure model by utilizing the transaction entity object information and the fund flow object information through the database, bind a transaction data display template corresponding to the transaction structure model with the transaction structure model according to the corresponding relation between a preset template and the model, and determine to generate the target transaction structure model for displaying transaction data by the transaction data display template. By the method, the automatic and intelligent requirements of users on the transaction structure model are met, the information transmission quality is improved, and the information visualization is improved.
It should be appreciated that in embodiments of the present invention, the Processor 501 may be a central processing unit (CenSral Processing UniS, CPU), which may also be other general purpose processors, digital signal processors (DIGISAL SIGNAL processors, DSPs), application Specific Integrated Circuits (ASICs), off-the-shelf Programmable gate arrays (Field-Programmable GASE ARRAY, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 502 may include a touch pad, a microphone, etc., and the output device 503 may include a display (LCD, etc.), a speaker, etc.
The memory 504 may include read only memory and random access memory and provide instructions and data to the processor 501. A portion of memory 504 may also include non-volatile random access memory. For example, the memory 504 may also store information of device type.
In a specific implementation, the processor 501, the input device 502, and the output device 503 described in the embodiments of the present invention may perform the implementation described in the embodiment of the method described in fig. 1 provided in the embodiments of the present invention, and may also perform the implementation of the data processing apparatus described in fig. 4 in the embodiments of the present invention, which is not described herein again.
The embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, where the computer program when executed by a processor implements a data processing method described in the embodiment corresponding to fig. 1, and may also implement a data processing apparatus according to the embodiment corresponding to fig. 4 of the present invention, which is not described herein again.
The computer readable storage medium may be an internal storage unit of the data processing apparatus according to any of the foregoing embodiments, for example, a hard disk or a memory of the data processing apparatus. The computer readable storage medium may also be an external storage device of the data processing apparatus, such as a plug-in hard disk, a smart memory card (SMARS MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD), or the like, which are provided on the data processing apparatus. Further, the computer readable storage medium may also include both an internal storage unit and an external storage device of the data processing apparatus. The computer readable storage medium is used for storing the computer program and other programs and data required by the data processing apparatus. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a computer-readable storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned computer-readable storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes. The computer readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created from the use of blockchain nodes, and the like.
It is emphasized that to further guarantee the privacy and security of the data, the data may also be stored in a blockchain node. The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The blockchain (Blockchain), essentially a de-centralized database, is a string of data blocks that are generated in association using cryptographic methods, each of which contains information from a batch of network transactions for verifying the validity (anti-counterfeit) of its information and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention.

Claims (6)

1. A method of data processing, the method comprising:
Acquiring a service structure graph in a specified format which is drawn by a user through a front end mxGraph, wherein the service structure graph is used for indicating service relations among a plurality of service entities;
Analyzing the business structure graph in the appointed format to obtain one or more business object information corresponding to the business structure graph;
the specified format includes an xml format; the analyzing the service structure graph with the specified format to obtain one or more service object information corresponding to the service structure graph comprises the following steps:
reading an xml file of the business structure graph in the xml format to a memory;
reading text content of each line of text in the xml file, and filtering and screening the text content of each line of text;
analyzing the text content of the target text object obtained by filtering and screening to obtain one or more pieces of business object information corresponding to the business structure graph;
The business object information comprises transaction entity object information; analyzing the text content of the target text object obtained by filtering and screening to obtain one or more pieces of service object information corresponding to the service structure graph, wherein the method comprises the following steps:
Detecting whether each line of text content in the target text object contains first appointed text content or not;
If the detection result is yes, determining that the line text content containing the first appointed text content in the target text object is transaction entity object information, and analyzing the line text content containing the first appointed text content to obtain the transaction entity object information;
storing the one or more business object information to a database, and constructing a transaction structure model by using the one or more business object information through the database;
Determining a transaction data display template corresponding to the transaction structure model according to the corresponding relation between a preset template and a model, binding the transaction data display template corresponding to the transaction structure model with the transaction structure model, and determining a target transaction structure model for displaying transaction data by using the transaction data display template;
The business object information comprises fund flow object information; analyzing the text content of the target text object obtained by filtering and screening to obtain one or more pieces of service object information corresponding to the service structure graph, wherein the method comprises the following steps:
acquiring directed link object information and tag object information associated with the directed link object from text content of the target text object;
Determining fund flow object information according to the directed link object and a tag object associated with the directed link object;
the determining the fund flow object information according to the directed link object and the tag object associated with the directed link object comprises the following steps:
detecting whether each line of text content of the target text object comprises second designated text content or not;
If the detection result is yes, segmenting the line text content containing the second specified text content to obtain segmented text data, and traversing each item of data of the segmented text data to determine directed link object information and tag object information associated with the directed link object;
querying attribute information in line text content of tag object information associated with the directed link object from line text content of tag object information associated with the directed link object, and determining fund flow object information according to the attribute information in the line text content.
2. The method of claim 1, wherein filtering the text content of each line of text comprises:
selecting text content information matched with the specified label from the text content of each line of text by using the specified regular expression;
And storing the text content information matched with the specified label into a target text object.
3. The method of claim 1, wherein parsing the line text content including the first specified text content to obtain the transaction entity object information comprises:
Performing segmentation operation on the line text content containing the first appointed text content to obtain segmented text data;
and traversing each item of data in the segmented text data, and searching attribute information corresponding to the first appointed keyword.
4. A data processing apparatus, comprising:
The system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a service structure graph in a specified format which is drawn by a user through a front end mxGraph, wherein the service structure graph is used for indicating service relations among a plurality of service entities;
The analysis unit is used for analyzing the business structure graph in the appointed format to obtain one or more business object information corresponding to the business structure graph;
the specified format includes an xml format; the parsing unit parses the service structure graph in the specified format, and is specifically configured to:
reading an xml file of the business structure graph in the xml format to a memory;
reading text content of each line of text in the xml file, and filtering and screening the text content of each line of text;
analyzing the text content of the target text object obtained by filtering and screening to obtain one or more pieces of business object information corresponding to the business structure graph;
the business object information comprises transaction entity object information; the analyzing unit analyzes the text content of the target text object obtained by filtering and screening, and is specifically used for when one or more pieces of service object information corresponding to the service structure graph are obtained:
Detecting whether each line of text content in the target text object contains first appointed text content or not;
If the detection result is yes, determining that the line text content containing the first appointed text content in the target text object is transaction entity object information, and analyzing the line text content containing the first appointed text content to obtain the transaction entity object information;
The construction unit is used for storing the one or more business object information into a database and constructing a transaction structure model by utilizing the one or more business object information through the database;
The display unit is used for determining a transaction data display template corresponding to the transaction structure model according to the corresponding relation between a preset template and a model, binding the transaction data display template corresponding to the transaction structure model with the transaction structure model, and determining a target transaction structure model for displaying transaction data by using the transaction data display template;
The business object information comprises fund flow object information; the analyzing unit analyzes the text content of the target text object obtained by filtering and screening, and is specifically used for when one or more pieces of service object information corresponding to the service structure graph are obtained:
acquiring directed link object information and tag object information associated with the directed link object from text content of the target text object;
Determining fund flow object information according to the directed link object and a tag object associated with the directed link object;
the parsing unit is specifically configured to, when determining the fund flow object information according to the directed link object and the tag object associated with the directed link object:
detecting whether each line of text content of the target text object comprises second designated text content or not;
If the detection result is yes, segmenting the line text content containing the second specified text content to obtain segmented text data, and traversing each item of data of the segmented text data to determine directed link object information and tag object information associated with the directed link object;
querying attribute information in line text content of tag object information associated with the directed link object from line text content of tag object information associated with the directed link object, and determining fund flow object information according to the attribute information in the line text content.
5. A computer device comprising a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory being interconnected, wherein the memory is adapted to store a computer program, the computer program comprising a program, the processor being configured to invoke the program to perform the method of any of claims 1-3.
6. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, which is executed by a processor to implement the method of any of claims 1-3.
CN202110488801.7A 2021-04-30 2021-04-30 Data processing method, device, equipment and storage medium Active CN113127689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110488801.7A CN113127689B (en) 2021-04-30 2021-04-30 Data processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110488801.7A CN113127689B (en) 2021-04-30 2021-04-30 Data processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113127689A CN113127689A (en) 2021-07-16
CN113127689B true CN113127689B (en) 2024-05-14

Family

ID=76781512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110488801.7A Active CN113127689B (en) 2021-04-30 2021-04-30 Data processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113127689B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6075843A (en) * 1996-12-05 2000-06-13 Intervoice Limited Partnership User device-independent transaction model
CN106709980A (en) * 2017-01-09 2017-05-24 北京航空航天大学 Complex three-dimensional scene modeling method based on formalization
CN111553487A (en) * 2020-05-25 2020-08-18 支付宝(杭州)信息技术有限公司 Business object identification method and device
WO2020207090A1 (en) * 2019-04-12 2020-10-15 创新先进技术有限公司 Blockchain-based data processing system and method, computing device and storage medium
CN112256769A (en) * 2020-11-13 2021-01-22 北京海致星图科技有限公司 Pregel-based method for realizing fund circle distribution for mining commercial bank transaction data
CN112486474A (en) * 2020-11-30 2021-03-12 山东浪潮通软信息科技有限公司 Method for manufacturing visual workflow configuration platform based on mxgraph and activiviti technology
CN112559771A (en) * 2020-12-23 2021-03-26 信雅达科技股份有限公司 Intelligent capital transaction monitoring method and system based on knowledge graph

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6075843A (en) * 1996-12-05 2000-06-13 Intervoice Limited Partnership User device-independent transaction model
CN106709980A (en) * 2017-01-09 2017-05-24 北京航空航天大学 Complex three-dimensional scene modeling method based on formalization
WO2020207090A1 (en) * 2019-04-12 2020-10-15 创新先进技术有限公司 Blockchain-based data processing system and method, computing device and storage medium
CN111553487A (en) * 2020-05-25 2020-08-18 支付宝(杭州)信息技术有限公司 Business object identification method and device
CN112256769A (en) * 2020-11-13 2021-01-22 北京海致星图科技有限公司 Pregel-based method for realizing fund circle distribution for mining commercial bank transaction data
CN112486474A (en) * 2020-11-30 2021-03-12 山东浪潮通软信息科技有限公司 Method for manufacturing visual workflow configuration platform based on mxgraph and activiviti technology
CN112559771A (en) * 2020-12-23 2021-03-26 信雅达科技股份有限公司 Intelligent capital transaction monitoring method and system based on knowledge graph

Also Published As

Publication number Publication date
CN113127689A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
US9292579B2 (en) Method and system for document data extraction template management
CN111639480A (en) Text labeling method based on artificial intelligence, electronic device and storage medium
CN110727580A (en) Response data generation method, full-flow interface data processing method and related equipment
CN104579909A (en) Method and equipment for classifying user information and acquiring user grouping information
CN111562965A (en) Page data verification method and device based on decision tree
CN113627145A (en) Method, device, equipment and medium for generating file of parameterized configuration
CN113205402A (en) Account checking method and device, electronic equipment and computer readable medium
CN112433705A (en) Script generation method and device, electronic equipment and storage medium
CN112559101A (en) Page label processing method and device, computer equipment and medium
TW202032466A (en) User age prediction method, apparatus, and device
US8335742B2 (en) Method, system, and computer program product for electronic messaging
CN105824647A (en) Form page generating method and device
CN108829882B (en) Information collection method, device, terminal and medium
CN113127689B (en) Data processing method, device, equipment and storage medium
CN112989763A (en) Data acquisition method and device, computer equipment and storage medium
CN111639903A (en) Review processing method for architecture change and related equipment
CN109120509B (en) Information collection method and device
CN110610343A (en) Business process generation method and device and storage medium
CN110442375B (en) Mobile payment product channel integration method, device, equipment and storage medium
US20170185832A1 (en) System and method for verifying extraction of multiple document images from an electronic document
CN112698883A (en) Configuration data processing method, device, terminal and storage medium
CN112579242B (en) Page jump relation analysis method, device, equipment and storage medium
CN107180091B (en) Method and device for outputting information page
CN116629230A (en) Document processing method, device, equipment and storage medium
CN114492326A (en) Data processing method, data processing device, data processing 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240413

Address after: Room 4412-143, 4th Floor, Building 4, Shanxi Data Flow Ecological Park, No. 1 Huazhang North Street, Science and Technology Innovation City, Taiyuan City, Shanxi Province, 030000, China

Applicant after: Zhengfeng Runjie Technology (Shanxi) Co.,Ltd.

Country or region after: China

Address before: 518000 Room 201, building A, 1 front Bay Road, Shenzhen Qianhai cooperation zone, Shenzhen, Guangdong

Applicant before: PING AN PUHUI ENTERPRISE MANAGEMENT Co.,Ltd.

Country or region before: China

GR01 Patent grant
GR01 Patent grant