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.
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.