Library-based knowledge graph construction method and fragmented knowledge generation method

By acquiring and integrating metadata and object data of digital document resources, a knowledge graph is generated, which solves the problem that traditional libraries cannot meet the problem of fragmented reading and knowledge tracing, realizes the construction of knowledge graph and the generation of fragmented knowledge, and improves the book quality The service efficiency and user experience of the library.

CN112434168BActive Publication Date: 2024-09-24GUANGXI ZHUANG AUTONOMOUS REGION LIBRARY (GUANGXI ZHUANG AUTONOMOUS REGION CHILDRENS LIBRARY GUANGXI ZHUANG AUTONOMOUS REGION ANCIENT BOOK PROTECTION CENTER)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011240896.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-09
Publication Date
2024-09-24
Estimated Expiration
2040-11-09

AI Technical Summary

Technical Problem

The traditional library digital resource service method cannot meet the needs of users from in-depth reading to fragmented reading, cannot realize the traceability and return of knowledge, and cannot meet the in-depth application needs of multiple industries.

Method used

By acquiring digital document resources, extracting metadata and object data, generating metadata maps and object data maps, and integrating them into knowledge maps, the generation and traceability of fragmented knowledge can be achieved.

Benefits of technology

A complete knowledge system has been established that can output fragmented knowledge to meet the different needs of users and improve the library's service efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112434168B
    Figure CN112434168B
Patent Text Reader

Abstract

This invention relates to the fields of big data and artificial intelligence, and particularly to a method for constructing a knowledge graph based on a library, a method for generating fragmented knowledge, and an electronic device. The method includes: acquiring digital document resources; extracting metadata from the digital document resources and generating a metadata graph based on the metadata; acquiring object data based on the metadata and generating an object data graph based on the object data; fusing the metadata graph and the object data graph to generate a knowledge graph; and finally, generating fragmented knowledge of each knowledge point in the knowledge graph based on the digital document resources and the knowledge graph, and retrieving relevant knowledge points from the knowledge graph based on user-input keywords, outputting the fragmented knowledge. This invention can establish a complete knowledge system and, based on this knowledge system, realize the output of fragmented knowledge and the tracing of the source of the output knowledge, meeting different user needs and improving the service efficiency of the library.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of big data and artificial intelligence technology, and in particular to a library-based knowledge graph construction method, a fragmented knowledge generation method and an electronic device. Background Art

[0002] In the new era, with the integration of multiple industries and the deep integration of mobile applications into life, work and study, the traditional digital resource service means of libraries are mainly to provide document retrieval and download, and to expand the coverage of service groups and enrich the types of digital resources. However, these methods can no longer meet the needs of services from surface applications to deep applications and users from deep reading to fragmented reading.

[0003] With the joint issuance of the "Guidelines for the Construction of the National New Generation Artificial Intelligence Standard System" by the National Standardization Administration, the Central Cyberspace Affairs Commission, the National Development and Reform Commission, the Ministry of Science and Technology, the Ministry of Industry and Information Technology and other five departments, the application and promotion of artificial intelligence has been brought to a new level, making it possible for libraries to transform from traditional digital resource service methods to knowledge system output. The existing digital resources of the library will be reintegrated to provide fragmented output to meet the needs of various industries. At the same time, the fragmented knowledge support traceability and return to achieve the purpose of system acquisition, thereby improving the service efficiency of the library. Summary of the invention

[0004] The main technical problem solved by the embodiments of the present invention is to provide a library-based knowledge graph construction method, a fragmented knowledge generation method and an electronic device, so as to enable the library to output in the form of a knowledge system and meet the traceability and regression of fragmented knowledge.

[0005] In order to solve the above technical problems, a technical solution adopted by the embodiment of the present invention is: to provide a method for constructing a knowledge graph based on a library, the method comprising:

[0006] Access digital literature resources;

[0007] Extract metadata from the digital document resources, and generate a metadata map based on the metadata;

[0008] Acquire object data according to the metadata, and generate an object data graph according to the object data;

[0009] The metadata graph and the object data graph are fused to generate a knowledge graph.

[0010] Optionally, extracting metadata from the digital document resource and generating a metadata graph according to the metadata includes:

[0011] Extracting metadata and generating a first traceability number corresponding to the metadata;

[0012] The metadata is segmented to identify entities, relational words and sentimental words, and a first SPO triple is constructed based on the entities, the relational words and the sentimental words, wherein the first SPO triple includes the first traceability number corresponding thereto.

[0013] Optionally, acquiring object data according to the metadata, and generating an object data graph according to the object data, includes:

[0014] Acquire object data corresponding to the metadata according to the address element contained in the metadata;

[0015] Obtaining the type of the object data;

[0016] When the object data is of text type, performing word segmentation processing on the object data to identify entities, relational words and sentiment words;

[0017] Generate a second tracing number corresponding to the entity, the relation word, and the sentiment word;

[0018] A second SPO triple is constructed based on the entity, the relational word and the sentimental word, wherein each of the entity, the relational word and the sentimental word in the second SPO triple includes its corresponding second traceability number.

[0019] Optionally, the method further comprises:

[0020] When the object data is of video and / or audio type, the object data is converted into a text type, and the step of generating an object data graph according to the object data is performed based on the converted object data.

[0021] Optionally, the fusing the metadata graph and the object data graph to generate a knowledge graph includes:

[0022] According to the first SPO triples, associating the first SPO triples containing the same relationship to generate a directory set, wherein the directory set is composed of a plurality of the first SPO triples;

[0023] The first SPO triple in the directory set is associated with the second SPO triple in accordance with the first traceability number and the second traceability number to generate a knowledge graph.

[0024] Optionally, the method further comprises:

[0025] The collected pictures are associated with the knowledge graph.

[0026] In order to solve the above technical problems, another technical solution adopted by the embodiment of the present invention is: to provide a fragmented knowledge generation method, the method comprising:

[0027] Traversing all generated first traceability numbers, wherein the first traceability numbers are obtained according to the above-mentioned library-based knowledge graph construction method;

[0028] According to the digital resource document content corresponding to the first traceability number, fragmented knowledge corresponding to the first traceability number is generated.

[0029] In order to solve the above technical problems, another technical solution adopted by the embodiment of the present invention is: to provide a fragmented knowledge generation method, the method comprising:

[0030] Obtain information input by the user, including keywords, pictures and audio;

[0031] When the information is a keyword, the knowledge graph is searched according to the keyword to obtain a first traceability number of the knowledge point corresponding to the keyword in the knowledge graph, and the fragmented knowledge corresponding to the first traceability number is generated according to the digital resource document content corresponding to the first traceability number;

[0032] When the information is a picture, a keyword corresponding to the picture is obtained based on image recognition, a knowledge graph is searched according to the keyword to obtain a first traceability number of a knowledge point corresponding to the keyword in the knowledge graph, and fragmented knowledge corresponding to the first traceability number is generated according to the digital resource document content corresponding to the first traceability number;

[0033] When the information is audio, a keyword corresponding to the audio is obtained based on audio recognition, a knowledge graph is searched according to the keyword to obtain a first traceability number of a knowledge point corresponding to the keyword in the knowledge graph, and fragmented knowledge corresponding to the first traceability number is generated according to the digital resource document content corresponding to the first traceability number;

[0034] Among them, the knowledge graph is obtained according to the above-mentioned library-based knowledge graph construction method.

[0035] Optionally, generating fragmented knowledge corresponding to the first traceability number according to the digital resource document content corresponding to the first traceability number includes:

[0036] Extract a fragment from each of the object data corresponding to the first traceability number, and fuse all of the fragments to generate fragmented knowledge; or,

[0037] A plurality of first-level summaries are generated respectively according to the object data corresponding to the first traceability number, and a second-level summaries are generated from the plurality of first-level summaries based on the abstract extraction associated elements, wherein the abstract associated elements include one or more of the historical abstract extraction length, publication release time, reader behavior habits, total word count, and resource richness.

[0038] To solve the above technical problems, another technical solution adopted in the embodiment of the present invention is: to provide an electronic device, comprising: at least one processor; a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the library-based knowledge graph construction method and fragmented knowledge generation method as described above.

[0039] Different from the related art, the embodiment of the present invention provides a knowledge graph construction method based on the library, a fragmented knowledge generation method and an electronic device, by acquiring digital document resources; extracting metadata from the digital document resources, generating a metadata graph according to the metadata; acquiring object data according to the metadata, and generating an object data graph according to the object data; finally fusing the metadata graph and the object data graph to generate a knowledge graph. In addition, fragmented knowledge can be automatically generated based on the generated knowledge graph, and fragmented knowledge can also be generated based on the knowledge graph and the information input by the user. Among them, the metadata graph can be regarded as directory information, the object data graph constitutes specific content information, and the knowledge graph finally generated can be specific to the object data. Therefore, the knowledge graph construction method based on the library, the fragmented knowledge generation method and the electronic device can establish a complete knowledge system, and output fragmented knowledge based on the knowledge system, which can meet the different needs of users and improve the service efficiency of the library. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] One or more embodiments are exemplarily described by corresponding drawings, which do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and the figures in the drawings do not constitute proportional limitations unless otherwise stated.

[0041] Figure 1 It is a flow chart of a method for constructing a knowledge graph based on a library provided by an embodiment of the present invention;

[0042] Figure 2 is a flowchart of a method for constructing a knowledge graph based on a library provided by another embodiment of the present invention;

[0043] Figure 3is a flow chart of a fragmented knowledge generation method provided by an embodiment of the present invention;

[0044] Figure 4 is a flow chart of a fragmented knowledge generation method provided by another embodiment of the present invention;

[0045] Figure 5 is a schematic diagram of a knowledge graph provided by an embodiment of the present invention;

[0046] Figure 6 It is a structural schematic diagram of a library-based knowledge graph construction device provided by an embodiment of the present invention;

[0047] Figure 7 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. The term "and / or" used in this specification includes any and all combinations of one or more related listed items. In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0049] The library-based knowledge graph construction method and fragmented knowledge generation method provided by the embodiment of the present invention mainly include two parts, one is a knowledge system construction system, and the other is a knowledge system output traceability system. The two systems jointly complete the construction of an exportable and traceable knowledge system. The knowledge system construction system processes, analyzes, associates, and constructs a knowledge system for digital documents (including text, pictures, audio, video, etc.). Among them, the knowledge system construction system mainly performs metadata extraction operations and object data structuring operations on the digital documents, and constructs a knowledge graph through these two operations, which are used to construct a breadth index of knowledge and a depth index of knowledge, respectively. The knowledge system construction system can generate a summary based on text (including the knowledge points and text segments involved, etc.), that is, fragmented knowledge. In addition, the knowledge system output traceability system can also collect pictures, analyze and identify the pictures, and identify the knowledge points by comparing the picture feature library to achieve the association of the identified pictures with the constructed knowledge pictures. The above-mentioned generated summary can also include associated pictures.

[0050] The knowledge system output traceability system is based on the knowledge system construction system and provides external openness. It can provide a standard output data interface for use by upper-level applications and for cross-industry knowledge graph fusion. The application methods of the knowledge system output traceability system include but are not limited to web pages, applets, public accounts, APPs, etc. Users can obtain fragmented knowledge corresponding to the keywords by inputting keywords in any of these application methods. The fragmented knowledge includes at least one of text, pictures, audio and video.

[0051] The library-based knowledge graph construction method and fragmented knowledge generation method provided in the embodiments of the present invention can establish a comprehensive and systematic knowledge system, can output fragmented knowledge based on the knowledge system, and at the same time, the fragmented knowledge supports traceability and regression, thereby generally improving the service efficiency of the library.

[0052] Specifically, see Figure 1 , Figure 1 This is a flow chart of a method for constructing a knowledge graph based on a library provided by an embodiment of the present invention. The method comprises:

[0053] S101, obtain digital document resources;

[0054] The digital document resources include text, pictures, audio, video and other resources. The digital document resources can be obtained from the digital document resource library of the library, which includes a large amount of digitized documents, self-built special resources and legally used commercial databases.

[0055] The obtained digital document resources specifically include digital resource carriers, which may be web pages, PDF files, picture files, or binary files such as database files.

[0056] S102, extracting metadata from the digital document resources, and generating a metadata map according to the metadata;

[0057] Extracting metadata from the digital document resource may specifically be extracting metadata from the digital resource carrier, wherein the metadata includes: nomination, author, publisher, year, data type, object data address, etc.

[0058] Specifically, the step of extracting metadata from the digital document resources and generating a metadata graph based on the metadata includes: extracting metadata and generating a first traceability number corresponding to the metadata; performing word segmentation on the metadata to identify entities, relationship words and sentiment words, and constructing a first SPO triple based on the entities, the relationship words and the sentiment words, wherein the first SPO triple includes the corresponding first traceability number.

[0059] Among them, metadata can be extracted through crawler technology, Web Service technology, etc. For example, the metadata of the page can be captured through crawler technology, and the metadata can be obtained by calling the data interface. The extracted structured data and unstructured data can be stored separately through a relational database and a non-relational database. The relational database is used to record data as structured data and obtain metadata by reading the basic table. The non-relational database is used to convert the recorded semi-structured data into structured data by analyzing the record form, and is also used to convert the recorded unstructured data into structured data after processing through general technology. The general technology includes natural language processing technology, automatic speech recognition technology, image recognition technology, etc.

[0060] After obtaining the metadata, a unique traceability number for the metadata, i.e., the first traceability number, is generated. The first traceability number is used to point to the digital resource carrier from which the metadata is extracted. The first traceability number can specifically be uppercase and lowercase letters, numbers, or special symbols, etc. Each metadata corresponds to a unique first traceability number.

[0061] S103, acquiring object data according to the metadata, and generating an object data graph according to the object data;

[0062] The process of generating an object data graph according to the object data may be a process of establishing SPO triples according to the object data. In this embodiment, the final knowledge graph is mainly established through SPO triples. It should be noted that in some other embodiments, in addition to SPO triples, other data structures may also be used.

[0063] Wherein, the object data is obtained according to the metadata, and the object data graph is generated according to the object data, including: obtaining the object data corresponding to the metadata according to the address element contained in the metadata; obtaining the type of the object data; when the object data is of text type, performing word segmentation processing on the object data to identify entities, relational words and sentimental words; generating second traceability numbers corresponding to the entities, relational words and sentimental words; constructing second SPO triples based on the entities, relational words and sentimental words, each of the entities, relational words and sentimental words in the second SPO triples includes the corresponding second traceability number. Wherein, the metadata includes an address element, and the address element is used to point to the specific address of the object data corresponding to the metadata. For example, if the metadata includes article A, that is, the publisher information, publication time and author information of article A, then the address element includes the publisher information, publication time and author information. The object data of article A can be obtained through the address element, that is, the content specifically recorded in article A, which includes text, graph, audio, video, etc.

[0064] In this embodiment, the object data is text. After obtaining the text, the text is segmented to identify entities, relational words and sentimental words to construct SPO triples, i.e., the second SPO triples. After obtaining the second SPO triples corresponding to the object data, each of the entities, relational words and sentimental words in the second SPO triples is uniquely traced, i.e., the second traceability number is determined. The second traceability number is used to uniquely identify the elements in the second SPO triples. Among them, the second traceability number can be determined based on the first traceability number, and the second traceability number of the elements in the second SPO triples of the object data corresponding to the same metadata is associated with the first traceability number corresponding to the metadata. For example, the first traceability number of metadata A is a, and the second traceability number determined in the object data corresponding to metadata A can be a1, a2, a3, ... an, etc.

[0065] In some embodiments, the method further includes: when the object data is of video and / or audio type, converting the object data into a text type, and performing the step of generating an object data graph according to the object data based on the converted object data.

[0066] S104: Fusion the metadata graph and the object data graph to generate a knowledge graph.

[0067] The knowledge graph is a knowledge system that associates a large amount of metadata and object data. The knowledge graph consists of a metadata graph and an object data graph. The metadata graph is used to retrieve relevant documents. Its form is the same as that of the object data graph, except that the first traceability number identified by a single node in the metadata graph points to an entire object of the object data; while the single node in the object data graph identifies the relevant knowledge points (i.e. entities) in the object data and the knowledge fragments related to the knowledge points.

[0068] Among them, the fusion of the metadata graph and the object data graph to generate a knowledge graph includes: according to the first SPO triples, associating the first SPO triples containing the same relationship to generate a directory set, the directory set consisting of multiple first SPO triples; according to the first traceability number and the second traceability number, associating the first SPO triple in the directory set with the second SPO triple to generate a knowledge graph.

[0069] Among them, the first SPO triples of the same relationship refer to the existence of a certain connection between the digital document resources corresponding to different first SPO triples, and the certain connection can be an inclusion relationship or a parallel relationship. For example, both article A and article B include the first SPO triples corresponding to them, and both article A and article B belong to the book "Notes from a Mountain Dwelling". Since article A and article B belong to the same book, it is considered that there is a connection between the two, and the first SPO triples corresponding to each of them can be associated. The certain connection can also be belonging to the same category, for example, both article A and article B are essays recording travel, then it is considered that there is a connection between the two, and the first SPO triples corresponding to each of them can be associated. The certain connection can also be that the subject of the corresponding object data is the same, for example, both article A and article B are articles introducing the humanities, geography and customs of Guangxi, then it is considered that there is a connection between the two, and the first SPO triples corresponding to each of them can be associated.

[0070] It should be noted that, in addition to considering the above-mentioned factors, other factors may also be considered in the method of associating different first SPO triples. For example, the first SPO triples with the same relationship may be associated based on other factors such as author and publication time to generate a directory set.

[0071] The directory set includes the first traceability numbers corresponding to a plurality of the first SPO triples, and the arrangement order of the first traceability numbers can be determined according to the arrangement order of the first SPO triples.

[0072] In some embodiments, according to the first SPO triples, associating the first SPO triples containing the same relationship to generate a directory set includes: classifying the plurality of the first SPO triples by a preset classification algorithm, and placing the first traceability numbers corresponding to the first SPO triples of the same category in the same subdirectory. The preset classification algorithm includes a support vector machine, a decision tree, an artificial neural network, a naive Bayes, a logistic regression algorithm, and the like.

[0073] Among them, the first SPO triplet in the directory set is associated with the second SPO triplet according to the first traceability number and the second traceability number, including: obtaining all the second traceability numbers contained in the object data corresponding to the first SPO triplet; associating the obtained second traceability number with the first traceability number corresponding to the first SPO triplet, so that the fragment data of the entire object data corresponding to a metadata is under the first traceability number of the metadata, and the second traceability number can be traced by querying the first traceability number, thereby tracing the fragment data.

[0074] In some embodiments, in addition to associating the fragment data of the entire object data corresponding to one metadata, multiple fragment data in different object data corresponding to multiple metadata can also be associated. According to the above process of generating a directory set, the first traceability number corresponding to the first SPO triple of different metadata can be placed in the same subdirectory, and one first traceability number can be associated with multiple second traceability numbers. In this embodiment, the second traceability numbers belonging to the same subdirectory can be associated, so that all fragment data belonging to one subdirectory can be associated.

[0075] The embodiment of the present invention provides a method for constructing a knowledge graph based on a library. The method can establish a complete knowledge system from massive digital document resources. The knowledge system has a fragmented knowledge tracing function, can meet the different needs of users, and improve the service efficiency of the library.

[0076] See also Figure 2 , Figure 2 is a flowchart of a method for constructing a knowledge graph based on a library provided by another embodiment of the present invention. Figure 2 and Figure 1 The main difference is that the method further comprises:

[0077] S105: Associating the collected pictures with the knowledge graph.

[0078] In this embodiment, pictures related to the metadata can also be obtained, for example, the picture is an image of the author. Pictures related to the object data can also be obtained, for example, the picture is a display of the object described by the object data, and so on. The obtained pictures are finally associated with the established knowledge graph, specifically including: uniquely numbering the obtained pictures, associating the number of the picture with the first traceability number of the metadata corresponding to it, or associating the number of the picture with the second traceability number of the object data corresponding to it. Among them, the number of the picture is used to point to the carrier where the picture is stored. When the user traces fragmented knowledge, not only fragmented knowledge is provided, but also its corresponding pictures are provided.

[0079] In some embodiments, in addition to associating pictures, audio, video, etc. can also be associated.

[0080] The library-based knowledge graph construction method provided in this embodiment associates the obtained images with the established knowledge graph, enriching the content of the established knowledge graph; in addition, when tracing the fragmented knowledge, it provides users with a better experience and improves the service efficiency of the library.

[0081] See also Figure 3 , Figure 3is a flow chart of a method for generating fragmented knowledge provided by an embodiment of the present invention. Figure 3 and Figure 2 The main difference is that the method further comprises:

[0082] S106, obtaining information input by the user;

[0083] S107. Generate fragmented knowledge based on the information input by the user and the knowledge graph.

[0084] The information includes at least one of keywords, audio, video, and pictures.

[0085] Generating fragmented knowledge according to the information input by the user and the knowledge graph includes:

[0086] When the information is a keyword, the knowledge graph is searched according to the keyword to obtain a first traceability number of the knowledge point corresponding to the keyword in the knowledge graph, and the fragmented knowledge corresponding to the first traceability number is generated according to the digital resource document content corresponding to the first traceability number;

[0087] When the information is a picture, a keyword corresponding to the picture is obtained based on image recognition, a knowledge graph is searched according to the keyword to obtain a first traceability number of a knowledge point corresponding to the keyword in the knowledge graph, and fragmented knowledge corresponding to the first traceability number is generated according to the digital resource document content corresponding to the first traceability number;

[0088] When the information is audio, keywords corresponding to the audio are obtained based on audio recognition, and the knowledge graph is searched according to the keywords to obtain the first traceability number of the knowledge point corresponding to the keyword in the knowledge graph, and fragmented knowledge corresponding to the first traceability number is generated according to the digital resource document content corresponding to the first traceability number.

[0089] For example, a user obtains an audio by recording. After obtaining the audio, the system can convert the audio into text (i.e., keywords), and then search for the object data corresponding to the audio according to the knowledge graph, and then generate fragmented knowledge. For another example, a user takes a picture of an object with a mobile phone. Without knowing the name of the object and other information, the user can input the picture into the system. After image processing and image recognition, the system generates fragmented knowledge corresponding to the picture according to the knowledge graph.

[0090] Among them, the user can input the keywords, the audio, the graph, etc. through other methods such as APP, mini-programs, web pages, etc.

[0091] The generating of the fragmented knowledge corresponding to the first traceability number according to the digital resource document content corresponding to the first traceability number includes: extracting a fragment according to the object data corresponding to the first traceability number, and fusing all the fragments to generate fragmented knowledge. Here, all the obtained object data are integrated to generate a fragmented knowledge.

[0092] It is understandable that in order to meet different needs of users, the integrated object data can be further extracted with key data, and then the key data can be integrated. Therefore, the generation of fragmented knowledge corresponding to the first traceability number according to the digital resource document content corresponding to the first traceability number includes: generating multiple first-level summaries according to the object data corresponding to the first traceability number, and generating second-level summaries from the multiple first-level summaries based on the abstract extraction related elements, wherein the abstract related elements include one or more of the historical abstract extraction length, publication release time, reader behavior habits, total word count, and resource richness.

[0093] It should be noted that in addition to generating the second-level summary, third-level, fourth-level, or even multi-level summaries can be further generated so that the fragmented knowledge finally obtained meets the needs of users.

[0094] The above method generates fragmented knowledge based on information input by the user. In some embodiments, the system can also automatically generate fragmented knowledge based on automatic summary generation technology.

[0095] See also Figure 4 , Figure 4 is a flowchart of a fragmented knowledge generation method provided by another embodiment of the present invention. Figure 4 and Figure 2 The main difference is that the method further comprises:

[0096] S108, traversing all generated first traceability numbers;

[0097] S109. Generate fragmented knowledge corresponding to the first traceability number based on the digital resource document content corresponding to the first traceability number.

[0098] It can be known that the first traceability number is used to identify metadata, each metadata can be associated with multiple object data, all the corresponding object data can be obtained according to the first traceability number, and then the fragmented knowledge corresponding to the object data is generated based on the summary automatic generation technology. The summary automatic generation technology can refer to the records of related technologies.

[0099] In this embodiment, fragmented knowledge can be automatically generated based on the established knowledge graph, so that a book can be described by a paragraph of text obtained based on the specific content of the book. The provided literature resources can also be converted into provided knowledge by the readers themselves through analysis, and the readers can use them at their discretion, which is also the cornerstone for the digitization and semanticization of library literature.

[0100] In some embodiments, the method further includes: collecting user experience data such as knowledge satisfaction and modification opinions, and the system analyzes the return data and user portrait data as a learning basis for text, picture, audio, video resource analysis and recognition, and text summary extraction, to achieve supervised learning model training. The user experience data includes user data and user portrait data.

[0101] Among them, the return data refers to the data generated by the use of return users. Return users are users who have not visited or used for more than a certain threshold, and users who revisit or use. For example, define users who have not visited or used for more than 7 calendar days as revisiting or using. After collecting such return users, the reasons for the possible return of users, usage habits, usage knowledge topic range, reading depth and other information can be analyzed based on the user portrait data such as age, occupation, gender, work unit, household registration, etc. This will increase the weight of data such as satisfaction and modification opinions in the training process, so as to achieve the purpose of increasing the number of return users and improving service effects.

[0102] The fragmented knowledge generation method provided by the embodiment of the present invention enables users to obtain the fragmented knowledge they are searching for by inputting keywords, so that users can use fragmented time to obtain knowledge fragments, thereby meeting various knowledge needs of users. In addition, the service efficiency of the library is also improved.

[0103] Based on the above method embodiment, an example is given below to illustrate the library-based knowledge graph construction method and the fragmented knowledge generation method. For example, including article A and article B. First, the metadata and object data of article A are extracted, and the SPO triples corresponding to the metadata and the SPO triples corresponding to the object data are generated, specifically including:

[0104] Metadata

[0105] Article A (Publisher AP Publication Date 2020 Author Zhang San)

[0106] Object data

[0107] Guangxi is located at the southeastern edge of the Yunnan-Guizhou Plateau in the second step of China's terrain, in the western part of the Guangdong-Guangxi Hills. The terrain is high in the northwest and low in the southeast, showing a tilt from the northwest to the southeast. The landform is generally composed of six major categories: mountains, hills, tablelands, plains, stone mountains, and water surfaces. Guangxi has a subtropical monsoon climate and a tropical monsoon climate, straddling the four major river systems of the Pearl River, the Yangtze River, the Red River, and the coastal area.

[0108] · Object participle

[0109] Guangxi, located at, China, terrain, potential, second, second-order, two, step, order, in, Yunnan-Guizhou Plateau, Yunnan-Guizhou, Yunnan, Guizhou, plateau, southeast edge, southeast, southern edge, edge, Guangdong-Guangxi, Guangdong, Guangxi, hills, hill, western part, terrain, potential, northwest, high, southeast, low, showing, showing, northwestward, northwest, eastward, southeast, tilt, tilt, landform, appearance, overall, overall, composed of, mountains, hills, hill, tablelands, table, land, plains, stone mountains, water surface, surface, six, six, major categories, major, categories

[0110] · Metadata SPO

[0111] {"object": "Article A", "predicate": "published", "subject": "AP"}

[0112] {"object": "Article A", "predicate": "issued", "subject": "2020"}

[0113] {"object": "Article A", "predicate": "author", "subject": "Zhang San"}

[0114] {"object": "Zhang San", "predicate": "submitted", "subject": "AP"}

[0115] · Object data SPO

[0116] {"object": "Guangxi", "predicate": "is located at", "subject": "China"}

[0117] {"object": "Guangxi", "predicate": "is located at", "subject": "Yunnan-Guizhou Plateau"}

[0118] {"object":"mountain","predicate":"compose","subject":"Guangxi"}

[0119] {"object":"hills","predicate":"compose","subject":"Guangxi"}

[0120] {"object":"platform","predicate":"compose","subject":"Guangxi"}

[0121] {"object":"plain","predicate":"compose","subject":"Guangxi"}

[0122] {"object":"Shishan","predicate":"compose","subject":"Guangxi"}

[0123] {"object":"water surface","predicate":"composition","subject":"Guangxi"}

[0124] {"object":"Guangxi","predicate":"genus","subject":"monsoon climate"}

[0125] {"object":"Guangxi","predicate":"spanning","subject":"Pearl River"}

[0126] {"object":"Guangxi","predicate":"spanning","subject":"Yangtze River"}

[0127] {"object":"Guangxi","predicate":"spanning","subject":"Red River"}

[0128] {"object":"Guangxi","predicate":"spanning","subject":"coastal"}

[0129] Then, the metadata and object data of article B are extracted, and the SPO triples corresponding to the metadata and the SPO triples corresponding to the object data are generated, including:

[0130] Metadata

[0131] Article B (published by AP, published in 2019, author Zhang San)

[0132] Object data

[0133] Guangxi has a long history. As early as 800,000 years ago, primitive humans lived in Guangxi. In the late Paleolithic period 40,000 to 50,000 years ago, "Liujiang people" and "Qilinshan people" worked and lived here. 20,000 to 10,000 years ago, "Qilinshan people" had learned and used stone tools for drilling and sharpening.

[0134] Object segmentation

[0135] Guangxi has a long history. As early as 800,000 years ago, primitive humans lived in Guangxi. 40,000 to 50,000 years ago, in the Paleolithic Age, there were people from Liujiang and Qilin Mountain who worked and lived here. 2-10,000 to 210,000 years ago, people from Qilin Mountain had learned to use stone tools to drill holes and sharpen them.

[0136] Metadata SPO

[0137] {"object":"Article B","predicate":"Published","subject":"AP"}

[0138] {"object":"Article B","predicate":"Issue","subject":"2019"}

[0139] {"object":"Article B","predicate":"Author","subject":"Zhang San"}

[0140] Object data SPO

[0141] {"object":"Guangxi","predicate":"has","subject":"primitive people"}

[0142] {"object":"primitive man","predicate":"has","subject":"Liujiang man"}

[0143] {"object":"primitive man","predicate":"there is","subject":"Qilinshan people"}

[0144] {"object":"Paleolithic Age","predicate":"there were","subject":"Liujiang people"}

[0145] {"object":"Paleolithic Age","predicate":"There were","subject":"Qilinshan people"}

[0146] {"object":"Qilinshanren","predicate":"drilling","subject":"stone tools"}

[0147] {"object":"Qilinshanren","predicate":"grinding","subject":"stone tool"}

[0148] Next, a knowledge graph is generated based on the metadata SPO triples and object data SPO triples. The generated knowledge graph is as follows: Figure 5 shown.

[0149] Finally, fragmented knowledge is output based on the knowledge graph.

[0150] For example, if the keyword is "Guangxi", the abstracts that can be obtained include:

[0151] "Guangxi is located on the edge of the Yunnan-Guizhou Plateau. It is composed of mountains, hills, terraces, plains, rocky mountains, and water surfaces. It has a monsoon climate. It spans four major water systems. Guangxi has a long history, with primitive people such as the 'Liujiang people' and the 'Qilinshan people'. The 'Qilinshan people' have learned and used drilling and sharpening stone tools."

[0152] See also Figure 6 , Figure 6 It is a structural schematic diagram of a library-based knowledge graph construction device provided in an embodiment of the present invention, wherein the device comprises: a data acquisition module 21, a metadata graph generation module 22, an object data graph generation module 23 and a knowledge graph generation module 24.

[0153] Among them, the data acquisition module 21 is used to acquire digital document resources; the metadata graph generation module 22 is used to extract metadata from the digital document resources and generate a metadata graph based on the metadata; the object data graph generation module 23 is used to acquire object data based on the metadata and generate an object data graph based on the object data; the knowledge graph generation module 24 is used to fuse the metadata graph and the object data graph to generate a knowledge graph.

[0154] Among them, the metadata graph generation module 22 is specifically used to: extract metadata and generate a first traceability number corresponding to the metadata; perform word segmentation on the metadata, identify entities, relationship words and sentiment words, and construct a first SPO triple based on the entity, the relationship words and the sentiment words, and the first SPO triple includes the corresponding first traceability number.

[0155] Among them, the object data graph generation module 23 is specifically used to: obtain the object data corresponding to the metadata according to the address element contained in the metadata; obtain the type of the object data; when the object data is of text type, perform word segmentation processing on the object data to identify entities, relationship words and sentiment words; generate a second traceability number corresponding to the entity, the relationship word and the sentiment word; construct a second SPO triple based on the entity, the relationship word and the sentiment word, and each of the entity, the relationship word and the sentiment word in the second SPO triple includes its corresponding second traceability number.

[0156] In some embodiments, the device 20 also includes a file type conversion module 25, which is used to convert the object data into a text type when the object data is a video and / or audio type, and send the converted text type object data to the object data map generation module 23, so that the object data map generation module 23 performs the step of generating an object data map based on the object data based on the converted object data.

[0157] Among them, the knowledge graph generation module 24 is specifically used to: according to the first SPO triple, associate the first SPO triples containing the same relationship to generate a directory set, and the directory set is composed of multiple first SPO triples; according to the first traceability number and the second traceability number, associate the first SPO triple in the directory set with the second SPO triple to generate a knowledge graph.

[0158] In some embodiments, the device 20 further includes a graph association module 26, and the graph association module 26 is used to associate the collected pictures with the knowledge graph.

[0159] In some embodiments, the device 20 further includes a fragmented knowledge generation module 27, which is used to generate fragmented knowledge according to the information input by the user and the knowledge graph, and output the fragmented knowledge. The fragmented knowledge generation module 27 is specifically used to:

[0160] Obtain information input by the user, including keywords, pictures and audio;

[0161] When the information is a keyword, the knowledge graph is searched according to the keyword to obtain a first traceability number of the knowledge point corresponding to the keyword in the knowledge graph, and the fragmented knowledge corresponding to the first traceability number is generated according to the digital resource document content corresponding to the first traceability number;

[0162] When the information is a picture, a keyword corresponding to the picture is obtained based on image recognition, a knowledge graph is searched according to the keyword to obtain a first traceability number of a knowledge point corresponding to the keyword in the knowledge graph, and fragmented knowledge corresponding to the first traceability number is generated according to the digital resource document content corresponding to the first traceability number;

[0163] When the information is audio, keywords corresponding to the audio are obtained based on audio recognition, and the knowledge graph is searched according to the keywords to obtain the first traceability number of the knowledge point corresponding to the keyword in the knowledge graph, and fragmented knowledge corresponding to the first traceability number is generated according to the digital resource document content corresponding to the first traceability number.

[0164] The step of generating the fragmented knowledge corresponding to the first traceability number according to the digital resource document content corresponding to the first traceability number includes:

[0165] Extracting a fragment respectively according to the object data corresponding to the first traceability number, and fusing all the fragments to generate fragmented knowledge; or;

[0166] A plurality of first-level summaries are generated respectively according to the object data corresponding to the first traceability number, and a second-level summaries are generated from the plurality of first-level summaries based on the abstract extraction associated elements, wherein the abstract associated elements include one or more of the historical abstract extraction length, publication release time, reader behavior habits, total word count, and resource richness.

[0167] In some embodiments, the fragmented knowledge generation module 27 is specifically used to: traverse all generated first traceability numbers, wherein the first traceability number can be obtained based on the above-mentioned library-based knowledge graph construction method embodiment; generate fragmented knowledge corresponding to the first traceability number according to the digital resource document content corresponding to the first traceability number.

[0168] It should be noted that the above-mentioned library-based knowledge graph construction device can execute the library-based knowledge graph construction method and fragmented knowledge generation method provided in the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in the embodiment of the library-based knowledge graph construction device, please refer to the library-based knowledge graph construction method and fragmented knowledge generation method provided in the embodiment of the present invention.

[0169] See also Figure 7 , Figure 7 is a schematic diagram of the hardware structure of an electronic device for executing the library-based knowledge graph construction method and the fragmented knowledge generation method provided by an embodiment of the present invention, such as Figure 7 As shown, the electronic device 30 includes:

[0170] One or more processors 31 and memory 32, Figure 7 A processor 31 is taken as an example.

[0171] The processor 31 and the memory 32 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0172] The memory 32 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as the program instructions / modules corresponding to the library-based knowledge graph construction method and the fragmented knowledge generation method in the embodiment of the present invention (for example, the attached Figure 6 The processor 31 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 32, that is, the knowledge graph construction method based on the library and the fragmented knowledge generation method of the above method embodiment are realized.

[0173] The memory 32 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created based on the use of the library-based knowledge graph construction device, etc. In addition, the memory 32 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 32 may optionally include a memory remotely arranged relative to the processor 31, and these remote memories may be connected to the library-based knowledge graph construction device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0174] The one or more modules are stored in the memory 32, and when executed by the one or more processors 31, execute the library-based knowledge graph construction method and fragmented knowledge generation method in any of the above method embodiments, for example, execute the above described Figure 1 , 2 And the method steps in 3 and 4, and the implementation Figure 6 The functions of the modules in .

[0175] The above product can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.

[0176] The electronic device provided by the embodiments of the present invention exists in various forms, including but not limited to:

[0177] Ultra-mobile personal computing devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features;

[0178] Server: A device that provides computing services. The server consists of a processor, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, manageability, etc.

[0179] And other electronic devices with data interaction functions.

[0180] An embodiment of the present invention also provides a non-volatile computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors, for example, executing the library-based knowledge graph construction method and fragmented knowledge generation method of the above-mentioned embodiment.

[0181] An embodiment of the present invention also provides a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by the electronic device, the electronic device executes the library-based knowledge graph construction method and fragmented knowledge generation method in the above-mentioned embodiments.

[0182] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0183] Through the description of the above implementation methods, ordinary technicians in this field can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Ordinary technicians in this field can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0184] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they may still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for constructing a knowledge graph based on a library, characterized in that: The method comprises: Access digital literature resources; Extract metadata from the digital document resource, and generate a first traceability number corresponding to the metadata, wherein the metadata includes an address element, and the address element is used to point to a specific address of the object data corresponding to the metadata; generate a metadata graph according to the metadata, specifically, perform word segmentation processing on the metadata, identify entities, relational words and sentimental words, and construct a first SPO triple based on the entity, the relational words and the sentimental words, wherein the first SPO triple includes the first traceability number corresponding to it; Obtain object data according to the metadata, wherein the object data is the content specifically recorded by the digital document resource, including at least one of text, graph, audio, and video; and generate an object data graph according to the object data, and when the object data is of text type, specifically, perform word segmentation processing on the object data to identify entities, relational words, and sentimental words; generate second traceability numbers corresponding to the entities, relational words, and sentimental words; construct a second SPO triple based on the entities, relational words, and sentimental words, wherein each of the entities, relational words, and sentimental words in the second SPO triple includes the corresponding second traceability number; The metadata graph and the object data graph are integrated to generate a knowledge graph, wherein the knowledge graph is a knowledge system that associates metadata and object data, wherein the first traceability number identified by a single node in the metadata graph points to an entire object of the object data, and the single node in the object data graph identifies relevant knowledge points in the object data and knowledge fragments related to the knowledge points.

2. The method according to claim 1, characterized in that The acquiring of object data according to the metadata and generating an object data graph according to the object data further includes: Acquire object data corresponding to the metadata according to the address element contained in the metadata; The type of the object data is acquired, wherein the type of the object data at least includes a text type, a video type, and an audio type.

3. The method according to claim 2, characterized in that The method further comprises: When the object data is of video and / or audio type, the object data is converted into a text type, and the step of generating an object data graph according to the object data is performed based on the converted object data.

4. The method according to claim 1, characterized in that: The fusing the metadata graph and the object data graph to generate a knowledge graph includes: According to the first SPO triples, associating the first SPO triples containing the same relationship to generate a directory set, wherein the directory set is composed of a plurality of the first SPO triples; The first SPO triple in the directory set is associated with the second SPO triple in accordance with the first traceability number and the second traceability number to generate a knowledge graph.

5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: The collected pictures are associated with the knowledge graph.

6. A fragmented knowledge generation method, characterized in that: The method comprises: Traversing all generated first traceability numbers, wherein the first traceability numbers are obtained by the library-based knowledge graph construction method according to claim 1; According to the digital resource document content corresponding to the first traceability number, fragmented knowledge corresponding to the first traceability number is generated.

7. A fragmented knowledge generation method, characterized in that: The method comprises: Obtain information input by the user, including keywords, pictures and audio; When the information is a keyword, the knowledge graph is searched according to the keyword to obtain a first traceability number of the knowledge point corresponding to the keyword in the knowledge graph, and the fragmented knowledge corresponding to the first traceability number is generated according to the digital resource document content corresponding to the first traceability number; When the information is a picture, a keyword corresponding to the picture is obtained based on image recognition, a knowledge graph is searched according to the keyword to obtain a first traceability number of a knowledge point corresponding to the keyword in the knowledge graph, and fragmented knowledge corresponding to the first traceability number is generated according to the digital resource document content corresponding to the first traceability number; When the information is audio, a keyword corresponding to the audio is obtained based on audio recognition, a knowledge graph is searched according to the keyword to obtain a first traceability number of a knowledge point corresponding to the keyword in the knowledge graph, and fragmented knowledge corresponding to the first traceability number is generated according to the digital resource document content corresponding to the first traceability number; Wherein, the knowledge graph is obtained according to the library-based knowledge graph construction method according to any one of claims 1 to 5.

8. The method according to claim 7, characterized in that The generating, according to the digital resource document content corresponding to the first traceability number, the fragmented knowledge corresponding to the first traceability number comprises: Extract a fragment from each of the object data corresponding to the first traceability number, and fuse all of the fragments to generate fragmented knowledge; or, A plurality of first-level summaries are generated respectively according to the object data corresponding to the first traceability number, and a second-level summary is generated from the plurality of first-level summaries based on the abstract extraction associated elements, wherein the abstract associated elements include one or more of the historical abstract extraction length, publication release time, reader behavior habits, total word count, and resource richness.

9. An electronic device, characterized in that: include: at least one processor; a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1 to 8.