CN114547345B - Input prompting method and device combining map mode - Google Patents

Input prompting method and device combining map mode Download PDF

Info

Publication number
CN114547345B
CN114547345B CN202210403926.XA CN202210403926A CN114547345B CN 114547345 B CN114547345 B CN 114547345B CN 202210403926 A CN202210403926 A CN 202210403926A CN 114547345 B CN114547345 B CN 114547345B
Authority
CN
China
Prior art keywords
user
elements
graph
target
entity
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.)
Active
Application number
CN202210403926.XA
Other languages
Chinese (zh)
Other versions
CN114547345A (en
Inventor
成强
游东海
赵培龙
刘志臻
梁磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information Technology 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 Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202210403926.XA priority Critical patent/CN114547345B/en
Publication of CN114547345A publication Critical patent/CN114547345A/en
Application granted granted Critical
Publication of CN114547345B publication Critical patent/CN114547345B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking
    • G06F40/295Named entity recognition

Abstract

The embodiment of the specification provides an input prompting method and device in combination with a graph mode. The target knowledge graph corresponding to the graph mode relates to a plurality of elements, the graph mode defines a plurality of category names of the elements, and the method comprises the following steps: in the process that a user writes a business strategy by utilizing a strategy editing window associated with a target knowledge graph, in response to detecting a reference mark which is input by the user and aims at the class name of the element, determining a target element in the multiple elements according to the reference mark; acquiring a plurality of category names of the target elements from the map mode to serve as recommended contents; the recommended content is provided to the user for the user to select a category name to be referred to from.

Description

Input prompting method and device combining map mode
Technical Field
The embodiment of the specification relates to the technical field of computers, in particular to an input prompting method and device combining a map mode.
Background
In the practical application process of the knowledge graph, it is often difficult for a user to have a clear knowledge of the entire knowledge, for example, in the knowledge inference process based on the knowledge graph, when editing a related policy (which may be called a business policy), it is often difficult to know the accurate entity class name, relationship class name, attribute class name, and attribute numerical type, etc. Therefore, the required information needs to be queried through other ways, and the business strategy needs to be edited after the information is acquired. Such a flow has a problem of low business strategy editing efficiency.
Therefore, a reasonable and reliable scheme is urgently needed, and the business strategy editing efficiency of the user can be improved.
Disclosure of Invention
The embodiment of the specification provides an input prompting method and device in combination with a graph mode, and the business strategy editing efficiency of a user can be improved.
In a first aspect, an embodiment of the present specification provides an input prompting method in combination with a graph mode, where a target knowledge graph corresponding to the graph mode relates to multiple elements, and the graph mode defines several category names of each of the multiple elements, and the method includes: in response to detecting a reference mark input by the user for an element class name during the process of writing a business strategy by a user by utilizing a strategy editing window associated with the target knowledge graph, determining a target element in the plurality of elements according to the reference mark; acquiring a plurality of category names of the target elements from the map mode to serve as recommended contents; and providing the recommended content to the user for the user to select the category name to be referred to.
In some embodiments, the reference mark is pre-associated with one of the plurality of elements; and said determining a target element among said plurality of elements according to said reference mark comprises: and determining the element associated with the reference mark in the multiple elements as a target element.
In some embodiments, the reference mark is pre-associated with a plurality of items of the plurality of elements; and said determining a target element among said plurality of elements according to said reference mark comprises: acquiring input content corresponding to the reference mark from the strategy editing window; and determining an element to which the input content belongs in the plurality of items, and determining the element as a target element.
In some embodiments, the plurality of elements includes entities and relationships to which the reference labels are pre-associated; and the determining the element to which the input content belongs in the plurality of items comprises: determining whether the input content includes a symbol representing a relationship; if the input content belongs to the relationship, determining that the input content belongs to the relationship; and if the determination result is negative, determining that the input content belongs to the entity.
In some embodiments, the plurality of elements includes an entity, and the target element is an entity; and the obtaining of the category names of the target elements from the map mode comprises: and acquiring a plurality of entity class names from the map mode.
In some embodiments, the plurality of elements includes entities and attributes, and the target element is an attribute; the input content corresponding to the reference mark in the strategy editing window is a single entity instance; and the obtaining of the category names of the target elements from the map mode comprises: obtaining an entity category name defined by the user for the single entity instance from the policy editing window; obtaining a number of attribute class names associated with the entity class names from the graph schema.
In some embodiments, the graph schema further defines an attribute value type corresponding to an attribute class name; and prior to the providing of the recommended content to the user, further comprising: acquiring attribute numerical value types respectively corresponding to the attribute category names from the map mode; the recommended content further includes the acquired attribute value type.
In some embodiments, the plurality of elements includes entities and relationships, and the target element is a relationship; the input content corresponding to the reference mark in the strategy editing window comprises a first entity instance and a second entity instance; and the obtaining of the category names of the target elements from the map mode comprises: acquiring entity category names which are respectively defined by the user aiming at the first entity instance and the second entity instance from the strategy editing window; and acquiring a target relation class name from the map mode, wherein the target relation class name is simultaneously associated with the entity class names of the first entity instance and the second entity instance.
In some embodiments, after the user writes the completion of the business policy, the method further includes: receiving a preview request of the user for the business strategy; generating preview content corresponding to the business strategy; providing the preview content to the user.
In some embodiments, the business policy includes graph structure, constraints, and action content; and the generating of the preview content corresponding to the business strategy comprises: generating a query graph according to the graph structure; generating preview content including the query graph, the constraint condition and the action content.
In a second aspect, embodiments of the present specification provide an input prompting apparatus incorporating a graph schema, a target knowledge graph corresponding to the graph schema relates to a plurality of elements, and the graph schema defines a plurality of category names of each of the plurality of elements, the apparatus including: a determining unit configured to, in response to detecting a reference mark for an element class name input by a user in a process of writing a business policy by a user using a policy edit window associated with the target knowledge graph, determine a target element among the plurality of elements according to the reference mark; an acquisition unit configured to acquire, as recommended content, category names of the target elements from the map pattern; an output unit configured to provide the recommended content to the user for the user to select a category name to be referred to from.
In a third aspect, the present specification provides a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed in a computer, the computer is caused to execute the method described in any implementation manner of the first aspect.
In a fourth aspect, the present specification provides a computing device, including a memory and a processor, where the memory stores executable code, and the processor executes the executable code to implement the method described in any implementation manner of the first aspect.
In a fifth aspect, the present specification provides a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the method described in any implementation manner of the first aspect.
The embodiments of the present specification provide solutions, which may determine, in response to detecting a reference mark for an element class name input by a user during a process of writing a business policy by using a policy edit window associated with a target knowledge graph, a target element among a plurality of elements related to the target knowledge graph according to the reference mark. Then, several category names of the target elements can be obtained from the map mode of the target knowledge map as recommended contents. The recommended content may then be provided to the user for the user to select a category name to be referenced from. Therefore, the element category names possibly quoted by the user can be prompted by combining the map mode, so that the service strategy editing efficiency of the user can be greatly improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments disclosed in the present specification, the drawings needed to be used in the description of the embodiments will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments disclosed in the present specification, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
FIG. 1 is an exemplary system architecture diagram to which some embodiments of the present description may be applied;
FIG. 2 is a flow diagram of one embodiment of an input prompt method incorporating a atlas pattern;
FIG. 3 is a flow diagram of one embodiment of an input prompt method incorporating a atlas pattern;
FIG. 4 is a flow diagram of one embodiment of an input prompt method incorporating a atlas pattern;
FIG. 5 is a schematic illustration of the effect of an input prompt;
FIG. 6 is a flow diagram of one embodiment of an input prompt method incorporating a atlas pattern;
FIG. 7 is a schematic illustration of an input prompt effect;
FIG. 8 is a schematic diagram of a business strategy preview process;
FIG. 9 is a diagram illustrating the effect of displaying preview content corresponding to a business strategy;
fig. 10 is a schematic structural diagram of an input prompting device incorporating a map mode.
Detailed Description
The present specification will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. The described embodiments are only a subset of the embodiments described herein and not all embodiments described herein. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step are within the scope of the present application.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present description may be combined with each other without conflict.
As previously mentioned, it is often difficult to know the exact entity class name, relationship class name, attribute class name, and attribute value type, among others, when a user edits a business strategy associated with a knowledge-graph. Therefore, the required information needs to be queried through other ways, and the business strategy needs to be edited after the information is acquired. Such a process has a problem of low efficiency of editing the business strategy.
Based on this, some embodiments of the present specification provide an input prompting method in combination with a graph mode, which may improve the service policy editing efficiency of a user.
In particular, fig. 1 illustrates an exemplary system architecture diagram suitable for use with some embodiments of the present description. As shown in fig. 1, the system architecture may include a target knowledge-graph and a user device.
The target knowledge graph may be a knowledge graph in any scene, and the any scene may include, for example, scenes such as interpersonal relationship, e-commerce, medicine, movie and television play, or finance, and is not limited specifically herein. In practice, the target knowledge-graph may relate to a variety of elements, which may include entities and relationships. The relationship generally refers to a relationship between entities. Further, the plurality of elements may also include attributes. Additionally, the target knowledge-graph may have a graph Schema (Schema) that defines a number of category names for each of the plurality of elements.
It should be understood that the category names of the various elements may be set according to the scenario to which the target knowledge graph belongs. Take an interpersonal relationship scenario as an example, in which several category names of entities may include, but are not limited to, people, for example; the category names of the relationship may include, for example, father and son, father and daughter, grandfather and grandson, spouse, brother, sister, colleague, and/or neighborhood, etc., and the category names of the attribute may include, for example, name, identification, occupation, and/or address, etc. Taking a movie scene as an example, in the scene, the category names of the entities may include, for example, a movie director, a movie, and/or a movie star, etc.; several category names of relationships may include, for example, director, and/or director, and so on; the category names of attributes may include, for example, name, identification, occupation, address, time of shot, and/or place of shot, among others.
The user equipment may support the user to write business policies related to the target knowledge-graph. In particular, the user device may provide the user with a policy edit window associated with the target knowledge-graph, thereby enabling the user to compose a business policy in the policy edit window. In one example, graph computation language editor software may be installed in the user device that may enable the user to write business policies related to the target knowledge graph, and the user device may have the ability to support the user to write business policies related to the target knowledge graph due to the installation of the software.
In the process of writing a business strategy by a user by utilizing a strategy editing window associated with a target knowledge graph, the user equipment can detect a reference mark input by the user and aiming at an element class name. In practice, a plurality of reference marks for the element class names may be preset, and the plurality of reference marks may be associated with the plurality of elements.
In the case where the various elements include entities, relationships, and attributes, in one example, the various reference markers may include a first reference marker (e.g., ") and a second reference marker (e.g.," [ "); wherein the first reference label can be associated with an attribute and the second reference label can be associated with an entity and a relationship. In another example, the various reference marks may include a third reference mark (e.g., "("), along with the first reference mark and the second reference mark in the foregoing, wherein the first reference mark may be associated with an attribute, the second reference mark may be associated with an entity, and the third reference mark may be associated with a relationship.
It should be noted that the various reference marks and the association relationship between the various reference marks and the various elements may be set according to actual requirements, and are not specifically limited herein.
After detecting a reference mark input by a user for the category name of an element, the user equipment may identify which category name of the element the user wants to input according to the reference mark, and may further obtain several category names of the element from the graph mode of the target knowledge graph as recommended content, and then provide the recommended content to the user for the user to select the category name to be referenced from.
Taking the reference mark "[" associated with the entity element as an example, the user may input a required entity instance, such as the entity instances a and B shown in fig. 1, in the policy editing window during the process of writing the business policy. After the entity instances a and B are input, if it is necessary to define the entity class names of the entity instances a and B, a reference mark "[" for the element class names may be input as indicated by reference numeral 102. The user device may then detect the reference mark entered by the user and identify the category name of the entity element that the user wants to enter based on the reference mark, and may then retrieve several entity category names from the graph schema of the target knowledge graph, as indicated by reference numeral 104. Here, it is assumed that the several entity category names include movie director, movie star, movie, …. Wherein the ellipsis "…" herein represents other entity class names in the plurality of entity class names. The user device may then provide the entity category names as recommended content to the user, as indicated by reference numeral 106, for the user to select from among the entity category names to be referenced.
It should be appreciated that after the user selects the entity category name to be referenced, the entity category name may be automatically entered into the policy editing window, for example, automatically behind the reference mark. Taking the entity category name "movie director" as an example, as shown in fig. 1, if the user selects "movie director" in the recommended content, the user equipment may automatically input "movie director" selected by the user behind the reference mark "[", that is, to the right of the reference mark "[".
It should be noted that "graph structure" shown in the policy edit window in fig. 1 may be understood as a function name, and a chinese name may be "graph structure". The GraphStructure function may be used for a user to write a graph structure in a business policy.
In general, a business policy may include a graph structure, and the content of actions according to the graph structure. The graph structure may include user-defined entity instances, entity class names for the respective entity instances, relationship instances, and relationship class names for the respective relationship instances, and so forth. The action content may include an operation type (e.g., get, which may represent an acquisition), and an operation object. The operation object may include, for example, an attribute category name as a query field, and an entity instance corresponding to the attribute category name, and so on. Further, the business policy may also include constraints according to the graph structure. The constraint may be, for example, a condition that the operation object needs to satisfy.
By adopting the input prompting process described above, the element category names possibly quoted by the user can be prompted by combining the map mode, so that the service strategy editing efficiency of the user can be greatly improved, and the user experience is improved.
The following describes specific implementation steps of the above method with reference to specific examples.
Referring to FIG. 2, a flow 200 of one embodiment of an input prompt method incorporating a chart schema is illustrated. The execution subject of the method may be, for example, a user device (e.g., the user device shown in fig. 1), or graph computation language editor software installed on the user device, and the like, which is not specifically limited herein. The target knowledge graph corresponding to the graph mode can relate to a plurality of elements, and the graph mode defines a plurality of category names of the elements. The method comprises the following steps:
step 202, in the process that a user writes a business strategy by utilizing a strategy editing window associated with a target knowledge graph, in response to detecting a reference mark which is input by the user and aims at the class name of an element, determining a target element in the plurality of elements according to the reference mark;
step 204, acquiring a plurality of category names of the target elements from the map mode as recommended contents;
and step 206, providing the recommended content for the user to select the category name to be referred to from.
In practice, in the process of writing a business strategy by a user by utilizing a strategy editing window associated with a target knowledge graph, a reference mark input by the user and aiming at an element class name can be detected. Upon detecting the reference mark, the target element may be determined among the above-mentioned various elements according to the reference mark by performing step 202. It should be appreciated that after the target element is determined, it can be identified which category name of the element the user wants to enter.
Wherein a single reference mark may be pre-associated with one or more of the various elements. When the detected reference mark is associated with one of the plurality of elements, the element associated with the reference mark in the plurality of elements may be determined as the target element in step 202.
When the detected reference mark is associated with multiple items of the multiple items, in step 202, the input content corresponding to the reference mark may be acquired from the policy editing window, and the element to which the input content belongs in the multiple items may be determined, and the element may be determined as the target element. It should be understood that the input is entered by the user prior to entering the reference mark.
Further, when the plurality of elements include entities and relationships, and the reference mark is pre-associated with the entities and the relationships, the step of determining the element to which the input content belongs in the plurality of items may specifically include: determining whether the input content includes a symbol representing a relationship; if the input content belongs to the relationship, determining that the input content belongs to the relationship; and if the determination result is negative, determining that the input content belongs to the entity. The symbol may be, for example, an arrow symbol.
After the target element is determined, step 204 may be performed next. In step 204, several category names of the target elements may be obtained from the graph pattern of the target knowledge graph as recommended content. In practice, the graph pattern may be stored in a local or remote server, and thus several category names of the target elements may be obtained from the graph pattern located in the local or remote server.
Next, in step 206, the recommended content may be provided to the user for the user to select a category name to be referenced from. It should be appreciated that after the user selects a category name to be referenced from the recommended content, the category name may be automatically entered into the policy editing window, for example, automatically behind the corresponding reference mark.
The scheme provided by the embodiment corresponding to fig. 2 can prompt the user about the names of the element categories that may be referred to by the user in combination with the graph mode, so that the service policy editing efficiency of the user can be greatly improved, and the user experience can be improved.
In the following, the scheme provided in this specification is further described by taking the target element as an entity, the target element as a relationship, and the target element as an attribute as examples.
Taking the target element as an example, refer to fig. 3, which shows a flow 300 of an embodiment of an input prompting method in combination with a chart schema. The target knowledge-graph corresponding to the graph mode relates to a plurality of elements including, but not limited to, entities. The graph schema defines a number of class names for each of the plurality of elements.
Wherein, the method can comprise the following steps: step 302, in the process that a user writes a business strategy by utilizing a strategy editing window associated with a target knowledge graph, in response to detecting a reference mark aiming at an element class name and input by the user, determining a target element in a plurality of elements related to the target knowledge graph according to the reference mark; step 304, in response to the target element being an entity, acquiring a plurality of entity category names from the graph mode of the target knowledge graph as recommended content; step 306, providing the recommended content to the user for the user to select the entity category name to be referred to.
The scheme provided by the present embodiment is further described below with reference to the policy editing window shown in fig. 1. Specifically, after the user enters the entity examples a and B in the policy editing window, if the user wants to define the entity category names of the two entity examples, the user may then enter the reference mark "[" for the element category name. After detecting the reference mark input by the user, the user equipment may determine the entity as the target element according to the reference mark or according to the reference mark and the corresponding input content "a, B", and identify that the user wants to input the entity category name. The user equipment may then obtain several entity class names from the graph schema, e.g. obtain all entity class names as recommended content. The user device may then present the recommended content to the user for the user to select from to refer to the entity category name.
The scheme provided by the embodiment corresponding to fig. 3 may prompt the user about the entity category name that may be referred to in combination with the graph mode, which may greatly improve the business policy editing efficiency of the user and improve the user experience.
Taking the target element as an example, next, refer to FIG. 4, which illustrates a flow 400 of one embodiment of an input prompt method in conjunction with a graph schema. The target knowledge graph corresponding to the graph schema relates to a variety of elements including, but not limited to, entities and relationships. The graph schema defines a number of class names for each of the plurality of elements.
Wherein, the method can comprise the following steps: step 402, in the process that a user writes a business strategy by utilizing a strategy editing window associated with a target knowledge graph, in response to detecting a reference mark which is input by the user and aims at the class name of an element, determining the target element in a plurality of elements related to the target knowledge graph according to the reference mark; step 404, in response to that the target element is a relationship and the input content corresponding to the reference mark in the policy editing window includes a first entity instance and a second entity instance, obtaining entity category names defined by the user for the first entity instance and the second entity instance respectively from the policy editing window; step 406, acquiring a target relation category name as recommended content from the map mode, wherein the target relation category name is simultaneously associated with the entity category names of the first entity instance and the second entity instance; and step 408, providing the recommended content for the user to select the relation category name to be referred to from.
The scheme provided by the present embodiment is further explained below with reference to the policy editing window shown in fig. 5. Specifically, if the user wants to define the relationship between the first entity instance C and the second entity instance a, the user may enter "C- > a" in the policy editing window, and then enter the reference mark "[" for the element category name. After detecting the reference mark input by the user, the user equipment may determine the relationship as a target element according to the reference mark or according to the reference mark and the input content "C- > a" corresponding to the reference mark, and recognize that the user wants to input the relationship category name. Thereafter, the user device may obtain the entity category name "movie" defined by the user for C and the entity category name "movie director" defined for a from the policy editing window. Then, the user equipment may obtain, as the recommended content, a target relationship category name "director" from the graph model according to the entity category names "movie", "movie director", the target relationship entity category being simultaneously associated with the entity category names "movie", "movie director". The user device may then present the recommended content, as indicated by reference numeral 501, to the user for selection by the user.
It should be noted that after the user defines the director relationship for "C- > a", the "C- > a" may indicate that "the director of C is a".
The scheme provided by the embodiment corresponding to fig. 4 can prompt the user about the possibly-referenced relationship category name in combination with the graph mode, so that the service policy editing efficiency of the user can be greatly improved, and the user experience can be improved.
Next, taking the target element as an example, refer to FIG. 6, which illustrates a flow 600 of one embodiment of an input prompt method in conjunction with a schema. The target knowledge-graph corresponding to the graph schema relates to a variety of elements including, but not limited to, entities and attributes. The graph schema defines a number of class names for each of the plurality of elements. The method comprises the following steps: step 602, in the process that a user writes a business strategy by using a strategy editing window associated with a target knowledge graph, in response to detecting a reference mark aiming at an element class name and input by the user, determining a target element in a plurality of elements related to the target knowledge graph according to the reference mark; step 604, in response to that the target element is an attribute and the input content corresponding to the reference mark in the policy editing window is a single entity instance, obtaining an entity category name defined by the user for the single entity instance from the policy editing window; step 606, obtaining several attribute category names associated with entity category names from the graph mode; step 610, generating recommended content; step 612, providing the recommended content to the user, so that the user can select the attribute category name to be referred to from the recommended content.
The scheme provided by the present embodiment is further explained below with reference to the policy editing window shown in fig. 7. Specifically, if the user wants to write a constraint condition related to the attribute of the entity instance a, the user may enter "a" in the policy editing window, and then enter a reference mark ". multidot.. After detecting the reference mark input by the user, the user equipment may determine the attribute as the target element according to the reference mark, and recognize that the user wants to input the attribute category name. Thereafter, the user device may obtain the entity category name "movie director" defined by the user for entity instance a from the policy edit window. The user device may then retrieve from the graph schema a number of attribute category names associated with the entity category name "movie director". Here, it is assumed that the several attribute category names include "name", "identification", …. Wherein the ellipsis "…" herein represents other attribute class names in the plurality of attribute class names. Next, the user device may generate recommended content that includes the several attribute category names. The user device may then present the recommended content to the user as indicated by reference numeral 701 for the user to select the attribute category name to reference from.
It should be noted that "Rule" in the policy editing window shown in fig. 7 may be a function name, and a chinese name may be a Rule. Rule functions may be used for user-written constraints.
In practice, the user will typically use the attribute class name when writing the constraint, and the constraint notation corresponding to the attribute class name, such as less than, greater than, or equal to, the number, and so forth. Currently, there is a possibility that some attribute value types are not suitable for using certain constraint symbols. In order to facilitate the user to accurately write the constraint conditions, possible attribute category names are prompted to the user, and meanwhile attribute numerical value types corresponding to the attribute category names can be prompted.
Based on this, as an optional implementation manner, the graph schema further defines an attribute value type corresponding to the attribute class name, and before step 610, step 608 may also be performed. In step 608, attribute value types respectively corresponding to the attribute category names may be obtained from the graph schema. Accordingly, the preview content generated in step 610 may further include the acquired attribute value type.
The scheme provided by the embodiment corresponding to fig. 6 may prompt the user about the name of the attribute category that may be referred to in combination with the graph mode, which may greatly improve the editing efficiency of the business policy of the user and improve the user experience.
In one embodiment, the solution provided in the present specification may also support the user to preview the writing completed business strategy. Specifically, after the user writes the completed business policy, a preview entry for the business policy may be provided to the user. When the user wants to preview the business strategy, the user can initiate a preview request for the business strategy by triggering the preview entrance. Based on this, the solution provided in the present specification can perform the business policy preview process as shown in fig. 8. The business strategy previewing process comprises the following steps: step 802, receiving a preview request of a user for a business strategy; step 804, generating preview content corresponding to the business strategy; step 806 provides the preview content to the user.
Wherein, the service policy may include a graph structure, a constraint condition and an action content, and step 804 may further include: substep 8042, generating a query graph according to the graph structure; sub-step 8044, generating preview content including query graph, constraints, and action content.
Referring to fig. 9, it is a schematic diagram of the effect of displaying the preview content corresponding to the business policy. The left part of fig. 9 shows the business policy, and the right part shows the preview content corresponding to the business policy. It should be noted that "Action" shown in the business policy may be a function name, and a Chinese name may be an Action. The Action function may be used for the user to compose Action content. The business strategy shows a graph structure written by a user by using a GraphStructure function, a constraint condition written by using a Rule function and Action contents written by using an Action function.
The preview content shown in fig. 9 includes composition, rule and action three parts. The composition part shows a query graph generated according to a graph structure in the business strategy, the rule part shows a constraint condition in the business strategy, and the action part shows action content in the business strategy.
By presenting the preview content shown in fig. 9 to the user, the user can have an intuitive feeling on the business strategy written by the user, and the user can conveniently sense whether the business strategy written by the user meets expectations or not in time.
In one embodiment, to further facilitate the user's perception of whether the business strategy he or she is composing is in anticipation, the element category names may be highlighted in the business strategy editing window and preview content as previously described.
With further reference to fig. 10, the present specification provides an embodiment of an input prompting apparatus combined with a map mode, which may be applied to a user device (such as the user device shown in fig. 1), or a map computing language editor software installed on the user device, and the like, and is not limited in detail herein. The target knowledge graph corresponding to the graph mode can relate to a plurality of elements, and the graph mode defines a plurality of category names of the elements.
As shown in fig. 10, the input presentation device 1000 incorporating the atlas model according to the present embodiment includes: a determination unit 1001, an acquisition unit 1002, and an output 1003. Wherein, the determining unit 1001 is configured to determine, in response to detecting a reference mark for an element class name input by a user in a process of writing a business policy by a user using a policy edit window associated with a target knowledge graph, a target element among the plurality of elements according to the reference mark; the acquisition unit 1002 is configured to acquire several category names of target elements from the map pattern as recommended contents; the output unit 1003 is configured to provide the recommended content to the user for the user to select a category name to be referred to from.
In some embodiments, a reference mark may be pre-associated with one of the plurality of elements; and the determining unit 1001 may be further configured to: and determining the related elements of the reference marks in the multiple elements as the target elements.
In some embodiments, the reference mark may be previously associated with a plurality of the above-described plurality of elements; and the determining unit 1001 may be further configured to: acquiring input content corresponding to the reference mark from the strategy editing window; and determining an element to which the input content belongs in the plurality of items, and determining the element as a target element.
In some embodiments, the various elements may include entities and relationships, and the reference mark may be pre-associated with the entities and relationships; and the determining unit 1001 may be further configured to: determining whether the input content includes a symbol representing a relationship; if the determination result is yes, determining that the input content belongs to the relationship; and if the determination result is negative, determining that the input content belongs to the entity.
In some embodiments, the plurality of elements may include an entity, and the target element may be an entity; and the obtaining unit 1002 may be further configured to: several entity class names are obtained from the graph mode.
In some embodiments, the plurality of elements may include entities and attributes, and the target element may be an attribute; the input content in the policy editing window corresponding to the reference mark may be a single entity instance; and the obtaining unit 1002 may be further configured to: acquiring an entity category name defined by a user aiming at the single entity instance from a strategy editing window; a number of attribute class names associated with the entity class name are obtained from the graph schema.
In some embodiments, the graph schema further defines an attribute value type corresponding to the attribute class name; and the obtaining unit 1002 may be further configured to: acquiring attribute numerical value types respectively corresponding to the attribute category names from a map mode; the recommended content may further include the acquired attribute value type.
In some embodiments, the plurality of elements may include entities and relationships, and the target element may be a relationship; the input content in the policy editing window corresponding to the reference mark may include a first entity instance and a second entity instance; and the obtaining unit 1002 may be further configured to: acquiring entity category names defined by a user aiming at a first entity instance and a second entity instance from a strategy editing window; a target relationship class name is obtained from the graph schema, which is simultaneously associated with the entity class names of the first entity instance and the second entity instance, respectively.
In some embodiments, the apparatus 1000 may further include: a receiving unit (not shown in the figure) configured to receive a user preview request for the business strategy after the user writes the completion business strategy; a generating unit (not shown in the figure) configured to generate preview content corresponding to the business strategy; the output unit 1003 may be further configured to: the preview content is provided to the user.
In some embodiments, a business policy may include graph structures, constraints, and action content; and the generating unit may be further configured to: generating a query graph according to the graph structure; preview content is generated that includes the query graph, constraints, and action content.
In the embodiment of the apparatus corresponding to fig. 10, the detailed processing of each unit and the technical effect thereof can refer to the related description of the method embodiment in the foregoing, and are not repeated herein.
The present specification further provides a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed in a computer, the computer program causes the computer to execute the input prompting method in combination with the atlas mode, which is respectively described in the above method embodiments.
The embodiment of the present specification further provides a computing device, which includes a memory and a processor, where the memory stores executable code, and the processor executes the executable code to implement the input prompting method in combination with the map mode, which is respectively described in the above method embodiments.
The present specification further provides a computer program, wherein when the computer program is executed in a computer, the computer program causes the computer to execute the input prompting method in combination with the atlas pattern, which is respectively described in the above method embodiments.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in the embodiments disclosed herein may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The above-mentioned embodiments, objects, technical solutions and advantages of the embodiments disclosed in the present specification are further described in detail, it should be understood that the above-mentioned embodiments are only specific embodiments of the embodiments disclosed in the present specification, and are not intended to limit the scope of the embodiments disclosed in the present specification, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the embodiments disclosed in the present specification should be included in the scope of the embodiments disclosed in the present specification.

Claims (13)

1. An input prompting method combined with a graph mode, wherein a target knowledge graph corresponding to the graph mode relates to a plurality of elements, and the graph mode defines a plurality of category names of the elements respectively, and the method comprises the following steps:
in response to detecting a reference mark input by the user for an element class name during the process of writing a business strategy by a user by utilizing a strategy editing window associated with the target knowledge graph, determining a target element in the plurality of elements according to the reference mark;
acquiring a plurality of category names of the target elements from the map mode to serve as recommended contents;
and providing the recommended content to the user for the user to select the category name to be referred to.
2. The method of claim 1, wherein the reference mark is pre-associated with one of the plurality of elements; and
the determining a target element among the plurality of elements according to the reference mark comprises:
and determining the element associated with the reference mark in the multiple elements as a target element.
3. The method of claim 1, wherein the reference mark is pre-associated with a plurality of the plurality of elements; and
the determining a target element among the plurality of elements according to the reference mark comprises:
acquiring input content corresponding to the reference mark from the strategy editing window;
and determining an element to which the input content belongs in the plurality of items, and determining the element as a target element.
4. The method of claim 3, wherein the plurality of elements include entities and relationships to which the reference markers are pre-associated; and
the determining the element to which the input content belongs in the plurality of items comprises:
determining whether the input content includes a symbol representing a relationship;
if the input content belongs to the relationship, determining that the input content belongs to the relationship;
and if the determination result is negative, determining that the input content belongs to the entity.
5. The method of claim 1, wherein the plurality of elements includes an entity, the target element is an entity; and
the obtaining of the category names of the target elements from the map mode includes:
and acquiring a plurality of entity class names from the map mode.
6. The method of claim 1, wherein the plurality of elements include entities and attributes, and the target element is an attribute; the input content corresponding to the reference mark in the strategy editing window is a single entity instance; and
the obtaining of the category names of the target elements from the map mode includes:
obtaining an entity category name defined by the user for the single entity instance from the policy editing window;
obtaining a number of attribute class names associated with the entity class names from the graph schema.
7. The method of claim 6, wherein the graph schema further defines an attribute value type corresponding to an attribute class name; and
before the providing of the recommended content to the user, further comprising:
acquiring attribute numerical value types respectively corresponding to the attribute category names from the map mode;
the recommended content further includes the acquired attribute value type.
8. The method of claim 1, wherein the plurality of elements include entities and relationships, the target element is a relationship; the input content corresponding to the reference mark in the strategy editing window comprises a first entity instance and a second entity instance; and
the obtaining of the category names of the target elements from the map mode includes:
acquiring entity category names which are respectively defined by the user aiming at the first entity instance and the second entity instance from the strategy editing window;
obtaining a target relationship class name from the graph schema, which is simultaneously associated with the entity class names of the first entity instance and the second entity instance.
9. The method of any of claims 1-8, wherein after the user composes the business policy, further comprising:
receiving a preview request of the user for the business strategy;
generating preview content corresponding to the business strategy;
providing the preview content to the user.
10. The method of claim 9, wherein the business policies include graph structures, constraints, and action content; and
the generating of the preview content corresponding to the service policy includes:
generating a query graph according to the graph structure;
generating preview content including the query graph, the constraint condition and the action content.
11. An input prompting device incorporating a graph schema, a target knowledge graph corresponding to the graph schema relating to a plurality of elements, the graph schema defining a plurality of category names for each of the plurality of elements, the device comprising:
a determining unit configured to, in response to detecting a reference mark for an element class name input by a user in a process of writing a business policy by a user using a policy edit window associated with the target knowledge graph, determine a target element among the plurality of elements according to the reference mark;
an acquisition unit configured to acquire, as recommended content, several category names of the target elements from the map pattern;
an output unit configured to provide the recommended content to the user for the user to select a category name to be referred to from.
12. A computer-readable storage medium, on which a computer program is stored, wherein the computer program causes a computer to carry out the method of any one of claims 1-10 when the computer program is carried out in the computer.
13. A computing device comprising a memory and a processor, wherein the memory has stored therein executable code that when executed by the processor implements the method of any of claims 1-10.
CN202210403926.XA 2022-04-18 2022-04-18 Input prompting method and device combining map mode Active CN114547345B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210403926.XA CN114547345B (en) 2022-04-18 2022-04-18 Input prompting method and device combining map mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210403926.XA CN114547345B (en) 2022-04-18 2022-04-18 Input prompting method and device combining map mode

Publications (2)

Publication Number Publication Date
CN114547345A CN114547345A (en) 2022-05-27
CN114547345B true CN114547345B (en) 2022-07-19

Family

ID=81667135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210403926.XA Active CN114547345B (en) 2022-04-18 2022-04-18 Input prompting method and device combining map mode

Country Status (1)

Country Link
CN (1) CN114547345B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281699A (en) * 2014-10-15 2015-01-14 百度在线网络技术(北京)有限公司 Search recommending method and device
CN107239153A (en) * 2017-05-26 2017-10-10 北京小米移动软件有限公司 Input through keyboard reminding method and device
CN107451036A (en) * 2017-06-19 2017-12-08 阿里巴巴集团控股有限公司 Input reminding method, device and equipment
CN110765247A (en) * 2019-09-30 2020-02-07 支付宝(杭州)信息技术有限公司 Input prompting method and device for question-answering robot
CN111580683A (en) * 2019-02-15 2020-08-25 北京搜狗科技发展有限公司 Input method and device
CN111656384A (en) * 2019-01-15 2020-09-11 京东方科技集团股份有限公司 Medicine recommendation method, device, medium and electronic equipment
WO2021189971A1 (en) * 2020-10-26 2021-09-30 平安科技(深圳)有限公司 Medical plan recommendation system and method based on knowledge graph representation learning
CN113986241A (en) * 2021-10-25 2022-01-28 北京元年科技股份有限公司 Configuration method and device of business rules based on knowledge graph

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8826396B2 (en) * 2007-12-12 2014-09-02 Wells Fargo Bank, N.A. Password reset system
US10606895B2 (en) * 2017-07-12 2020-03-31 Microsoft Technology Licensing, Llc Multiple entity aware typeahead in searches
CN109976743B (en) * 2019-04-09 2022-07-12 苏州浪潮智能科技有限公司 Code prompting method and device
CN111291161A (en) * 2020-02-20 2020-06-16 平安科技(深圳)有限公司 Legal case knowledge graph query method, device, equipment and storage medium
CN113177125B (en) * 2021-06-30 2021-09-03 中国电子技术标准化研究院 Standard knowledge graph construction and standard query method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281699A (en) * 2014-10-15 2015-01-14 百度在线网络技术(北京)有限公司 Search recommending method and device
CN107239153A (en) * 2017-05-26 2017-10-10 北京小米移动软件有限公司 Input through keyboard reminding method and device
CN107451036A (en) * 2017-06-19 2017-12-08 阿里巴巴集团控股有限公司 Input reminding method, device and equipment
CN111656384A (en) * 2019-01-15 2020-09-11 京东方科技集团股份有限公司 Medicine recommendation method, device, medium and electronic equipment
CN111580683A (en) * 2019-02-15 2020-08-25 北京搜狗科技发展有限公司 Input method and device
CN110765247A (en) * 2019-09-30 2020-02-07 支付宝(杭州)信息技术有限公司 Input prompting method and device for question-answering robot
WO2021189971A1 (en) * 2020-10-26 2021-09-30 平安科技(深圳)有限公司 Medical plan recommendation system and method based on knowledge graph representation learning
CN113986241A (en) * 2021-10-25 2022-01-28 北京元年科技股份有限公司 Configuration method and device of business rules based on knowledge graph

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
信息输入的提示及快速录入;张振宇等;《电大理工》;20000531;第3-4页 *

Also Published As

Publication number Publication date
CN114547345A (en) 2022-05-27

Similar Documents

Publication Publication Date Title
US10417319B1 (en) Real-time document sharing and editing
CN106682219B (en) Associated document acquisition method and device
US7805451B2 (en) Ontology-integration-position specifying apparatus, ontology-integration supporting method, and computer program product
US9483452B2 (en) Generating document content from application data
CN111654749B (en) Video data production method and device, electronic equipment and computer readable medium
US20120185794A1 (en) Method and Apparatus for Managing Buttons on Taskbar
CN112905441A (en) Test case generation method, test method, device and equipment
US20060129590A1 (en) Method and medium for managing data
CN113518187B (en) Video editing method and device
CN113485909B (en) Test method, test device, computing equipment and medium
CN109558118B (en) Method, apparatus, device and storage medium for creating native components of a smart applet
US20060026137A1 (en) Method and apparatus for integrating a list of selected data entries into a spreadsheet
CN114547345B (en) Input prompting method and device combining map mode
CN112052157B (en) Method, device and system for constructing test message
US10176152B2 (en) Method and system for assigning a content item as a link target to a managed object
US10528229B2 (en) Mandatory comment on action or modification
EP3807780A1 (en) Binding query scope to directory attributes
CN116302240A (en) Information display method and device, computer equipment and storage medium
CN112685678B (en) Page configuration method, page configuration device, computer equipment and storage medium
US20080155559A1 (en) Portal eventing directory
US20210397652A1 (en) Method and apparatus for producing video material, electronic device and computer readable medium
CN113254315A (en) Reporting method of embedded point information, embedded point method, device, medium and electronic equipment
CN116304117B (en) Data processing method, system and storage medium for acquiring text information
US11860910B2 (en) Information provision system, method, and program
CN117170737A (en) Page element positioning path determining method, device, equipment and storage medium

Legal Events

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