CN111158746B - Method and device for acquiring call relationship - Google Patents

Method and device for acquiring call relationship Download PDF

Info

Publication number
CN111158746B
CN111158746B CN201911424023.4A CN201911424023A CN111158746B CN 111158746 B CN111158746 B CN 111158746B CN 201911424023 A CN201911424023 A CN 201911424023A CN 111158746 B CN111158746 B CN 111158746B
Authority
CN
China
Prior art keywords
text element
text
target
call
relation
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
CN201911424023.4A
Other languages
Chinese (zh)
Other versions
CN111158746A (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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201911424023.4A priority Critical patent/CN111158746B/en
Publication of CN111158746A publication Critical patent/CN111158746A/en
Application granted granted Critical
Publication of CN111158746B publication Critical patent/CN111158746B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The application provides a method and a device for acquiring call relations, comprising the following steps: acquiring a plurality of text elements in a business data text of a target business, determining a target text element of each text element, generating a target call relation graph according to each text element and the target element of each text element, and finally comparing the target call relation graph with a first call relation graph stored in advance to obtain a target call relation. Because the target call relation graph is used for indicating the call relation between each text element in the business data text and the target text element, and the first call relation graph is used for indicating the call relation among all text elements obtained in a history, the target call relation graph is compared with the first call relation graph stored in advance, and the call relation which is changed in the business data text of the target business can be accurately acquired.

Description

Method and device for acquiring call relationship
Technical Field
The present disclosure relates to the field of electronic information, and in particular, to a method and an apparatus for obtaining a calling relationship.
Background
In the business system of the enterprise, each online business is obtained by a corresponding business data text, the business data text is composed of different text elements, the text elements are various scripts, pages, messages and the like, call relations exist among the text elements, for example, the pages can call different scripts or messages and the like. In a business system, a business manager needs to have the right to use the calling relationship between all text elements of a certain business in order to have the right to manage the certain business.
When a service is changed or a new service is added, the calling relation among text elements is likely to be changed, and the calling relation among the text elements relates to the authority of a service manager for managing the service, so that the changed calling relation in the service needs to be acquired, so that the service manager is distributed with the using authority of the changed calling relation later. In the prior art, a manual analysis mode is generally adopted to acquire the call relationship changed in the service, and the error rate of the acquired call relationship is high due to subjective factors in manual analysis, so that how to improve the accuracy of acquiring the changed call relationship from the newly added service or the modified service becomes a problem to be solved urgently.
Disclosure of Invention
The application provides a method and a device, and aims to solve the problem of how to improve the accuracy of obtaining a changed call relationship from a newly added service or a modified service.
In order to achieve the above object, the present application provides the following technical solutions:
acquiring a service data text corresponding to a target service; the target service is a new or modified service;
acquiring a plurality of text elements from the business data text;
determining a target text element of the text element aiming at each text element, wherein the target text element is a text element with a calling relationship with the text element;
generating a target call relation map according to each text element and the target text element of each text element; the target call relation map is used for indicating a call relation between each text element and a target text element in the business data text;
comparing the target call relation graph with a pre-stored first call relation graph to obtain a distinguished call relation, wherein the first call relation graph is used for indicating call relations among all text elements obtained in a history.
The method, optionally, the obtaining a plurality of text elements from the service data text includes:
reading the service data text;
searching out the characteristic information of a preset text element from the service data text;
taking the text element corresponding to the characteristic information as the text element of the business data text; any one of the text elements includes at least a sentence indicating a name of the text element, an attribute of the text element, and a target text element of the text element.
The method, optionally, the determining, for each text element, a target text element of the text element includes:
judging whether the text element contains a preset analysis rule or not, if so, analyzing the text element by adopting the preset analysis rule, and determining the target text element;
if the preset analysis rule is not contained, acquiring the analysis rule corresponding to the text element from a preset analysis rule library, analyzing the text element by adopting the analysis rule, and determining the target text element.
In the above method, optionally, the generating a target call relationship map according to each text element and the target text element of each text element includes:
and carrying out directed connection on each text element and the target text element to obtain the target call relation map, wherein the direction of the connection edge obtained by the directed connection is used for indicating the relation between the call and the called relation between the text element and the target text element.
In the above method, optionally, the comparing the target call relationship graph with a pre-stored first call relationship graph to obtain the differentiated call relationship includes:
acquiring a first text element, wherein the first text element is a text element of the target call relationship graph which is not included in the first call relationship graph;
acquiring a first target text element of the first text element, wherein the first target text element is a text element with a calling relationship with the first text element;
acquiring a second text element, wherein the second text element is a text element included in the first call relation graph and the target call relation graph;
for each second text element, acquiring a distinguishing target text element thereof, wherein the distinguishing target text element is included in a target text element with a calling relationship with the second text element of the target calling relationship map, but is not included in a target text element with a calling relationship with the second text element of the first calling relationship map;
and calling the relation between the first text element and the first target text element and the calling relation between the second text element and the distinguishing target text element as the distinguishing calling relation.
An apparatus for obtaining a calling relationship, comprising:
the first acquisition unit is used for acquiring a service data text corresponding to the target service; the target service is a new or modified service;
a second obtaining unit, configured to obtain a plurality of text elements from the service data text;
a determining unit configured to determine, for each text element, a target text element of the text element, the target text element being a text element having a calling relationship with the text element;
the generation unit is used for generating a target call relation map according to each text element and the target text element of each text element; the target call relation map is used for indicating a call relation between each text element and a target text element in the business data text;
the comparison unit is used for comparing the target call relation graph with a pre-stored first call relation graph to obtain a distinguished call relation, wherein the first call relation graph is used for indicating call relations among all text elements obtained in a history.
In the above apparatus, optionally, the second obtaining unit is configured to obtain a plurality of text elements from the service data text, including:
the second obtaining unit is specifically configured to: reading the service data text; searching out the characteristic information of a preset text element from the service data text; taking the text element corresponding to the characteristic information as the text element of the business data text; any one of the text elements includes at least a sentence indicating a name of the text element, an attribute of the text element, and a target text element of the text element.
The above apparatus, optionally, the determining unit, configured to determine, for each text element, a target text element of the text element, includes:
the determining unit is specifically configured to determine whether the text element contains a preset parsing rule, and if the text element contains the preset parsing rule, parse the text element by using the preset parsing rule, and determine the target text element; if the preset analysis rule is not contained, acquiring the analysis rule corresponding to the text element from a preset analysis rule library, analyzing the text element by adopting the analysis rule, and determining the target text element.
In the above apparatus, optionally, the generating unit is configured to generate a target call relationship graph according to each text element and a target text element of each text element, including:
the generation unit is specifically configured to perform directional connection on each text element and a target text element thereof to obtain the target call relationship graph, where a direction of a connection edge obtained by the directional connection is used to indicate a relationship between a call and a called relationship between the text element and the target text element thereof.
The above apparatus, optionally, the comparing unit is configured to compare the target call relationship graph with a first call relationship graph stored in advance to obtain a differentiated target call relationship, and the comparing unit includes:
the comparison unit is specifically configured to:
acquiring a first text element, wherein the first text element is a text element of the target call relationship graph which is not included in the first call relationship graph;
acquiring a first target text element of the first text element, wherein the first target text element is a text element with a calling relationship with the first text element;
acquiring a second text element, wherein the second text element is a text element included in the first call relation graph and the target call relation graph;
for each second text element, acquiring a distinguishing target text element thereof, wherein the distinguishing target text element is included in a target text element with a calling relationship with the second text element of the target calling relationship map, but is not included in a target text element with a calling relationship with the second text element of the first calling relationship map;
and calling the relation between the first text element and the first target text element and the calling relation between the second text element and the distinguishing target text element as the distinguishing calling relation.
According to the method and the device for acquiring the calling relation, a plurality of text elements in the business data text of the target business are acquired, the target text elements are determined for each text element, a target calling relation graph is generated according to each text element and the target elements of each text element, and finally the target calling relation graph is compared with a first calling relation graph stored in advance, so that the target calling relation is acquired. Because the target call relation graph is used for indicating the call relation between each text element in the business data text and the target text element, and the first call relation graph is used for indicating the call relation among all text elements obtained in a history, the target call relation graph is compared with the first call relation graph stored in advance, and the call relation which is changed in the business data text of the target business can be accurately acquired. Meanwhile, the calling relation map can intuitively describe the calling relation among the text elements, and has good readability, so that the calling relation among the text elements can be quickly read from the map.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for obtaining a call relationship according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for determining a target text element for a text element according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a target call relationship graph according to an embodiment of the present disclosure;
FIG. 4 is a flowchart of a method for comparing a target call relationship graph with a first call relationship graph stored in advance to obtain a distinct call relationship, which is provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a device for acquiring a call relationship according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Fig. 1 is a method for obtaining a call relationship according to an embodiment of the present application, which may include the following steps:
s101, acquiring a service data text corresponding to a target service.
The target service is a new or modified service on the service system, and the service data text can be a text written by a user to realize the service function. One method for obtaining the corresponding service data text of the target service may be: after detecting that the service system has the target service, acquiring a service data text with the identification code identical to that of the target service from a database, thereby obtaining the service data text corresponding to the target service. Of course, another way to obtain the service data text corresponding to the target service may also be to directly receive the service data text corresponding to the target service input by the user.
102. A plurality of text elements is obtained from the business data text.
The business data text comprises a plurality of text elements, the text elements are elements for realizing business functions, and the text elements can be scripts, pages, workflows, messages and the like. One way of implementing this step may include steps A1 to A3:
and A1, reading a service data text.
And A2, searching out the characteristic information of the preset text elements from the service data text. In this step, each text element has corresponding feature information, and the feature information may be an identification code of the text element, or may be a name or type of the text element. One way to implement this step may be to pre-build a feature information base of a sufficient number of text elements, and for the text of the service data, find out the same feature information as the feature information in the feature information base from the text.
And A3, taking the text element corresponding to the characteristic information as the text element of the business data text. In this step, one piece of feature information may correspond to one text element, or a plurality of pieces of feature information may correspond to the same text element. Here, a rule for identifying the text element corresponding to the feature information may be configured in advance, for example, if the feature information is a text element name, a complete sentence segment including the text element may be used as the text element corresponding to the feature information.
Any one of the text elements includes at least a sentence indicating a name of the text element, an attribute of the text element, and a target text element of the text element.
S103, determining target text elements of the text elements for each text element.
The target text element is an element having a calling relationship with the text element, and specifically, the target text element is a text element called by the text element. One way to implement this step may be with reference to the flow shown in fig. 2. In this embodiment, the target text element may be one or more than one text element.
S104, generating a target call relation map according to each text element and the target text element of each text element.
The target call relationship graph is used for indicating a call relationship between each text element in the business data text and the target text element. One way to generate a target call relationship graph may be: and (3) performing directed connection on each text element and the target text element to obtain a target call relation map.
The direction of the connection side obtained by the directional connection is used for indicating the relation between calling and called between the text element and the target text element, for example, the direction of the connection side points to the text element B from the text element A, and the text element A is indicated to call the text element B. Referring to fig. 3, a schematic diagram of a target call relationship map is shown, as can be seen from fig. 3, the business data text includes a text element a, a text element B, a text element C, a text element D and a text element E, in the figure, connecting edges point to the text element B and are respectively the text element a and the text element C, the text element B is described to be called by the text element a and the text element C, and call relationships among other text elements in fig. 3 are similarly similar, and are not described herein.
S105, comparing the target call relation graph with a first call relation graph stored in advance to obtain a distinguished call relation.
The first call relation map is used for indicating call relations among all text elements obtained through history. It should be noted that the call relationships are different from each other in the target call relationship graph, but not in the first call relationship graph. In particular, the specific process of implementing this step may refer to the flowchart shown in fig. 4.
According to the method provided by the embodiment, a plurality of text elements in the business data text of the target business are obtained, target text elements are determined for each text element, a target call relation graph is generated according to each text element and the target elements of each text element, and finally the target call relation graph is compared with a first call relation graph stored in advance, so that a distinguished call relation is obtained. Because the target call relation graph is used for indicating the call relation between each text element in the business data text and the target text element, and the first call relation graph is used for indicating the call relation among all text elements obtained in a history, the target call relation graph is compared with the first call relation graph stored in advance, and the call relation which is changed in the business data text of the target business can be accurately acquired.
Meanwhile, the calling relation map can intuitively describe the calling relation among the text elements, and has good readability, so that the calling relation among the text elements can be quickly read from the map.
Fig. 2 is a method for determining a target text element of a text element in S103 in fig. 1 according to the above embodiment, which may include the following steps:
s201, judging whether a text element contains a preset analysis rule, if so, executing S202, and if not, executing S203.
One way to determine whether the text element contains a preset parsing rule may be to determine whether the text element has an identifier of the parsing rule, and if so, confirm that the text element has the preset parsing rule.
S202, analyzing the text element by adopting the preset analysis rule, and determining a target text element.
In this embodiment, for unusual text elements, parsing rules of the text elements may be put into the text elements in advance. After the server recognizes the analysis rule included in the text element, the server analyzes the text element by adopting the embedded analysis rule to obtain the target text element of the text element.
S203, acquiring an analysis rule corresponding to the text element from a preset analysis rule library, analyzing the text element by adopting the analysis rule, and determining a target text element.
For common text elements, the parsing rule is not required to be placed in the common text elements, but a parsing rule base is established, and the parsing rule base comprises the parsing rules for various common types of text elements. Therefore, in this embodiment, after determining that the text element is not embedded with the parsing rule, the server may obtain, according to the type of the text element, the parsing rule corresponding to the type of the text element from a preset parsing rule base, and parse the text element with the parsing rule to obtain the target text element.
In the technical scheme, the types of the unusual text elements are complex, and the summary cannot be collected one by one, so that the analysis rules of the unusual text elements are difficult to preset in the analysis rule library, and the analysis rules of the text elements are placed in the unusual text elements, so that the analysis of the text elements is easier to realize, and therefore, the analysis rules are placed in the unusual text elements in advance, so that the unusual text elements can be analyzed, and the analysis is easier to realize.
Fig. 4 is an implementation manner of comparing the target call relationship graph with the first call relationship graph stored in advance to obtain the differentiated call relationship in S105 of the foregoing embodiment, which may include the following steps:
s401, acquiring a first text element.
Specifically, the first text element is a text element of the target call relationship graph that is not included in the first call relationship graph.
S402, acquiring a first target text element of the first text element.
The first target text element is a text element having a calling relationship with the first text element. The text element having a calling relationship with the first text element includes: a text element invoked by the first text element, and a text element invoked by the first text element.
Since the call relations between all text elements included in the business data text are described in the target call relation graph, from the target call relation graph, text elements having a call relation with the first text element can be determined from the directed connecting sides connected to the first text element,
s403, acquiring a second text element.
Specifically, the second text element is a text element included in the first call relationship graph and the target call relationship graph.
S404, acquiring a distinguishing target text element for each second text element.
The distinguishing target text element is included in the target text element having a calling relationship with the second text element of the target calling relationship graph, but is not included in the target text element having a calling relationship with the second text element of the first calling relationship graph. For example, in the target call relation map, the target text elements having a call relation with the second text element are text element a, text element B, and text element C, and in the first call relation map, the target text elements having a call relation with the second text element are text element a, text element B, and text element D, and the target text elements are distinguished as text element C.
S405, calling relations between the first text element and the first target text element and calling relations between the second text element and the distinguishing target text element are used as distinguishing calling relations.
And determining a calling relationship between the first text element and the first target text element according to the direction of the connecting edge between the first text element and the first target text element in the target calling relationship map, for example, if the direction of the connecting edge points to the first target text element from the first text element, the calling relationship calls the first target text element for the first text element. Similarly, the calling relation between the second text element and the distinguishing target text element is determined according to the direction of the connecting edge.
In the technical scheme, the call relation pattern can intuitively describe the call relation among the text elements, so that the different call relation can be rapidly and accurately determined by comparing the target call relation pattern with the first call relation pattern.
Corresponding to the method for acquiring a call relationship provided in the above embodiment of the present invention, referring to fig. 5, a schematic structural diagram of an apparatus 500 for acquiring a call relationship provided in the embodiment of the present invention is shown, including:
the first obtaining unit 501 is configured to obtain a service data text corresponding to a target service, where the target service is a new or modified service.
A second obtaining unit 502, configured to obtain a plurality of text elements from the service data text.
A determining unit 503, configured to determine, for each text element, a target text element of the text element, where the target text element is an element having a calling relationship with the text element.
A generating unit 504, configured to generate a target call relationship map according to each text element and the target text element of each text element; the target call relationship graph is used for indicating a call relationship between each text element in the business data text and the target text element.
The comparison unit 505 is configured to compare the target call relationship graph with a pre-stored first call relationship graph, so as to obtain a distinct call relationship, where the first call relationship graph is used to indicate call relationships between all text elements obtained through history.
The specific implementation manner of the second obtaining unit 502 for obtaining the plurality of text elements from the service data text is: reading a business data text, and searching out characteristic information of a preset text element from the business data text; taking the text element corresponding to the characteristic information as the text element of the business data text; any one of the text elements includes at least a sentence indicating a name of the text element, an attribute of the text element, and a target text element of the text element.
The determining unit 503 determines, for each text element, a specific implementation manner of the target text element of the text element as follows: judging whether the text element contains a preset analysis rule, if so, analyzing the text element by adopting the preset analysis rule to determine a target text element; if the text element does not contain the preset analysis rule, acquiring the analysis rule corresponding to the text element from a preset analysis rule library, analyzing the text element by adopting the analysis rule, and determining the target text element.
The specific implementation manner of generating the target call relationship map by the generating unit 504 according to each text element and the target text element of each text element is as follows: and performing directed connection on each text element and the target text element to obtain a target calling relation map, wherein the direction of the connecting edge obtained by the directed connection is used for indicating the calling and called relation between the text element and the target text element.
The comparing unit 505 compares the target call relationship graph with a first call relationship graph stored in advance, and the specific implementation manner of obtaining the differentiated target call relationship is as follows:
acquiring a first text element, wherein the first text element is a text element of the target call relationship graph which is not included in the first call relationship graph;
acquiring a first target text element of a first text element, wherein the first target text element is a text element with a calling relationship with the first text element;
acquiring a second text element, wherein the second text element is a text element included in the first call relation graph and the target call relation graph;
for each second text element, acquiring a distinguishing target text element, wherein the distinguishing target text element is included in the target text element with the calling relation with the second text element of the target calling relation map, but is not included in the target text element with the calling relation with the second text element of the first calling relation map;
and calling the relation between the first text element and the first target text element and the calling relation between the second text element and the distinguishing target text element as the distinguishing calling relation.
The device provided by the embodiment obtains a plurality of text elements in the business data text of the target business, determines target text elements of the text elements according to the text elements and the target elements of the text elements, generates a target call relationship graph according to the text elements and the target elements of the text elements, and finally compares the target call relationship graph with a first call relationship graph stored in advance to obtain a distinguished call relationship. Because the target call relation graph is used for indicating the call relation between each text element in the business data text and the target text element, and the first call relation graph is used for indicating the call relation among all text elements obtained in a history, the target call relation graph is compared with the first call relation graph stored in advance, and the call relation which is changed in the business data text of the target business can be accurately acquired.
Meanwhile, the calling relation map can intuitively describe the calling relation among the text elements, and has good readability, so that the calling relation among the text elements can be quickly read from the map.
The embodiment of the invention also provides an electronic device, the structural schematic diagram of which is shown in fig. 6, and the electronic device specifically comprises: a processor 601 and a memory 602, the memory 602 for storing a program; the processor 601 is configured to execute a program to implement a method for acquiring a call relationship in an embodiment of the present application.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores instructions which, when run on a computer, cause the computer to execute the method for acquiring the calling relationship in the embodiment of the application.
The functions described in the methods of the present application, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computing device readable storage medium. Based on such understanding, a portion of the embodiments of the present application that contributes to the prior art or a portion of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computing device (which may be a personal computer, a server, a mobile computing device or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-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.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (4)

1. A method for obtaining a call relationship, comprising:
acquiring a service data text corresponding to a target service; the target service is a new or modified service;
acquiring a plurality of text elements from the business data text;
determining a target text element of the text element aiming at each text element, wherein the target text element is a text element with a calling relationship with the text element;
generating a target call relation map according to each text element and the target text element of each text element; the target call relation map is used for indicating a call relation between each text element and a target text element in the business data text;
comparing the target call relation pattern with a pre-stored first call relation pattern to obtain a distinguished call relation, wherein the first call relation pattern is used for indicating call relations among all text elements obtained through history, and the distinguished call relation only exists in the target call relation pattern and does not exist in the first call relation pattern;
wherein the determining, for each text element, a target text element of the text element includes:
judging whether the text element contains a preset analysis rule or not, if so, analyzing the text element by adopting the preset analysis rule, and determining the target text element; the method comprises the steps of setting analysis rules of a text element in advance in the text element aiming at the unusual text element; for common text elements, the parsing rule is not required to be placed in the common text elements, but a parsing rule base is established, and the parsing rule base comprises parsing rules for various common types of text elements;
if the preset analysis rule is not contained, according to the type of the text element, acquiring the analysis rule corresponding to the text element from a preset analysis rule library, analyzing the text element by adopting the analysis rule, and determining the target text element;
wherein generating a target call relationship graph according to each text element and the target text element of each text element comprises:
carrying out directed connection on each text element and a target text element of the text element to obtain a target call relation map, wherein the direction of a connection edge obtained by the directed connection is used for indicating the relation between call and called of the text element and the target text element;
the comparing the target call relation graph with a pre-stored first call relation graph to obtain a distinguished call relation comprises the following steps:
acquiring a first text element, wherein the first text element is a text element of the target call relationship graph which is not included in the first call relationship graph;
acquiring a first target text element of the first text element, wherein the first target text element is a text element with a calling relationship with the first text element;
acquiring a second text element, wherein the second text element is a text element included in the first call relation graph and the target call relation graph;
for each second text element, acquiring a distinguishing target text element thereof, wherein the distinguishing target text element is included in a target text element with a calling relationship with the second text element of the target calling relationship map, but is not included in a target text element with a calling relationship with the second text element of the first calling relationship map;
and calling the relation between the first text element and the first target text element and the calling relation between the second text element and the distinguishing target text element as the distinguishing calling relation.
2. The method of claim 1, wherein said obtaining a plurality of text elements from said business data text comprises:
reading the service data text;
searching out the characteristic information of a preset text element from the service data text;
taking the text element corresponding to the characteristic information as the text element of the business data text; any one of the text elements includes at least a sentence indicating a name of the text element, an attribute of the text element, and a target text element of the text element.
3. An apparatus for obtaining a call relationship, comprising:
the first acquisition unit is used for acquiring a service data text corresponding to the target service; the target service is a new or modified service;
a second obtaining unit, configured to obtain a plurality of text elements from the service data text;
a determining unit configured to determine, for each text element, a target text element of the text element, the target text element being a text element having a calling relationship with the text element;
the generation unit is used for generating a target call relation map according to each text element and the target text element of each text element; the target call relation map is used for indicating a call relation between each text element and a target text element in the business data text;
the comparison unit is used for comparing the target call relation pattern with a pre-stored first call relation pattern to obtain a distinguished call relation, wherein the first call relation pattern is used for indicating call relations among all text elements obtained through history, and the distinguished call relation only exists in the target call relation pattern and does not exist in the first call relation pattern;
the determining unit is configured to determine, for each text element, a target text element of the text element, including:
the determining unit is specifically configured to determine whether the text element contains a preset parsing rule, and if the text element contains the preset parsing rule, parse the text element by using the preset parsing rule, and determine the target text element; the method comprises the steps of setting analysis rules of a text element in advance in the text element aiming at the unusual text element; for common text elements, the parsing rule is not required to be placed in the common text elements, but a parsing rule base is established, and the parsing rule base comprises parsing rules for various common types of text elements; if the preset analysis rule is not contained, according to the type of the text element, acquiring the analysis rule corresponding to the text element from a preset analysis rule library, analyzing the text element by adopting the analysis rule, and determining the target text element;
the generating unit is configured to generate a target call relationship graph according to each text element and a target text element of each text element, and includes:
the generation unit is specifically configured to perform directed connection on each text element and a target text element thereof to obtain the target call relationship graph, where a direction of a connection edge obtained by the directed connection is used to indicate a relationship between a call and a called relationship between the text element and the target text element;
the comparison unit is configured to compare the target call relationship graph with a first call relationship graph stored in advance to obtain a distinguished target call relationship, and includes:
the comparison unit is specifically configured to:
acquiring a first text element, wherein the first text element is a text element of the target call relationship graph which is not included in the first call relationship graph;
acquiring a first target text element of the first text element, wherein the first target text element is a text element with a calling relationship with the first text element;
acquiring a second text element, wherein the second text element is a text element included in the first call relation graph and the target call relation graph;
for each second text element, acquiring a distinguishing target text element thereof, wherein the distinguishing target text element is included in a target text element with a calling relationship with the second text element of the target calling relationship map, but is not included in a target text element with a calling relationship with the second text element of the first calling relationship map;
and calling the relation between the first text element and the first target text element and the calling relation between the second text element and the distinguishing target text element as the distinguishing calling relation.
4. The apparatus according to claim 3, wherein the second obtaining unit is configured to obtain a plurality of text elements from the service data text, including:
the second obtaining unit is specifically configured to: reading the service data text; searching out the characteristic information of a preset text element from the service data text; taking the text element corresponding to the characteristic information as the text element of the business data text; any one of the text elements includes at least a sentence indicating a name of the text element, an attribute of the text element, and a target text element of the text element.
CN201911424023.4A 2019-12-31 2019-12-31 Method and device for acquiring call relationship Active CN111158746B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911424023.4A CN111158746B (en) 2019-12-31 2019-12-31 Method and device for acquiring call relationship

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911424023.4A CN111158746B (en) 2019-12-31 2019-12-31 Method and device for acquiring call relationship

Publications (2)

Publication Number Publication Date
CN111158746A CN111158746A (en) 2020-05-15
CN111158746B true CN111158746B (en) 2024-01-23

Family

ID=70560591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911424023.4A Active CN111158746B (en) 2019-12-31 2019-12-31 Method and device for acquiring call relationship

Country Status (1)

Country Link
CN (1) CN111158746B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102147797A (en) * 2010-02-08 2011-08-10 阿里巴巴集团控股有限公司 Method and device for managing element files in content management system
CN102957555A (en) * 2011-08-29 2013-03-06 中国移动通信集团上海有限公司 Method, system and server for identifying inter-process association relationship in business support system
CN104679519A (en) * 2015-03-10 2015-06-03 于秀山 Method and device for acquiring functions of graphic user interface software
CN104765787A (en) * 2015-03-24 2015-07-08 中国银行股份有限公司 Method and system for analyzing association relation of element files in software system
CN106843827A (en) * 2016-11-30 2017-06-13 贾志东 A kind of target software generation method and device based on work(part tree and work(part storehouse
CN109543034A (en) * 2018-11-07 2019-03-29 中山大学 Text Clustering Method, device and the readable storage medium storing program for executing of knowledge based map

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102147797A (en) * 2010-02-08 2011-08-10 阿里巴巴集团控股有限公司 Method and device for managing element files in content management system
CN102957555A (en) * 2011-08-29 2013-03-06 中国移动通信集团上海有限公司 Method, system and server for identifying inter-process association relationship in business support system
CN104679519A (en) * 2015-03-10 2015-06-03 于秀山 Method and device for acquiring functions of graphic user interface software
CN104765787A (en) * 2015-03-24 2015-07-08 中国银行股份有限公司 Method and system for analyzing association relation of element files in software system
CN106843827A (en) * 2016-11-30 2017-06-13 贾志东 A kind of target software generation method and device based on work(part tree and work(part storehouse
CN109543034A (en) * 2018-11-07 2019-03-29 中山大学 Text Clustering Method, device and the readable storage medium storing program for executing of knowledge based map

Also Published As

Publication number Publication date
CN111158746A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
CN108388514B (en) Interface automation test method, device, equipment and computer readable storage medium
US8869111B2 (en) Method and system for generating test cases for a software application
CN110532056B (en) Control identification method and device applied to user interface
CN113448862B (en) Software version testing method and device and computer equipment
CN110806866A (en) Generation method and device of front-end management system
CN111045660B (en) Method, device and storage medium for checking tax declaration data on network
CN111309586A (en) Command testing method, device and storage medium thereof
CN112306568A (en) Service instance configuration method and device, electronic equipment and storage medium
CN115292473A (en) Extended selective recommendation and deployment in low code schemes
CN116661758B (en) Method, device, electronic equipment and medium for optimizing log framework configuration
CN111158746B (en) Method and device for acquiring call relationship
CN107423140B (en) Return code identification method and device
CN116302079A (en) Service data processing method and device, electronic equipment and storage medium
CN113259154B (en) Method and device for informing middle station data verification, computer equipment and storage medium
CN111400245B (en) Art resource migration method and device
CN110221952B (en) Service data processing method and device and service data processing system
CN109840213B (en) Test data creating method, device, terminal and storage medium for GUI test
CN108415814B (en) Method for automatically recording field change, application server and computer readable storage medium
CN114880713B (en) User behavior analysis method, device, equipment and medium based on data link
CN111178044B (en) Method and device for determining target text elements
CN110609790A (en) Analytic program test method, device, medium and computer equipment
CN111352824A (en) Test method and device and computer equipment
CN117032844B (en) Cooperative link tracking device and method and intelligent vehicle
CN113778801B (en) Method and device for reporting start event, electronic equipment and storage medium
CN114154944B (en) Business auditing method, equipment and computer readable storage medium

Legal Events

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