CN115563300A - Individualized display method and device for knowledge graph of chemical safety technical specification - Google Patents

Individualized display method and device for knowledge graph of chemical safety technical specification Download PDF

Info

Publication number
CN115563300A
CN115563300A CN202211176120.8A CN202211176120A CN115563300A CN 115563300 A CN115563300 A CN 115563300A CN 202211176120 A CN202211176120 A CN 202211176120A CN 115563300 A CN115563300 A CN 115563300A
Authority
CN
China
Prior art keywords
retrieval
safety technical
content
chemical
technical specification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211176120.8A
Other languages
Chinese (zh)
Inventor
覃飙
刘安林
傅天明
王建民
叶晓俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tsinghua University
China Life Property and Casualty Insurance Co Ltd
Original Assignee
Tsinghua University
China Life Property and Casualty Insurance Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tsinghua University, China Life Property and Casualty Insurance Co Ltd filed Critical Tsinghua University
Priority to CN202211176120.8A priority Critical patent/CN115563300A/en
Publication of CN115563300A publication Critical patent/CN115563300A/en
Pending legal-status Critical Current

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/33Querying
    • G06F16/338Presentation of query results
    • 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/34Browsing; Visualisation therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Animal Behavior & Ethology (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to a method and a device for personalized display of knowledge graph of chemical safety technical specification, wherein the method comprises the following steps: the common search interface can display the contents of the chemical safety technical specifications corresponding to the chemical identification and the chapter identification according to the query requirement; the professional search interface can display the association relationship of a plurality of chemical safety technical specifications on at least one chapter according to the query requirement. The server provided by the application can be used for searching the association relation of some chemical safety technical specifications on all corresponding chapters according to the query requirement by combining a knowledge graph retrieval technology and a database query technology, so that a professional search interface can display the association relation among the chapters through a table. The personalized display method can display the retrieval result of the user by using the map or the table, and also provides a webpage version and an application program version, so that the requirements of the user on the retrieval function and the preference of the user on the display form can be met.

Description

Individualized display method and device for knowledge graph of chemical safety technical specification
Technical Field
The application relates to the technical field of knowledge graphs, in particular to a method and a device for personalized display of a knowledge graph of a chemical safety technical specification.
Background
The chemical Safety technical specification (MSDS) is a comprehensive legal document about chemical characteristics provided by chemical production or sale enterprises to clients according to legal requirements, and generally consists of sixteen chapters.
Chemical safety technical specifications are currently usually presented in the form of WORDs, such as WORD documents; different types of staff need to consult different sections of the MSDS, and the user is difficult to acquire sections concerned by the user at the same time through the existing display method of the MSDS.
Disclosure of Invention
The application provides a method and a device for personalized display of knowledge graphs of chemical safety technical specifications, which are used for solving the problem that the user is difficult to simultaneously acquire the focused chapter contents of the user by the conventional method for displaying the MSDS and further solving the problem that the association relation among the knowledge graphs of the chemical safety technical specifications cannot be retrieved.
In a first aspect, the present application provides a method for personalized display of knowledge profiles of chemical safety technical specifications, comprising:
responding to the opening operation of the common search interface, and displaying the common search interface of the chemical safety technical specification knowledge map; the chemical safety technical specification knowledge graph common search interface comprises the following steps: a chemical search box and a search bar; the search column comprises chapter marks of all chapters in the chemical safety technical specification;
acquiring content to be queried input in a chemical search box by a user and chapter identifications selected in a search bar, and forming a query requirement by the content to be queried and the selected chapter identifications and sending the query requirement to a server; the content to be inquired is a chemical identification;
and receiving a retrieval result returned by the server, and displaying the content corresponding to the chapter mark selected from the chemical safety technical specification corresponding to the chemical mark according to the retrieval result.
Optionally, the search bar further comprises section identifiers of sections in the technical specification of chemical safety; after the displaying of the chemical safety technical specification knowledge graph common search interface, the method further comprises the following steps:
acquiring content to be queried input in a chemical search box by a user and a bar mark selected in a search bar, and sending a query requirement consisting of the content to be queried and the selected bar mark to a server; after receiving the retrieval result returned by the server, the method further comprises the following steps:
and displaying the content corresponding to the selected bar mark in the chemical safety technical specification corresponding to the chemical mark according to the retrieval result.
Optionally, the method for displaying the knowledge graph of the chemical safety technical specification provided in the first aspect further includes:
responding to the opening operation of the professional search interface, and displaying a chemical safety technical specification knowledge graph professional search interface; the chemical safety technical specification knowledge graph professional search interface comprises a condition retrieval bar; the condition search field includes: a retrieval category selection box and a retrieval content input box;
acquiring a retrieval category selected by a user in a retrieval category selection frame of a condition retrieval bar and contents to be queried input in a retrieval content input frame, and forming a query requirement by the selected retrieval category and the contents to be queried and sending the query requirement to a server;
receiving a retrieval result returned by the server;
and displaying the contents meeting the query requirements in the knowledge graph of the chemical safety technical specification in a graph or table mode according to the retrieval result.
Optionally, the chemical safety technical specification knowledge graph professional search interface includes a conditional search bar addition control, and the method further includes: responding to the trigger operation of adding a control to the condition retrieval bar, and adding the condition retrieval bar displayed in a knowledge graph professional search interface of the chemical safety technical specification; the condition search bar for increasing display comprises: selecting a composition mode selection frame of the retrieval condition; the retrieval conditions comprise retrieval categories selected by a user in a retrieval category selection box in a corresponding condition retrieval bar and contents to be inquired input in a retrieval content input box;
the chemical safety technical specification knowledge graph professional search interface further comprises a conditional retrieval bar reduction control, and the method further comprises the following steps: and responding to the triggering operation of the condition retrieval bar reducing control, and reducing the condition retrieval bar displayed in the knowledge graph professional search interface of the chemical safety technical specification.
Optionally, the obtaining of the search category selected by the user in the search category selection box of the condition search bar and the content to be queried input in the search content input box, and sending the query requirement composed of the selected search category and the content to be queried to the server includes:
acquiring a composition mode selected by a user in a composition mode selection frame, a retrieval type selected in a retrieval type selection frame and content to be queried input in a retrieval content input frame, and composing the selected retrieval type and the content to be queried into a retrieval condition; the search conditions and the corresponding composition modes form a query requirement and are sent to a server;
the content meeting the query requirement in the knowledge graph of the chemical safety technical specification is displayed in a graph or table form according to the retrieval result, and the method comprises the following steps:
if the retrieval categories of the plurality of condition retrieval columns are chapter marks and the corresponding composition modes are all same, displaying the association relation of the chemical safety technical specifications meeting the query requirement in the chemical safety technical specification knowledge graph on the chapters only in a form of a table;
and if the retrieval types of the plurality of conditional retrieval fields are chapter marks and at least one corresponding composition mode is or, or the retrieval types of the plurality of conditional retrieval fields are not chapter marks, displaying the association relationship among the chemical safety technical specifications meeting the query requirement in the chemical safety technical specification knowledge graph in a table form or a graph form.
Optionally, before displaying the content corresponding to the query requirement according to the retrieval result, the method further includes:
acquiring a display form selected by a user; the displaying the content corresponding to the query requirement according to the retrieval result comprises:
if the display form selected by the user is a table, displaying the table corresponding to the content meeting the query requirement in the chemical safety technical specification knowledge graph;
if the display form selected by the user is a map, displaying a knowledge map corresponding to the content meeting the query requirement in the knowledge map of the chemical safety technical specification; the knowledge graph comprises chemical nodes, chapter nodes, content nodes and edges representing the relationship among the nodes.
In a second aspect, the present application provides a method for displaying a chemical safety technical specification knowledge graph, comprising:
receiving a query request sent by a user terminal;
retrieving contents meeting the query requirement in a chemical safety technical specification knowledge graph constructed in advance according to the query requirement, and returning a retrieval result to the user terminal;
if the query requirement comprises query content and the selected chapter mark, the retrieval result comprises the corresponding content of the chapter mark selected in the chemical safety technical specification corresponding to the content to be queried; the content to be inquired is a chemical identification; the content to be inquired is input by a user in a dangerous chemical search box in a common search interface; the selected chapter mark is selected by a user in a search bar in a common search interface;
and if the query requirement is that the user terminal is composed of the retrieval types selected by the condition retrieval columns of the professional search interface and the content to be queried through the composition modes selected by the composition mode selection frame, the retrieval result meets the retrieval types, the content to be queried and the composition modes of the condition retrieval columns.
Optionally, if the query request is made to the user terminal by using a composition manner selected by a composition manner selection box for the retrieval category selected by each condition retrieval bar of the professional search interface and the content to be queried, the method for displaying a knowledge graph of a chemical safety technical specification provided in the second aspect further includes:
if a plurality of retrieval categories exist in the received query requirement and are chapter marks, and corresponding composition modes are all same, pre-retrieving a chemical safety technical specification knowledge graph constructed in advance by using a knowledge graph retrieval technology according to the query requirement, and converting a preliminary retrieval result into an initial table; searching the content meeting the query requirement in the initial table by adopting a database query technology; returning contents meeting the query requirement in the initial form of the user terminal in a form of the form;
if a plurality of retrieval categories are chapter marks and at least one corresponding composition mode is or the retrieval categories of a plurality of condition retrieval columns do not exist in the received query request, retrieving contents meeting the query request in a chemical safety technical specification knowledge graph constructed in advance by adopting a knowledge graph retrieval technology; and returning the contents meeting the query requirements in the knowledge graph of the chemical safety technical specification of the user terminal in a form of a table or a graph.
In a third aspect, the present application provides a user terminal, including: the device comprises a processor, a memory, a transceiver and an input/output device, wherein the memory, the transceiver and the input/output device are connected with the processor in a communication way;
the memory stores computer execution instructions; the transceiver is used for sending the query requirement to the server and receiving the retrieval result returned by the server; the input and output device is used for acquiring the content input and/or selected by the user;
the processor executes computer-executable instructions stored by the memory to implement the method as described in the first aspect.
In a fourth aspect, the present application provides a server, comprising: a processor, and a memory and transceiver communicatively coupled to the processor;
the memory stores computer-executable instructions; the transceiver is used for receiving the query request sent by the user terminal and returning the retrieval result to the user terminal; the processor executes computer-executable instructions stored by the memory to implement the method as described in the second aspect above.
The individualized display method and the individualized display device for the chemical safety technical specification knowledge graph respond to the opening operation of a common search interface, and the common search interface of the chemical safety technical specification knowledge graph is displayed to comprise a chemical search box and a search bar; the search column comprises chapter marks of all chapters in the chemical safety technical specification; acquiring content to be queried input in a chemical search box by a user and a chapter mark selected in a search bar, and forming a query requirement by the content to be queried and the selected chapter mark and sending the query requirement to a server; the content to be inquired is a chemical identification; and receiving a retrieval result returned by the server, and displaying the content corresponding to the chapter mark selected from the chemical safety technical specification corresponding to the chemical mark according to the retrieval result. The chapter contents which the user needs to check are displayed through the selection of the user in the search bar, the user can randomly check any chapter of any chemical safety technical specification, the chapter contents can be one chapter, multiple chapters or all chapters, and the chapter contents which the user pays attention to can be presented to relevant personnel such as production enterprises, sales enterprises, transportation enterprises, academic institutions, supervision institutions, safety evaluation and the like for inquiry and use. The personalized display can be carried out according to the selection of the user, and the map or the table can be displayed through an application program or a webpage.
The individualized display method and the individualized display device for the chemical safety technical specification knowledge graph further respond to the opening operation of the professional search interface and display the professional search interface of the chemical safety technical specification knowledge graph; the chemical safety technical specification knowledge graph professional search interface comprises a condition retrieval bar; the condition search field includes: a composition mode selection box, a retrieval category selection box and a retrieval content input box; acquiring a retrieval category selected by a user in a retrieval category selection frame of each condition retrieval column and contents to be queried input in a retrieval content input frame, and forming a query requirement by the selected retrieval category and the contents to be queried according to a composition mode selected in respective composition mode selection frames and sending the query requirement to a server; receiving a retrieval result returned by the server; and displaying the contents meeting the query requirements in the knowledge graph of the chemical safety technical specifications in a graph or table mode according to the retrieval result, and displaying the association relationship among the chemical safety technical specifications. The map or the table can be displayed through an application program or a webpage.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
FIG. 1 is a flow chart of a method for displaying a knowledge-graph search interface of the chemical safety technical specification provided in the present application;
FIG. 2 is a schematic diagram of a generic search interface of a knowledge graph of chemical safety technical specifications provided in an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a single chapter table of contents provided in an embodiment of the present application;
FIG. 4 is a schematic view illustrating a chapter and section content map provided in an embodiment of the present application;
FIG. 5 is a schematic view of a search bar of an application version provided in an embodiment of the present application;
fig. 6 is a diagram illustrating an application version map provided in an embodiment of the present application;
FIG. 7 is a table display diagram of an application version provided by an embodiment of the present application;
FIG. 8 is a schematic diagram of a knowledge-graph specialized search interface provided in an embodiment of the present application;
FIG. 9 is a table showing relations and relationships across multiple sections of the same chemical of the type provided by an embodiment of the present application;
FIG. 10 is a table showing relationships and relationships in various sections of a safety specification for all chemicals of the type provided in the examples of the present application;
FIG. 11 is a table showing the relationship between two chemicals in two sections according to an embodiment of the present disclosure;
FIG. 12 is a schematic representation of a class of two chemicals provided in the examples of the present application on two sections or relationship maps;
FIG. 13 is a server-side flowchart of a method for displaying a knowledge graph of a chemical safety specification provided in the third embodiment of the present application;
fig. 14 is a schematic structural diagram of a user terminal of a knowledge graph of chemical safety technical specification provided in the fourth embodiment of the present application;
fig. 15 is a schematic structural diagram of a server according to a fifth embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. The drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the concepts of the application by those skilled in the art with reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
The terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. In the description of the following examples, "plurality" means two or more unless specifically limited otherwise.
First, the prior art relating to the present invention will be explained and analyzed in detail.
The chemical Safety technical specification (English full name: material Safety Data Sheet, abbreviated as MSDS) is also called chemical Safety specification. MSDS generally consists of the following sixteen chapters, as specified by the standards relating to chemical safety: chemical and enterprise identification, hazard profiles, composition/composition information, emergency treatment, fire protection, leak emergency treatment, handling and storage, contact control/individual protection, physicochemical properties, stability and reactivity, toxicology data, ecology data, disposal, transportation information, regulatory information, and other information. The chemical organization must comply with these standard specification documentation and use of MSDS during production, transportation, research, sale, and use.
Chemical safety specifications may be used by a variety of users, such as manufacturing facilities, regulatory agencies, academic agencies, sales sectors, storage and transportation agencies, and the like. Staff in different departments may have different requirements and query degrees for chemical safety technical specification (MSDS), for example, storage and transportation organizations may pay more attention to sections of fire fighting measures, leakage emergency treatment, operation disposal and storage and transportation information, and staff in academic departments may pay more attention to sections of composition/composition information, physicochemical characteristics, stability and reactivity, toxicology data and the like.
And if a user only needs to look up the MSDS of chemicals related to work of the user and does not look up requirements on the MSDS of other chemicals, the user can use a chemical safety technical specification knowledge graph common search interface to provide a chemical search frame and a search bar, wherein the chemical search frame is used for the user to input a chemical identifier concerned by the user, the search bar is used for the user to select an MSDS chapter concerned by the user, partial contents in the MSDS of the chemicals concerned by the user can be obtained and displayed through contents to be inquired input by the user and the chapter identifier selected in the search bar, and the user can conveniently and quickly know multi-chapter or single-chapter contents in the MSDS concerned by the user.
The following describes the technical solution of the present application and how to solve the above technical problems in detail by specific embodiments. These several specific embodiments may be combined with each other below, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Example one
Fig. 1 is a flow chart of a personalized display method of a knowledge graph of the chemical safety technical specification provided in the present application, and fig. 1 summarizes a display method of general search and a display method of professional search. The embodiment of the application provides a display method for ordinary knowledge graph search of chemical safety technical specifications, aiming at the problem that the existing display method for chemical safety technical specifications is difficult for users to simultaneously acquire the contents of the sections concerned by the users. The method in the embodiment is applied to a display device for ordinary searching of the knowledge graph of the chemical safety technical specification, and the display device for ordinary searching of the knowledge graph of the chemical safety technical specification can be positioned in a user terminal. The user terminal may be a digital computer or a mobile device representing various forms, among others. Such as laptop computers, desktop computers, workstations, smart phones, personal digital assistants, mainframe computers, and other suitable computers.
As shown in fig. 1, the method comprises the following specific steps:
and S101, responding to the opening operation of the search interface, and displaying a chemical safety technical specification knowledge graph search interface.
In this embodiment of the present application, the search interface may be a common search interface, and step S101 may specifically be:
and S101A, responding to the opening operation of the common search interface, and displaying the common search interface of the knowledge graph of the chemical safety technical specification.
The chemical safety technical specification knowledge graph common search interface comprises a chemical search box and a search bar; the search column comprises chapter marks of chapters in the chemical safety technical specification. Illustratively, a chapter identification of sixteen chapters may be included.
In the embodiment of the application, a chemical search box in a knowledge graph common search interface of the chemical safety technical specification is used for enabling a user to input a chemical which the user needs to inquire, and a search bar is used for enabling the user to select a section which the user needs to inquire. Chemical safety technical specification knowledge-graph common search interfaces focus on the presentation of a single chemical safety technical specification. The chemical safety technical specification knowledge graph is a pre-constructed knowledge graph and is formed by knowledge graphs of various chemical safety technical specifications.
And S102, acquiring the input of the user on a search interface, forming a query requirement and sending the query requirement to a server.
In the embodiment of the present application, the input of the user on the search interface may include: if the content to be queried and the chapter id selected in the search bar are the same, step S102 may specifically be:
step S102A, obtaining the content to be queried input in the chemical search box by the user and the chapter mark selected in the search bar, and forming a query requirement by the content to be queried and the selected chapter mark and sending the query requirement to a server.
Wherein, the content to be inquired is a chemical identification. For example, the chemical identifier may be a name of a chemical or may be a molecular formula. The chapter mark may be a chapter name, such as component information data, a chapter number, such as the second chapter, or a combination of the chapter number and the chapter number, such as the second chapter component information data, which is not specifically limited in this embodiment of the present application.
In the embodiment of the application, the query request sent to the server may be a knowledge graph query statement, may also be a data packet including the content to be queried and the selected chapter identifier, and may also be in any other form.
In the embodiment of the application, the contents to be queried input in the search box form a search condition, each selection in the search bar also forms a search condition, each search condition forms a query requirement, and the query requirement is sent to the server.
Optionally, when the user inputs the chemical identifier, the user may be assisted with the user input in a manner of prompting, specifically, when the user inputs one character or multiple characters, the chemical identifier including the input character in the knowledge graph is retrieved, and the chemical identifier including the input character is displayed in a list manner for the user to select. Usually, the user can select the chemical identification name to be queried after inputting 2 characters
Optionally, if the user does not have authority over the chemical safety technical specification to be retrieved, a chemical safety technical specification can be recommended and displayed in the chemical safety technical specification having authority.
And step S103, receiving a search result returned by the server.
And S104, displaying the contents meeting the query requirements in the knowledge graph of the chemical safety technical specification in a graph or table mode according to the retrieval result.
In this embodiment of the application, the search interface may be a common search interface, and step S104 may specifically be: and step S104A, displaying the content corresponding to the chapter mark selected from the chemical safety technical specification corresponding to the chemical mark according to the retrieval result.
Specifically, after the user terminal forms a query requirement by the content to be queried and the selected chapter mark and sends the query requirement to the server, the server searches a pre-constructed chemical safety technical specification knowledge graph according to the query requirement by adopting a knowledge graph search technology, and returns a search result to the user terminal.
And the retrieval result returned by the server comprises the content corresponding to the chapter mark selected from the chemical safety technical specification corresponding to the chemical mark.
In the embodiment of the application, the content corresponding to the chapter identifier selected in the chemical safety technical specification corresponding to the chemical identifier may be displayed in a map form, the content corresponding to the chapter identifier selected in the chemical safety technical specification corresponding to the chemical identifier may be displayed in a table form, and the content corresponding to the chapter identifier selected in the chemical safety technical specification corresponding to the chemical identifier may be displayed in any other form, which is not limited in the embodiment of the application.
The method for displaying the knowledge graph of the chemical safety technical specification responds to the opening operation of a common search interface and displays the common search interface of the knowledge graph of the chemical safety technical specification; the chemical safety technical specification knowledge graph common search interface comprises the following steps: a chemical search box and a search bar; the search column comprises chapter marks of each chapter in the chemical safety technical specification; acquiring content to be queried input in a chemical search box by a user and a chapter mark selected in a search bar, forming a query requirement by the content to be queried and the selected chapter mark, and sending the query requirement to a server; the content to be inquired is a chemical identification; and receiving a retrieval result returned by the server, and displaying the content corresponding to the chapter mark selected from the chemical safety technical specification corresponding to the chemical mark according to the retrieval result. The chapter contents which the user needs to check are displayed through the selection of the user in the search bar, the user can randomly check any chapter of any chemical safety technical specification, the chapter contents can be one chapter, multiple chapters or all chapters, and the chapter contents which the user pays attention to can be presented to relevant personnel such as production enterprises, sales enterprises, transportation enterprises, academic institutions, supervision institutions, safety evaluation and the like for inquiry and use.
Optionally, the method for displaying a knowledge graph of a chemical safety technical specification, provided in the embodiment of the present application, before displaying the knowledge graph corresponding to the chapter identifier selected in the chemical safety technical specification corresponding to the chemical identifier, further includes: and acquiring the display form selected by the user.
Specifically, in a common search interface of a knowledge graph of a chemical safety technical specification, a display form selection control can be provided to acquire a display form selected by a user.
The method for displaying the chemical safety technical specification knowledge graph can be applied to a user terminal, the user terminal can be a computer or a mobile terminal in various forms, and a common search interface of the chemical safety technical specification knowledge graph can be a webpage version or an application program version. The user terminal can provide an application program version and a webpage version according to needs, the user can select the application program version or the webpage version according to needs and personal preferences, and the application program version and the webpage version are provided with map display and form display. It should be understood that fig. 2 to 4 are web page versions of the chemical safety technical specification knowledge graph common search interface, and fig. 5 to 7 are application version of the chemical safety technical specification knowledge graph common search interface.
Fig. 2 is a schematic diagram of a generic search interface of a knowledge graph of a chemical safety technical specification provided in an embodiment of the present application, and as shown in the figure, the schematic diagram includes: the chemical safety technical instruction list comprises a chemical search box, a search bar and a form selection control, wherein the default selection is to display the contents in the chemical safety technical instruction in a map form, and the contents in the chemical safety technical instruction which corresponds to the input chemical identification are displayed below the chemical search box in the map form. The characters below the nodes are explanations of the nodes, the characters below the chemical nodes are chemical identifications, the characters below the chapter nodes are chapter identifications, the characters below the content nodes are specific contents to be displayed, and arrows between the nodes identify relationships between the nodes. The search column is arranged on the right side of a general search interface of a knowledge graph of the chemical safety technical specification, and a chapter selection control is arranged on the left side of the chapter mark and used for enabling a user to select displayed chapter contents. It should be understood that the legend to a node may also be located in the remaining positions of the corresponding node, such as above the node.
In the drawings provided in the present application, the meaning of the nodes, arrows and characters is similar to that in fig. 2, and will not be explained one by one subsequently. It should be understood that the drawings provided by the present application are only used for exemplary illustration, wherein characters of the knowledge graph may be overlapped or not completely illustrated, and the like, because a manner of displaying the knowledge graph provided by the present application is not a two-dimensional plane display, the displayed knowledge graph can rotate and move in a chemical safety technical specification knowledge graph common search interface or a chemical safety technical specification knowledge graph professional search interface, and the covered characters can be clearly displayed through the rotation and the movement, so that a user can know any character in the displayed knowledge graph.
On the basis of obtaining the display form selected by the user, displaying the content corresponding to the chapter mark selected in the chemical safety technical specification corresponding to the chemical mark according to the retrieval result, wherein the content comprises the following steps:
and if the display form selected by the user is a table, displaying the table corresponding to the content meeting the query requirement in the chemical safety technical specification knowledge graph.
If the display form selected by the user is a map, displaying a knowledge map corresponding to the content meeting the query requirement in the knowledge map of the chemical safety technical specification; the knowledge graph comprises chemical nodes, chapter nodes, content nodes and edges representing relations among the nodes.
The method provided by the embodiment of the application further comprises the following steps of before displaying the knowledge graph corresponding to the chapter identifier selected from the chemical safety technical specification corresponding to the chemical identifier: and acquiring the display form selected by the user. Although the map display effect is better, the display in the form of the table is possibly more in line with the use habits of part of users, the contents inquired by the users can be displayed in a form selected by the users, the display mode is more in line with the habits of the users, and the information acquisition efficiency of the users is improved.
Optionally, on the basis of the above embodiment, the search bar may further include section identifiers of sections in the chemical safety technical specification, and after the chemical safety technical specification knowledge graph general search interface is displayed, the content to be queried input in the chemical search box by the user and the section identifier selected in the search bar may also be acquired, and the content to be queried and the selected section identifier constitute a query requirement and are sent to the server. And after receiving the retrieval result returned by the server, displaying the content corresponding to the subsection identifier selected in the chemical safety technical specification corresponding to the chemical identifier according to the retrieval result.
In an alternative web page version of the chemical safety technical specification knowledge map common search interface, a search bar adopts a data structure of a search tree to realize the description of a chapter part. Illustratively, if there are 16 chapters in the chemical safety technical specification document, there are 16 level nodes in the search tree; each section can be divided into a plurality of sections, and corresponding nodes are designed under each level node. Therefore, the search tree provided by the application has two levels of nodes in total, 16 first-level nodes correspond to each chapter, and the second-level nodes correspond to the nodes below each chapter.
In the embodiment of the application, the content of the chemical safety technical specification is regarded as a partition consisting of 16 chapters, and each chapter can also be regarded as a partition. The division of the chemical safety technical specification and the retrieval tree are combined, so that the retrieval of the knowledge graph based on the chemical safety technical specification can be realized.
As shown in fig. 2, a toluene chemical node input by a user, a chapter node of a "operation treatment and storage" chapter selected by the user, and a content node corresponding to a chapter identifier selected in a chemical safety technical specification corresponding to a chemical identifier are displayed, and an arrow indicates a relationship between nodes. Specifically, the relationship between the chemical node and the chapter node is a chapter mark and is displayed on an arrow between the chemical node and the chapter node; and the relationship between the chapter nodes and the content nodes is a bar mark corresponding to the content nodes and is displayed on an arrow between the chapter nodes and the content nodes.
Fig. 3 is a single-chapter table of contents display diagram provided in an embodiment of the present application, and as shown in fig. 3, a chapter expansion control exists on the left side of the chapter display control, and after a user triggers the chapter expansion control, a bar identifier under the chapter is displayed. For example, after clicking on the chapter expansion control on the right side of the "operation handle and store" chapter identification, the section identifications of "operation notes" and "store notes" are displayed. The user may click on the selection control to the left of the bar logo, selecting to show the contents of the bar. As shown in fig. 3, after the user inputs toluene in the chemical search box, selects the "handle and store" section in the search bar, and selects the presentation form as a table, the user clicks the search button, and the chemical safety technical specification knowledge graph general search interface can present the contents of toluene in the "handle and store" section in the form of a table. As in the table shown in fig. 3, the serial number of each content, the corresponding chemical name, chapter name (i.e., item), section name (i.e., relationship), and specific content (i.e., relationship details) may be displayed.
The user can also select any plurality of chapters in the search bar to display, and the display method can be an atlas or a table. The user may also select a complete section of the search bar and a section below another section, as shown in fig. 4, and may select to display the "emergency action" section and the "acute intoxication" section under the "summary of risks" in the chemical safety technical description corresponding to toluene.
The user can click all the selection controls in the search bar to display the content of the whole chemical safety technical specification corresponding to the chemical, namely, the content of the whole map or the whole table of the chemical safety technical specification. Specifically, the knowledge graph of the chemical safety technical specification contains 16 sections in total, and a user selects to display all 16 sections by clicking all selection controls in the search bar.
The method provided by the embodiment of the application can also be used for acquiring the content to be inquired input in the chemical search box by the user and the section identification selected in the search bar, and displaying the content corresponding to the section identification selected in the chemical safety technical specification corresponding to the chemical according to the retrieval result. By acquiring the section identification, only part of the contents of the section can be displayed, the contents required by the user can be displayed more finely, and the information acquisition efficiency of the user is improved. Illustratively, the general user does not need to be familiar with all knowledge points, nor are the specific values of those knowledge points that are of interest to the safety production management, including these reference standard sources, easily remembered, so the more detailed and less detailed the content presented, the more convenient the user can acquire the knowledge points of interest.
Optionally, if the chapter mark or the section mark selected by the user is not obtained, the contents corresponding to all chapters in the chemical safety technical specification corresponding to the chemical mark are displayed. The display method is similar to the method for displaying the content of the whole chemical safety technical specification corresponding to the chemical after clicking all the selection controls in the search bar, and the user can display the content of the whole chemical safety technical specification corresponding to the chemical in the display form selected by the user after inputting the chemical identification and selecting the display form.
According to the method provided by the embodiment of the application, the content corresponding to all chapters in the chemical safety technical specification corresponding to the chemical identification is displayed if the chapter identification or the section identification selected by the user is not obtained. When a user needs to obtain all information of the chemical safety technical specification, chapter identification or section identification does not need to be checked, and the efficiency of retrieving the chemical safety technical specification by the user is improved.
In an optional application version of the chemical safety technical specification knowledge graph general search interface, the chemical safety technical specification knowledge graph general search interface is displayed in response to an opening operation of the chemical safety technical specification knowledge graph general search interface. After the user inputs the chemical identifier and clicks the search control, the search bar is displayed as shown in fig. 5, and the user can select the chapter identifier to be displayed and click the determination button; after the user determines the selected chapter mark, the content corresponding to the selected chapter mark in the chemical safety technical specification corresponding to the chemical mark is displayed in the form of a map as shown in fig. 6. In the search bar shown in fig. 5, the search bar may be caused to display all chapter marks by means of a sliding interface.
As shown in fig. 6, a go to text page button and a view details page button may also be provided below the page; if the user clicks a button for turning to a text page, the content selected by the user is displayed in a form of a table, as shown in fig. 7, the display method is similar to the method for displaying the table in the web page version, and is not described again; if the user clicks the view details page button, a search bar is displayed, and the displayed search bar includes a bar identifier under the chapter identifier selected previously, for example, if the chapter selected previously by the user is "emergency measures", the search bar displayed after the view details page button is clicked includes a bar identifier under the "emergency measures", which may specifically be: skin contact, eye contact, inhalation, ingestion. And after the user selects the bar mark, displaying the content corresponding to the selected bar.
The embodiment of the application provides a common search interface for knowledge graphs of chemical safety technical specifications of a webpage version and an application version, and the common search interface for knowledge graphs of the chemical safety technical specifications of the webpage version has the advantages that a display of corresponding equipment is large, the content of the chemical safety technical specifications can be displayed more clearly, the common search interface for knowledge graphs of the chemical safety technical specifications of the application version has the advantages of convenience and can be checked as long as a network is available.
Example two
Fig. 1 is a flowchart summarizing a method for displaying a chemical safety technical specification knowledge graph for professional search according to an embodiment of the present application, where on the basis of the first embodiment, this embodiment relates to a method for displaying a chemical safety technical specification knowledge graph for professional search at a user terminal, and it should be understood that if a user triggers an opening operation of a general search interface, steps S101A, S102A, S103 and step S104A are executed; and if the user triggers the opening operation of the professional search interface, executing the steps S101B, S102B, S103 and S104B. As the safety experts understand the safety technical specifications of various chemicals deeply and pay more attention to the incidence relation among the chemicals, the method also provides a knowledge map professional search interface of the safety technical specifications of the chemicals, the search interface provides a condition search bar, and forms a query requirement by the selection of a composition mode selection box and a search category selection box in each condition search bar and the input of a search content input box, and then sends the query requirement to the server; after receiving the retrieval result returned by the server, displaying the chapter content required to be checked by the user according to the retrieval result, and the method can reveal the association relationship among various chemical safety technical specifications and solve the problem that the user cannot obtain the association relationship among the chemical safety technical specifications.
The method for searching and displaying the knowledge graph speciality of the chemical safety technical specification specifically comprises the following steps:
and S101B, responding to the opening operation of the professional search interface, and displaying a knowledge graph professional search interface of the chemical safety technical specification.
In the embodiment of the application, the displayed knowledge graph professional search interface of the chemical safety technical specification comprises a condition retrieval bar; the condition search field includes: a composition mode selection box, a retrieval type selection box, a retrieval content input box and a condition retrieval bar increase and decrease control.
Specifically, clicking the composition mode selection box displays AND OR. Clicking on the search category selection box may display the following: the name of the hazardous chemical substance, the chapter mark of each chapter and the section mark of each chapter. The retrieval content input box may input therein content to be retrieved. Illustratively, if the retrieval category selected by the retrieval category selection box is a dangerous chemical name, a certain chemical identifier to be retrieved can be input in the retrieval content input box; if the search category selected by the search category selection box is a chapter identifier, the contents of the chemical safety specification to be searched under the chapter can be input in the search content input box. For example, if the search category selected by the search category selection box is "individual protection", the search content input box may input "complete work, shower, and change clothes".
It should be understood that the specialized search interface can not only display individual chemical safety specifications but also correlations between chemical safety specifications.
And step S102B, acquiring the retrieval type selected by the user in the retrieval type selection frame of the condition retrieval bar and the content to be inquired input in the retrieval content input frame, and forming a query requirement by the selected retrieval type and the content to be inquired and sending the query requirement to the server.
Specifically, the contents in the retrieval category selection box and the retrieval content input box in each condition retrieval column form corresponding retrieval requirements, and then the retrieval requirements form query requirements; the query request is sent to the server.
And step S103, receiving a search result returned by the server.
Specifically, after the user terminal sends the formed query requirement to the server, the server retrieves the pre-constructed chemical safety technical specification knowledge graph according to the query requirement, and returns the retrieval result to the user terminal.
And S104B, displaying the contents meeting the query requirements in the knowledge graph of the chemical safety technical specification in a graph or table mode according to the retrieval result.
It should be understood that the contents of the chemical safety technical specifications satisfying the query requirements or the association relationship between the chemical safety technical specifications may be displayed according to the search results.
Specifically, if the retrieval category selected by the retrieval category selection frame is a certain chapter identifier and the content to be queried is not input, displaying the content of the chapter in all the chemical safety technical specifications in the chemical safety technical specification knowledge graph; if the retrieval category selected by the retrieval category selection box is a certain chapter mark and the content to be queried is input, displaying corresponding sections of all chemical safety technical specifications in the chapter of the chemical safety technical specifications knowledge graph, wherein the corresponding sections comprise the content to be queried; and if the retrieval type selected by the retrieval type selection frame is the name of the dangerous chemical, displaying the content in the chemical safety technical specification corresponding to the input chemical identification.
Because some users, such as safety experts, need to not only refer to the contents of a single chemical safety technical specification, but also analyze the association relationship between chemical safety technical specifications; therefore, through the retrieval type selection frame and the retrieval content input frame in the condition retrieval column, a user can select to retrieve a chemical safety technical specification corresponding to a certain chemical or retrieve the association relation between the chemical safety technical specifications; if the selection of the retrieval category selection box is a dangerous chemical name and the input of the retrieval content input box is a certain chemical identification, displaying a chemical safety technical specification corresponding to the chemical identification; and if the selection of the retrieval category selection box is a certain chapter mark, and the input of the retrieval content input box is the content in the chapter, displaying the association relationship of all the chemical safety technical specifications in the chemical safety technical specification knowledge graph in the chapter, namely displaying the subsection content of the content, including the input content in the chapter, of all the chemical safety technical specifications in the chapter.
The method provided by the embodiment of the application responds to the opening operation of the professional search interface, and displays the knowledge map professional search interface of the chemical safety technical specification; the chemical safety technical specification knowledge graph professional search interface comprises a condition retrieval bar; the condition search field includes: a retrieval category selection box and a retrieval content input box; acquiring a retrieval type selected by a user in a retrieval type selection frame of a condition retrieval bar and contents to be inquired input in a retrieval content input frame, and forming a query requirement by the selected retrieval type and the contents to be inquired and sending the query requirement to a server; receiving a retrieval result returned by the server; and displaying the contents meeting the query requirements in the knowledge graph of the chemical safety technical specification in a graph or table mode according to the retrieval result. Therefore, through the selection and the input of the category selection box and the retrieval content input box in the condition retrieval column, the individual display and the common display of the knowledge map of the chemical safety technical specification can be realized, and the requirement of a safety expert on analyzing the association relationship between the chemical safety technical specifications is met.
Optionally, the chemical safety technical specification professional search interface may further include a conditional retrieval bar addition control, and after the chemical safety technical specification professional search interface is displayed in step S101B, the conditional retrieval bar displayed in the chemical safety technical specification knowledge base professional search interface may be added in response to a trigger operation for adding the control to the conditional retrieval bar. The condition search column for increasing display comprises: the composition mode selection box of the search condition appears in the 2 nd and later condition search fields.
In the embodiment of the application, the knowledge-graph professional search interface of the chemical safety technical specification can further comprise a conditional retrieval bar reduction control. For example, after the displayed condition search bar is added as shown in fig. 8, a condition search bar reduction control may be provided on the right side of the condition search bar. After the displayed condition search bar is added, the display method of the chemical safety technical specification further comprises the following steps: and responding to the triggering operation of the conditional retrieval bar reducing control, and reducing the conditional retrieval bar displayed in the professional search interface of the chemical safety technical specification. The "+" button in fig. 8 is a conditional search bar addition control, and the "-" button is a conditional search bar reduction control, and as shown in fig. 8, a conditional search bar addition control may be provided on the right side of the first conditional search bar. When more than one conditional search field is present, a composition mode selection box appears. As shown in fig. 8, a conditional search bar reduction control is provided on the right side of the second conditional search bar.
In the embodiment of the application, one conditional search column corresponds to one search requirement. The search requirement comprises a search category selected by a user in a search category selection box in the corresponding condition search column and the content to be inquired input in a search content input box.
Optionally, in this embodiment of the present application, a composition manner in the multiple conditional search fields may be defined as an and relationship.
According to the method provided by the embodiment of the application, by adding and reducing the condition search columns, the search requirements can be increased or reduced, the content which needs to be searched by a user can be locked more accurately, for example, the association relation of a plurality of chemical safety technical specifications in a plurality of chapters can be directly searched, the relation of the plurality of chemical safety technical specifications in the plurality of chapters is determined without searching and comparing for many times, and the efficiency of obtaining information by the user can be improved.
Optionally, if the additionally displayed condition search field includes a composition mode selection frame of the search condition, and the composition mode is the search condition corresponding to the condition search field or the search condition corresponding to the condition search field, then the step S102B obtains the search category selected by the user in the search category selection frame of the condition search field and the content to be queried input in the search content input frame, which includes:
and acquiring the composition mode selected by the user in the composition mode selection box, the retrieval type selected in the retrieval type selection box and the content to be queried input in the retrieval content input box.
In the embodiment of the application, the contents in the retrieval type selection box and the retrieval content input box in each condition retrieval column form corresponding retrieval requirements, and then the retrieval requirements form query requirements according to the selected composition mode; and sends the query request to the server.
Specifically, after the input and the selection of a user are obtained, a retrieval category selection frame and the content of a retrieval content input frame included in each condition retrieval column form a retrieval condition, a composition mode is determined through the selection of a composition mode selection frame which begins to exist in a second condition retrieval column, and the retrieval conditions form a query requirement according to the composition mode; the query request is sent to the server.
Here, the search condition in the AND-condition search field may be represented as "AND", OR the search condition in the condition search field may be represented as "OR".
In the embodiment of the application, if the contents of multiple chapters are to be searched, multiple condition search fields can be additionally displayed, multiple chapter marks are selected from the multiple condition search fields, and the corresponding composition mode is selected to be "OR" in the composition mode selection frame, so that the contents of the multiple chapters can be displayed, and the contents of 16 chapters can be displayed in the limit condition. If the contents of a section below a certain chapter are searched, a condition search field can be added, 3 condition search fields are displayed, and the condition search fields are respectively selected from the 3 condition search fields: the name of a hazardous chemical; AND, a chapter mark; AND, some section identification.
On the basis that the additionally displayed condition retrieval bar comprises a composition mode selection frame, wherein the composition mode is the retrieval condition or the retrieval condition, and step S104B shows the content meeting the query requirement in the knowledge graph of the chemical safety technical specification in the form of a graph or a table according to the retrieval result, the method comprises the following steps:
and step S104B1, if the retrieval types of the plurality of condition retrieval columns are chapter marks and the corresponding composition modes are all same, displaying the association relation of the chemical safety technical specifications meeting the query requirement in the knowledge graph of the chemical safety technical specifications on the chapters only in a table form.
And step S104B2, if the retrieval types of the plurality of condition retrieval fields are chapter marks and at least one corresponding composition mode is or, or the retrieval types of the plurality of condition retrieval fields are not chapter marks, displaying the association relationship between the chemical safety technical specifications meeting the query requirement in the chemical safety technical specification knowledge graph in a table form or a graph form.
Since the knowledge graph can only search the OR relation of two chapters, but can not search the AND relation of the two chapters, if the search categories of a plurality of condition search columns are chapter marks AND the corresponding composition modes are all corresponding to the search conditions, the association relation of the chemical safety technical specifications meeting the query requirements in the knowledge graph of the chemical safety technical specifications on the chapters is displayed in a table form. It should be understood that a query result may be presented in a table form if it can be presented in a graph form, but may not necessarily be presented in a graph form if it can be presented in a table form.
Optionally, if there are multiple search categories of the conditional search query field as chapter identifiers and corresponding composition manners are all the same, the user cannot select to display the query result in the form of a graph.
Illustratively, the case where the retrieval categories of the plurality of conditional retrieval fields are section identifiers AND the corresponding composition manners are all "AND" which is a retrieval condition, includes at least the following:
(1) The user selects the following three condition search fields: the name of a hazardous chemical; AND, a chapter mark; AND, a chapter identification. If the content of the chapter corresponding to each chapter mark of the chemical safety technical specification corresponding to the input chemical mark contains the corresponding content to be inquired, the result displayed by the table can be obtained. In the technical specification of the chemical safety corresponding to toluene, the sections of 'complete work, bathing and changing clothes' and 'emergency measures' in the section of 'individual protection' include 'for example, breathing difficulty and oxygen delivery', so that as shown in fig. 9, after the query control is clicked, a table corresponding to the query requirement can be displayed.
(2) The selections of the plurality of conditional retrieval fields are AND AND a certain chapter mark, namely, the joint query of the plurality of chapter ANs. And if no content exists in the retrieval content input box, not displaying the query result. If the retrieval content input box has content, the server queries all chemical safety technical specifications of the content to be queried on chapters corresponding to the chapter identifications in the knowledge graph, and the user terminal displays retrieval results in a form. Fig. 10 shows the association relationship between the chemical safety specifications in the chapter "emergency treatment" and "individual protection", and specifically shows the contents of the chemical safety specifications in the chapter "individual protection" including "work done, bathing and changing clothes" and "emergency treatment" including "respiratory distress, oxygen supply".
(3) The user selects the following four condition search fields: the name of a hazardous chemical; AND, a chapter mark; AND, a chapter mark; OR, name of dangerous chemical. And if the content of the chapter corresponding to each chapter mark of the plurality of chemical safety technical specifications in the OR relationship contains the content to be inquired which is input by each chapter mark, obtaining a result displayed by the table. Fig. 11 shows the case where the chemical safety technical specification corresponding to toluene and the chemical safety technical specification corresponding to chloroacetic acid both include the contents in the corresponding input boxes in the chapters "emergency measures" and "individual protection", and is also the correlation between the "toluene knowledge map" and the "chloroacetic acid knowledge map" in the chapters "emergency measures" and "individual protection".
Illustratively, the case where there are a plurality of search categories of the conditional search listing as section identifiers and at least one corresponding component is either a search condition, i.e., "OR", OR there are no search categories of the conditional search listing as section identifiers includes at least the following cases:
the user selects the following four condition search fields: the name of a hazardous chemical substance; AND, a chapter mark; OR, hazardous chemical name; OR, a certain chapter mark, and the content to be retrieved corresponding to the chapter mark is empty. At this time, the association relationship between the two dangerous chemicals and the corresponding chapters of the two headlines is inquired. As shown in fig. 12, the association relationship between the "toluene knowledge map" and the "chloroacetic acid knowledge map" in the two sections of "individual protection" or "emergency treatment" can be displayed in the form of a map.
It should be understood that if the selections of the multiple conditional search fields are all AND, bar identifiers, there is no search result. This is because it is necessary that all chemical safety specifications in the knowledge map are identical in the contents of the corresponding section.
EXAMPLE III
Fig. 13 is a flowchart of a method for displaying a chemical safety technical specification knowledge graph provided in the third embodiment of the present application, and the third embodiment of the present application provides a method for displaying a chemical safety technical specification knowledge graph, which is directed to the problem that it is difficult for a user to simultaneously acquire the contents of the sections concerned by the user and the association relationship between the chemical safety technical specification in the existing method for displaying a chemical safety technical specification. The method in the embodiment is applied to a chemical safety technical specification knowledge graph display device, and the chemical safety technical specification knowledge graph display device can be located in a server. The server may be, among other things, a digital computer that represents various forms. Such as a desktop computer, a workstation, a server, a blade server, a mainframe computer, and other suitable computers. It should be understood that any knowledge-graph search engine is included in the server.
As shown in fig. 13, the method comprises the following specific steps:
step S201, receiving an inquiry requirement sent by a user terminal. The query requirement may include content to be queried.
Specifically, after a user inputs content to be queried and selects chapter marks in a common search interface of a knowledge graph of a chemical safety technical specification provided by a user terminal, the user terminal forms a query requirement by the content to be queried and the selected chapter marks and sends the query requirement to a server; the method comprises the following steps that a user selects a composition mode selection frame and a retrieval type selection frame of each condition retrieval column of a chemical safety technical specification knowledge graph professional search interface provided by a user terminal and retrieves content input by a content input frame, the user terminal combines the selection of the retrieval type selection frame and the content input by the retrieval content input frame into a retrieval condition, and the retrieval condition of each retrieval column is combined into a retrieval requirement and sent to a server in a composition mode;
after receiving the query request sent by the user terminal, the server executes step S202 to retrieve the chemical safety technical specification knowledge graph and returns the retrieval result to the user terminal; and after receiving the retrieval result, the user terminal displays the received retrieval result.
It should be understood that the query requirement may also include the search condition and the composition of the search condition. The retrieval conditions comprise the selection of a retrieval category selection box and the content to be queried input by a retrieval content input box.
And S202, retrieving the content meeting the query requirement in the pre-constructed chemical safety technical specification knowledge graph according to the query requirement, and returning the retrieval result to the user terminal.
If the query requirement comprises query content and the selected chapter mark, the retrieval result comprises the corresponding content of the chapter mark selected in the chemical safety technical specification corresponding to the content to be queried; the content to be inquired is a chemical identification; the content to be inquired is input by a user in a dangerous chemical search box in a common search interface; the selected chapter mark is selected in a search bar in a common search interface by a user; if the query requirement is that the user terminal is composed of the retrieval types selected by each condition retrieval column of the professional search interface and the content to be queried through the composition mode selected by the composition mode selection frame, the retrieval result meets the retrieval types, the content to be queried and the composition modes of each condition retrieval column.
Exemplarily, if the user terminal displays a knowledge graph common user search interface of the chemical safety technical specification, a query requirement which is sent by the user terminal and consists of the content to be queried and the selected chapter mark and section mark can be received; and retrieving the content meeting the query requirement in the chemical safety technical specification knowledge graph constructed in advance according to the query requirement, and returning the corresponding content comprising the chapter mark and the subsection mark selected from the chemical safety technical specification corresponding to the content to be queried to the user terminal.
Exemplarily, if the user terminal displays a professional search interface of a knowledge graph of a chemical safety technical specification, a query requirement which is sent by the user terminal and consists of a retrieval category selected by each condition retrieval column and a composition mode selected by a composition mode selection frame of contents to be queried can be received; and searching the content meeting the query requirement in a pre-constructed chemical safety technical specification knowledge graph according to the query requirement, and returning the search result meeting the search category, the content to be queried and the composition mode of each condition search column to the user terminal.
In the embodiment of the application, the pre-constructed knowledge graph of the chemical safety technical specification comprises a plurality of knowledge graphs of the chemical safety technical specification. Examples provided in this application employ a pre-constructed chemical safety specification knowledge graph as a fused knowledge graph. Specifically, a chemical safety technical specification knowledge graph constructed in advance by a knowledge graph fusion technology can be adopted.
In the embodiment of the application, the chemical safety technical specification which meets the query requirement in the chemical safety technical specification knowledge graph constructed in advance can be retrieved, and the retrieval result is returned to the user terminal.
Optionally, a display form selected by the user and sent by the user terminal may also be obtained, and if the display form is a table, the queried knowledge graph is converted into the table and returned to the user terminal.
Optionally, if the user terminal displays a knowledge graph common user search interface of the chemical safety technical specification, the user terminal can also receive a query requirement which is sent by the user terminal and consists of the content to be queried and the selected chapter identification and/or section identification; and retrieving the pre-constructed chemical safety technical specification knowledge graph by adopting a knowledge graph retrieval technology, and returning a retrieval result to the user terminal.
Optionally, if the user terminal displays a common search interface of the chemical safety technical specification knowledge graph, and the server does not receive the selected chapter mark and/or the selected bar mark, the knowledge graph corresponding to the chemical mark in the chemical safety technical specification knowledge graph constructed in advance is retrieved according to the query requirement by using a knowledge graph retrieval technology, and the retrieval result is returned to the user terminal.
Optionally, if the user terminal displays a chemical safety technical specification knowledge graph professional search interface, and there are multiple retrieval categories as chapter identifiers and at least one corresponding composition manner is or in the received query requirement, or there are no retrieval categories of multiple conditional retrieval columns as chapter identifiers, step S202 retrieves, according to the query requirement, contents meeting the query requirement in a chemical safety technical specification knowledge graph constructed in advance, and returns a retrieval result to the user terminal, which specifically includes:
searching the content meeting the query requirement in a pre-constructed chemical safety technical specification knowledge graph by adopting a knowledge graph searching technology; and returning contents meeting the query requirement in the knowledge graph of the chemical safety technical specification of the user terminal in a form of a table or a graph.
Optionally, if the user terminal displays a professional search interface of a chemical safety technical specification knowledge graph, and multiple retrieval categories exist in the received query requirement as chapter identifiers and corresponding composition manners are all the same, step S202 retrieves, according to the query requirement, content meeting the query requirement in a chemical safety technical specification knowledge graph constructed in advance, and returns a retrieval result to the user terminal, which specifically includes:
pre-searching a pre-constructed chemical safety technical specification knowledge graph by adopting a knowledge graph searching technology according to the query requirement, and converting a primary searching result into an initial table; searching the content meeting the query requirement in the initial table by adopting a database query technology; and returning the content meeting the query requirement in the initial form of the user terminal in the form of a form.
Wherein the initial form is converted by a retrieval result obtained by pre-retrieving a chemical safety technical specification knowledge graph by using a knowledge graph retrieval technology.
It should be understood that the database query technology can easily query and search conditions and/or search conditions, while the knowledge-graph search technology is better at searching or searching conditions, and the application refers to the database query technology to process relationships in the knowledge graph, and at the moment, no graph display is performed, and only form display is provided. For example, if a chemical safety technical specification is searched for content to be queried which satisfies a given relationship between two chapters, that is, two chapters included in the chemical safety technical specification on two chapters simultaneously, the knowledge graph search technology cannot handle such a relationship.
Illustratively, a specific implementation manner for obtaining the initial table is as follows: if the received query request has the retrieval types of the plurality of condition retrieval columns as the chapter names and the corresponding composition modes are all same, changing the composition mode corresponding to the retrieval condition with the retrieval type as the chapter name into the composition mode; then, the knowledge map retrieval technology is adopted to retrieve the contents meeting or retrieving the requirements and process the contents into an initial table, then the database query technology is adopted to process the contents, and the final result is returned to the user terminal in the form of a table.
The method provided by the embodiment of the application receives the query requirement sent by the user terminal; the query requirement comprises query content and a selected chapter mark; the content to be inquired is a chemical identification; the content to be inquired is input by a user in a dangerous chemical search box in a chemical safety technical specification knowledge graph common search interface; the selected chapter mark is selected by a user in a search bar in a common search interface of a knowledge graph of a chemical safety technical specification; retrieving the contents of the chemical safety technical specifications meeting the query requirements in the pre-constructed chemical safety technical specifications knowledge graph by adopting a knowledge graph retrieval technology according to the query requirements, and returning the retrieval result to the user terminal; the retrieval result comprises corresponding contents of chapter marks selected from the chemical safety technical specification corresponding to the contents to be queried. The chapter contents which the user needs to check are retrieved by obtaining the selection of the user in the search bar, and the retrieval result is returned to the user terminal, so that the user can randomly check any chapter of any chemical safety technical specification, namely one chapter, multiple chapters or all chapters, and the chapter contents which the user pays attention to can be presented to relevant personnel for inquiring and using, such as production enterprises, sales enterprises, transportation enterprises, academic institutions, supervision institutions, safety evaluation and the like.
The method provided by the embodiment of the application receives the query requirement sent by the user terminal; the query requirements comprise a composition mode and a query condition selected from each condition retrieval column in a chemical safety technical specification knowledge graph professional search interface; the query conditions comprise a retrieval category selected by the retrieval category selection box and contents to be queried input by the retrieval content input box; forming a query requirement by the query conditions in each search bar through the composition mode selected in the composition mode selection box; retrieving the contents of the chemical safety technical specifications meeting the query requirements in the pre-constructed chemical safety technical specifications knowledge graph by adopting a knowledge graph retrieval technology according to the query requirements, and returning the retrieval result to the user terminal; the retrieval result can be corresponding contents in a chemical safety technical specification or an association relation between the chemical safety technical specifications. The invention can present the association relationship between chapter contents concerned by users or chemical safety technical specifications to relevant personnel such as production enterprises, sales enterprises, transportation enterprises, academic institutions, supervision institutions, safety evaluation and the like for inquiry and use.
Example four
Fig. 14 is a schematic structural diagram of a user terminal according to a fourth embodiment of the present application, and as shown in fig. 14, the present application further provides a user terminal 30, which includes: memory 301, processor 302, transceiver 303, and input-output device 304.
The memory 301 is used for storing computer execution instructions, the transceiver 303 is used for sending query requirements to the server and receiving retrieval results returned by the server, and the input and output device 304 is used for acquiring contents input and/or selected by a user. The memory 301, the processor 302, the transceiver 303, and the input-output device 304 are communicatively connected.
In particular, memory 301 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. A processor 302 for executing computer-executable instructions stored by the memory 301.
Wherein the computer executable instructions are stored in the memory 301 and configured to be executed by the processor 302 to implement the method provided in the first embodiment or the second embodiment of the present application. The related description may be understood by referring to the related description and effect corresponding to the steps in the drawings, and redundant description is not repeated here.
In the embodiment of the present application, the memory 301, the processor 302, the transceiver 303, and the input/output device 304 may be connected through a bus. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 14, but this is not intended to represent only one bus or type of bus.
EXAMPLE five
Fig. 15 is a schematic structural diagram of a server provided in the fifth embodiment of the present application, and as shown in fig. 15, the present application further provides a server 40, including: memory 401, processor 402, and transceiver 403.
The memory 401 is used for storing computer-executable instructions, and the transceiver 403 is used for receiving a query request sent by the user terminal and returning a retrieval result to the user terminal. The memory 401, processor 402, and transceiver 403 are communicatively coupled.
In particular, memory 401 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. A processor 402 for executing computer-executable instructions stored by the memory 401.
Wherein the computer executable instructions are stored in the memory 401 and configured to be executed by the processor 402 to implement the method provided by the third embodiment of the present application. The related description may be understood by referring to the related description and effect corresponding to the steps in the drawings, and redundant description is not repeated here.
In this embodiment, the memory 401, the processor 402 and the transceiver 403 may be connected by a bus. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 15, but this is not intended to represent only one bus or type of bus.
In the embodiments provided in the present application, it should be understood that the disclosed processes and methods may be implemented in other manners. For example, the above described flow embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a mode of hardware and a software functional module.
Program code for implementing the methods of the present application may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable full path trajectory fusion device such that the program code, when executed by the processor or controller, causes the functions/acts specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this application, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Further, while operations are depicted in a particular order, this should be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the application. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single implementation. Conversely, various features that are described in the context of a single implementation can also be implemented in multiple implementations separately or in any suitable subcombination.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A personalized display method for knowledge graph of chemical safety technical specification is characterized by comprising the following steps:
responding to the opening operation of the common search interface, and displaying the common search interface of the chemical safety technical specification knowledge map; the chemical safety technical specification knowledge graph common search interface comprises the following steps: a chemical search box and a search bar; the search column comprises chapter marks of all chapters in the chemical safety technical specification;
acquiring content to be queried input in a chemical search box by a user and chapter identifications selected in a search bar, and forming a query requirement by the content to be queried and the selected chapter identifications and sending the query requirement to a server; the content to be inquired is a chemical identification;
and receiving a retrieval result returned by the server, and displaying the content corresponding to the chapter mark selected from the chemical safety technical specification corresponding to the chemical mark according to the retrieval result.
2. The method of claim 1, wherein the search field further comprises section identifiers of sections in a chemical safety technical specification; after the displaying of the chemical safety technical specification knowledge graph common search interface, the method further comprises the following steps:
acquiring content to be queried input in a chemical search box by a user and bar identifiers selected in a search bar, and transmitting a query requirement consisting of the content to be queried and the selected bar identifiers to a server; after receiving the retrieval result returned by the server, the method further comprises the following steps:
and displaying the content corresponding to the selected bar mark in the chemical safety technical specification corresponding to the chemical mark according to the retrieval result.
3. The method of claim 1, further comprising:
responding to the opening operation of the professional search interface, and displaying a chemical safety technical specification knowledge graph professional search interface; the chemical safety technical specification knowledge graph professional search interface comprises a condition retrieval bar; the condition search field includes: a retrieval category selection frame and a retrieval content input frame;
acquiring a retrieval category selected by a user in a retrieval category selection frame of a condition retrieval bar and contents to be queried input in a retrieval content input frame, and forming a query requirement by the selected retrieval category and the contents to be queried and sending the query requirement to a server;
receiving a retrieval result returned by the server;
and displaying the content meeting the query requirement in the knowledge graph of the chemical safety technical specification in a graph or table form according to the retrieval result.
4. The method of claim 3, further comprising:
the chemical safety technical specification knowledge graph professional search interface comprises a condition retrieval bar adding control, and the condition retrieval bar displayed in the chemical safety technical specification knowledge graph professional search interface is added in response to the triggering operation of adding the control to the condition retrieval bar; the condition search bar for increasing display comprises: selecting a composition mode selection frame of the retrieval condition; the retrieval conditions comprise retrieval categories selected by a user in a retrieval category selection box in a corresponding condition retrieval bar and contents to be inquired input in a retrieval content input box;
the chemical safety technical specification knowledge graph professional search interface further comprises a conditional retrieval bar reduction control, and the method further comprises the following steps: and responding to the triggering operation of the condition retrieval bar reducing control, and reducing the condition retrieval bar displayed in the knowledge graph professional search interface of the chemical safety technical specification.
5. The method according to claim 4, wherein the composition manner is and or, the obtaining of the retrieval category selected by the user in the retrieval category selection box of the condition retrieval bar and the content to be queried input in the retrieval content input box, and the sending of the query requirement composed of the selected retrieval category and the content to be queried to the server includes:
acquiring a composition mode selected by a user in a composition mode selection frame, a retrieval type selected in a retrieval type selection frame and content to be queried input in a retrieval content input frame, and composing the selected retrieval type and the content to be queried into a retrieval condition; the search conditions and the corresponding composition modes form a query requirement and are sent to a server;
the content meeting the query requirement in the knowledge graph of the chemical safety technical specification is displayed in a graph or table form according to the retrieval result, and the method comprises the following steps:
if the retrieval categories of the plurality of condition retrieval columns are chapter marks and the corresponding composition modes are all same, only displaying the association relation of the chemical safety technical specifications meeting the query requirement in the knowledge graph of the chemical safety technical specifications on the chapters in a table form;
and if the retrieval types of the plurality of conditional retrieval fields are chapter marks and at least one corresponding composition mode is or, or the retrieval types of the plurality of conditional retrieval fields are not chapter marks, displaying the association relationship among the chemical safety technical specifications meeting the query requirement in the chemical safety technical specification knowledge graph in a table form or a graph form.
6. The method according to any one of claims 1 to 5, before displaying the content corresponding to the query requirement according to the retrieval result, further comprising:
acquiring a display form selected by a user; the displaying of the content corresponding to the query requirement according to the retrieval result includes:
if the display form selected by the user is a table, displaying the table corresponding to the content meeting the query requirement in the chemical safety technical specification knowledge graph;
if the display form selected by the user is a map, displaying a knowledge map corresponding to the content meeting the query requirement in the knowledge map of the chemical safety technical specification; the knowledge graph comprises chemical nodes, chapter nodes, content nodes and edges representing the relationship among the nodes.
7. A personalized display method of a chemical safety technical specification knowledge graph is characterized by comprising the following steps:
receiving a query request sent by a user terminal;
retrieving contents meeting the query requirement in a chemical safety technical specification knowledge graph constructed in advance according to the query requirement, and returning a retrieval result to the user terminal;
if the query requirement comprises query content and the selected chapter mark, the retrieval result comprises the corresponding content of the chapter mark selected in the chemical safety technical specification corresponding to the content to be queried; the content to be inquired is a chemical identification; the content to be inquired is input by a user in a dangerous chemical search box in a common search interface; the selected chapter mark is selected in a search bar in a common search interface by a user;
and if the query requirement is that the user terminal is composed of the retrieval types selected by the condition retrieval columns of the professional search interface and the content to be queried through the composition modes selected by the composition mode selection frame, the retrieval result meets the retrieval types, the content to be queried and the composition modes of the condition retrieval columns.
8. The method according to claim 7, wherein if the query request is composed of a user terminal selecting a retrieval category and a content to be queried from each condition retrieval column of the professional search interface by a composition mode selected by a composition mode selection box, retrieving the content meeting the query request in a chemical safety technical specification knowledge graph constructed in advance according to the query request, and returning a retrieval result to the user terminal, comprises:
if a plurality of retrieval categories exist in the received query requirement and are chapter marks and the corresponding composition modes are all same, pre-retrieving a pre-constructed chemical safety technical specification knowledge graph by adopting a knowledge graph retrieval technology according to the query requirement and converting a preliminary retrieval result into an initial table; searching the content meeting the query requirement in the initial table by adopting a database query technology; returning contents meeting the query requirement in the initial form of the user terminal in a form of the form;
if a plurality of retrieval categories which are chapter marks exist in the received query requirement and at least one corresponding composition mode is 'OR' or the retrieval categories which do not exist in a plurality of condition retrieval columns are chapter marks, retrieving contents meeting the query requirement in a chemical safety technical specification knowledge graph which is constructed in advance by adopting a knowledge graph retrieval technology; and returning contents meeting the query requirement in the knowledge graph of the chemical safety technical specification of the user terminal in a form of a table or a graph.
9. A user terminal, comprising: the device comprises a processor, a memory, a transceiver and an input/output device, wherein the memory, the transceiver and the input/output device are connected with the processor in a communication way;
the memory stores computer-executable instructions; the transceiver is used for sending the query requirement to the server and receiving the retrieval result returned by the server; the input and output device is used for acquiring the content input and/or selected by the user;
the processor executes computer-executable instructions stored by the memory to implement the method of any of claims 1-6.
10. A server, comprising: a processor, and a memory and transceiver communicatively coupled to the processor;
the memory stores computer execution instructions; the transceiver is used for receiving the query request sent by the user terminal and returning the retrieval result to the user terminal; the processor executes computer-executable instructions stored by the memory to implement the method as claimed in claim 7 or 8.
CN202211176120.8A 2022-09-26 2022-09-26 Individualized display method and device for knowledge graph of chemical safety technical specification Pending CN115563300A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211176120.8A CN115563300A (en) 2022-09-26 2022-09-26 Individualized display method and device for knowledge graph of chemical safety technical specification

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211176120.8A CN115563300A (en) 2022-09-26 2022-09-26 Individualized display method and device for knowledge graph of chemical safety technical specification

Publications (1)

Publication Number Publication Date
CN115563300A true CN115563300A (en) 2023-01-03

Family

ID=84743456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211176120.8A Pending CN115563300A (en) 2022-09-26 2022-09-26 Individualized display method and device for knowledge graph of chemical safety technical specification

Country Status (1)

Country Link
CN (1) CN115563300A (en)

Similar Documents

Publication Publication Date Title
JP6736173B2 (en) Method, system, recording medium and computer program for natural language interface to a database
US8356046B2 (en) Context-based user interface, search, and navigation
US6496838B1 (en) Database reconciliation method and system
CA2593963C (en) Universal data relationship inference engine
US7840601B2 (en) Editable table modification
US20220100782A1 (en) Knowledge search system
US10042921B2 (en) Robust and readily domain-adaptable natural language interface to databases
US8321402B2 (en) Generic application interface for searching
CN105027115A (en) Query and index over documents
EP3436982B1 (en) Modular electronic data analysis computing system
US20190065455A1 (en) Intelligent form creation
KR102315916B1 (en) Method for supporting agent and computing device thereof
US20210149979A1 (en) System and Method for Accessing and Managing Cognitive Knowledge
US20120179709A1 (en) Apparatus, method and program product for searching document
US9275421B2 (en) Triggering social pages
US20050086044A1 (en) System and method of identifying a translation resource
US8214379B2 (en) Composing views with automatic creation of links
CN111190965A (en) Text data-based ad hoc relationship analysis system and method
US8869030B2 (en) Hierarchical representation of contextual information
US9747358B2 (en) Pattern analysis for a multi-dimensional analytical system
CN115563300A (en) Individualized display method and device for knowledge graph of chemical safety technical specification
US10204165B2 (en) Network-based gathering of background information
CN110502690B (en) Classified search method and device
US20090187572A1 (en) Systems and methods for providing access to instructional content
US20180121404A1 (en) Determining and assisting with document or design code completeness

Legal Events

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