WO2021063104A1 - 知识图谱的构建方法及装置 - Google Patents

知识图谱的构建方法及装置 Download PDF

Info

Publication number
WO2021063104A1
WO2021063104A1 PCT/CN2020/107010 CN2020107010W WO2021063104A1 WO 2021063104 A1 WO2021063104 A1 WO 2021063104A1 CN 2020107010 W CN2020107010 W CN 2020107010W WO 2021063104 A1 WO2021063104 A1 WO 2021063104A1
Authority
WO
WIPO (PCT)
Prior art keywords
knowledge graph
target
entity
graph construction
option
Prior art date
Application number
PCT/CN2020/107010
Other languages
English (en)
French (fr)
Inventor
翟莹莹
Original Assignee
北京国双科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京国双科技有限公司 filed Critical 北京国双科技有限公司
Publication of WO2021063104A1 publication Critical patent/WO2021063104A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/36Creation of semantic tools, e.g. ontology or thesauri
    • G06F16/367Ontology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/31Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/36Creation of semantic tools, e.g. ontology or thesauri

Definitions

  • the invention relates to the technical field of knowledge graph construction, in particular to a method and device for constructing a knowledge graph.
  • the knowledge graph was formally proposed by Google in 2012. Its original intention was to improve the capabilities of search engines and improve the search quality and search experience of users. With the development and application of AI (Artificial Intelligence) technology, knowledge graphs, as one of the key technologies, have been widely used. However, the application of knowledge graphs in vertical fields is not as extensive as the applications in general fields.
  • AI Artificial Intelligence
  • Method 1 The technical personnel who construct the knowledge graph first obtain the knowledge in the field from the business experts in the vertical field, and digest the acquired knowledge with the help of the business experts, and then construct the knowledge graph of the vertical field.
  • the process of digesting and sorting the acquired knowledge by the technicians who construct the knowledge graph is very long, and the effect of digestion and sorting is not good, which affects the construction of the knowledge graph of the vertical domain.
  • Method 2 The business experts in the vertical field first learn the framework of the existing knowledge graph construction system (such as protégé), and then construct the knowledge graph of the vertical field. However, in fact, business experts in the vertical field have a long learning process of the framework of the knowledge graph construction system, and the learning effect is not good, which affects the construction of the knowledge graph of the vertical field.
  • the present invention provides a method and device for constructing a knowledge graph that overcomes the above-mentioned problems or at least partially solves the above-mentioned problems.
  • a method for constructing a knowledge graph is applied to a knowledge graph construction system, the knowledge graph construction system includes at least one knowledge graph construction module, and the method includes:
  • Target knowledge graph construction module is any one of the at least one knowledge graph construction module
  • the knowledge graph is constructed according to the user's operations on the target knowledge graph construction page.
  • target knowledge graph construction module is an entity management module
  • at least one entity operation option is set in the target knowledge graph construction page
  • obtaining the user's operations in the target knowledge graph construction page includes :
  • a target entity operation option will be determined according to the user's selection operation of the entity operation option, where the target entity operation option is any one of the at least one entity operation option;
  • the constructing the knowledge graph according to the user's operation on the target knowledge graph construction page includes:
  • obtaining user operations on the target knowledge graph construction page includes :
  • a target body operation option will be determined according to the user's selection operation of the body operation option, where the target body operation option is any one of the at least one body operation option;
  • the constructing the knowledge graph according to the user's operation on the target knowledge graph construction page includes:
  • the constructing a knowledge graph based on the user's operations on the target knowledge graph construction page includes:
  • rendering the operation sub-option corresponding to the target entity operation option to the target knowledge graph construction page includes :
  • the constructing a knowledge graph based on the user's operations on the operation sub-options corresponding to the target entity operation options includes:
  • the node information corresponding to the newly created entity and the relationship node information are stored in the target graph database.
  • the operation sub-option corresponding to the target entity operation option is rendered to the target knowledge graph construction page, include:
  • the relationship node information between the target ontology to which each of the entities belongs is obtained from the target graph database as an operation sub-option corresponding to the operation option of the target entity and rendered to the target knowledge graph construction page.
  • a device for constructing a knowledge graph is applied to a knowledge graph construction system.
  • the knowledge graph construction system includes at least one knowledge graph construction module, and the device includes:
  • the receiving unit is used to receive user login information
  • a determining unit configured to determine a target knowledge graph construction module matching the user login information, where the target knowledge graph construction module is any one of the at least one knowledge graph construction module;
  • the page rendering unit is configured to render the target knowledge graph construction module to generate a target knowledge graph construction page
  • the obtaining unit is used to obtain the user's operation in the target knowledge graph construction page
  • the construction unit is configured to construct a knowledge graph according to the user's operations on the target knowledge graph construction page.
  • a storage medium includes a stored program, wherein the program executes the method for constructing a knowledge graph as described above.
  • An electronic device which includes at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other through the bus; the processor is used to call
  • the program instructions in the memory are used to execute the method for constructing a knowledge graph as described above.
  • the knowledge graph construction method and device provided by the present invention are applied to the knowledge graph construction system.
  • the knowledge graph construction system provided in this application can be used by business experts in the vertical field. Need to log in to the knowledge graph construction system, and the system receives the login information; determines the target knowledge graph construction module matching the login information from at least one knowledge graph construction module included in the system, and renders the target knowledge graph construction module to generate the target knowledge graph construction Page, so that business experts in the vertical field can operate on the target knowledge graph construction page; the system constructs the knowledge graph based on the operations of the business experts in the vertical field on the target knowledge graph construction page. Based on the above solution, business experts in the vertical field only need to log in and operate on the page to build the knowledge graph.
  • FIG. 1 is a schematic diagram of an interface corresponding to an ontology management module provided by an embodiment of this application;
  • FIG. 2 is a schematic diagram of an interface corresponding to an entity management module provided by an embodiment of the application
  • FIG. 3 is a flowchart of a method for constructing a knowledge graph provided by an embodiment of the application
  • FIG. 4 is a structural diagram of a device for constructing a knowledge graph provided by an embodiment of the application.
  • Fig. 5 is a structural diagram of a device provided by an embodiment of the application.
  • the vertical field is relative to the general field. It mainly refers to the non-comprehensive, professional and in-depth subdivision of a specific field. Non-standardized consumer goods fields such as education, sale, and medical care are all vertical fields. . Each vertical field includes its corresponding concept collection. For example, the medical vertical field may include concepts such as diabetes, internal medicine, penicillin, and people's hospital. Concept, as the basic element that constitutes a vertical field, is the basis for expressing the needs of users in this field.
  • Ontology is a formal expression used to describe various concepts in a vertical field and the relationship between concepts. Such as: "person”, “city”, “commodity” and other concepts.
  • Entity refers to something that is distinguishable and independent, such as a certain person, a certain city, a certain kind of commodity, etc. Entities are the most basic elements in the knowledge graph, and different entities have different relationships.
  • Graph database also called graph-oriented database. Its data model is mainly embodied by nodes and relationships (edges). neo4j is a commonly used graph database.
  • the knowledge graph construction system includes a background processing module and at least one knowledge graph construction module.
  • the at least one knowledge graph construction module includes an ontology management module and an entity management module.
  • the ontology management module and the entity management module are separated in the system, and users (such as a company in a vertical field) can open different modules for different personnel according to their occupations in the process of using the knowledge graph to build the system. Permissions.
  • the ontology management module and the entity management module are connected through the internal constraint mechanism preset in the background processing module.
  • the internal constraint mechanism includes the fixed constraint mechanism created during the development of the knowledge graph construction system, and when the knowledge graph construction system is put into application , User-defined constraint mechanism.
  • the ontology management module has a corresponding interface, and the corresponding interface of the ontology management module is provided with ontology operation options.
  • the ontology operation options can include ontology operation options for triggering a new ontology node, and for triggering editing ontology nodes
  • Users with ontology operation authority can trigger ontology operation options on the corresponding interface of the ontology management module to instruct the background processing module to render onto the ontology operation sub-options corresponding to the ontology operation options triggered by the user on the corresponding interface of the ontology management module. Operate different ontology operation sub-options to instruct the background processing module to construct a knowledge graph according to the user's operation on the ontology operation sub-options.
  • the corresponding interface of the ontology management module is provided with ontology operation options, such as the "new node” button and the "new relationship” button as shown in the figure.
  • ontology operation options such as the "new node” button and the "new relationship” button as shown in the figure.
  • the sub-options for ontology operation are displayed on the interface, namely the "Node label” display box, “Node value” input box, “Attribute information” display box, and "Add new attribute” Button, "Cancel” button and “Confirm” button.
  • the user enters a concept in the "Node Value” input box, then clicks the "Add New Attribute” button to add the concept attribute, and then clicks the "Confirm” button to construct a knowledge graph.
  • the constructed knowledge graph can be displayed in the knowledge graph display area .
  • the entity management module also has a corresponding interface.
  • the corresponding interface of the entity management module is provided with entity operation options.
  • the entity operation options can include entity operation options for triggering a new entity node, and for triggering editing of entity nodes
  • a user with entity operation authority can trigger entity operation options on the corresponding interface of the entity management module to instruct the background processing module to render the entity operation sub-options corresponding to the entity operation options triggered by the user to the corresponding interface of the entity management module.
  • Different entity operation sub-options can be operated to instruct the background processing module to construct a knowledge graph according to the user's operation on the entity operation sub-options.
  • entity operation options are set on the interface corresponding to the entity management module, such as the "New Node” button and the “New Relationship” button as shown in the figure.
  • the interface displays the entity operation sub-options, namely the "Node label” input box, “Node value” input box, “Attribute information” display box, and "Add new attribute” Button, "Cancel” button and “Confirm” button.
  • the user enters the name of a certain thing in the "node value” input box, then clicks the "add new attribute” button to add entity attributes, and then clicks the "confirm” button to build a knowledge graph.
  • the constructed knowledge graph can be displayed in the knowledge graph display area display.
  • the background processing module obtains the knowledge graph construction information corresponding to the user's operation in the target knowledge graph construction page (for example, the ontology node value and attribute input by the user in the ontology operation sub-option); converts the knowledge graph construction information into Node information matching the format of the target graph database; storing the node information in the target graph database.
  • neo4j can be used as the target graph database in this application.
  • the background processing module stores the knowledge graph through neo4j. It should be noted that in neo4j, if the node value of the first node is consistent with the label of the second node, the first node is the entity, and the second node is the belonging of the first node. Ontology. In addition, neo4j also stores the mapping relationship between entities and their ontology.
  • FIG. 3 is a flowchart of a method for constructing a knowledge graph according to an embodiment of the application.
  • the method can be applied to the background processing module of the knowledge graph construction system.
  • the method may include:
  • S301 Receive user login information.
  • the user may be a business expert in a vertical field, or a technician who constructs a knowledge graph. Users can register in the knowledge graph construction system in advance to determine login information such as user name and user password.
  • S302 Determine a target knowledge graph construction module matching the user login information, where the target knowledge graph construction module is any one of at least one knowledge graph construction module included in the knowledge graph construction system.
  • the knowledge graph construction system when the knowledge graph construction system receives a user's registration request, it will assign permissions to the user according to the user's role and record it. Specifically, the information used to identify the permissions can be corresponded to the user's login information The relationship is saved. When the user logs in, the authority information corresponding to the user's login information can be determined, and then the target knowledge graph building module that matches the user's login information can be determined according to the authority information.
  • S303 Render the target knowledge graph construction module to generate a target knowledge graph construction page.
  • the backend server after determining the target knowledge graph building module that matches the user login information, the backend server renders the target knowledge graph building module to generate a target knowledge graph building page, for example, as shown in Figure 1 and Figure 2 page.
  • the user can perform operations on the target knowledge graph construction page
  • the background server can obtain the user's operations on the target knowledge graph construction page.
  • the background server after the background server obtains the user's operation in the target knowledge graph construction page, it can construct the knowledge graph according to the user's operation in the target knowledge graph construction page.
  • the back-end server when the back-end server constructs the knowledge graph, it can obtain the knowledge graph construction information corresponding to the user's operation on the target knowledge graph construction page; convert the knowledge graph construction information into the information corresponding to the target knowledge graph database Store the node information with the matching format in the target graph database.
  • This embodiment discloses a method for constructing a knowledge graph and is applied to a knowledge graph construction system.
  • the knowledge graph construction system provided in this application can be used by business experts in vertical fields, and business experts in vertical fields need to log in to the knowledge graph construction system ,
  • the system receives the login information; determines the target knowledge map building module that matches the login information from at least one knowledge map building module included in the system, and renders the target knowledge map building module to generate a target knowledge map construction page to enable the vertical domain Operation of business experts in the target knowledge graph construction page; the system constructs the knowledge graph based on the operations of business experts in the vertical field on the target knowledge graph construction page. Based on the above solution, business experts in the vertical field only need to log in and operate on the page to build the knowledge graph.
  • the target knowledge graph construction module is an entity management module
  • at least one entity operation option is set in the target knowledge graph construction page, and the at least one entity operation option includes triggering a new entity Node entity operation options, entity operation options used to trigger editing entity nodes, and entity operation options used to trigger new entity node relationships.
  • Obtaining the user's operation in the target knowledge graph construction page includes: determining a target entity operation option according to the user's selection operation of the entity operation option, and the target entity operation option is the at least one entity operation option Any one of the; render the entity operation sub-option corresponding to the target entity operation option to the target knowledge graph construction page; obtain the user's operation on the entity operation sub-option; specifically as shown in Figure 2, Figure 2 It includes both target entity operation options, such as the new entity button, and entity operation sub-options, such as "node label” input box, "node value” input box, "attribute information” display box, "add new attribute” button, " “Cancel” button and “Confirm” button.
  • the constructing a knowledge graph according to the user's operation on the target knowledge graph construction page includes: constructing a knowledge graph according to the user's operation on the entity operation sub-option. Specifically, according to the user's selection and editing of the entity operation sub-options, the node, attribute and other information of the entity corresponding to the user's selection and editing of the entity operation sub-option will be determined, and the entity's node, attribute and other information will be determined. Converting to node information matching the format of the target graph database, and storing the node information in the target graph database.
  • the target knowledge graph construction module is an ontology management module
  • at least one ontology operation option is set in the target knowledge graph construction page
  • the at least one ontology operation option includes a method for triggering new creation.
  • Ontology operation options of an ontology node, an ontology operation option for triggering editing an ontology node, and an ontology operation option for triggering a new ontology node relationship then the user's operation in the target knowledge graph construction page is obtained, including: according to the user For the selection operation of the body operation option, a target body operation option is determined, and the target body operation option is any one of the at least one body operation option; the body operation sub-option corresponding to the target body operation option is rendered Go to the target knowledge graph construction page; obtain the user's operations on the ontology operation sub-options; as shown in Figure 1, Figure 1 includes both the target ontology operation options such as the new ontology button and the ontology operation sub-options, such as "Node label" display box
  • the constructing a knowledge graph according to the user's operation on the target knowledge graph construction page includes: constructing a knowledge graph according to the user's operation on the ontology operation sub-option. Specifically, according to the user's selection and editing operations on the ontology operation sub-options, the node and attribute information of the ontology corresponding to the user's selection and editing of the ontology operation sub-options will be determined, and the information such as the nodes and attributes of the ontology will be determined. Converting to node information matching the format of the target graph database, and storing the node information in the target graph database.
  • the ontology management module and the entity management module are connected through the internal constraint mechanism preset in the background processing module, and this constraint is embodied in at least the following aspects.
  • rendering the operation sub-option corresponding to the target entity operation option to the target knowledge graph construction page includes:
  • attribute list information of the target ontology includes attribute information corresponding to the target ontology, such as the company name shown in FIG. 1 and so on.
  • the constructing a knowledge graph according to the user's operation on the operation sub-option corresponding to the target entity operation option includes:
  • the node information corresponding to the newly created entity and the relationship node information are stored in the target graph database.
  • rendering the operation sub-option corresponding to the target entity operation option to the target knowledge graph construction page includes:
  • the relationship node information between the target ontology to which each of the entities belongs is acquired from the target graph database as an operation sub-option corresponding to the operation option of the target entity and rendered to the target knowledge graph construction page.
  • the knowledge graph construction device provided by the embodiments of the present application will be introduced below.
  • the knowledge graph construction device described below may correspond to the knowledge graph construction method for mutual reference.
  • Fig. 4 is a structural diagram of a device for constructing a knowledge graph provided by an embodiment of the application.
  • the device can be applied to the background processing module of a knowledge graph constructing system.
  • the device may include:
  • the receiving unit 41 is configured to receive user login information
  • the determining unit 42 is configured to determine a target knowledge graph construction module matching the user login information, where the target knowledge graph construction module is any one of the at least one knowledge graph construction module;
  • the page rendering unit 43 is configured to render the target knowledge graph construction module to generate a target knowledge graph construction page
  • the obtaining unit 44 is configured to obtain the user's operation in the target knowledge graph construction page
  • the constructing unit 45 is configured to construct a knowledge graph according to the user's operations on the target knowledge graph construction page.
  • the device for constructing the knowledge graph includes a processor and a memory, and each of the above-mentioned units is stored in the memory as a program unit, and the processor executes the above-mentioned program unit stored in the memory to realize corresponding functions.
  • the processor contains the kernel, and the kernel calls the corresponding program unit from the memory.
  • One or more kernels can be set, and the vertical domain knowledge graph can be constructed by adjusting kernel parameters.
  • the memory may include non-permanent memory in computer-readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM), and the memory includes at least one Memory chip.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash random access memory
  • the embodiment of the present invention provides a storage medium on which a program is stored, and the method for constructing the knowledge graph is realized when the program is executed by a processor.
  • the embodiment of the present invention provides a processor configured to run a program, wherein the method for constructing the knowledge graph is executed when the program is running.
  • an embodiment of the present application provides a device 50.
  • the device 50 includes at least one processor 501, and at least one memory 502 and a bus 503 connected to the processor 501; wherein the processor and the memory are completed through the bus.
  • Mutual communication the processor is used to call the program instructions in the memory to execute the above-mentioned method of constructing the knowledge graph.
  • the equipment in this article can be a server, PC, PAD, mobile phone, etc.
  • This application also provides a computer program product, which when executed on a data processing device, is suitable for executing a program that initializes the following method steps:
  • a method for constructing a knowledge graph is applied to a knowledge graph construction system, the knowledge graph construction system includes at least one knowledge graph construction module, and the method includes:
  • Target knowledge graph construction module is any one of the at least one knowledge graph construction module
  • the knowledge graph is constructed according to the user's operations on the target knowledge graph construction page.
  • target knowledge graph construction module is an entity management module
  • at least one entity operation option is set in the target knowledge graph construction page
  • obtaining the user's operations in the target knowledge graph construction page includes :
  • a target entity operation option will be determined according to the user's selection operation of the entity operation option, where the target entity operation option is any one of the at least one entity operation option;
  • the constructing the knowledge graph according to the user's operation on the target knowledge graph construction page includes:
  • obtaining user operations on the target knowledge graph construction page includes :
  • a target body operation option will be determined according to the user's selection operation of the body operation option, where the target body operation option is any one of the at least one body operation option;
  • the constructing the knowledge graph according to the user's operation on the target knowledge graph construction page includes:
  • the constructing a knowledge graph based on the user's operations on the target knowledge graph construction page includes:
  • rendering the operation sub-option corresponding to the target entity operation option to the target knowledge graph construction page includes :
  • the constructing a knowledge graph based on the user's operations on the operation sub-options corresponding to the target entity operation options includes:
  • the node information corresponding to the newly created entity and the relationship node information are stored in a target graph database.
  • the operation sub-option corresponding to the target entity operation option is rendered to the target knowledge graph construction page, include:
  • the relationship node information between the target ontology to which each of the entities belongs is acquired from the target graph database as an operation sub-option corresponding to the operation option of the target entity and rendered to the target knowledge graph construction page.
  • the device includes one or more processors (CPUs), memory, and buses.
  • the device may also include input/output interfaces, network interfaces, and so on.
  • the memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM), and the memory includes at least one Memory chip.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • the memory is an example of a computer-readable medium.
  • Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
  • this application can be provided as a method, a system, or a computer program product. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • a computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.

Abstract

一种知识图谱的构建方法及装置,应用于知识图谱的构建系统,该知识图谱的构建系统能够提供给垂直领域的业务专家使用,垂直领域的业务专家需要登录知识图谱的构建系统,系统接收登录信息;从系统中包含的至少一个知识图谱构建模块中确定与登录信息匹配的目标知识图谱构建模块,对目标知识图谱构建模块进行渲染生成目标知识图谱构建页面,以使垂直领域的业务专家在目标知识图谱构建页面中的操作;系统根据垂直领域的业务专家在目标知识图谱构建页面中的操作构建知识图谱。垂直领域的业务专家仅仅需要登录,在页面上操作即可实现知识图谱的构建。

Description

知识图谱的构建方法及装置
本申请要求于2019年9月30日提交中国专利局、申请号为201910942405.X、发明名称为“知识图谱的构建方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及知识图谱构建技术领域,尤其涉及一种知识图谱的构建方法及装置。
背景技术
知识图谱于2012年由Google正式提出,其初衷是为了提高搜索引擎的能力,改善用户的搜索质量以及搜索体验。随着AI(Artificial Intelligence,人工智能)技术发展和应用,知识图谱作为关键技术之一,已被广泛应用。但是,知识图谱在垂直领域的应用并不像在通用领域的应用那么广泛。
目前,垂直领域的知识图谱的构建方式主要有以下两种:
方式一:由构建知识图谱的技术人员先从垂直领域的业务专家处获取该领域的知识,并在业务专家的帮助下对获取的知识进行消化整理,再构建该垂直领域的知识图谱。但是,实际上,构建知识图谱的技术人员对获取的知识进行消化整理的过程很漫长,且消化整理的效果并不好,影响了垂直领域知识图谱的构建。
方式二:由垂直领域的业务专家先对现有的知识图谱构建系统(如protégé)的框架进行学习,再构建该垂直领域的知识图谱。但是,实际上,垂直领域的业务专家对知识图谱构建系统的框架的学习过程也很漫长,且学习效果并不好,影响了垂直领域知识图谱的构建。
因此,如何提供一种构建垂直领域知识图谱的方式,成为本领域技术人员亟待解决的技术问题。
发明内容
鉴于上述问题,本发明提供一种克服上述问题或者至少部分地解决上述问题的知识图谱的构建方法及装置。
一种知识图谱的构建方法,应用于知识图谱构建系统,所述知识图谱构建系统包括至少一个知识图谱构建模块,所述方法包括:
接收用户登录信息;
确定与所述用户登录信息匹配的目标知识图谱构建模块,所述目标知识图谱构建模块为所述至少一个知识图谱构建模块中的任意一个;
对所述目标知识图谱构建模块进行渲染生成目标知识图谱构建页面;
获取用户在所述目标知识图谱构建页面中的操作;
根据所述用户在所述目标知识图谱构建页面中的操作构建知识图谱。
可选地,当所述目标知识图谱构建模块为实体管理模块时,所述目标知识图谱构建页面中设置有至少一个实体操作选项,则获取用户在所述目标知识图谱构建页面中的操作,包括:
将根据用户对所述实体操作选项的选择操作,确定目标实体操作选项,所述目标实体操作选项为所述至少一个实体操作选项中的任意一个;
将与所述目标实体操作选项对应的实体操作子选项渲染至所述目标知识图谱构建页面;
获取用户对所述实体操作子选项的操作;
则,所述根据所述用户在所述目标知识图谱构建页面中的操作构建知识图谱,包括:
根据所述用户对所述实体操作子选项的操作构建知识图谱。
可选地,当所述目标知识图谱构建模块为本体管理模块时,所述目标知识图谱构建页面中设置有至少一个本体操作选项,则获取用户在所述目标知识图谱构建页面中的操作,包括:
将根据用户对所述本体操作选项的选择操作,确定目标本体操作选项,所述目标本体操作选项为所述至少一个本体操作选项中的任意一个;
将与所述目标本体操作选项对应的本体操作子选项渲染至所述目标知识图谱构建页面;
获取用户对所述本体操作子选项的操作;
则,所述根据所述用户在所述目标知识图谱构建页面中的操作构建知识图谱,包括:
根据所述用户对所述本体操作子选项的操作构建知识图谱。
可选地,所述根据所述用户在所述目标知识图谱构建页面中的操作构建知识图谱,包括:
获取所述用户在所述目标知识图谱构建页面中的操作对应的知识图谱构建信息;
将所述知识图谱构建信息转换为与目标图数据库的格式匹配的节点信息;
将所述节点信息存储至所述目标图数据库。
可选地,当所述目标实体操作选项为用于触发新建实体节点的实体操作选项时,所述将与所述目标实体操作选项对应的操作子选项渲染至所述目标知识图谱构建页面,包括:
获取用户在所述目标知识图谱构建页面中输入的新建实体;
根据所述新建实体的标签确定所述新建实体所属的目标本体,其中,所述目标本体的节点值与所述新建实体的标签一致;
从所述目标图数据库中获取所述目标本体的属性列表信息作为与所述目标实体操作选项对应的操作子选项渲染至所述目标知识图谱构建页面。
可选地,所述根据所述用户对所述与所述目标实体操作选项对应的操作子选项的操作构建知识图谱,包括:
生成与所述新建实体对应的节点信息;
生成所述新建实体与所述目标本体的关系节点信息;
将所述与所述新建实体对应的节点信息以及所述关系节点信息存储至所述目标图数据库。
可选地,当所述目标实体操作选项为用于触发新建实体节点关系的实体操作选项时,所述将与所述目标实体操作选项对应的操作子选项渲染至所述目标知识图谱构建页面,包括:
获取用户在所述目标知识图谱构建页面中输入的新建实体关系对应的多个实体;
根据所述多个实体的标签确定所述多个实体中每个实体所属的目标本体,其中,所述每个实体所属的目标本体的节点值与所述每个实体的标签一致;
从所述目标图数据库中获取所述多个实体中每个实体所属的目标本体之 间的关系节点信息作为与所述目标实体操作选项对应的操作子选项渲染至所述目标知识图谱构建页面。
一种知识图谱的构建装置,应用于知识图谱构建系统,所述知识图谱构建系统包括至少一个知识图谱构建模块,所述装置包括:
接收单元,用于接收用户登录信息;
确定单元,用于确定与所述用户登录信息匹配的目标知识图谱构建模块,所述目标知识图谱构建模块为所述至少一个知识图谱构建模块中的任意一个;
页面渲染单元,用于对所述目标知识图谱构建模块进行渲染生成目标知识图谱构建页面;
获取单元,用于获取用户在所述目标知识图谱构建页面中的操作;
构建单元,用于根据所述用户在所述目标知识图谱构建页面中的操作构建知识图谱。
一种存储介质,所述存储介质包括存储的程序,其中,所述程序执行如上所述的知识图谱的构建方法。
一种电子设备,设备包括至少一个处理器、以及与处理器连接的至少一个存储器、总线;其中,所述处理器、所述存储器通过所述总线完成相互间的通信;所述处理器用于调用所述存储器中的程序指令,以执行如上所述的知识图谱的构建方法。
借由上述技术方案,本发明提供的知识图谱的构建方法及装置,应用于知识图谱的构建系统,本申请提供的知识图谱的构建系统能够提供给垂直领域的业务专家使用,垂直领域的业务专家需要登录知识图谱的构建系统,系统接收登录信息;从系统中包含的至少一个知识图谱构建模块中确定与登录信息匹配的目标知识图谱构建模块,对目标知识图谱构建模块进行渲染生成目标知识图谱构建页面,以使垂直领域的业务专家在目标知识图谱构建页面中的操作;系统根据垂直领域的业务专家在目标知识图谱构建页面中的操作构建知识图谱。基于上述方案,垂直领域的业务专家仅仅需要登录,在页面上操作即可实现知识图谱的构建。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、 特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图说明
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1为本申请实施例提供的一种本体管理模块对应的界面示意图;
图2为本申请实施例提供的一种实体管理模块对应的界面示意图;
图3为本申请实施例提供的一种知识图谱的构建方法的流程图;
图4为本申请实施例提供的一种知识图谱的构建装置的结构图;
图5为本申请实施例提供的一种设备的结构图。
具体实施方式
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
为了便于理解,先对本申请的方案中用到的名词进行如下解释:
垂直领域:垂直领域是相对于通用领域而言的,主要指非综合的、对某一特定领域的专业、深入的细分,诸如教育、特卖、医疗之类的非标准化消费品领域都属于垂直领域。各个垂直领域包括其对应的概念集合,例如,医疗垂直领域可包括糖尿病、内科、盘尼西林、人民医院等概念。概念作为构成垂直领域的基本元素,是表述用户在该领域需求的基础。
本体:本体是用来描述某个垂直领域中各个概念以及概念间的关系的形式化表达。如:“人”、“城市”、“商品”等概念。
实体:实体指的是具有可区别性且独立存在的某种事物,如某一个人、某一个城市、某一种商品等。实体是知识图谱中的最基本元素,不同的实体间存在不同的关系。
图数据库:即Graph Database,也可称为面向图的数据库,它的数据模型 主要是以节点和关系(边)来体现。neo4j就是一种常用的图数据库。
下面对本申请的方案所适用的知识图谱构建系统进行介绍。
本申请中,知识图谱构建系统包括后台处理模块以及至少一个知识图谱构建模块,作为一种可实施方式,至少一个知识图谱构建模块包括本体管理模块、实体管理模块。
需要说明的是,本体管理模块和实体管理模块在系统中分离,用户(如垂直领域的某个公司)在使用该知识图谱构建系统的过程中,可根据不同人员的职业为其开放不同模块的权限。
另外,本体管理模块中内置审核机制,具有本体管理模块使用权限的人员每次对本体的新建、修改、删除等操作均需通过该人员的上一级审核之后才能生效,反馈至知识图谱中。
另外,本体管理模块以及实体管理模块之间通过后台处理模块中预设的内部约束机制进行连接,内部约束机制包括知识图谱构建系统开发时创建的固定约束机制,以及,知识图谱构建系统投入应用时,用户自定义的约束机制。
本体管理模块有对应的界面,本体管理模块对应的界面上设置有本体操作选项,作为一种可实施方式,本体操作选项可包括用于触发新建本体节点的本体操作选项、用于触发编辑本体节点的本体操作选项以及用于触发新建本体节点关系的本体操作选项。具有本体操作权限的用户可在本体管理模块对应的界面触发本体操作选项,以指示后台处理模块将与用户触发的本体操作选项对应的本体操作子选项渲染至本体管理模块对应的界面上,用户可对不同的本体操作子选项进行操作,以指示后台处理模块根据用户对本体操作子选项的操作构建知识图谱。
如图1所示,本体管理模块对应的界面上设置有本体操作选项,如图中所示的“新建节点”按钮、“新建关系”按钮。作为一种示例,用户点击“新建节点”按钮之后,界面上展现出本体操作子选项,即“节点label”展示框、“节点值”输入框、“属性信息”展示框、“添加新属性”按钮、“取消”按钮和“确认”按钮。用户在“节点值”输入框输入某一概念,然后,点击“添加新属性”按钮添加概念属性,再点击“确认”按钮即可构建知识图谱,构建好的知识图谱可以在知识图谱显示区域显示。
实体管理模块也有对应的界面,实体管理模块对应的界面上设置有实体操作选项,作为一种可实施方式,实体操作选项可包括用于触发新建实体节点的实体操作选项、用于触发编辑实体节点的实体操作选项以及用于触发新建实体节点关系的实体操作选项。具有实体操作权限的用户可在实体管理模块对应的界面上触发实体操作选项,以指示后台处理模块将与用户触发的实体操作选项对应的实体操作子选项渲染至实体管理模块对应的界面上,用户可对不同的实体操作子选项进行操作,以指示后台处理模块根据用户对实体操作子选项的操作构建知识图谱。
如图2所示,实体管理模块对应的界面上设置有实体操作选项,如图中所示的“新建节点”按钮、“新建关系”按钮。作为一种示例,用户点击“新建节点”按钮之后,界面上展现出实体操作子选项,即“节点label”输入框、“节点值”输入框、“属性信息”展示框、“添加新属性”按钮、“取消”按钮和“确认”按钮。用户在“节点值”输入框输入某一事物名,然后,点击“添加新属性”按钮添加实体属性,再点击“确认”按钮即可构建知识图谱,构建好的知识图谱可以在知识图谱显示区域显示。
后台处理模块获取用户在所述目标知识图谱构建页面中的操作对应的知识图谱构建信息(比如,用户在本体操作子选项中输入的本体节点值、属性等);将知识图谱构建信息转换为与目标图数据库的格式匹配的节点信息;将所述节点信息存储至所述目标图数据库。
作为一种可实施方式,本申请中可采用neo4j作为目标图数据库。后台处理模块通过neo4j存储知识图谱,需要说明的是,在neo4j中,第一节点的节点值如果与第二节点的标签label一致的话,第一节点为实体,第二节点为第一节点的所属本体。另外,在neo4j中还存储有实体与所属本体的映射关系。
基于上述知识图谱构建系统,下面以后台处理模块的角度,对本申请实施例提供的知识图谱的构建方法进行详细介绍。
图3为本申请实施例提供的一种知识图谱的构建方法的流程图,该方法可应用于知识图谱构建系统的后台处理模块,参照图3,所述方法可以包括:
S301:接收用户登录信息。
在本申请实施例中,用户可以为垂直领域的业务专家,也可以为构建知识 图谱的技术人员。用户可以预先在知识图谱构建系统中进行注册,确定用户名、用户密码等登录信息。
S302:确定与用户登录信息匹配的目标知识图谱构建模块,目标知识图谱构建模块为知识图谱构建系统包括的至少一个知识图谱构建模块中的任意一个。
在本申请实施例中,知识图谱构建系统在接收到用户的注册请求时,会根据用户的角色为用户分配权限并进行记录,具体地,可以将用于标识权限的信息与用户登录信息的对应关系进行保存,当用户登录时,即可确定与用户登录信息对应的权限信息,进而根据权限信息确定与用户登录信息匹配的目标知识图谱构建模块。
S303:对所述目标知识图谱构建模块进行渲染生成目标知识图谱构建页面。
在本申请实施例中,后台服务器在确定与用户登录信息匹配的目标知识图谱构建模块之后,对目标知识图谱构建模块进行渲染,生成目标知识图谱构建页面,比如,图1、图2所示的页面。
S304:获取用户在所述目标知识图谱构建页面中的操作。
在本申请实施例中,用户可在目标知识图谱构建页面中进行操作,后台服务器可获取用户在目标知识图谱构建页面中的操作。
S305:根据所述用户在所述目标知识图谱构建页面中的操作构建知识图谱。
在本申请实施例中,后台服务器获取用户在目标知识图谱构建页面中的操作之后,即可根据用户在目标知识图谱构建页面中的操作构建知识图谱。
作为一种可实施方式,后台服务器在构建知识图谱时,可以获取用户在所述目标知识图谱构建页面中的操作对应的知识图谱构建信息;将所述知识图谱构建信息转换为与目标图数据库的格式匹配的节点信息,将所述节点信息存储至所述目标图数据库。
本实施例公开了知识图谱的构建方法,应用于知识图谱的构建系统,本申请提供的知识图谱的构建系统能够提供给垂直领域的业务专家使用,垂直领域的业务专家需要登录知识图谱的构建系统,系统接收登录信息;从系统中包含 的至少一个知识图谱构建模块中确定与登录信息匹配的目标知识图谱构建模块,对目标知识图谱构建模块进行渲染生成目标知识图谱构建页面,以使垂直领域的业务专家在目标知识图谱构建页面中的操作;系统根据垂直领域的业务专家在目标知识图谱构建页面中的操作构建知识图谱。基于上述方案,垂直领域的业务专家仅仅需要登录,在页面上操作即可实现知识图谱的构建。
需要说明的是,本申请实施例中,不同权限的用户只能看到与其权限对应的知识图谱构建模块的页面,并在该页面上进行操作,即目标知识图谱构建模块会由于用户的不同权限有不同的实现方式。下面将通过以下实施例详细说明。
作为一种可实施方式,当所述目标知识图谱构建模块为实体管理模块时,所述目标知识图谱构建页面中设置有至少一个实体操作选项,所述至少一个实体操作选项包括用于触发新建实体节点的实体操作选项、用于触发编辑实体节点的实体操作选项以及用于触发新建实体节点关系的实体操作选项。则获取用户在所述目标知识图谱构建页面中的操作,包括:将根据用户对所述实体操作选项的选择操作,确定目标实体操作选项,所述目标实体操作选项为所述至少一个实体操作选项中的任意一个;将与所述目标实体操作选项对应的实体操作子选项渲染至所述目标知识图谱构建页面;获取用户对所述实体操作子选项的操作;具体如图2所示,图2中既包括目标实体操作选项,如新建实体按钮,又包括实体操作子选项,如“节点label”输入框、“节点值”输入框、“属性信息”展示框、“添加新属性”按钮、“取消”按钮和“确认”按钮。则,所述根据所述用户在所述目标知识图谱构建页面中的操作构建知识图谱,包括:根据所述用户对所述实体操作子选项的操作构建知识图谱。具体的,将根据用户对实体操作子选项的选择、编辑等操作,确定用户对实体操作子选项的选择、编辑等操作对应的实体的节点、属性等信息,并将实体的节点、属性等信息转换为与目标图数据库的格式匹配的节点信息,将所述节点信息存储至所述目标图数据库。
作为又一种可实施方式,当所述目标知识图谱构建模块为本体管理模块时,所述目标知识图谱构建页面中设置有至少一个本体操作选项,所述至少一个本体操作选项包括用于触发新建本体节点的本体操作选项、用于触发编辑本 体节点的本体操作选项以及用于触发新建本体节点关系的本体操作选项,则获取用户在所述目标知识图谱构建页面中的操作,包括:将根据用户对所述本体操作选项的选择操作,确定目标本体操作选项,所述目标本体操作选项为所述至少一个本体操作选项中的任意一个;将与所述目标本体操作选项对应的本体操作子选项渲染至所述目标知识图谱构建页面;获取用户对所述本体操作子选项的操作;具体如图1所示,图1中既包括目标本体操作选项如新建本体按钮,又包括本体操作子选项,如“节点label”展示框、“节点值”输入框、“属性信息”展示框、“添加新属性”按钮、“取消”按钮和“确认”按钮。则,所述根据所述用户在所述目标知识图谱构建页面中的操作构建知识图谱,包括:根据所述用户对所述本体操作子选项的操作构建知识图谱。具体的,将根据用户对本体操作子选项的选择、编辑等操作,确定用户对本体操作子选项的选择、编辑等操作对应的本体的节点、属性等信息,并将本体的节点、属性等信息转换为与目标图数据库的格式匹配的节点信息,将所述节点信息存储至所述目标图数据库。
另外,前述内容中有提到本体管理模块以及实体管理模块之间通过后台处理模块中预设的内部约束机制进行连接,这种约束至少体现在如下几个方面。
当所述目标实体操作选项为用于触发新建实体节点的实体操作选项时,所述将与所述目标实体操作选项对应的操作子选项渲染至所述目标知识图谱构建页面,包括:
获取用户在所述目标知识图谱构建页面中输入的新建实体;
根据所述新建实体的标签确定所述新建实体所属的目标本体,其中,所述目标本体的节点值与所述新建实体的标签一致;
从所述目标图数据库中获取所述目标本体的属性列表信息作为与所述目标实体操作选项对应的操作子选项渲染至所述目标知识图谱构建页面。
需要说明的是,目标本体的属性列表信息中包括目标本体对应的属性信息,如图1所示的公司名称等。
则,所述根据所述用户对所述与所述目标实体操作选项对应的操作子选项的操作构建知识图谱,包括:
生成与所述新建实体对应的节点信息;
生成所述新建实体与所述目标本体的关系节点信息;
将所述与所述新建实体对应的节点信息以及所述关系节点信息存储至所述目标图数据库。
当所述目标实体操作选项为用于触发新建实体节点关系的实体操作选项时,所述将与所述目标实体操作选项对应的操作子选项渲染至所述目标知识图谱构建页面,包括:
获取用户在所述目标知识图谱构建页面中输入的新建实体关系对应的多个实体;
根据所述多个实体的标签确定所述多个实体中每个实体所属的目标本体,其中,所述每个实体所属的目标本体的节点值与所述每个实体的标签一致;
从所述目标图数据库中获取所述多个实体中每个实体所属的目标本体之间的关系节点信息作为与所述目标实体操作选项对应的操作子选项渲染至所述目标知识图谱构建页面。
下面对本申请实施例提供的知识图谱的构建装置进行介绍,下文描述的知识图谱构建装置可与知识图谱的构建方法相互对应参照。
图4为本申请实施例提供的一种知识图谱的构建装置的结构图,该装置可应用于知识图谱构建系统的后台处理模块,参照图4,所述装置可以包括:
接收单元41,用于接收用户登录信息;
确定单元42,用于确定与所述用户登录信息匹配的目标知识图谱构建模块,所述目标知识图谱构建模块为所述至少一个知识图谱构建模块中的任意一个;
页面渲染单元43,用于对所述目标知识图谱构建模块进行渲染生成目标知识图谱构建页面;
获取单元44,用于获取用户在所述目标知识图谱构建页面中的操作;
构建单元45,用于根据所述用户在所述目标知识图谱构建页面中的操作构建知识图谱。
所述知识图谱的构建装置包括处理器和存储器,上述各个单元均作为程序单元存储在存储器中,由处理器执行存储在存储器中的上述程序单元来实现相应的功能。
处理器中包含内核,由内核去存储器中调取相应的程序单元。内核可以设置一个或以上,通过调整内核参数来构建垂直领域知识图谱。
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM),存储器包括至少一个存储芯片。
本发明实施例提供了一种存储介质,其上存储有程序,该程序被处理器执行时实现所述知识图谱的构建方法。
本发明实施例提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行所述知识图谱的构建方法。
如图5所示,本申请实施例提供了一种设备50,设备50包括至少一个处理器501、以及与处理器501连接的至少一个存储器502、总线503;其中,处理器、存储器通过总线完成相互间的通信;处理器用于调用存储器中的程序指令,以执行上述的知识图谱的构建方法。本文中的设备可以是服务器、PC、PAD、手机等。
本申请还提供了一种计算机程序产品,当在数据处理设备上执行时,适于执行初始化有如下方法步骤的程序:
一种知识图谱的构建方法,应用于知识图谱构建系统,所述知识图谱构建系统包括至少一个知识图谱构建模块,所述方法包括:
接收用户登录信息;
确定与所述用户登录信息匹配的目标知识图谱构建模块,所述目标知识图谱构建模块为所述至少一个知识图谱构建模块中的任意一个;
对所述目标知识图谱构建模块进行渲染生成目标知识图谱构建页面;
获取用户在所述目标知识图谱构建页面中的操作;
根据所述用户在所述目标知识图谱构建页面中的操作构建知识图谱。
可选地,当所述目标知识图谱构建模块为实体管理模块时,所述目标知识图谱构建页面中设置有至少一个实体操作选项,则获取用户在所述目标知识图谱构建页面中的操作,包括:
将根据用户对所述实体操作选项的选择操作,确定目标实体操作选项,所述目标实体操作选项为所述至少一个实体操作选项中的任意一个;
将与所述目标实体操作选项对应的实体操作子选项渲染至所述目标知识图谱构建页面;
获取用户对所述实体操作子选项的操作;
则,所述根据所述用户在所述目标知识图谱构建页面中的操作构建知识图谱,包括:
根据所述用户对所述实体操作子选项的操作构建知识图谱。
可选地,当所述目标知识图谱构建模块为本体管理模块时,所述目标知识图谱构建页面中设置有至少一个本体操作选项,则获取用户在所述目标知识图谱构建页面中的操作,包括:
将根据用户对所述本体操作选项的选择操作,确定目标本体操作选项,所述目标本体操作选项为所述至少一个本体操作选项中的任意一个;
将与所述目标本体操作选项对应的本体操作子选项渲染至所述目标知识图谱构建页面;
获取用户对所述本体操作子选项的操作;
则,所述根据所述用户在所述目标知识图谱构建页面中的操作构建知识图谱,包括:
根据所述用户对所述本体操作子选项的操作构建知识图谱。
可选地,所述根据所述用户在所述目标知识图谱构建页面中的操作构建知识图谱,包括:
获取所述用户在所述目标知识图谱构建页面中的操作对应的知识图谱构建信息;
将所述知识图谱构建信息转换为与目标图数据库的格式匹配的节点信息;
将所述节点信息存储至所述目标图数据库。
可选地,当所述目标实体操作选项为用于触发新建实体节点的实体操作选项时,所述将与所述目标实体操作选项对应的操作子选项渲染至所述目标知识图谱构建页面,包括:
获取用户在所述目标知识图谱构建页面中输入的新建实体;
根据所述新建实体的标签确定所述新建实体所属的目标本体,其中,所述目标本体的节点值与所述新建实体的标签一致;
从所述目标图数据库中获取所述目标本体的属性列表信息作为与所述目标实体操作选项对应的操作子选项渲染至所述目标知识图谱构建页面。
可选地,所述根据所述用户对所述与所述目标实体操作选项对应的操作子选项的操作构建知识图谱,包括:
生成与所述新建实体对应的节点信息;
生成所述新建实体与所述目标本体的关系节点信息;
将所述与所述新建实体对应的节点信息以及所述关系节点信息存储至目标图数据库。
可选地,当所述目标实体操作选项为用于触发新建实体节点关系的实体操作选项时,所述将与所述目标实体操作选项对应的操作子选项渲染至所述目标知识图谱构建页面,包括:
获取用户在所述目标知识图谱构建页面中输入的新建实体关系对应的多个实体;
根据所述多个实体的标签确定所述多个实体中每个实体所属的目标本体,其中,所述每个实体所属的目标本体的节点值与所述每个实体的标签一致;
从所述目标图数据库中获取所述多个实体中每个实体所属的目标本体之间的关系节点信息作为与所述目标实体操作选项对应的操作子选项渲染至所述目标知识图谱构建页面。
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
在一个典型的配置中,设备包括一个或多个处理器(CPU)、存储器和总线。设备还可以包括输入/输出接口、网络接口等。
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM), 存储器包括至少一个存储芯片。存储器是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
以上仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。

Claims (10)

  1. 一种知识图谱的构建方法,其特征在于,应用于知识图谱构建系统,所述知识图谱构建系统包括至少一个知识图谱构建模块,所述方法包括:
    接收用户登录信息;
    确定与所述用户登录信息匹配的目标知识图谱构建模块,所述目标知识图谱构建模块为所述至少一个知识图谱构建模块中的任意一个;
    对所述目标知识图谱构建模块进行渲染生成目标知识图谱构建页面;
    获取用户在所述目标知识图谱构建页面中的操作;
    根据所述用户在所述目标知识图谱构建页面中的操作构建知识图谱。
  2. 根据权利要求1所述的方法,其特征在于,当所述目标知识图谱构建模块为实体管理模块时,所述目标知识图谱构建页面中设置有至少一个实体操作选项,则获取用户在所述目标知识图谱构建页面中的操作,包括:
    将根据用户对所述实体操作选项的选择操作,确定目标实体操作选项,所述目标实体操作选项为所述至少一个实体操作选项中的任意一个;
    将与所述目标实体操作选项对应的实体操作子选项渲染至所述目标知识图谱构建页面;
    获取用户对所述实体操作子选项的操作;
    则,所述根据所述用户在所述目标知识图谱构建页面中的操作构建知识图谱,包括:
    根据所述用户对所述实体操作子选项的操作构建知识图谱。
  3. 根据权利要求1所述的方法,其特征在于,当所述目标知识图谱构建模块为本体管理模块时,所述目标知识图谱构建页面中设置有至少一个本体操作选项,则获取用户在所述目标知识图谱构建页面中的操作,包括:
    将根据用户对所述本体操作选项的选择操作,确定目标本体操作选项,所述目标本体操作选项为所述至少一个本体操作选项中的任意一个;
    将与所述目标本体操作选项对应的本体操作子选项渲染至所述目标知识图谱构建页面;
    获取用户对所述本体操作子选项的操作;
    则,所述根据所述用户在所述目标知识图谱构建页面中的操作构建知识图谱,包括:
    根据所述用户对所述本体操作子选项的操作构建知识图谱。
  4. 根据权利要求1所述的方法,其特征在于,所述根据所述用户在所述目标知识图谱构建页面中的操作构建知识图谱,包括:
    获取所述用户在所述目标知识图谱构建页面中的操作对应的知识图谱构建信息;
    将所述知识图谱构建信息转换为与目标图数据库的格式匹配的节点信息;
    将所述节点信息存储至所述目标图数据库。
  5. 根据权利要求2所述的方法,其特征在于,当所述目标实体操作选项为用于触发新建实体节点的实体操作选项时,所述将与所述目标实体操作选项对应的操作子选项渲染至所述目标知识图谱构建页面,包括:
    获取用户在所述目标知识图谱构建页面中输入的新建实体;
    根据所述新建实体的标签确定所述新建实体所属的目标本体,其中,所述目标本体的节点值与所述新建实体的标签一致;
    从所述目标图数据库中获取所述目标本体的属性列表信息作为与所述目标实体操作选项对应的操作子选项渲染至所述目标知识图谱构建页面。
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述用户对所述与所述目标实体操作选项对应的操作子选项的操作构建知识图谱,包括:
    生成与所述新建实体对应的节点信息;
    生成所述新建实体与所述目标本体的关系节点信息;
    将所述与所述新建实体对应的节点信息以及所述关系节点信息存储至目标图数据库。
  7. 根据权利要求2所述的方法,其特征在于,当所述目标实体操作选项为用于触发新建实体节点关系的实体操作选项时,所述将与所述目标实体操作选项对应的操作子选项渲染至所述目标知识图谱构建页面,包括:
    获取用户在所述目标知识图谱构建页面中输入的新建实体关系对应的多个实体;
    根据所述多个实体的标签确定所述多个实体中每个实体所属的目标本体, 其中,所述每个实体所属的目标本体的节点值与所述每个实体的标签一致;
    从所述目标图数据库中获取所述多个实体中每个实体所属的目标本体之间的关系节点信息作为与所述目标实体操作选项对应的操作子选项渲染至所述目标知识图谱构建页面。
  8. 一种知识图谱的构建装置,其特征在于,应用于知识图谱构建系统,所述知识图谱构建系统包括至少一个知识图谱构建模块,所述装置包括:
    接收单元,用于接收用户登录信息;
    确定单元,用于确定与所述用户登录信息匹配的目标知识图谱构建模块,所述目标知识图谱构建模块为所述至少一个知识图谱构建模块中的任意一个;
    页面渲染单元,用于对所述目标知识图谱构建模块进行渲染生成目标知识图谱构建页面;
    获取单元,用于获取用户在所述目标知识图谱构建页面中的操作;
    构建单元,用于根据所述用户在所述目标知识图谱构建页面中的操作构建知识图谱。
  9. 一种存储介质,其特征在于,所述存储介质包括存储的程序,其中,所述程序执行权利要求1~7任意一项权利要求所述的知识图谱的构建方法。
  10. 一种电子设备,设备包括至少一个处理器、以及与处理器连接的至少一个存储器、总线;其中,所述处理器、所述存储器通过所述总线完成相互间的通信;所述处理器用于调用所述存储器中的程序指令,以执行如权利要求1-7中任一项所述的知识图谱的构建方法。
PCT/CN2020/107010 2019-09-30 2020-08-05 知识图谱的构建方法及装置 WO2021063104A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910942405.X 2019-09-30
CN201910942405.XA CN112579787A (zh) 2019-09-30 2019-09-30 知识图谱的构建方法及装置

Publications (1)

Publication Number Publication Date
WO2021063104A1 true WO2021063104A1 (zh) 2021-04-08

Family

ID=75116359

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/107010 WO2021063104A1 (zh) 2019-09-30 2020-08-05 知识图谱的构建方法及装置

Country Status (2)

Country Link
CN (1) CN112579787A (zh)
WO (1) WO2021063104A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IL286186A (en) * 2021-09-05 2022-12-01 Velotix Ltd A system and method for managing requests for access privileges

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114780083B (zh) 2022-06-17 2022-10-18 之江实验室 一种知识图谱系统的可视化构建方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7315847B2 (en) * 2001-11-06 2008-01-01 International Business Machines Corporation Method and system for providing access to a database
CN108509519A (zh) * 2018-03-09 2018-09-07 北京邮电大学 基于深度学习的通用知识图谱增强问答交互系统及方法
CN109241341A (zh) * 2018-05-09 2019-01-18 上海大学 一种基于知识图谱的影视择优推荐系统和方法
CN109308322A (zh) * 2018-12-04 2019-02-05 南京樯图数据科技有限公司 一种产业经济知识图谱的创建和交易系统

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897273B (zh) * 2017-04-12 2018-02-06 福州大学 一种基于知识图谱的网络安全动态预警方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7315847B2 (en) * 2001-11-06 2008-01-01 International Business Machines Corporation Method and system for providing access to a database
CN108509519A (zh) * 2018-03-09 2018-09-07 北京邮电大学 基于深度学习的通用知识图谱增强问答交互系统及方法
CN109241341A (zh) * 2018-05-09 2019-01-18 上海大学 一种基于知识图谱的影视择优推荐系统和方法
CN109308322A (zh) * 2018-12-04 2019-02-05 南京樯图数据科技有限公司 一种产业经济知识图谱的创建和交易系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IL286186A (en) * 2021-09-05 2022-12-01 Velotix Ltd A system and method for managing requests for access privileges
IL286186B2 (en) * 2021-09-05 2023-04-01 Velotix Ltd System and method for managing requests for access privileges

Also Published As

Publication number Publication date
CN112579787A (zh) 2021-03-30

Similar Documents

Publication Publication Date Title
US11321338B2 (en) Intelligent data ingestion system and method for governance and security
US11847113B2 (en) Method and system for supporting inductive reasoning queries over multi-modal data from relational databases
WO2019204778A1 (en) Automated access control management for computing systems
WO2023040499A1 (zh) 知识图谱数据融合
US20170091041A1 (en) Method and apparatus for transferring data between databases
TW201600985A (zh) 資料的查詢方法及查詢裝置
US20130091138A1 (en) Contextualization, mapping, and other categorization for data semantics
US9201700B2 (en) Provisioning computer resources on a network
BRPI0710005A2 (pt) metamodelo de processo de negócio
WO2021063104A1 (zh) 知识图谱的构建方法及装置
US20180026793A1 (en) Deterministic verification of digital identity documents
Calero et al. Detection of semantic conflicts in ontology and rule-based information systems
WO2022029516A1 (en) Automated etl workflow generation
CN111078776A (zh) 数据表的标准化方法、装置、设备及存储介质
Li et al. A multi-agent-based, semantic-driven system for decision support in epidemic management
JP2019512128A (ja) データの秘匿性−実用性間のトレードオフを算出するためのシステムおよび方法
US8428989B2 (en) Cross functional area service identification
CN115269683A (zh) 一种基于多方协作的数据查询方法及装置
CN115270202A (zh) 一种基于多方协作的隐私计算方法及装置
EP3594822A1 (en) Intelligent data ingestion system and method for governance and security
CN112035555B (zh) 一种信息展示方法、装置及设备
US8694918B2 (en) Conveying hierarchical elements of a user interface
Tampitsikas et al. Interdependent artificial institutions in agent environments
JP2022050327A (ja) デジタルツインおよびグラフベース構造を用いたコンピュータ実装システムおよび方法
US11640414B2 (en) Generating workflow, report, interface, conversion, enhancement, and forms (WRICEF) objects for enterprise software

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20871835

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20871835

Country of ref document: EP

Kind code of ref document: A1