CN111158746A - Method and device for acquiring call relation - Google Patents

Method and device for acquiring call relation Download PDF

Info

Publication number
CN111158746A
CN111158746A CN201911424023.4A CN201911424023A CN111158746A CN 111158746 A CN111158746 A CN 111158746A CN 201911424023 A CN201911424023 A CN 201911424023A CN 111158746 A CN111158746 A CN 111158746A
Authority
CN
China
Prior art keywords
text element
text
target
calling
relationship
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.)
Granted
Application number
CN201911424023.4A
Other languages
Chinese (zh)
Other versions
CN111158746B (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

Images

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 a call relation, comprising the following steps: the method comprises the steps of obtaining a plurality of text elements in a service data text of a target service, determining a target text element of each text element, generating a target calling relation map according to each text element and the target element of each text element, and finally comparing the target calling relation map with a first calling relation map stored in advance to obtain a target calling relation. The target calling relation map is used for indicating the calling relation between each text element in the service data text and the target text element of the text, and the first calling relation map is used for indicating the calling relation between all the text elements obtained historically, so that the target calling relation map is compared with the first calling relation map stored in advance, and the changed calling relation in the service data text of the target service can be accurately obtained.

Description

Method and device for acquiring call relation
Technical Field
The present application relates to the field of electronic information, and in particular, to a method and an apparatus for obtaining a call relationship.
Background
In an enterprise business system, online businesses are obtained from corresponding business data texts, the business data texts are composed of different text elements, the text elements are various scripts, pages, messages and the like, and calling relations exist among the text elements, for example, the pages can call different scripts or messages and the like. In the service system, a service administrator needs to have the use authority of the call relation between all text elements of a certain service in order to have the management authority of the service.
When a service is changed or a new service is added, the calling relationship among the text elements is likely to be changed, and the calling relationship among the text elements relates to the authority of a service manager for managing the service, so that the changed calling relationship in the service needs to be acquired, so that the service manager is subsequently distributed with the use authority of the changed calling relationship. In the prior art, a manual analysis mode is usually adopted to obtain a changed call relation in a service, and because the manual analysis has subjective factors, the error rate of obtaining the call relation is high, so how to improve the accuracy of obtaining the changed call relation from a newly added service or a 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 acquiring a changed calling 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 newly added or modified service;
acquiring a plurality of text elements from the service data text;
determining a target text element of the text elements aiming at each text element, wherein the target text element is a text element having a calling relationship with the text element;
generating a target calling relation map according to each text element and a target text element of each text element; the target calling relation map is used for indicating the calling relation between each text element and a target text element in the service data text;
and comparing the target calling relation map with a first calling relation map stored in advance to obtain a distinguished calling relation, wherein the first calling relation map is used for indicating the calling relation among all the text elements obtained historically.
Optionally, the method for 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 service 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.
In the above 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, if so, analyzing the text element by adopting the preset analysis rule to determine the target text element;
and if the target text element does not contain the preset analysis rule, acquiring the analysis rule corresponding to the text element from a preset analysis rule base, and analyzing the text element by adopting the analysis rule to determine the target text element.
Optionally, in the method, the generating a target call relationship map according to each text element and a target text element of each text element includes:
and performing directed connection on each text element and a target text element thereof to obtain the target calling relationship map, wherein the direction of a connecting edge obtained by the directed connection is used for indicating the calling and called relationship between the text element and the target text element thereof.
Optionally, the comparing the target call relationship map with a first call relationship map stored in advance to obtain the distinguished call relationship includes:
acquiring a first text element, wherein the first text element is a text element of the target calling relation map which is not included in the first calling relation map;
acquiring a first target text element of the first text element, wherein the first target text element is a text element having 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 calling relation map and the target calling relation map;
for each second text element, acquiring a difference target text element thereof, wherein the difference target text element is included in the target text elements which have calling relations with the second text elements of the target calling relation map but is not included in the target text elements which have calling relations with the second text elements of the first calling relation map;
and taking the calling relationship between the first text element and the first target text element and the calling relationship between the second text element and the distinguishing target text element as the distinguishing calling relationship.
An apparatus for obtaining call relations, comprising:
the first acquisition unit is used for acquiring a service data text corresponding to a target service; the target service is a newly added 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, where the target text element is a text element having a call relationship with the text element;
the generating unit is used for generating a target calling relation map according to each text element and the target text element of each text element; the target calling relation map is used for indicating the calling relation between each text element and a target text element in the service data text;
and the comparison unit is used for comparing the target calling relationship map with a first calling relationship map stored in advance to obtain a distinguished calling relationship, wherein the first calling relationship map is used for indicating the calling relationship among all the historically obtained text elements.
Optionally, in the apparatus above, the second obtaining unit is configured to obtain a plurality of text elements from the service data text, and includes:
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 service 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 is configured to determine, for each text element, a target text element of the text element, and includes:
the determining unit is specifically configured to determine whether the text element includes a preset parsing rule, and if the text element includes the preset parsing rule, analyze the text element by using the preset parsing rule to determine the target text element; and if the target text element does not contain the preset analysis rule, acquiring the analysis rule corresponding to the text element from a preset analysis rule base, and analyzing the text element by adopting the analysis rule to determine the target text element.
Optionally, in the above apparatus, the generating unit is configured to generate a target invocation relationship map according to each text element and a target text element of each text element, and includes:
the generating unit is specifically configured to perform directional connection on each text element and a target text element thereof to obtain the target call relationship map, where a direction of a connection edge obtained through the directional connection is used to indicate a call and called relationship between the text element and the target text element thereof.
Optionally, the apparatus of the foregoing, where the comparing unit is configured to compare the target call relationship map with a first call relationship map stored in advance to obtain a distinguished 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 calling relation map which is not included in the first calling relation map;
acquiring a first target text element of the first text element, wherein the first target text element is a text element having 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 calling relation map and the target calling relation map;
for each second text element, acquiring a difference target text element thereof, wherein the difference target text element is included in the target text elements which have calling relations with the second text elements of the target calling relation map but is not included in the target text elements which have calling relations with the second text elements of the first calling relation map;
and taking the calling relationship between the first text element and the first target text element and the calling relationship between the second text element and the distinguishing target text element as the distinguishing calling relationship.
The method and the device for obtaining the call relation acquire a plurality of text elements in a service data text of a target service, determine the target text element of each text element, generate a target call relation map according to each text element and the target element of each text element, and finally compare the target call relation map with a first call relation map stored in advance to obtain the target call relation. The target calling relation map is used for indicating the calling relation between each text element in the service data text and the target text element of the text, and the first calling relation map is used for indicating the calling relation between all the text elements obtained historically, so that the target calling relation map is compared with the first calling relation map stored in advance, and the changed calling relation in the service data text of the target service can be accurately obtained. Meanwhile, the calling relationship between the text elements can be visually described by the calling relationship map, and the calling relationship map has good readability, so that the calling relationship between 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 used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for obtaining a call relation according to an embodiment of the present application;
fig. 2 is a flowchart of a method for determining a target text element of 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 application;
fig. 4 is a flowchart of a method for comparing a target call relationship map with a first call relationship map stored in advance to obtain a distinguished call relationship according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an apparatus for obtaining a call relation 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 technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a method for obtaining a call relation according to an embodiment of the present application, and the method may include the following steps:
s101, acquiring a service data text corresponding to the target service.
The target service is a service newly added or modified on the service system, and the service data text can be a text written by the user to realize the function of the service. One method for obtaining the service data text corresponding to the target service may be: and after the target service is detected to appear in the service system, acquiring a service data text with the identification code being the same as that of the target service from the database, thereby obtaining a 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 are obtained from a business data text.
The service data text comprises a plurality of text elements, the text elements are elements for realizing service functions, and the text elements can be scripts, pages, workflows, messages and the like. One way to implement this step may include steps a1 through A3:
and A1, reading the service data text.
Step A2, finding out the characteristic information of the preset text element from the business 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 a name or a type of the text element. One way to implement this step may be to pre-establish a feature information base with a sufficient number of text elements, and to find out feature information, which is the same as the feature information in the feature information base, from the text of the service data.
And step A3, using the text element corresponding to the characteristic information as the text element of the service 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. For example, if the feature information is a text element name, a complete sentence fragment including the text element may be used as the text element corresponding to the feature information.
Note that any one text element 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.
And S103, determining a target text element of the text element 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, one or more target text elements of one text element may be used.
And S104, generating a target calling relation map according to each text element and the target text element of each text element.
The target calling relation map is used for indicating calling relation between each text element in the service data text and the target text element. One way to generate the target call relationship graph may be: and performing directed connection on each text element and the target text element thereof to obtain a target calling relation map.
The direction of the connecting edge obtained by directional connection is used for indicating the relation between the text element and the target text element, and for example, if the direction of the connecting edge points from the text element a to the text element B, it means that the text element a calls the text element B. Referring to fig. 3, which shows a schematic diagram of a target invocation relationship map, as can be seen from fig. 3, a service 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 diagram, a connecting edge points to the text element B and is the text element a and the text element C respectively, which indicates that the text element B is invoked by the text element a and the text element C, and the invocation relationship between other text elements in fig. 3 is analogized, and is not described herein again.
And S105, comparing the target calling relation map with a first calling relation map stored in advance to obtain a distinguished calling relation.
And the first calling relation map is used for indicating calling relations among all the text elements obtained historically. It should be noted that the distinguished call relationship is a call relationship that exists in the target call relationship map but does not exist in the first call relationship map. Specifically, the specific process for implementing this step may refer to the flowchart shown in fig. 4.
The method provided by this embodiment obtains a plurality of text elements in a service data text of a target service, determines a target text element for each text element, generates a target call relationship map according to each text element and the target element of each text element, and finally compares the target call relationship map with a first call relationship map stored in advance, thereby obtaining a distinctive call relationship. The target calling relation map is used for indicating the calling relation between each text element in the service data text and the target text element of the text, and the first calling relation map is used for indicating the calling relation between all the text elements obtained historically, so that the target calling relation map is compared with the first calling relation map stored in advance, and the changed calling relation in the service data text of the target service can be accurately obtained.
Meanwhile, the calling relationship between the text elements can be visually described by the calling relationship map, and the calling relationship map has good readability, so that the calling relationship between the text elements can be quickly read from the map.
Fig. 2 is a method for determining a target text element of the text element at S103 in fig. 1 according to the above embodiment, and may include the following steps:
s201, judging whether the 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 the preset parsing rule may be to determine whether the text element contains the identifier of the parsing rule, and if so, confirm that the text element contains the preset parsing rule.
S202, analyzing the text element by adopting the preset analysis rule, and determining the target text element.
In this embodiment, for an unusual text element, an analysis rule of the text element may be placed in the text element in advance. And after the server recognizes the analysis rule included in the text element, analyzing the text element by adopting the built-in analysis rule to obtain the target text element of the text element.
S203, obtaining an analysis rule corresponding to the text element from a preset analysis rule base, analyzing the text element by adopting the analysis rule, and determining the target text element.
For common text elements, the analysis rules are not required to be put into the common text elements, but an analysis rule base is established, and the analysis rule base comprises the analysis rules for various common types of text elements. Therefore, in this embodiment, after determining that no parsing rule is set in the text element, the server may obtain, according to the type of the text element, a parsing rule corresponding to the type of the text element from a preset parsing rule base, and parse the text element by using the parsing rule to obtain the target text element.
In the present technical solution, since the types of the unusual text elements are relatively complicated and cannot be collected and summarized one by one, it is difficult to preset the analysis rules of the unusual text elements in the analysis rule base, and the analysis rules of the text elements are put into the text elements for the unusual text elements, so that the analysis of the text elements is easier to implement.
Fig. 4 is an implementation manner of comparing the target call relationship map with the first call relationship map stored in advance in S105 to obtain a distinguished call relationship in the foregoing embodiment, and may include the following steps:
s401, acquiring a first text element.
Specifically, the first text element is a text element of the target calling relationship map which is not included in the first calling relationship map.
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 that is called by the first text element, and a text element that calls the first text element.
Since the target invocation relationship map describes the invocation relationship between all text elements included in the service data text, from the target invocation relationship map, the text elements having an invocation relationship with the first text element can be determined according to the directed connecting edge connected to the first text element,
and S403, acquiring a second text element.
Specifically, the second text element is a text element included in the first call relation map and the target call relation map.
S404, acquiring a distinguishing target text element aiming at each second text element.
And distinguishing the target text element, wherein the target text element is included in the target text element which has a calling relationship with the second text element of the target calling relationship map, but is not included in the target text element which has a calling relationship with the second text element of the first calling relationship map. For example, in the target call relationship map, when the target text elements having a call relationship with the second text element are the text element a, the text element B, and the text element C, and in the first call relationship map, the target text elements having a call relationship with the second text element are the text element a, the text element B, and the text element D, the target text element is distinguished as the text element C.
S405, taking the calling relationship between the first text element and the first target text element and the calling relationship between the second text element and the distinguishing target text element as the distinguishing calling relationship.
And determining a calling relationship between the first text element and the first target text element according to the orientation 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 orientation of the connecting edge is that the first text element points to the first target text element, the calling relationship calls the first target text element for the first text element. Similarly, the calling relationship between the second text element and the distinguishing target text element is also determined according to the direction of the connecting edge.
In the technical scheme, the calling relationship between the text elements can be visually described by the calling relationship map, so that the distinguished calling relationship can be quickly and accurately determined by comparing the target calling relationship map with the first calling relationship map.
Corresponding to the method for obtaining a call relation provided in the foregoing embodiment of the present invention, referring to fig. 5, a schematic structural diagram of an apparatus 500 for obtaining a call relation provided in the embodiment of the present invention is shown, including:
a first obtaining unit 501, configured to obtain a service data text corresponding to a target service, where the target service is a newly added or modified service.
A second obtaining unit 502, configured to obtain a plurality of text elements from the service data text.
The determining unit 503 is 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 call relationship with the text element.
A generating unit 504, configured to generate a target invocation relationship map according to each text element and a target text element of each text element; the target calling relation map is used for indicating calling relation between each text element in the service data text and the target text element.
A comparing unit 505, configured to compare the target call relationship map with a first call relationship map stored in advance, to obtain a distinguished call relationship, where the first call relationship map is used to indicate call relationships among all text elements obtained historically.
The specific implementation manner of the second obtaining unit 502 for obtaining a plurality of text elements from the service data text is as follows: reading a service data text, and searching out the feature 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 service 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.
For each text element, the specific implementation manner of determining the target text element of the text element by the determining unit 503 is as follows: judging whether the text elements contain preset analysis rules, if so, analyzing the text elements by adopting the preset analysis rules to determine target text elements; and if the target text element does not contain the preset analysis rule, acquiring the analysis rule corresponding to the text element from a preset analysis rule library, and analyzing the text element by adopting the analysis rule to determine the target text element.
The specific implementation manner of generating the target call relationship graph 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 thereof to obtain a target calling relation map, wherein the direction of a 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 thereof.
The specific implementation manner of comparing the target call relationship map with the first call relationship map stored in advance by the comparison unit 505 to obtain the distinguished target call relationship is as follows:
acquiring a first text element, wherein the first text element is a text element of the target calling relation map which is not included in the first calling relation map;
acquiring a first target text element of the first text element, wherein the first target text element is a text element having 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 calling relation map and the target calling relation map;
acquiring a difference target text element of each second text element, wherein the difference target text element is included in the target text elements which have calling relations with the second text elements of the target calling relation map but not included in the target text elements which have calling relations with the second text elements of the first calling relation map;
and taking the calling relationship between the first text element and the first target text element and the calling relationship between the second text element and the distinguishing target text element as the distinguishing calling relationship.
The apparatus provided in this embodiment obtains a plurality of text elements in a service data text of a target service, determines a target text element for each text element, generates a target invocation relationship map according to each text element and the target element of each text element, and finally compares the target invocation relationship map with a first invocation relationship map stored in advance, thereby obtaining a differentiated invocation relationship. The target calling relation map is used for indicating the calling relation between each text element in the service data text and the target text element of the text, and the first calling relation map is used for indicating the calling relation between all the text elements obtained historically, so that the target calling relation map is compared with the first calling relation map stored in advance, and the changed calling relation in the service data text of the target service can be accurately obtained.
Meanwhile, the calling relationship between the text elements can be visually described by the calling relationship map, and the calling relationship map has good readability, so that the calling relationship between the text elements can be quickly read from the map.
An embodiment of the present invention further provides an electronic device, a schematic structural diagram of which is shown in fig. 6, and the electronic device specifically includes: a processor 601 and a memory 602, the memory 602 being used for storing programs; the processor 601 is configured to run a program to implement the method for obtaining a call relation in the embodiment of the present application.
The embodiment of the present invention further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a computer, the computer is enabled to execute the method for acquiring a call relation in the embodiment of the present application.
The functions described in the method of the embodiment of the present application, if implemented in the form of software functional units and sold or used as independent products, may be stored in a storage medium readable by a computing device. Based on such understanding, part of the contribution to the prior art of the embodiments of the present application or part of the technical solution may be embodied in the form of a software product stored in a storage medium and including several instructions for causing a computing device (which may be a personal computer, a server, a mobile computing device or a network device) to execute all or part of the steps of the method 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), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among 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 (10)

1. A method for obtaining a call relation, comprising:
acquiring a service data text corresponding to a target service; the target service is a newly added or modified service;
acquiring a plurality of text elements from the service data text;
determining a target text element of the text elements aiming at each text element, wherein the target text element is a text element having a calling relationship with the text element;
generating a target calling relation map according to each text element and a target text element of each text element; the target calling relation map is used for indicating the calling relation between each text element and a target text element in the service data text;
and comparing the target calling relation map with a first calling relation map stored in advance to obtain a distinguished calling relation, wherein the first calling relation map is used for indicating the calling relation among all the text elements obtained historically.
2. The method of claim 1, wherein the obtaining a plurality of text elements from the service 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 service 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. The method of claim 1, wherein said determining, for each of said text elements, a target text element for said text element comprises:
judging whether the text element contains a preset analysis rule, if so, analyzing the text element by adopting the preset analysis rule to determine the target text element;
and if the target text element does not contain the preset analysis rule, acquiring the analysis rule corresponding to the text element from a preset analysis rule base, and analyzing the text element by adopting the analysis rule to determine the target text element.
4. The method according to claim 1, wherein the generating a target invocation relationship map according to each text element and a target text element of each text element comprises:
and performing directed connection on each text element and a target text element thereof to obtain the target calling relationship map, wherein the direction of a connecting edge obtained by the directed connection is used for indicating the calling and called relationship between the text element and the target text element thereof.
5. The method according to claim 4, wherein the comparing the target calling relationship map with a first calling relationship map stored in advance to obtain a distinguished calling relationship comprises:
acquiring a first text element, wherein the first text element is a text element of the target calling relation map which is not included in the first calling relation map;
acquiring a first target text element of the first text element, wherein the first target text element is a text element having 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 calling relation map and the target calling relation map;
for each second text element, acquiring a difference target text element thereof, wherein the difference target text element is included in the target text elements which have calling relations with the second text elements of the target calling relation map but is not included in the target text elements which have calling relations with the second text elements of the first calling relation map;
and taking the calling relationship between the first text element and the first target text element and the calling relationship between the second text element and the distinguishing target text element as the distinguishing calling relationship.
6. An apparatus for obtaining call relations, comprising:
the first acquisition unit is used for acquiring a service data text corresponding to a target service; the target service is a newly added 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, where the target text element is a text element having a call relationship with the text element;
the generating unit is used for generating a target calling relation map according to each text element and the target text element of each text element; the target calling relation map is used for indicating the calling relation between each text element and a target text element in the service data text;
and the comparison unit is used for comparing the target calling relationship map with a first calling relationship map stored in advance to obtain a distinguished calling relationship, wherein the first calling relationship map is used for indicating the calling relationship among all the historically obtained text elements.
7. The apparatus according to claim 6, wherein the second obtaining unit is configured to obtain a plurality of text elements from the service data text, and includes:
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 service 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.
8. The apparatus according to claim 6, wherein the determining unit is configured to determine, for each of the text elements, a target text element of the text element, and includes:
the determining unit is specifically configured to determine whether the text element includes a preset parsing rule, and if the text element includes the preset parsing rule, analyze the text element by using the preset parsing rule to determine the target text element; and if the target text element does not contain the preset analysis rule, acquiring the analysis rule corresponding to the text element from a preset analysis rule base, and analyzing the text element by adopting the analysis rule to determine the target text element.
9. The apparatus according to claim 6, wherein the generating unit is configured to generate a target invocation relationship map according to each text element and a target text element of each text element, and includes:
the generating unit is specifically configured to perform directional connection on each text element and a target text element thereof to obtain the target call relationship map, where a direction of a connection edge obtained through the directional connection is used to indicate a call and called relationship between the text element and the target text element thereof.
10. The apparatus according to claim 9, wherein the comparing unit is configured to compare the target call relationship map with a first call relationship map 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 calling relation map which is not included in the first calling relation map;
acquiring a first target text element of the first text element, wherein the first target text element is a text element having 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 calling relation map and the target calling relation map;
for each second text element, acquiring a difference target text element thereof, wherein the difference target text element is included in the target text elements which have calling relations with the second text elements of the target calling relation map but is not included in the target text elements which have calling relations with the second text elements of the first calling relation map;
and taking the calling relationship between the first text element and the first target text element and the calling relationship between the second text element and the distinguishing target text element as the distinguishing calling relationship.
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 true CN111158746A (en) 2020-05-15
CN111158746B 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
CN111158746B (en) 2024-01-23

Similar Documents

Publication Publication Date Title
EP3396558B1 (en) Method for user identifier processing, terminal and nonvolatile computer readable storage medium thereof
CN108427731B (en) Page code processing method and device, terminal equipment and medium
US9201774B1 (en) Generating test scenario templates from testing data of different organizations utilizing similar ERP modules
CN110389941B (en) Database checking method, device, equipment and storage medium
CN110806866A (en) Generation method and device of front-end management system
CN111143103A (en) Incidence relation determining method, device, equipment and readable storage medium
CN106708897B (en) Data warehouse quality guarantee method, device and system
CN108650123B (en) Fault information recording method, device, equipment and storage medium
CN114285893A (en) Access request processing method, system, device, storage medium and electronic equipment
CN111045660B (en) Method, device and storage medium for checking tax declaration data on network
CN112433936A (en) Test method, test device and storage medium
CN111158746B (en) Method and device for acquiring call relationship
CN107423140B (en) Return code identification method and device
CN114944016A (en) Method and device for acquiring electronic signature
CN110597572B (en) Service call relation analysis method and computer system
CN111178044B (en) Method and device for determining target text elements
CN114880713B (en) User behavior analysis method, device, equipment and medium based on data link
CN111901299A (en) Application authentication method and device, electronic equipment and storage medium
CN109284268A (en) A kind of method, system and the electronic equipment of fast resolving log
US9501538B2 (en) Management apparatus and method for managing data elements
CN112417085A (en) Message comparison method and device, computer equipment and storage medium
CN117009202A (en) Buried data processing method, buried data processing device, buried data processing equipment and storage medium
CN114385643A (en) Data storage method and device, computer equipment and storage medium
CN113778801A (en) Method and device for reporting start event, electronic equipment and storage medium
CN115686477A (en) Application program creating method and device and electronic equipment

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