Automatic database processing method and device

By automatically processing data collection and storage in the database, and using domain ontology for data matching and merging, the high cost and low efficiency problems caused by manual operations are solved, and intelligent processing and efficient storage of data are achieved.

CN112541004BActive Publication Date: 2024-10-22SOUTH CHINA UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011565272.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-25
Publication Date
2024-10-22
Estimated Expiration
2040-12-25

AI Technical Summary

Technical Problem

Existing data management methods rely on manual operations, resulting in high costs, low efficiency, and high error rates, and cannot guarantee the timeliness and accuracy of data.

Method used

Provide an automatic processing method for databases. By performing data collection operations in the target web page, the original data is obtained, and data extraction and storage are performed based on domain ontology. Data matching and merging are automatically performed to improve data processing efficiency and accuracy.

Benefits of technology

It realizes intelligent processing of data, improves the resource utilization of the data collection library, ensures the authenticity and timeliness of data, and reduces maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112541004B_ABST
    Figure CN112541004B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for automatically processing a database, the method comprising: performing a data collection operation in a web page to obtain raw data for data collection conditions; obtaining a text set of the raw data, and extracting target data corresponding to the data collection conditions from the text set based on a determined domain ontology; judging whether the target data matches a certain data in a determined data collection library, and if so, merging the target data with a certain data, and storing the merged data in the data collection library; if not, directly storing it in the data collection library. It can be seen that the implementation of the present invention can automatically merge the data with the matching data in the data collection library and store it in the data collection library, thereby intelligently classifying and storing the data, leaving enough resource space for the storage of other data, improving the utilization rate of the resource space in the data collection library, and improving the processing efficiency and accuracy of the data, so as to realize intelligent processing of the data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information technology, and in particular to a method and device for automatically processing a database. Background Art

[0002] The current data management method is generally: establish a corresponding data collection library through personnel with professional knowledge, and when data needs to be added, manually add different data to the corresponding data collection library to achieve data management in the data collection library.

[0003] However, practice has found that this data management method that combines manual and terminal equipment requires maintenance by professionals, with high labor costs, high error rates, and low management efficiency, and cannot guarantee the timeliness of data management. Therefore, it is necessary to propose a data intelligent processing technology solution to improve data processing efficiency and accuracy, so as to realize data intelligent processing. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method and device for automatic processing of a database, which can improve the processing efficiency and accuracy of data to achieve intelligent processing of data.

[0005] In order to solve the above technical problems, a first aspect of an embodiment of the present invention discloses a method for automatically processing a database, the method comprising:

[0006] Performing a data collection operation in the target webpage according to the determined data collection conditions to obtain original data for the data collection conditions;

[0007] Acquire a text set corresponding to the original data, the text set including at least one text, and extract target data corresponding to the data collection condition from the text set based on the determined domain ontology matching the data collection condition;

[0008] Performing a storage operation on the target data according to a relationship between the target data and the determined data in the data acquisition library;

[0009] The performing of a storage operation on the target data according to the relationship between the target data and the determined data in the data collection library includes:

[0010] Determine whether the target data matches a certain data in the determined data collection library. When it is determined that it matches, merge the target data with the certain data, and store the merged data in the data collection library; when it is determined that it does not match, store the target data in the data collection library.

[0011] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the method further includes:

[0012] Based on the acquired URL search condition, a webpage query operation is performed in the determined data collection library to obtain all URLs matching the URL search condition;

[0013] From all the URLs matching the URL search condition, filter the URLs ranked before a preset ranking, and input the URLs ranked before the preset ranking into the determined URL binary classification recognition model for analysis;

[0014] The result output by the binary classification recognition model of the website is obtained as the target web page, and the operation of performing data collection operation in the target web page according to the determined data collection conditions is triggered to obtain the original data for the data collection conditions.

[0015] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the method further includes:

[0016] Based on the determined URL acquisition method, target information is acquired from the determined URL queue, wherein the target information at least includes a target URL, and it is determined whether the target URL satisfies the determined URL regular expression;

[0017] When it is determined that the URL regular expression is satisfied, the information in the webpage of the target URL is obtained based on the determined element positioning method, and it is determined whether the information in the webpage of the target URL satisfies the determined data requirement;

[0018] When it is determined that the data requirement is not met, the webpage of the target URL is determined as the target webpage, and the operation of performing data collection operation in the target webpage according to the determined data collection condition is triggered to obtain the original data for the data collection condition.

[0019] As an optional implementation, in the first aspect of the embodiment of the present invention, the number of the target URLs is greater than or equal to 1, and the target information further includes the depth of each of the target URLs, the depth of each of the target URLs is used to indicate the number of web pages passed from the web page corresponding to the original URL to the target URL, and the original URL exists in the URL queue;

[0020] Furthermore, after obtaining the target information from the determined website queue based on the determined website acquisition method, the method further includes:

[0021] Determine whether the depth of the target URL is greater than or equal to a determined depth threshold. When it is determined that the depth is less than the depth threshold, add the target URL to the web page queue, and re-execute the operation of obtaining the target information from the determined URL queue based on the determined URL acquisition method.

[0022] As an optional implementation, in the first aspect of the embodiment of the present invention, after determining that the depth is less than the depth threshold and before adding the target URL to the web page queue, the method further includes:

[0023] When it is determined that the URL regular expression is satisfied, the target URL is identified as a URL of the first priority, and the operation of adding the target URL to the web page queue is triggered;

[0024] When it is determined that the URL regular expression is not satisfied, the target URL is identified as a URL of the second priority, and the operation of adding the target URL to the web page queue is triggered;

[0025] The first priority level is higher than the second priority level.

[0026] As an optional implementation manner, in the first aspect of the embodiment of the present invention, after performing a storage operation on the target data according to the relationship between the target data and the determined data in the data acquisition library, the method further includes:

[0027] When detecting and receiving the data of the authentication user, searching the data collection library for first data matching the data of the authentication user;

[0028] An association relationship between the unique identifier corresponding to the authentication user and the first data is established, and the first data and the association relationship are stored in a predetermined data authentication library.

[0029] As an optional implementation manner, in the first aspect of the embodiment of the present invention, after storing the first data and the association relationship in a predetermined data authentication library, the method further includes:

[0030] When detecting and receiving data sent by a user terminal corresponding to a user who establishes a predetermined data self-established database, determining whether there is data matching the data sent by the user terminal corresponding to the establishing user in a target database, the target database including the data collection database and / or the data authentication database;

[0031] When it is determined that there is data matching the data sent by the user terminal corresponding to the establishing user, second data with the highest matching degree is selected from the data matching the data sent by the user terminal corresponding to the establishing user, and the second data is stored in the target database.

[0032] As an optional implementation, in the first aspect of the embodiment of the present invention, after acquiring the text set corresponding to the original data and before extracting the target data corresponding to the data collection condition from the text set based on the determined domain ontology matching the data collection condition, the method further includes:

[0033] Determine whether the determined stop words exist in the text set, and when it is determined that the stop words do not exist, trigger the execution of the operation of extracting target data corresponding to the data collection condition from the text set based on the determined domain ontology matching the data collection condition;

[0034] When it is determined that the stop words exist, deleting the stop words in the text set to obtain the text set with the stop words deleted;

[0035] Wherein, extracting target data corresponding to the data collection condition from the text collection based on the determined domain ontology matching the data collection condition includes:

[0036] Based on the determined domain ontology matching the data collection condition, target data corresponding to the data collection condition is extracted from the text set from which the stop words are deleted.

[0037] A second aspect of an embodiment of the present invention discloses an automatic database processing device, the device comprising:

[0038] A collection module, used to perform data collection operations in the target webpage according to the determined data collection conditions, and obtain original data for the data collection conditions;

[0039] An acquisition module, used for acquiring a text set corresponding to the original data, wherein the text set includes at least one text;

[0040] An extraction module, configured to extract target data corresponding to the data collection condition from the text collection based on the determined domain ontology matching the data collection condition;

[0041] A storage module, used for performing a storage operation on the target data according to the relationship between the target data and the determined data in the data acquisition library;

[0042] The storage module performs a storage operation on the target data according to the relationship between the target data and the data in the determined data collection library in the following specific manners:

[0043] Determine whether the target data matches a certain data in the determined data collection library. When it is determined that it matches, merge the target data with the certain data, and store the merged data in the data collection library; when it is determined that it does not match, store the target data in the data collection library.

[0044] As an optional implementation manner, in the second aspect of the embodiment of the present invention, the device further includes:

[0045] A first query module, used to perform a webpage query operation in the determined data collection library based on the acquired URL search condition, and obtain all URLs matching the URL search condition;

[0046] A first screening module, used for screening the web addresses ranked before a preset ranking from all the web addresses matching the web address search condition;

[0047] An analysis module, used for inputting the URLs ranked before the preset ranking into the determined URL binary classification recognition model for analysis;

[0048] The acquisition module is also used to obtain the result output by the URL binary classification recognition model as the target web page, and trigger the acquisition module to execute the data acquisition operation in the target web page according to the determined data acquisition conditions to obtain the original data for the data acquisition conditions.

[0049] As an optional implementation, in the second aspect of the embodiment of the present invention, the acquisition module is further used to acquire target information from the determined website queue based on the determined website acquisition method, and the target information at least includes the target website;

[0050] And, the device further comprises:

[0051] A first judgment module is used to judge whether the target website satisfies the determined website regular expression;

[0052] The acquisition module is further configured to acquire information in the webpage of the target URL based on the determined element positioning method when the first judgment module determines that the URL regular expression is satisfied;

[0053] The first determination module is further used to determine whether the information in the webpage of the target URL meets the determined data requirements;

[0054] And, the device further comprises:

[0055] A determination module is used to determine that the web page of the target URL is the target web page when the first judgment module determines that the data requirement is not met, and trigger the acquisition module to execute the data acquisition operation in the target web page according to the determined data acquisition conditions to obtain the original data for the data acquisition conditions.

[0056] As an optional implementation, in the second aspect of the embodiment of the present invention, the number of the target URLs is greater than or equal to 1, and the target information further includes the depth of each of the target URLs, the depth of each of the target URLs is used to indicate the number of web pages passed from the web page corresponding to the original URL to the target URL, and the original URL exists in the URL queue;

[0057] Furthermore, the first judgment module is further configured to judge whether the depth of the target website is greater than or equal to a determined depth threshold after the acquisition module acquires the target information from the determined website queue based on the determined website acquisition method;

[0058] And, the device further comprises:

[0059] An adding module is used to add the target URL to the web page queue when the first judging module judges that the depth is less than the depth threshold, and trigger the obtaining module to re-execute the operation of obtaining the target information from the determined URL queue based on the determined URL obtaining method.

[0060] As an optional implementation manner, in the second aspect of the embodiment of the present invention, the device further includes:

[0061] an identification module, configured to identify the target URL as a URL of first priority when the first judgment module determines that the target URL is less than the depth threshold and the first judgment module determines that the URL regular expression is satisfied, and before the adding module adds the target URL to the web page queue, and trigger the adding module to perform the operation of adding the target URL to the web page queue;

[0062] The identification module is further configured to identify the target URL as a URL of the second priority when the first judgment module determines that the target URL is less than the depth threshold and when the first judgment module determines that the URL regular expression is not satisfied, and trigger the adding module to perform the operation of adding the target URL to the web page queue;

[0063] The first priority level is higher than the second priority level.

[0064] As an optional implementation manner, in the second aspect of the embodiment of the present invention, the device further includes:

[0065] A second query module is used to query the data collection library for first data matching the data of the authenticated user when detecting and receiving the data of the authenticated user after the storage module performs a storage operation on the target data according to the relationship between the target data and the data in the determined data collection library;

[0066] An establishing module, used to establish an association relationship between the unique identifier corresponding to the authenticated user and the first data;

[0067] The storage module is further used to store the first data and the association relationship in a predetermined data authentication library.

[0068] As an optional implementation manner, in the second aspect of the embodiment of the present invention, the device further includes:

[0069] A second judgment module is used for, after the storage module stores the first data and the association relationship in a predetermined data authentication library, judging whether there is data matching the data sent by the user terminal corresponding to the establishment user of the predetermined data self-established library in the target database when detecting and receiving data sent by the user terminal corresponding to the establishment user of the predetermined data self-established library, the target database including the data collection library and / or the data authentication library;

[0070] A second screening module is used for screening the second data with the highest matching degree from the data matching the data sent by the user terminal corresponding to the establishing user when the second judging module judges that there is data matching the data sent by the user terminal corresponding to the establishing user;

[0071] The storage module is further used to store the second data in the target database.

[0072] As an optional implementation manner, in the second aspect of the embodiment of the present invention, the device further includes:

[0073] A third judgment module is used to judge whether the determined stop words exist in the text set after the acquisition module acquires the text set corresponding to the original data and before the extraction module extracts the target data corresponding to the data collection condition from the text set based on the determined domain ontology matching the data collection condition, and when it is judged that the stop words do not exist, trigger the extraction module to perform the operation of extracting the target data corresponding to the data collection condition from the text set based on the determined domain ontology matching the data collection condition;

[0074] a deleting module, configured to delete the stop words in the text set when the third determining module determines that the stop words exist, so as to obtain the text set with the stop words deleted;

[0075] The method in which the extraction module extracts the target data corresponding to the data collection condition from the text collection based on the determined domain ontology matching the data collection condition is specifically as follows:

[0076] Based on the determined domain ontology matching the data collection condition, target data corresponding to the data collection condition is extracted from the text set from which the stop words are deleted.

[0077] The third aspect of the present invention discloses another automatic database processing device, the device comprising:

[0078] A storage device storing executable program code;

[0079] a processor coupled to the storage device;

[0080] The processor calls the executable program code stored in the storage device to execute the automatic database processing method disclosed in the first aspect of the present invention.

[0081] The fourth aspect of the present invention discloses a computer storable medium, wherein the computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the automatic database processing method disclosed in the first aspect of the present invention.

[0082] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0083] In an embodiment of the present invention, a method and device for automatically processing a database are provided, the method comprising executing a data collection operation in a target web page according to a determined data collection condition to obtain original data for the data collection condition; obtaining a text set corresponding to the original data, the text set comprising at least one text, and extracting target data corresponding to the data collection condition from the text set based on a determined domain ontology matching the data collection condition; judging whether the target data matches a certain data in a determined data collection library, and when it is judged that it matches, performing a merge operation on a certain data of the target data, and storing the merged data in the data collection library; when it is judged that it does not match, storing the target data in the data collection library. It can be seen that after the implementation of the embodiment of the present invention obtains the original data that meets the data collection conditions, it automatically obtains the target data that matches the domain ontology, and when the target data matches the data in the data collection library, it can automatically merge the target data with the matching data in the data collection library and store them in the data collection library, thereby intelligently classifying and storing the data, leaving sufficient resource space for the storage of other data, and improving the utilization rate of the resource space in the data collection library; if there is no match, it is directly stored in the data collection library without manual processing of the data, which can improve the processing efficiency and accuracy of the data, so as to realize intelligent processing of the data, ensure the authenticity and timeliness of the data in the data collection library, thereby making full use of data resources and reducing the maintenance cost of the data collection library. BRIEF DESCRIPTION OF THE DRAWINGS

[0084] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0085] Figure 1 It is a flowchart of an automatic database processing method disclosed in an embodiment of the present invention;

[0086] Figure 2 It is a flow chart of another automatic database processing method disclosed in an embodiment of the present invention;

[0087] Figure 3 It is a structural schematic diagram of an automatic database processing device disclosed in an embodiment of the present invention;

[0088] Figure 4 It is a structural diagram of another automatic database processing device disclosed in an embodiment of the present invention

[0089] Figure 5It is a structural schematic diagram of another automatic database processing device disclosed in an embodiment of the present invention;

[0090] Figure 6 It is a structural schematic diagram of another automatic database processing device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0091] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0092] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or equipment that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or equipment.

[0093] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0094] The present invention discloses an automatic processing method and device for a database, which can automatically obtain target data matching a domain ontology after obtaining raw data satisfying data collection conditions, and when the target data matches the data in a data collection library, the target data can be automatically merged with the matching data in the data collection library and stored in the data collection library, thereby intelligently classifying and storing the data, leaving enough resource space for the storage of other data, and improving the utilization rate of the resource space in the data collection library; if there is no match, the data is directly stored in the data collection library without manual processing of the data, which can improve the processing efficiency and accuracy of the data, so as to realize intelligent processing of the data, ensure the authenticity and timeliness of the data in the data collection library, and thus facilitate full utilization of data resources and reduce the maintenance cost of the data collection library. The following are detailed descriptions.

[0095] Embodiment 1

[0096] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of an automatic database processing method disclosed in an embodiment of the present invention. Figure 1 As shown, the automatic processing method of the database may include the following operations:

[0097] 101. Perform data collection operations in the target webpage according to the determined data collection conditions to obtain original data for the data collection conditions.

[0098] In the embodiment of the present invention, the data collection conditions include but are not limited to the identification information conditions of the target personnel (e.g., scientific and technical personnel), wherein the identification information conditions of the target personnel include but are not limited to at least one of the name conditions, professional title conditions, and identity number conditions of the target personnel. Furthermore, the data collection conditions also include the research field conditions and / or the unit name conditions of the target personnel.

[0099] In the embodiment of the present invention, the original data includes but is not limited to a website and / or an HTML document.

[0100] 102. Obtain a text set corresponding to the original data, where the text set includes at least one text.

[0101] In the embodiment of the present invention, the text collection includes semi-structured text and unstructured text. The semi-structured text is used to represent text composed of multiple key-value pairs, wherein the key-value includes but is not limited to at least one of text type, numerical type, image, and nested. The unstructured text includes natural text and / or URLs.

[0102] 103. Based on the determined domain ontology that matches the data collection condition, target data corresponding to the data collection condition is extracted from the text collection.

[0103] In the embodiment of the present invention, different data collection conditions correspond to different domain ontologies. Specifically: the domain ontology includes a basic concept model and / or an extended concept model, wherein the basic concept model includes but is not limited to at least one of position, name, age, date of birth, place of birth, native place, professional title, degree, etc., and the extended concept model includes but is not limited to at least one of experience, achievements, awards and honors, and research field, wherein experience includes but is not limited to at least one of experience description, experience unit, experience time, etc. Further, according to the content included in the domain ontology, a classification model is used to select candidate words to obtain the corresponding scientific and technological personnel information. Further optionally, the specific training method of the classification model is as follows:

[0104] The N sample texts of the collected sample homepages are used as a training set, wherein, optionally, N is greater than or equal to 100;

[0105] Perform entity labeling on each sample text in the training set according to the determined labeling method to obtain a labeling result for each sample text in the training set, wherein the labeling method includes at least one of a person name labeling method, an organization name labeling method, a location labeling method, a date labeling method, and a year labeling method;

[0106] Initialize the parameters of the determined sequence labeling model, and convert the sample text in the training set into a word sequence to obtain the word sequence of the training set;

[0107] Use the word vector matrix to convert the word sequence of the training set into multiple word vectors, and input the word vectors of the training set into the initialized sequence labeling model for training, and obtain the training results output by the initialized sequence labeling model;

[0108] Calculating a first difference between a training result of each sample text and a labeling result of the sample text based on a gradient descent method, and determining whether the first difference exceeds a determined first threshold, and when determining that the first difference exceeds the first threshold, adjusting parameters in the sequence labeling model based on a back propagation algorithm;

[0109] Re-execute the above operation of inputting the word vectors of the training set into the initialized sequence labeling model for training in sequence until the word vector training of the training set is completed, and train the word vectors of the training set based on the sequence labeling model for a first preset number of times, for example, 3 times. At this time, the initialized sequence labeling model is a sequence labeling model after parameter adjustment;

[0110] Calculate the first mean parameter of the parameter in the sequence labeling model for the first preset number of times+1, update the current parameter in the sequence labeling model to the first mean parameter, and determine that the updated sequence labeling model is the above classification model.

[0111] In the embodiment of the present invention, the target data corresponding to the data collection condition includes the basic data of the target person and / or the activity data of the target person, wherein the basic data of the target person includes but is not limited to at least one of the name, title and ID number of the target person. Further, the basic data of the target person also includes the research field and / or the name of the unit where the target person is employed. The activity data of the target person includes the subject of the target person and / or the time when the subject is held.

[0112] 104. Perform storage operations on the target data according to the relationship between the target data and the data in the determined data collection library.

[0113] In an embodiment of the present invention, the database includes a data acquisition library, wherein the data acquisition library is used to store the collected target data, for example: the collected data of the scientific and technological personnel. Further optionally, the data acquisition library has at least one of an entrance for users to query data, an entrance for registering collection tasks, and an entrance for editing and correcting data, which is not limited in the embodiment of the present invention. In this way, by setting a variety of processing entrances for the data acquisition library, it is convenient to receive the data input by the user, and it is convenient for the user to correct and modify the data, thereby improving the accuracy and reliability of the data in the data acquisition library. Further, the database also includes a data authentication library and / or a data self-built library. Further optionally, the data in the data acquisition library, the data in the data authentication library, and the data in the data self-built library can be associated with each other. Wherein, for a detailed description of the data authentication library and the data self-built library, please refer to the description of the subsequent relevant content in the embodiment of the present invention. In this way, by associating the data in the data acquisition library, the data authentication library, and the data self-built library, it is conducive to ensuring the consistency of the data between the various databases.

[0114] In an embodiment of the present invention, as an optional implementation, according to the relationship between the target data and the data in the determined data collection library, performing a storage operation on the target data includes:

[0115] Determine whether the target data matches a certain data in the determined data collection library. When it is determined to be matched, a certain data of the target data is merged and the merged data is stored in the data collection library; when it is determined not to be matched, the target data is stored in the data collection library.

[0116] In the embodiment of the present invention, optionally, similarities between target data and data in a data collection library are calculated respectively, and data in the data collection library whose similarity is greater than or equal to a determined similarity threshold is determined as certain data.

[0117] For example, assuming that the basic data of the target personnel is the personal data of the scientific and technological personnel, that is, "name: Chen Hao; title: associate professor; unit: Polytechnic University; research field: deep learning"; when there is a certain data in the data collection database, that is, "name: Chen Hao; title: associate professor; unit: Polytechnic University; research field: natural language processing", the personal data of the scientific and technological personnel is matched with the certain data, that is, the personal data of the scientific and technological personnel is merged with the certain data, and the merged data is "name: Chen Hao; title: associate professor; unit: Polytechnic University; research field: deep learning, natural language processing"

[0118] To illustrate, assuming that the activity data of the target personnel are the activity data of scientific and technological personnel, namely, "{Time: 2019; Activity: Publication of "XX Technology Review"; Location: Guangzhou; Source: CNKI}, {Time: February 1, 2020 10:00:00; Activity content: Lecture; Location: Building A1, Polytechnic University}" and "{Time: 2019; Activity: Publication of "XX Technology Review"; Location: Guangzhou; Source: Wanfang}", the merged data is: "{Time: 2019; Activity: Publication of "XX Technology Review"; Location: Guangzhou; Source: CNKI, Wanfang}, {Time: February 1, 2020 10:00:00; Activity content: Lecture; Location: Building A1, Polytechnic University}".

[0119] It can be seen that implementation Figure 1 The described automatic processing method of the database can automatically obtain target data that matches the domain ontology after obtaining the original data that meets the data collection conditions, and when the target data matches the data in the data collection library, it can automatically merge the target data with the matching data in the data collection library and store them in the data collection library, thereby intelligently classifying and storing the data, leaving sufficient resource space for the storage of other data, and improving the utilization rate of the resource space in the data collection library; if there is no match, it is directly stored in the data collection library without manual processing of the data, which can improve the processing efficiency and accuracy of the data, realize intelligent processing of the data, and ensure the authenticity and timeliness of the data in the data collection library, so as to make full use of data resources and reduce the maintenance cost of the data collection library.

[0120] In an optional embodiment, before executing step 101, the method may further include the following steps:

[0121] Based on the acquired URL search conditions, a webpage query operation is performed in the determined data collection library to obtain all URLs matching the URL search conditions;

[0122] From all the URLs matching the URL search condition, select the URLs ranked before a preset ranking (for example, the top 10), and input the URLs ranked before the preset ranking into the determined URL binary classification recognition model for analysis;

[0123] The result output by the URL binary classification recognition model is obtained as the target web page, and the above-mentioned data collection operation is triggered to be performed in the target web page according to the determined data collection conditions to obtain the original data operation for the data collection conditions.

[0124] In this optional embodiment, the URL search condition includes but is not limited to the identification information of the target person, wherein the identification information of the target person includes but is not limited to at least one of the name, title and ID number of the target person. Further, the URL search condition also includes the research field and / or the name of the unit where the target person works.

[0125] In this optional embodiment, optionally, different URL search conditions may correspond to different preset rankings.

[0126] It can be seen that this optional embodiment can improve the accuracy of web page acquisition by querying the URLs that match the URL search conditions in the data collection library and taking the web pages corresponding to the URLs with higher relevance as the target web pages, and can improve the efficiency and accuracy of acquiring the target web pages by acquiring the target web pages through the URL binary classification recognition model.

[0127] In this optional embodiment, the URL binary classification recognition model is optionally constructed as follows:

[0128] Obtain M positive sample web pages and M negative sample web pages as a training set, where, optionally, M ≥ 100;

[0129] Extracting the homepage features of the sample personnel of each sample webpage from the sample webpages in the training set, and annotating the homepage features of the sample personnel of each sample webpage according to the determined annotation method, to obtain the annotation results of each sample webpage; wherein the homepage features of the sample personnel of each sample webpage include information of the webpage title, attribute keywords of the sample personnel in the body text of the webpage, and length of the webpage URL, wherein the information of the webpage title includes the length of the webpage title, information of the sample personnel in the webpage title (for example: the name of the sample personnel and / or the unit name of the unit where the sample personnel is located), and the attribute keywords of the sample personnel in the body text of the webpage include the job title of the sample personnel and the subject words of the sample personnel, wherein the annotation method includes an information annotation method of the webpage title, an attribute keyword annotation method of the sample personnel in the body text of the webpage, and a webpage URL length annotation method;

[0130] Initializing the parameters of the determined binary classification model, and inputting each sample web page included in the training set into the determined binary classification model in turn for training, to obtain the training result of each sample web page;

[0131] Calculating a second difference between the training result of each sample web page and the annotation result of the sample web page based on the gradient descent method, and determining whether the second difference exceeds a determined second threshold, and when determining that the second difference exceeds the second threshold, adjusting the parameters in the binary classification model based on the back propagation algorithm;

[0132] Re-execute the above operation of inputting the sample web pages of the training set into the initialized binary classification model for training in sequence until the training of the sample web pages of the training set is completed, and train the word vectors of the training set based on the binary classification model for a second preset number of times, for example: 5 times, and the initialized binary classification model is a binary classification model with adjusted parameters;

[0133] Calculate the second mean parameter of the parameter in the sample web page for the preset number of times+1, update the current parameter in the sample web page to the second mean parameter, and determine that the updated binary classification model is the above-mentioned website binary classification recognition model.

[0134] In another optional embodiment, before executing step 101, the method may further include the following steps:

[0135] Based on the determined URL acquisition method, target information is acquired from the determined URL queue, the target information at least including the target URL, and it is determined whether the target URL satisfies the determined URL regular expression;

[0136] When it is determined that the URL regular expression is satisfied, the information in the webpage of the target URL is obtained based on the determined element positioning method, and it is determined whether the information in the webpage of the target URL satisfies the determined data requirement;

[0137] When it is determined that the data requirement is not met, the webpage of the target URL is determined as the target webpage, and the above-mentioned data collection operation is triggered to perform data collection in the target webpage according to the determined data collection conditions to obtain the original data for the data collection conditions.

[0138] In this optional embodiment, the URL acquisition method includes the priority level of the URLs in the URL queue and / or the storage time of the URLs in the URL queue. Among them, URLs with higher priority levels and / or earlier storage times are obtained first.

[0139] In this optional embodiment, the element positioning method includes the position of the target data in the web page of the target URL, for example: the position of the web page where the name of the scientific and technological personnel is located, the position of the web page where the title of the scientific and technological personnel is located, etc.

[0140] In this optional embodiment, the URL queue may include a seed URL, wherein the seed URL may be input by a user into the data collection library, or sent via a user's terminal device.

[0141] It can be seen that this optional embodiment can fully utilize the resources of the URL queue and improve the accuracy and reliability of obtaining the target URL by obtaining the web page corresponding to the URL that meets the URL regular expression and the information in its web page does not meet the data requirements from the existing URL queue as the target web page, thereby enriching the target URL acquisition method and thus enriching the intelligent function of the automatic processing device of the database.

[0142] In yet another optional embodiment, after acquiring the target information from the determined website queue based on the determined website acquisition method, the method may further include the following steps:

[0143] Determine whether the depth of the target URL is greater than or equal to the determined depth threshold. When it is determined that it is less than the depth threshold, add the target URL to the web page queue, and re-execute the above-mentioned operation of obtaining the target information from the determined URL queue based on the determined URL acquisition method.

[0144] In this optional embodiment, the number of target URLs is greater than or equal to 1, and the target information also includes the depth of each target URL. The depth of each target URL is used to indicate the number of web pages passed from the web page corresponding to the original URL to the target URL. The original URL exists in the URL queue.

[0145] In this optional embodiment, optionally, when it is determined that the depth is greater than or equal to the depth threshold, the process ends.

[0146] It can be seen that after obtaining the depth of the target address, this optional embodiment further determines whether the depth of the target address is relatively large. If it is still relatively small, the target URL is returned to the URL queue to re-execute the target information acquisition operation, which can improve the data expansion of the data collection library and is conducive to improving the accuracy, reliability and timeliness of data collection.

[0147] In yet another optional embodiment, after determining that the depth is less than the depth threshold and before adding the target URL to the web page queue, the method may further include the following steps:

[0148] When it is determined that the URL regular expression is satisfied, the target URL is identified as a URL of the first priority, and the above-mentioned operation of adding the target URL to the web page queue is triggered;

[0149] When it is determined that the URL regular expression is not satisfied, the target URL is identified as a URL of the second priority, and the above-mentioned operation of adding the target URL to the web page queue is triggered;

[0150] The first priority level is higher than the second priority level.

[0151] In this optional embodiment, optionally, during or after the target URL is added to the web page queue, the storage time of the target URL is recorded at the same time, which is helpful to further improve the accuracy and efficiency of obtaining subsequent target URLs.

[0152] It can be seen that after determining that the depth of the target URL is relatively small, this optional embodiment further determines whether the target URL satisfies the URL regular expression. If so, it is marked as high priority; if not, it is marked as low priority. This facilitates distinguishing the priority level of each URL, improving the accuracy and reliability of obtaining the target URL from the URL queue, and further improving the data collection accuracy and efficiency of the data collection library.

[0153] In yet another optional embodiment, after executing step 104, the method may further include the following steps:

[0154] When the data of the authenticated user is received, searching the data collection library for first data matching the data of the authenticated user;

[0155] An association relationship between an identification uniquely corresponding to the authentication user and the first data is established, and the first data and the association relationship are stored in a predetermined data authentication library.

[0156] In this optional embodiment, the unique identifier of the authenticated user may be included in the data of the authenticated user or may be obtained separately. The unique identifier of the authenticated user may include at least one of the identifiers that can identify the authenticated user's identity number, name, job title, and code name. Further optionally, the authenticated user refers to the user group that has completed the system's scientific and technological personnel certification, and has complete query rights to the data collection library, data authentication library, and publicly built data library, and data management rights to the data authentication library.

[0157] In this optional embodiment, the first data may include identification information of the authenticated user, wherein the identification information of the authenticated user includes but is not limited to at least one of the ID number, name, and job title of the authenticated user. Further optionally, the first data also includes the research field and / or the name of the unit where the authenticated user works. Still further optionally, the first data also includes the webpage source of the first data.

[0158] In this optional embodiment, when the number of first data is greater than or equal to 1, the similarity between each first data and the data of the authenticated user is calculated, and the first data with the maximum similarity is updated as the first data, and the above-mentioned operation of establishing the association relationship between the unique identifier corresponding to the authenticated user and the first data is triggered. This can improve the storage accuracy and reliability of the authenticated user's data.

[0159] In this optional embodiment, the data of the authenticated user may be the authenticated user's own data, or may be the data of the user corresponding to the authenticated user.

[0160] It can be seen that after detecting the data of the authenticated user, this optional embodiment searches for data matching the data of the authenticated user in the data collection library, automatically establishes an association relationship between the authenticated user and the data matching the authenticated user, and further stores the matching data and the association relationship in the data authentication library. This is beneficial to the intelligent management of the authenticated user's data and to ensure the consistency of the data in the data collection library and the data authentication library, and is beneficial to providing efficient and reliable data for information applications and platform users.

[0161] In this optional embodiment, optionally, after searching the data collection library for first data matching the data of the authenticated user and before establishing an association relationship between the unique identifier corresponding to the authenticated user and the first data, the method may further include the following steps:

[0162] Outputting first data matching the data of the authenticated user to the authenticated user, and detecting whether there is a modification operation on the first data, and if not, triggering the execution of the above-mentioned operation of establishing an association relationship between the identifier uniquely corresponding to the authenticated user and the first data;

[0163] Optionally, if it exists, the modified first data is obtained, and the above-mentioned operation of establishing an association relationship between the unique identifier corresponding to the authenticated user and the first data is triggered. At this time, the first data in this step is the modified first data.

[0164] In this optional embodiment, when a confirmation feedback for the first data is detected, or after a preset time (e.g., 5 seconds) has passed and no modification operation for the first data is detected, it is determined that there is no modification operation for the first data. The start time of the preset time is the time when the first data matching the data of the authenticated user is output to the authenticated user.

[0165] In this optional embodiment, further optionally, after obtaining the modified first data, the method may further include the following steps:

[0166] A verification operation is performed on the modified first data obtained. When the verification passes, the triggering operation of establishing the association relationship between the unique identifier corresponding to the authentication user and the first data is executed; when the verification fails, the process is terminated or a verification failure prompt is output to the authentication user. In this way, by verifying the data modified by the user, the situation where the user inputs data that does not meet the requirements but is directly stored in the data authentication library can be reduced, which can further improve the data collection accuracy and reliability of the data authentication library.

[0167] It can be seen that this optional embodiment can further output the data to the authenticated user after querying the data that matches the authenticated user, so that the user can confirm or modify it, which can improve the accuracy of data acquisition in the data authentication library and is conducive to further providing efficient and reliable data for information applications and platform users.

[0168] In yet another optional embodiment, after storing the first data and the association relationship in a predetermined data authentication library, the method may further include the following steps:

[0169] When detecting and receiving data sent by a user terminal corresponding to a user who establishes a predetermined data self-established database, determining whether there is data matching the data sent by the user terminal corresponding to the user in a target database, the target database including a data collection database and / or a data authentication database;

[0170] When it is determined that there is data matching the data sent by the user terminal corresponding to the established user, second data with the highest matching degree is selected from the data matching the data sent by the user terminal corresponding to the established user, and the second data is stored in the target database.

[0171] In this optional embodiment, optionally, the self-built data database is a database constructed by a user (third party), wherein the user includes a user of an enterprise unit that manages batch data (for example, information of scientific and technological personnel), and the user refers to a user group that has completed the small database administrator authentication of the system, and has query rights to the data collection library, data authentication library, and self-built data database, management rights to the exclusive self-built data database, and usage rights of its additional functions. Among them, the user can build a personnel database with extended type requirements. Further optionally, the self-built data database can be independent of the data collection library and / or the data authentication library. Still further optionally, the self-built data database is used to store batch data in order to manage and organize activities related to the data.

[0172] In this optional embodiment, the amount of data sent by the user terminal is greater than or equal to 1. Optionally, the data sent by the user terminal includes an extended attribute set and an information list of batch technical personnel.

[0173] Optionally, determining whether there is data in the target database that matches the data sent by the user terminal corresponding to the established user includes:

[0174] For each piece of data sent by the user terminal, the similarity between each piece of data sent by the user terminal and each piece of data in the target database is calculated. When there is a target similarity with a similarity greater than or equal to a preset similarity threshold, it is determined that there is data that matches the data sent by the user terminal corresponding to the established user, and the data with a target similarity with a similarity greater than or equal to the preset similarity threshold is the data that matches the data sent by the user terminal corresponding to the established user.

[0175] In this optional embodiment, optionally, when there is data among all the data sent by the user terminal whose similarity with each data in the target database is less than a preset similarity threshold, third data whose similarity with each data in the target database is less than the preset similarity threshold is screened, and a data crawling method matching the third data is determined, and data matching the third data is queried in the data self-built library based on the data crawling method, and the data is stored in the data collection library, the data authentication library and the data self-built library respectively.

[0176] In this optional embodiment, optionally, when it is determined that there is no data matching the data sent by the user terminal corresponding to the established user, the process is terminated.

[0177] It can be seen that after receiving the data sent by the user terminal corresponding to the user who established the data self-built database, this optional embodiment determines whether there is data matching the data in the data collection database and / or the data authentication database. If so, the data with the highest matching degree is automatically stored in the data self-built database, so as to facilitate the intelligent management of the data in the data self-built database.

[0178] Embodiment 2

[0179] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of another automatic database processing method disclosed in an embodiment of the present invention. Figure 2 As shown, the automatic processing method of the database may include the following operations:

[0180] 201. Perform a data collection operation in a target webpage according to the determined data collection conditions to obtain original data for the data collection conditions.

[0181] 202. Obtain a text set corresponding to the original data, where the text set includes at least one text.

[0182] 203. Determine whether the determined stop words exist in the text set. If it is determined that the stop words do not exist, step 206 is triggered to execute; if it is determined that the stop words exist, step 204 is triggered to execute.

[0183] 204. Delete the stop words in the text set to obtain the text set with the stop words deleted.

[0184] 205. Based on the determined domain ontology matching the data collection condition, extract target data corresponding to the data collection condition from the text set with stop words deleted.

[0185] It can be seen that the embodiment of the present invention can further determine whether there are stop words in the text set after acquiring the text set. If not, it directly triggers the execution of subsequent operations. If so, it deletes the stop words in the text set, which can improve the accuracy and reliability of obtaining the text set, further save the resource space of the data acquisition library, thereby improving the accuracy and reliability of extracting target data that meets the data acquisition conditions, and further facilitating the storage of high-accuracy data in the data acquisition library, which is beneficial to improving the search efficiency and accuracy of the data in the data acquisition library, and further realizing the intelligent processing of data.

[0186] 206. Based on the determined domain ontology matching the data collection condition, target data corresponding to the data collection condition is extracted from the text collection.

[0187] 207. Perform a storage operation on the target data according to the relationship between the target data and the data in the determined data collection library.

[0188] In the embodiment of the present invention, for other descriptions of step 201, step 202, step 206 and step 207, please refer to the relevant detailed description of step 101 to step 104 in embodiment 1, and the embodiment of the present invention will not be repeated here.

[0189] It can be seen that implementation Figure 2 The described automatic processing method of the database can automatically obtain the target data matching the domain ontology after obtaining the original data meeting the data collection conditions, and when the target data matches the data in the data collection library, it can automatically merge the target data with the matching data in the data collection library and store them in the data collection library, so as to intelligently classify and store the data, leaving enough resource space for the storage of other data, and improving the utilization rate of the resource space in the data collection library; if it does not match, it is directly stored in the data collection library without manual processing of the data, which can improve the processing efficiency and accuracy of the data, so as to realize the intelligent processing of the data, ensure the authenticity and timeliness of the data in the data collection library, so as to make full use of data resources and reduce the maintenance cost of the data collection library. It can also improve the acquisition accuracy and reliability of the text collection, further save the resource space of the data collection library, thereby improving the extraction accuracy and reliability of the target data meeting the data collection conditions, and then facilitate the storage of high-accuracy data in the data collection library, which is conducive to improving the search efficiency and accuracy of the data in the data collection library, and further realizing the intelligent processing of the data.

[0190] In an optional embodiment, after performing a data collection operation in the target webpage according to the determined data collection conditions to obtain the original data for the data collection conditions and before obtaining the text set corresponding to the original data, the method may further include the following steps:

[0191] Determine whether the original data meets the determined data condition, and when the determination result is yes, trigger the execution of the above-mentioned operation of obtaining the text set corresponding to the original data;

[0192] When it is determined that the data condition is not met, a preprocessing operation is performed on the original data to obtain the preprocessed original data, and the above-mentioned operation of obtaining the text set corresponding to the original data is triggered. At this time, the original data in this step is the preprocessed original data.

[0193] In this optional embodiment, the preprocessing operation includes a noise removal operation and / or a parsing operation.

[0194] In this optional embodiment, the data condition includes a data noise condition and the like.

[0195] It can be seen that after acquiring the original data, this optional embodiment further performs preprocessing operations on the original data after determining that the original data does not meet the data conditions, so as to acquire accurate original data, thereby facilitating improving the accuracy and reliability of acquiring the text collection.

[0196] Embodiment 3

[0197] See also Figure 3 , Figure 3 Schematic diagram of the structure of an automatic database processing device disclosed in an embodiment of the present invention. Figure 3 As shown, the automatic processing device of the database may include: a collection module 301, an acquisition module 302, an extraction module 303 and a storage module 304, wherein:

[0198] The acquisition module 301 is used to perform data acquisition operations in the target webpage according to the determined data acquisition conditions to obtain original data for the data acquisition conditions.

[0199] The acquisition module 302 is used to acquire a text set corresponding to the original data, where the text set includes at least one text.

[0200] The extraction module 303 is used to extract target data corresponding to the data collection condition from the text collection based on the determined domain ontology matching the data collection condition.

[0201] The storage module 304 is used to perform a storage operation on the target data according to the relationship between the target data and the determined data in the data collection library.

[0202] In the embodiment of the present invention, optionally, the storage module 304 performs the storage operation on the target data according to the relationship between the target data and the data in the determined data collection library in the following manner:

[0203] Determine whether the target data matches a certain data in the determined data collection library. When it is determined to be matched, a certain data of the target data is merged and the merged data is stored in the data collection library; when it is determined not to be matched, the target data is stored in the data collection library.

[0204] It can be seen that implementation Figure 3 The automatic processing device of the described database can automatically obtain target data matching the domain ontology after obtaining the original data that meets the data collection conditions, and when the target data matches the data in the data collection library, it can automatically merge the target data with the matching data in the data collection library and store them in the data collection library, thereby intelligently classifying and storing the data, leaving sufficient resource space for the storage of other data, and improving the utilization rate of the resource space in the data collection library; if there is no match, it is directly stored in the data collection library without manual processing of the data, which can improve the processing efficiency and accuracy of the data, realize intelligent processing of the data, and ensure the authenticity and timeliness of the data in the data collection library, so as to make full use of data resources and reduce the maintenance cost of the data collection library.

[0205] In an optional embodiment, if Figure 4 As shown, the device further includes: a first query module 305, a first screening module 306 and an analysis module 307, wherein:

[0206] The first query module 305 is used to perform a web page query operation in the determined data collection library based on the acquired website search condition to obtain all websites matching the website search condition.

[0207] The first screening module 306 is used to screen the web addresses ranked before a preset ranking from all the web addresses matching the web address search condition.

[0208] The analysis module 307 is used to input the URLs ranked before the preset ranking into the determined URL binary classification recognition model for analysis.

[0209] The acquisition module 302 is also used to obtain the results output by the URL binary classification recognition model as the target web page, and trigger the acquisition module 301 to perform the above-mentioned data acquisition operation in the target web page according to the determined data acquisition conditions to obtain the original data operation for the data acquisition conditions.

[0210] It can be seen that implementation Figure 4The described device can improve the accuracy of web page acquisition by querying the web addresses that match the web address search conditions in the data collection library and taking the web pages corresponding to the web addresses with higher relevance as the target web pages, and can acquire the target web pages through the web address binary classification recognition model, thereby improving the efficiency and accuracy of acquiring the target web pages.

[0211] In another optional embodiment, Figure 5 As shown, the device also includes: a first judgment module 308 and a determination module 309, wherein:

[0212] The acquisition module 302 is further configured to acquire target information from the determined website queue based on the determined website acquisition method, where the target information at least includes a target website.

[0213] The first determination module 308 is used to determine whether the target URL satisfies the determined URL regular expression.

[0214] The acquisition module 302 is further configured to acquire information in a web page of a target URL based on the determined element positioning method when the first determination module 308 determines that the URL regular expression is satisfied.

[0215] The first determination module 308 is further configured to determine whether the information in the webpage of the target URL meets the determined data requirements.

[0216] The determination module 309 is used to determine that the web page of the target URL is the target web page when the first judgment module 308 determines that the data requirements are not met, and trigger the collection module 301 to perform the above-mentioned data collection operation in the target web page according to the determined data collection conditions to obtain the original data operation for the data collection conditions.

[0217] It can be seen that implementation Figure 5 The described device can obtain the web page corresponding to the URL that meets the URL regular expression and the information in its web page does not meet the data requirements from the existing URL queue as the target web page. It can make full use of the resources of the URL queue and improve the accuracy and reliability of obtaining the target URL, enrich the target URL acquisition method, and thus enrich the intelligent function of the automatic processing device of the database.

[0218] In another optional embodiment, the number of target URLs is greater than or equal to 1, and the target information further includes the depth of each target URL, the depth of each target URL is used to indicate the number of web pages that are passed from the web page corresponding to the original URL to the target URL, and the original URL exists in the URL queue. And, Figure 5 As shown, the device further includes: an adding module 310, wherein:

[0219] The first judgment module 308 is further configured to judge whether the depth of the target URL is greater than or equal to a determined depth threshold after the acquisition module 302 acquires the target information from the determined URL queue based on the determined URL acquisition method.

[0220] The adding module 310 is used to add the target URL to the web page queue when the first judging module 308 judges that the depth is less than the depth threshold, and trigger the obtaining module 302 to re-execute the above-mentioned operation of obtaining the target information from the determined URL queue based on the determined URL obtaining method.

[0221] It can be seen that implementation Figure 5 The described device can also further determine whether the depth of the target address is large after obtaining the depth of the target address. If it is still relatively small, the target URL will be returned to the URL queue to re-execute the target information acquisition operation, which can improve the data expansion of the data collection library and help improve the accuracy, reliability and timeliness of data collection.

[0222] In yet another optional embodiment, Figure 5 As shown, the device further includes: an identification module 311, wherein:

[0223] The identification module 311 is used to identify the target URL as a first-priority URL when the first judgment module 308 determines that it is less than the depth threshold and the first judgment module 308 determines that the URL regular expression is satisfied, and before the adding module 310 adds the target URL to the web page queue, and trigger the adding module 310 to perform the above-mentioned operation of adding the target URL to the web page queue.

[0224] The identification module 311 is also used to identify the target URL as a URL of the second priority when the first judgment module 308 determines that it is less than the depth threshold and when the first judgment module determines that the URL regular expression is not satisfied, and trigger the adding module 310 to perform the above-mentioned operation of adding the target URL to the web page queue.

[0225] In this optional embodiment, the level of the first priority is greater than the level of the second priority.

[0226] It can be seen that implementation Figure 5 The described device can also further determine whether the target URL satisfies the URL regular expression after determining that the depth of the target URL is small. If it does, it is marked as high priority; if not, it is marked as low priority, so as to facilitate distinguishing the priority level of each URL, improve the accuracy and reliability of obtaining the target URL from the URL queue, and further improve the data collection accuracy and efficiency of the data collection library.

[0227] In yet another optional embodiment, Figure 4As shown in FIG. 5 , the device further includes: a second query module 312 and an establishment module 313, wherein:

[0228] The second query module 312 is used to query the data collection library for first data matching the data of the authenticated user when detecting and receiving the data of the authenticated user after the storage module 304 performs a storage operation on the target data according to the relationship between the target data and the data in the determined data collection library.

[0229] The establishing module 313 is used to establish an association relationship between the unique identifier corresponding to the authenticated user and the first data.

[0230] The storage module 304 is further used to store the first data and the association relationship in a predetermined data authentication library.

[0231] It can be seen that implementation Figure 4 The device described in or 5 can also, after detecting the data of the authenticated user, search for data matching the data of the authenticated user in the data collection library, and automatically establish an association relationship between the authenticated user and the data matching the authenticated user, and further store the matching data and the association relationship in the data authentication library, which is conducive to intelligent management of the data of the authenticated user and ensuring the consistency of the data in the data collection library and the data authentication library, and is conducive to providing efficient and reliable data for information applications and platform users.

[0232] In yet another optional embodiment, Figure 4 As shown in FIG. 5 , the device further includes: a second judgment module 314 and a second screening module 315, wherein:

[0233] The second judgment module 314 is used to judge whether there is data matching the data sent by the user terminal corresponding to the establishing user in the target database when detecting and receiving the data sent by the user terminal corresponding to the establishing user of the predetermined data self-established database after the storage module 304 stores the first data and the association relationship in the predetermined data authentication database, and the target database includes a data collection library and / or a data authentication library.

[0234] The second screening module 315 is used to screen the second data with the highest matching degree from the data matching the data sent by the user terminal corresponding to the established user when the second judging module 314 judges that there is data matching the data sent by the user terminal corresponding to the established user.

[0235] The storage module 304 is further configured to store the second data in the target database.

[0236] It can be seen that implementation Figure 4The device described in or 5 can also determine whether there is data matching the data in the data collection library and / or the data authentication library after receiving the data sent by the user terminal corresponding to the user who established the data self-built library. If so, the data with the highest matching degree is automatically stored in the data self-built library, so as to facilitate the intelligent management of the data in the data self-built library.

[0237] In yet another optional embodiment, Figure 4 As shown in FIG. 5 , the device further includes: a third judgment module 316 and a deletion module 317, wherein:

[0238] The third judgment module 316 is used to judge whether there are determined stop words in the text collection after the acquisition module 302 acquires the text collection corresponding to the original data and before the extraction module 303 extracts the target data corresponding to the data collection conditions from the text collection based on the determined domain ontology that matches the data collection conditions, and when it is judged that there are no stop words, the extraction module 303 is triggered to perform the above-mentioned operation of extracting the target data corresponding to the data collection conditions from the text collection based on the determined domain ontology that matches the data collection conditions.

[0239] The deleting module 317 is used to delete the stop words in the text set when the third judging module 316 judges that the stop words exist, so as to obtain the text set with the stop words deleted.

[0240] The method in which the extraction module 303 extracts target data corresponding to the data collection condition from the text collection based on the determined domain ontology matching the data collection condition is as follows:

[0241] Based on the determined domain ontology matching the data collection condition, target data corresponding to the data collection condition is extracted from the text set from which stop words are deleted.

[0242] It can be seen that implementation Figure 4 Or the device described in 5 can also further determine whether there are stop words in the text collection after acquiring the text collection. If not, it will directly trigger the execution of subsequent operations. If so, it will delete the stop words in the text collection, which can improve the accuracy and reliability of obtaining the text collection, further save the resource space of the data collection library, thereby improving the accuracy and reliability of extracting target data that meets the data collection conditions, and thus facilitating the storage of high-accuracy data in the data collection library, which is beneficial to improving the search efficiency and accuracy of the data in the data collection library, and further realizing the intelligent processing of data.

[0243] Embodiment 4

[0244] See also Figure 6 , Figure 6 It is another automatic database processing device disclosed in the embodiment of the present invention. Figure 6 As shown, the automatic processing device of the database may include:

[0245] A storage device 601 storing executable program codes;

[0246] A processor 602 coupled to the storage 601;

[0247] Furthermore, it may also include an input interface 603 and an output interface 604 coupled to the processor 602;

[0248] The processor 602 calls the executable program code stored in the storage 601 to execute the steps of the automatic database processing method described in the first or second embodiment.

[0249] Embodiment 5

[0250] An embodiment of the present invention discloses a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program enables a computer to execute the steps of the automatic database processing method described in the first or second embodiment.

[0251] Embodiment 6

[0252] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the steps in the automatic database processing method described in Embodiment 1 or Embodiment 2.

[0253] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.

[0254] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, a magnetic disk storage, a magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0255] Finally, it should be noted that the method and device for automatic processing of a database disclosed in the embodiment of the present invention disclose only the preferred embodiments of the present invention, which are only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for automatically processing a database, characterized in that: The method comprises: Performing a data collection operation in the target webpage according to the determined data collection conditions to obtain original data for the data collection conditions; Acquire a text set corresponding to the original data, the text set including at least one text, and extract target data corresponding to the data collection condition from the text set based on the determined domain ontology matching the data collection condition; Performing a storage operation on the target data according to a relationship between the target data and the determined data in the data acquisition library; The performing of a storage operation on the target data according to the relationship between the target data and the determined data in the data collection library includes: Determine whether the target data matches a certain data in the determined data collection library, and when it is determined that the target data matches, perform a merging operation on the target data and store the merged data in the data collection library; when it is determined that the target data does not match, store the target data in the data collection library; Wherein, the domain ontology includes a basic concept model and / or an extended concept model; The step of extracting target data corresponding to the data collection condition from the text collection based on the determined domain ontology matching the data collection condition comprises: According to the content included in the domain ontology, a classification model is used to select candidate words and obtain the corresponding scientific and technological personnel information; The specific training method of the classification model is: The N sample texts of the collected sample homepages are used as a training set, where N is greater than or equal to 100; Perform entity annotation on each sample text in the training set according to the determined annotation method to obtain an annotation result for each sample text in the training set; Initialize the parameters of the determined sequence labeling model, and convert the sample text in the training set into a word sequence to obtain the word sequence of the training set; Use the word vector matrix to convert the word sequence of the training set into multiple word vectors, and input the word vectors of the training set into the initialized sequence labeling model for training, and obtain the training results output by the initialized sequence labeling model; Calculating a first difference between a training result of each sample text and a labeling result of the sample text based on a gradient descent method, and determining whether the first difference exceeds a determined first threshold, and when determining that the first difference exceeds the first threshold, adjusting parameters in the sequence labeling model based on a back propagation algorithm; Re-execute the above operation of inputting the word vectors of the training set into the initialized sequence labeling model in sequence for training until the word vector training of the training set is completed, and train the word vectors of the training set for a first preset number of times based on the sequence labeling model; Calculating a first mean parameter of a parameter in the sequence labeling model of the first preset number of times+1, updating the current parameter in the sequence labeling model to the first mean parameter, and determining the updated sequence labeling model as the classification model; After performing a storage operation on the target data according to the relationship between the target data and the data in the determined data collection library, the method further includes: When detecting and receiving the data of the authentication user, searching the data collection library for first data matching the data of the authentication user; Establishing an association relationship between the unique identifier corresponding to the authentication user and the first data, and storing the first data and the association relationship in a predetermined data authentication library; When detecting and receiving data sent by a user terminal corresponding to a user who establishes a predetermined data self-established database, determining whether there is data matching the data sent by the user terminal corresponding to the establishing user in a target database, the target database including the data collection database and / or the data authentication database; When it is determined that there is data matching the data sent by the user terminal corresponding to the establishing user, second data with the highest matching degree is selected from the data matching the data sent by the user terminal corresponding to the establishing user, and the second data is stored in the target database.

2. The automatic database processing method according to claim 1, characterized in that: The method further comprises: Based on the acquired URL search condition, a webpage query operation is performed in the determined data collection library to obtain all URLs matching the URL search condition; From all the URLs matching the URL search condition, filter the URLs ranked before a preset ranking, and input the URLs ranked before the preset ranking into the determined URL binary classification recognition model for analysis; The result output by the binary classification recognition model of the website is obtained as the target web page, and the operation of performing data collection operation in the target web page according to the determined data collection conditions is triggered to obtain the original data for the data collection conditions.

3. The automatic database processing method according to claim 1, characterized in that: The method further comprises: Based on the determined URL acquisition method, target information is acquired from the determined URL queue, the target information at least including a target URL, and it is determined whether the target URL satisfies the determined URL regular expression; When it is determined that the URL regular expression is satisfied, the information in the webpage of the target URL is obtained based on the determined element positioning method, and it is determined whether the information in the webpage of the target URL satisfies the determined data requirement; When it is determined that the data requirement is not met, the webpage of the target URL is determined as the target webpage, and the operation of performing data collection operation in the target webpage according to the determined data collection condition is triggered to obtain the original data for the data collection condition.

4. The automatic database processing method according to claim 3, characterized in that: The number of the target URLs is greater than or equal to 1, and the target information further includes the depth of each of the target URLs, the depth of each of the target URLs is used to indicate the number of web pages that are passed through from the web page corresponding to the original URL to the target URL, and the original URL exists in the URL queue; Furthermore, after obtaining the target information from the determined website queue based on the determined website acquisition method, the method further includes: Determine whether the depth of the target URL is greater than or equal to a determined depth threshold. When it is determined that the depth is less than the depth threshold, add the target URL to the web page queue, and re-execute the operation of obtaining the target information from the determined URL queue based on the determined URL acquisition method.

5. The automatic database processing method according to claim 4, characterized in that: After determining that the depth is less than the depth threshold and before adding the target URL to the web page queue, the method further includes: When it is determined that the URL regular expression is satisfied, the target URL is identified as a URL of the first priority, and the operation of adding the target URL to the web page queue is triggered; When it is determined that the URL regular expression is not satisfied, the target URL is identified as a URL of the second priority, and the operation of adding the target URL to the web page queue is triggered; The first priority level is higher than the second priority level.

6. The automatic database processing method according to any one of claims 1 to 5, characterized in that: After acquiring the text set corresponding to the original data and before extracting the target data corresponding to the data collection condition from the text set based on the determined domain ontology matching the data collection condition, the method further includes: Determine whether the determined stop words exist in the text set, and when it is determined that the stop words do not exist, trigger the execution of the operation of extracting target data corresponding to the data collection condition from the text set based on the determined domain ontology matching the data collection condition; When it is determined that the stop words exist, deleting the stop words in the text set to obtain the text set with the stop words deleted; Wherein, extracting target data corresponding to the data collection condition from the text collection based on the determined domain ontology matching the data collection condition includes: Based on the determined domain ontology matching the data collection condition, target data corresponding to the data collection condition is extracted from the text set from which the stop words are deleted.

7. An automatic database processing device, characterized in that: The device comprises: A collection module, used to perform data collection operations in the target webpage according to the determined data collection conditions, and obtain original data for the data collection conditions; An acquisition module, used for acquiring a text set corresponding to the original data, wherein the text set includes at least one text; An extraction module, configured to extract target data corresponding to the data collection condition from the text collection based on the determined domain ontology matching the data collection condition; A storage module, used for performing a storage operation on the target data according to the relationship between the target data and the determined data in the data acquisition library; The storage module performs a storage operation on the target data according to the relationship between the target data and the data in the determined data collection library in the following specific manners: Determine whether the target data matches a certain data in the determined data collection library, and when it is determined that the target data matches, perform a merging operation on the target data and store the merged data in the data collection library; when it is determined that the target data does not match, store the target data in the data collection library; Wherein, the domain ontology includes a basic concept model and / or an extended concept model; The specific method of extracting target data corresponding to the data collection condition from the text collection based on the determined domain ontology matching the data collection condition includes: According to the content included in the domain ontology, a classification model is used to select candidate words and obtain the corresponding scientific and technological personnel information; The specific training method of the classification model is: The N sample texts of the collected sample homepages are used as a training set, where N is greater than or equal to 100; Perform entity annotation on each sample text in the training set according to the determined annotation method to obtain an annotation result for each sample text in the training set; Initialize the parameters of the determined sequence labeling model, and convert the sample text in the training set into a word sequence to obtain the word sequence of the training set; Use the word vector matrix to convert the word sequence of the training set into multiple word vectors, and input the word vectors of the training set into the initialized sequence labeling model for training, and obtain the training results output by the initialized sequence labeling model; Calculating a first difference between a training result of each sample text and a labeling result of the sample text based on a gradient descent method, and determining whether the first difference exceeds a determined first threshold, and when determining that the first difference exceeds the first threshold, adjusting parameters in the sequence labeling model based on a back propagation algorithm; Re-execute the above operation of inputting the word vectors of the training set into the initialized sequence labeling model in sequence for training until the word vector training of the training set is completed, and train the word vectors of the training set for a first preset number of times based on the sequence labeling model; Calculating a first mean parameter of a parameter in the sequence labeling model of the first preset number of times+1, updating the current parameter in the sequence labeling model to the first mean parameter, and determining the updated sequence labeling model as the classification model; The device also includes: A second query module is used to query the data collection library for first data matching the data of the authenticated user when detecting and receiving the data of the authenticated user after the storage module performs a storage operation on the target data according to the relationship between the target data and the data in the determined data collection library; An establishing module, used to establish an association relationship between the unique identifier corresponding to the authenticated user and the first data; The storage module is further used to store the first data and the association relationship in a predetermined data authentication library; A second judgment module is used for, after the storage module stores the first data and the association relationship in a predetermined data authentication library, judging whether there is data matching the data sent by the user terminal corresponding to the establishment user of the predetermined data self-established library in the target database when detecting and receiving data sent by the user terminal corresponding to the establishment user of the predetermined data self-established library, the target database including the data collection library and / or the data authentication library; A second screening module is used for screening the second data with the highest matching degree from the data matching the data sent by the user terminal corresponding to the establishing user when the second judging module judges that there is data matching the data sent by the user terminal corresponding to the establishing user; The storage module is further used to store the second data in the target database.

8. An automatic database processing device, characterized in that: The device comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the automatic database processing method according to any one of claims 1-5.