File recommendation method and device, equipment and medium

By automatically recommending rule configuration files, the problem of low validation efficiency of rule files in the existing technology is solved, the search efficiency and accuracy are improved, and the correctness of rule files is ensured.

CN119045906APending Publication Date: 2024-11-29JOINT WARFARE COLLEGE NAT DEFENSE UNIV OF THE CHINESE PEOPLES LIBERATION ARMY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410977304.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

In the prior art, the legality verification of rule files requires users to manually find rule configuration files, which leads to inefficiency, especially when non-professional personnel operate, which will cause project process lag.

Method used

Provide a file recommendation method and device, by obtaining the basic data in the rule file, automatically recommending the target rule configuration file associated with the rule file, reducing user search time and improving accuracy.

Benefits of technology

It improves the search efficiency and processing efficiency of rule configuration files, reduces user operation time, and ensures the legality and correctness of rule files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119045906A_ABST
    Figure CN119045906A_ABST
Patent Text Reader

Abstract

The invention discloses a file recommendation method and device, equipment and a medium, and the method comprises the steps: obtaining a rule file in response to a first operation received at a first interface, the basic data is related to a key value pair structure used for describing rule variables, a key value pair structure used for describing rule operators or a key value pair structure used for describing rule actions; in response to a second operation input for the rule file, recommending a target rule configuration file associated with the rule file according to the basic data, the target rule configuration file at least comprises a first key value used for describing a key value pair structure of a rule variable, a second key value used for describing a key value pair structure of a rule operator and a third key value used for describing a key value pair structure of a rule action in the rule file. According to the embodiment provided by the invention, the target configuration file associated with the rule file is recommended according to the basic data of the rule file, so that the time of searching the rule configuration file by a user is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a file recommendation method, device, equipment and medium. Background Art

[0002] The rule engine evolved from the inference engine and is a component embedded in the application. It separates business decisions from application code and writes business decisions using predefined semantic modules.

[0003] After obtaining the rule file, it is usually impossible to determine the legitimacy of the rule data in the rule file. If you want to obtain the rule configuration file to verify the legitimacy of the rule data, you need to manually search each rule configuration file in the rule configuration file database. This method requires the user to manually judge the correlation between the rule file and the rule configuration file. If the user is not a professional, it will cause the project progress to lag behind.

[0004] Therefore, it is urgent to propose a file recommendation solution to solve the above problems. Summary of the invention

[0005] In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a file recommendation method, apparatus, device and medium to improve the efficiency of file search.

[0006] In a first aspect, an embodiment of the present invention provides a file recommendation method, the method comprising: in response to a first operation received on a first interface, obtaining a rule file, the rule file comprising at least a plurality of basic data, the basic data being related to a key-value pair structure for describing rule variables, a key-value pair structure for describing rule operators, or a key-value pair structure for describing rule actions; in response to a second operation input to the rule file, recommending a target rule configuration file associated with the rule file based on the basic data, the target rule configuration file comprising at least a first key value in the key-value pair structure for describing rule variables, a second key value for describing the key-value pair structure of the rule operator, and a third key value in the key-value pair structure for describing rule actions.

[0007] In a second aspect, an embodiment of the present invention provides a file recommendation device, the device comprising: a rule file acquisition unit, for acquiring a rule file in response to a first operation received on a first interface, the rule file comprising a plurality of basic data, the basic data being related to a key-value pair structure for describing a rule variable, a key-value pair structure for describing a rule operator, or a key-value pair structure for describing a rule action;

[0008] The configuration file recommendation unit, in response to a second operation input to the rule file, recommends a target rule configuration file associated with the rule file according to basic data, the target rule configuration file comprising at least a first key value in the rule file for describing a key-value pair structure of a rule variable, a second key value in the key-value pair structure for describing a rule operator, and a third key value in the key-value pair structure for describing a rule action.

[0009] In a third aspect, an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the embodiment of the present invention when executing the program.

[0010] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method described in the embodiment of the present invention is implemented.

[0011] The beneficial effects brought by the technical solution provided by the present invention are:

[0012] The present invention provides a file recommendation method, apparatus, device and medium, the method comprising: in response to a first operation received on a first interface, obtaining a rule file, the rule file at least comprising a plurality of basic data, the basic data being related to a key-value pair structure for describing a rule variable, a key-value pair structure for describing a rule operator or a key-value pair structure for describing a rule action; in response to a second operation inputted to the rule file, recommending a target rule configuration file associated with the rule file according to the basic data, the target rule configuration file at least comprising a first key value for describing the key-value pair structure of the rule variable, a second key value for describing the key-value pair structure of the rule operator and a third key value for describing the key-value pair structure of the rule action in the rule file. The technical solution provided by the present invention recommends a target rule configuration file associated with the rule file through basic data, reduces the time for users to search for the rule configuration file associated with the rule file, and improves the accuracy and processing efficiency of the rule configuration file recommendation. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0014] Figure 1 A schematic diagram showing an application scenario of the file recommendation method provided by an embodiment of the present invention is shown;

[0015] Figure 2A schematic diagram of a process flow of a file recommendation method 200 provided in an embodiment of the present invention is shown;

[0016] Figure 3 A schematic diagram showing a flow chart of a file recommendation method 300 provided in yet another embodiment of the present invention;

[0017] Figure 4 A schematic diagram of a process flow of a file recommendation method 400 provided in an embodiment of the present invention is shown;

[0018] Figure 5 A schematic diagram showing a flow chart of a file recommendation method 500 provided in yet another embodiment of the present invention;

[0019] Figure 6 A schematic diagram of an interface for obtaining a rule configuration file provided by an embodiment of the present invention is shown;

[0020] Figure 7 A schematic diagram of an interface for obtaining a rule configuration file provided by another embodiment of the present invention is shown;

[0021] Figure 8 A schematic diagram of an interface for obtaining a rule configuration file provided by yet another embodiment of the present invention is shown;

[0022] Fig. 9 A schematic diagram showing the structure of a rule configuration file provided by an embodiment of the present invention is shown;

[0023] Fig.10 A schematic diagram showing the structure of a rule file provided by an embodiment of the present invention is shown;

[0024] Fig.11 An example rule file and an example rule configuration file provided by an embodiment of the present invention are shown;

[0025] Fig.12 It shows a schematic diagram of the structure of a data display device 1200 provided in an embodiment of the present invention;

[0026] Fig.13 A schematic structural diagram of an electronic device 1300 provided in an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the relevant inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the invention are shown in the accompanying drawings.

[0028] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0029] like Figure 1 As shown, in the operation interface, after the user obtains the rule file, the user needs to manually click the control for obtaining the configuration file. In response to the user's click operation, the processor can obtain multiple rule configuration files. The user selects the rule configuration files one by one in the local disk, just like searching for a text file, and then clicks to open. After confirming the rule configuration file, it is added to the rule configuration file list. Then, when editing the rule file, the user selects the rule configuration file to be used from the rule configuration file list. The user manually clicks on each rule configuration file, which causes the user to waste a lot of operation time in searching for the rule configuration file that matches the rule file. At the same time, the user may not know which rule configuration file the currently opened rule file should be associated with.

[0030] Therefore, the present invention proposes a file recommendation solution, which can automatically recommend rule configuration files associated with rule files to users, improve the search efficiency of rule matching files, and reduce operation time.

[0031] In order to more clearly understand the inventive concept provided by the present invention, Figure 2-11 The data display method proposed by the present invention is described.

[0032] Please refer to Figure 2 , Figure 2 The flowchart of the data display method 200 provided by the embodiment of the present invention is shown, and the method can be implemented by a data processing device. The method includes the following steps:

[0033] Step S201, in response to a first operation received on a first interface, obtain a rule file, wherein the rule file includes at least a plurality of basic data, wherein the basic data is related to a key-value pair structure for describing rule variables, a key-value pair structure for describing rule operators, or a key-value pair structure for describing rule actions.

[0034] Step S202, in response to a second operation input to the rule file, recommending a target rule configuration file associated with the rule file based on the basic data, the target rule configuration file including at least a first key value in the rule file for describing a key-value pair structure of rule variables, a second key value for describing a key-value pair structure of rule operators, and a third key value for describing a key-value pair structure of rule actions.

[0035] In the above steps, rule configuration files are the core components in the rule engine. They define the business logic and decision-making process, enabling the rule engine to automatically perform specific tasks. The specific format and content of the rule configuration file depends on the rule engine used, but they usually contain elements such as conditions, actions, and priorities. The rule configuration file may contain the following: rule definition, data model, dependencies, type settings, etc. Among them, the rule definition is the core part of the rule, including name, description, condition, action, etc.; data model, if the rule depends on a specific data structure, these models will also be included in the configuration file; dependencies, the rules may depend on other rules or resources, and these dependencies will also be recorded; type settings, various types of rules, such as validity period, priority, etc., will also be exported.

[0036] The rule configuration file is also written according to the semantic modules of rule tags, rule variables, rule operators and rule actions predefined by the rule engine. Its function is to store the legal rule variables, legal rule operators and legal rule actions that meet the current application scenario. Fig. 9 As shown, the rule configuration file can be divided into three parts: rule variable library, rule operator library and rule action library, which are used to store legal rule variables, rule operators and rule actions respectively.

[0037] The rule configuration file is based on the basic data related to the task, such as the environment, equipment, and equipment status involved in the application scenario. These basic data are described using standardized standards.

[0038] The description of the application scenario provides the simulation system with information such as the initial state, target plan, and development trend. The rule configuration file is a file that describes the application scenario in a standardized language. The rule variables in the rule configuration file are used to describe the parameters of the relevant execution subjects in the application scenario. The rule operator is used to describe the relationship between the conditional expressions. The rule action is the action behavior triggered when the conditional expression is met.

[0039] The rule file includes multiple nested data structures, each of which is used to describe a rule for processing a certain business in an application scenario. Each rule can include a condition set and an action set used to describe the rule. The dictionary structure in the nested data structure can be used to describe the condition set or action set in the rule. The dictionary structure can be used to describe the condition expression, and the key-value pair structure in the dictionary structure can be used to describe the rule variables, rule operators, and trigger rule values ​​in the condition expression. The dictionary structure can also be used to describe the action set, and the key-value pair structure in the dictionary structure can be used to describe the action execution parameters and actions in the action set.

[0040] The rule file can be understood as follows:

[0041] (1) A rule file contains several rule blocks, and one rule block corresponds to one rule.

[0042] (2) A rule block consists of the following two parts:

[0043] a) Condition part: used to store the conditions required to achieve the rule. It is described using rule variables and rule operators.

[0044] b) Action part: used to store the actions to be executed after the conditions are met. Use rule actions to describe.

[0045] In the rule file, basic data is stored in the form of a key-value pair structure. The basic data includes but is not limited to rule variables, rule operators, rule variable values, rule actions and rule tags, condition tags, etc.

[0046] like Fig.10 As shown, there is a hierarchical relationship between the rule file, the rule block, the conditions and actions that make up the rule block, the basic data used to describe the conditions, and the basic data used to describe the actions. This hierarchical relationship can be called a content hierarchy. The overall structure of the rule file is described as an inclusion relationship from top to bottom, that is, the rule file includes multiple rule blocks, each rule block includes a condition part and a rule part, the condition part includes multiple conditions, the action part includes multiple actions, each condition includes a rule variable, a rule operator, and a rule variable value, and each action is an operation that needs to be performed after the rule is triggered.

[0047] In the first interface, a first operation input by a user is received, and the first operation is an operation for obtaining a rule file, for example, clicking an open control in the first interface, and in response to the click operation, obtaining a plurality of locally stored rule files. Alternatively, clicking other controls in the first interface for obtaining a rule file, and in response to the click operation, obtaining a rule file from other program interfaces.

[0048] Then, a second operation inputted by the user for the rule file is received, where the second operation is an operation for opening the rule file, for example, a click operation is inputted for the rule file, and in response to the click operation, the background processor recommends a target rule configuration file associated with the rule file according to the basic data contained in the rule file.

[0049] The basic data contained in the rule file includes but is not limited to the first key value in the rule file used to describe the key-value pair structure of the rule variable, the second key value used to describe the key-value pair structure of the rule operator, and the third key value used to describe the key-value pair structure of the rule action.

[0050] For example, in a rule file, the key-value pair structure used to describe a rule variable is "name":"variable_1", and the first key value is variable_1.

[0051] To recommend a target rule configuration file based on the basic data contained in the rule file, you can open a rule file first, and then get the basic data from the rule file. For example, first traverse the conditions part of the basic data, add the values ​​corresponding to the name key-value pairs and operator key-value pairs in the conditions part to the basic data list, or add them to the variable_list and operator_list respectively; then traverse the actions part of the basic data, and add the values ​​corresponding to the action key-value pairs in the actions part to the basic data list, or action_list. Then, traverse the pre-stored rule configuration files, and compare whether the data in the basic data list is a subset of the variable, operator, and action of the rule configuration file; if the basic data list is a subset of the rule configuration file, mark the current rule configuration file as legal, and add the current rule configuration file name to the legal rule configuration file list, or the legal basic data list. Traverse the pre-stored rule configuration files until all rule configuration files are compared and processed.

[0052] In some embodiments, the variable_list, operator_list and action_list can be compared to see if they are subsets of the variable, operator and action of the rule configuration file. If the variable_list, operator_list and action_list are subsets of the rule configuration file, the current rule configuration file is marked as legal, and the current rule configuration file name is added to the legal rule configuration file list, or the legal basic data list.

[0053] In some embodiments, the relationship between the basic data list and the rule configuration file can also be evaluated by calculating the similarity between the elements in the basic data list and the elements of the variable set, operator set and action set contained in the rule configuration file, thereby determining whether the basic data is included in the rule configuration file.

[0054] In some cases, the rule file itself may contain illegal basic data. If the user cannot accurately find the rule configuration file that matches the rule file, it will be difficult for the user to discover the illegal basic data of the rule file. The embodiment provided by the present invention automatically matches and searches for the rule configuration file based on the basic data of the rule file, which can effectively improve the search efficiency of the rule configuration file and reduce the operation time.

[0055] Please refer to Figure 3 , Figure 3 The flowchart of a file recommendation method 300 provided by an embodiment of the present invention is shown. The method can be implemented by a file recommendation device. The method includes the following steps:

[0056] Step S301, in response to a first operation received on a first interface, obtain a rule file, wherein the rule file includes at least a plurality of basic data, wherein the basic data is related to a key-value pair structure for describing a rule variable, a key-value pair structure for describing a rule operator, or a key-value pair structure for describing a rule action.

[0057] In the above steps, the first interface may be an interface including a function of obtaining a rule file, such as a main interface of a rule engine. The first interface may also include a control for creating a new rule file.

[0058] A first operation input by a user is received on the first interface. The first operation may be a click operation for obtaining a rule file. In response to the first operation, the processor obtains the rule file.

[0059] Step S302, in response to the second operation received in the first interface, extract a basic data list from the rule file, the basic data list including a first key value for describing a key-value pair structure of a rule variable, a second key value for describing a key-value pair structure of a rule operator, or a third key value for describing a key-value pair structure of a rule action.

[0060] In the above steps, a second operation input by the user is received on the first interface, and the second operation may be a click operation inputted to a control for obtaining a rule configuration file. In response to the second operation, the processor obtains the rule configuration file associated with the rule file according to the basic data of the rule file, and pushes it to the user in the form of a recommendation list interface, such as Figure 6 As shown. In the recommendation list interface, the rule configuration file with the highest matching degree with the rule file is highlighted. The user can click on the rule configuration file with the highest matching degree to view the content of the rule configuration file.

[0061] In some embodiments, a prompt message corresponding to the rule configuration file is generated in the recommendation list interface to prompt the similarity value between the rule configuration file and the rule file. Since the rule file itself may contain illegal variables, the legality of its basic data needs to be verified by matching the rule configuration file.

[0062] In some embodiments, the second operation may be a click operation for opening a rule file. In response to the first operation, the processor may extract basic data from the rule file and add the key values ​​in the basic data to a basic data list, or add the key values ​​in the basic data to a list variable_list corresponding to the rule variables, a list operator_list corresponding to the rule operators, and a list action_list corresponding to the rule actions according to the name meaning of the basic data.

[0063] Step S303: Compare the rule configuration files in the pre-stored rule configuration file database with the basic data list to obtain a target rule configuration file associated with the rule file.

[0064] The target rule configuration file includes at least a first key value for describing a key-value pair structure of a rule variable in the rule file, a second key value for describing a key-value pair structure of a rule operator, and a third key value for describing a key-value pair structure of a rule action.

[0065] Step S304, loading and displaying a recommendation list interface, the recommendation list interface including a target rule configuration file associated with the rule file.

[0066] Step S305: highlighting the rule configuration file with the highest similarity value among the rule configuration files associated with the rule file in the recommendation list interface.

[0067] In the above steps, a second operation input by the user is received on the first interface, and the second operation may be a click operation inputted to a control for obtaining a rule configuration file. In response to the second operation, the processor obtains the rule configuration file associated with the rule file according to the basic data of the rule file, and pushes it to the user in the form of a recommendation list interface, such as Figure 6 As shown. In the recommendation list interface, the rule configuration file with the highest similarity value to the rule file is highlighted. The user can click on the rule configuration file with the highest matching degree to view the content of the rule configuration file.

[0068] In some embodiments, a prompt message corresponding to the rule configuration file is generated in the recommendation list interface to prompt the similarity value between the rule configuration file and the rule file. Since the rule file itself may contain illegal variables, the legality of its basic data needs to be verified by matching the rule configuration file.

[0069] In some embodiments, in response to the second operation, after opening the rule file, it is determined whether there is a recommendation list associated with the rule file. If so, the target rule configuration file is highlighted according to the similarity value with the rule file in the recommendation list. Otherwise, a recommendation list is generated by traversing the rule configuration file database based on the basic data, and then sorted according to the similarity value between the rule file and the rule configuration file to be recommended, and the target rule configuration file with a high similarity value is highlighted for user selection.

[0070] In response to the second operation, a rule configuration file that matches the rule file is automatically recommended to the user, which reduces the user's operation of clicking the control to obtain the rule configuration file again, saves the user's time in manually screening the rule configuration file, and avoids the problem of non-professionals being unfamiliar with the rule configuration file and incorrectly associating it.

[0071] By comparing the basic data list with the rule configuration files in the pre-stored rule configuration file database, the rule configuration file database is searched and traversed to avoid missing related rule configuration files. The rule configuration files are automatically screened according to the comparison results, which effectively saves the time of screening the rule configuration files.

[0072] Furthermore, by sorting the similarity values ​​between the basic data in the rule file and the rule configuration files, the rule configuration files with high similarity values ​​are highlighted.

[0073] The file recommendation method proposed in the present invention can determine the similarity between the rule file and the recommended matching rule configuration file based on the similarity calculation between the basic data in the rule file and the rule configuration file, and can also highlight the different positions of the two, and then through manual confirmation, improve the efficiency of rule configuration file recommendation, and at the same time improve the legitimacy of the data, ensuring the accuracy of the rule file operation.

[0074] Please refer to Figure 4 , Figure 4 The flowchart of a file recommendation method 400 provided by an embodiment of the present invention is shown. The method can be implemented by a data processing device. The method includes the following steps:

[0075] Step S401, in response to a first operation received on a first interface, obtain a rule file, wherein the rule file includes at least a plurality of basic data, wherein the basic data is related to a key-value pair structure for describing a rule variable, a key-value pair structure for describing a rule operator, or a key-value pair structure for describing a rule action.

[0076] In the above steps, the first interface may be an interface including a function of obtaining a rule file, such as a main interface of a rule engine. The first interface may also include a control for creating a new rule file.

[0077] A first operation input by a user is received on the first interface. The first operation may be a click operation for obtaining a rule file. In response to the first operation, the processor obtains the rule file.

[0078] Step S402, in response to the second operation received in the first interface, extracting a basic data list from the rule file, the basic data list including a first key value for describing a key-value pair structure of a rule variable, a second key value for describing a key-value pair structure of a rule operator, or a third key value for describing a key-value pair structure of a rule action.

[0079] In some embodiments, a second operation is received from the user on the first interface, and the second operation may be a click operation for opening a rule file. In response to the second operation, the processor may extract basic data from the rule file and add key values ​​in the basic data to a basic data list, or add the key values ​​to a list variable_list corresponding to the rule variables, a list operator_list corresponding to the rule operators, and a list action_list corresponding to the rule actions according to the name meaning of the basic data.

[0080] Step S403: Compare the rule configuration files in the pre-stored rule configuration file database with the basic data list to obtain a target rule configuration file associated with the rule file.

[0081] The target rule configuration file includes at least a first key value for describing a key-value pair structure of a rule variable in the rule file, a second key value for describing a key-value pair structure of a rule operator, and a third key value for describing a key-value pair structure of a rule action.

[0082] Step S404: when it is determined that the similarity between the target rule configuration file and the basic data is the first threshold, a graphical interface corresponding to the rule file is loaded and displayed.

[0083] In the above steps, a graphical interface is created based on a tree structure corresponding to the rule file, and is used to display multiple nested data of the rule file as interface elements. The tree structure is converted from multiple nested data, and the node hierarchy of the tree structure corresponds one-to-one to the content hierarchy of the rule file. The data loaded by the leaf nodes of the tree structure correspond to the key-value pairs used to describe the rule variables, or the key-value pairs used to describe the rule operators, or the key-value pairs used to describe the rule actions.

[0084] Step S405 , when it is determined that the similarity between the target rule configuration file and the basic data is a second threshold, a graphical interface and a recommendation list interface corresponding to the rule file are loaded and displayed, and the recommendation list interface includes the target rule configuration file associated with the rule file.

[0085] In the above steps, after obtaining the rule file, the user enters a second operation for the rule file, the second operation is an operation for viewing the rule file, and the second operation may be a click operation, or an operation of right-clicking and selecting to open.

[0086] In response to the second operation, the processor obtains a basic data list of the rule file, and then compares the basic data list with the rule profile in a pre-stored rule profile database to obtain a target rule profile associated with the rule file. It can also include traversing each rule profile in the rule profile database, constructing a legal basic data list corresponding to each rule profile, the legal basic data list including a first sub-list corresponding to a legal rule variable, a second sub-list corresponding to a legal rule operator, and a third sub-list corresponding to a legal rule action; respectively calculating the similarity value between the basic data list and each legal basic data list; when it is determined that the similarity value reaches a threshold, adding the target rule profile whose similarity reaches the threshold to the recommendation list, the recommendation list including the target rule profile associated with the rule file.

[0087] like Fig.11 As shown, select a sample rule file from the existing rule file library and open it. Obtain the rule data (i.e., basic data) from the sample rule file and assign it to a basic data list A. Then traverse the basic data list A to obtain the variable_list, operator_list, and action_list, respectively:

[0088] variable_list=["variable_1","variable_3"],

[0089] operator_list=["equal_to"],

[0090] action_list=["action1","action2"]

[0091] Next, the existing rule configuration files are traversed to the sample rule configuration file A. From the sample rule configuration file A, a list of variables, operators, and actions is obtained.

[0092] variable=["variable_1","variable_2","variable_3","variable_4"]

[0093] operator=["equal_to","greater_than","less_than","not_equal_to"]

[0094] action=["action1","action2","action3"]

[0095] Determine whether variable_list, operator_list, and action_list are subsets of variable, operator, and action in example rule configuration file A.

[0096] If variable_list is a subset of the list corresponding to the variable in the example rule configuration file A, operator_list is a subset of the list corresponding to the operator in the example rule configuration file A, and action_list is a subset of the list corresponding to the action in the example rule configuration file A, then the similarity between the example rule configuration file and the example rule configuration file A is set to 100%, and the first threshold is pre-set to 100%. When it is determined that the similarity between the basic data of the target rule configuration file and the rule file is the first threshold, a graphical interface for displaying the rule file is loaded and displayed. Figure 7 As shown, after clicking the Rules1.json file, in response to the click operation, the user can be shown Figure 7 The graphical interface is shown below.

[0097] Load and display the graphical interface created according to the rule file, such as Figure 7 The graphical interface includes interactive components, the first area is used to display basic data in the rule file, and the second area is used to display optional content associated with the basic data.

[0098] After responding to a second operation input to the rule file, the method includes: converting multiple nested data into a tree structure, the data loaded in the leaf nodes of the tree structure correspond to key-value pairs used to describe rule variables, or key-value pairs used to describe rule operators, or key-value pairs used to describe rule actions, and the node hierarchy of the tree structure corresponds one-to-one to the content hierarchy of the rule file; determining a graphical interface template based on the tree structure; and in the graphical interface template, creating and adding interactive components corresponding to the leaf nodes of the tree structure.

[0099] According to the data structure type and data priority of the current data, a child node connected to the current node is created, and the current node and the child node are assigned values ​​until all the data in the rule file are traversed, which may include: determining the data structure type of the data to be processed of the current data, and the data to be processed is part of the data in the current data; when it is determined that the data structure type is an array, the data to be processed includes the array name and the elements in the array, taking the current node as the parent node, and according to the data structure type and data priority of the elements in the array, constructing at least one first child node connected to the current node, loading the array name into the current node, traversing the elements in the array, and determining the data content loaded into the first child node according to the data structure type and data priority of the elements in the array; or, when it is determined that the data structure type is an object When the data to be processed includes the object name and the content included in the object, the current node is taken as the parent node, and at least one second child node connected to the current node is created according to the data structure type and data priority of the content included in the object, the object name pair is loaded into the current node, the content included in the object is traversed, and the data content loaded into the second child node is determined according to the data structure type and data priority of the content included in the object; or, when the data structure type is determined to be a basic key-value pair, the data to be processed includes a key name string and a key value, if the priority corresponding to the key name string is high, the current node is taken as the parent node, and at least one third child node connected to the current node is created, the key value of the basic key-value pair with a high priority is loaded into the current node, and the key values ​​of other basic key-value pairs are loaded into the third child node respectively.

[0100] A graphical interface, also known as a graphical user interface (GUI), is an interface for people to interact with electronic devices.

[0101] Interface elements are controls or areas used to represent the content loaded in a node of a tree structure. For example, the main body of an interface is a panel, which contains static text, editable text, buttons, etc. Static text is usually used to display fixed labels. For example, a text directory can use static text.

[0102] Create and add interactive components corresponding to leaf nodes of the tree structure, including: adding listening operation events corresponding to the interactive components; creating control objects corresponding to the interactive components; extracting legal rule data associated with the type from the rule configuration file according to the type of basic data loaded in the leaf nodes; loading the legal rule data associated with the type into the optional options content of the control object.

[0103] The graphical interface created according to the rule file is a graphical interface template determined according to the tree structure, and in the graphical interface template, the optional options of the interactive components corresponding to the leaf nodes of the tree structure are updated according to the rule configuration file. When the rule configuration file changes, the optional options in the interactive components will be updated accordingly.

[0104] In some embodiments, a prompt message may be generated to prompt that the current rule configuration file has a high matching rate with the current rule file, and that the basic data in the rule file are all legal data.

[0105] When it is determined that the similarity between the target rule configuration file and the basic data of the rule file is the first threshold, the example rule configuration file A is added to the recommendation list, and while loading and displaying the graphical interface corresponding to the rule file, a prompt message is generated in the graphical interface, and the prompt message is used to prompt the user that the rule configuration file currently used is the example rule configuration file A.

[0106] Similarly, traverse to the sample rule configuration file B. From the sample rule configuration file B, obtain the corresponding list of variable, operator, and action.

[0107] variable=["variable_2","variable_3","variable_4"]

[0108] operator=["equal_to","greater_than","less_than","not_equal_to"]

[0109] action=["action1","action2","action3"]

[0110] Among them, variable_list is not a subset of the list corresponding to variable in example rule configuration file B, operator_list is a subset of the list corresponding to operator in example rule configuration file B, action_list is a subset of the list corresponding to action in example rule configuration file B, then the similarity between the exemplary rule file and example rule configuration file B is set to 90%, the first threshold is pre-set to 100%, and the second threshold is pre-set to 90%.

[0111] At this time, the similarity between the exemplary rule file and the example rule configuration file B is 90%, that is, when it is determined that the similarity between the target rule configuration file and the basic data of the rule file is the second threshold, the example rule configuration file B is added to the recommendation list, and then the recommendation list interface is loaded and displayed, which includes the target rule configuration file associated with the rule file, such as Figure 7 The interface shown on the left.

[0112] Since the variable names appearing in the example rule file and the basic data in the example rule configuration file B are highly similar, the example rule configuration file B and the first list corresponding to the legal rule variables it contains are highlighted to prompt the user that the variable name in the name field in rule file 1 does not match the example rule configuration file B.

[0113] Similarly, when traversing all rule configuration files, when the similarity value between the rule configuration file and the basic data meets the condition of the second threshold, if there are multiple rule configuration files, multiple target rule configuration files associated with the rule file can be displayed in the recommendation list interface, and the user can manually click to filter the matching target rule configuration files again, which effectively reduces the screening range of the rule configuration files and improves the efficiency of selecting the rule configuration files. If the similarity values ​​corresponding to the multiple target rule configuration files that meet the second threshold condition are different, they can be sorted by size, and the rule configuration file with the highest similarity value among the rule configuration files associated with the rule file can be highlighted in the recommendation list interface, so that the user can quickly determine the difference data between the rule configuration files and the rule files.

[0114] For example, the description of action combination in the rule file is as follows

[0115]

[0116] The two actions, self_fac_hand_attack_598 and self_fac_set_radar, are system-defined and usable actions, that is, legal rule action data stored in the rule configuration file associated with the rule file. When editing, the user writes an action such as self_fac_hand_attack_1598. The rule action is compared with the legal rule action, and its similarity value is 99%. Assuming that the similarity between the remaining basic data in the rule file and the legal rule data in the rule configuration file to be matched is 100%, the similarity value between the rule file and the rule configuration file is 99% based on the weighted average. According to the condition that the similarity value reaches the second threshold, it can be determined that the rule configuration file is the target rule configuration file associated with the rule file.

[0117] The rule configuration files can be screened by the similarity value, thus reducing the time for users to manually screen the rule configuration files.

[0118] In some embodiments, the rule configuration file with the highest similarity value among the rule configuration files associated with the rule file is highlighted in the recommendation list interface.

[0119] The file recommendation method proposed in the present invention can determine the similarity between the rule file and the recommended matching rule configuration file based on the similarity calculation between the basic data in the rule file and the rule configuration file, and can also highlight the different positions of the two, and then through manual confirmation, improve the efficiency of rule configuration file recommendation while also improving the legitimacy of the data and ensuring the accuracy of rule file operation.

[0120] Please refer to Figure 5 , Figure 5 A schematic flow chart of a data processing method 500 provided by another embodiment of the present invention is shown, and the method can be implemented by a data display device. The method comprises the following steps:

[0121] Step S501, in response to a first operation received on a first interface, obtain a rule file, wherein the rule file includes at least a plurality of basic data, wherein the basic data is related to a key-value pair structure for describing a rule variable, a key-value pair structure for describing a rule operator, or a key-value pair structure for describing a rule action.

[0122] Step S502, in response to the second operation received on the first interface, load and display a graphical interface corresponding to the rule file, the graphical interface including a graphical sub-interface and a configuration file display sub-interface, the graphical sub-interface is used to display multiple nested data of the rule file as interface elements according to a tree structure, and the configuration file display sub-interface is used to display a list of legal basic data of the rule configuration file associated with the rule file.

[0123] Among them, the tree structure is converted from multiple nested data, the node hierarchy of the tree structure corresponds one-to-one to the content hierarchy of the rule file, and the data loaded by the leaf nodes of the tree structure corresponds to the key-value pairs used to describe the rule variables, or the key-value pairs used to describe the rule operators, or the key-value pairs used to describe the rule actions.

[0124] The legal basic data list includes a first sublist corresponding to legal rule variables, a second sublist corresponding to legal rule operators, and a third sublist corresponding to legal rule actions.

[0125] Step S503, when there is mismatched basic data between the rule file and the rule configuration file associated with the rule file, highlight the target basic data in the graphical sub-interface and the sub-list area corresponding to the target basic data in the configuration file display sub-interface.

[0126] In the above steps, the target basic data is determined to be different from the legal rule data in the rule configuration file after comparing the basic data of the rule file with the rule configuration file.

[0127] like Fig.11 As shown in the figure, assuming that there is no sample rule configuration file A, first traverse to the sample rule configuration file B. From the sample rule configuration file B, obtain the corresponding list of variable, operator, and action.

[0128] variable=["variable_2","variable_3","variable_4"]

[0129] operator=["equal_to","greater_than","less_than","not_equal_to"]

[0130] action=["action1","action2","action3"]

[0131] Among them, variable_list is not a subset of the list corresponding to variable in example rule configuration file B, operator_list is a subset of the list corresponding to operator in example rule configuration file B, action_list is a subset of the list corresponding to action in example rule configuration file B, then the similarity between the exemplary rule file and example rule configuration file B is set to 90%, the first threshold is pre-set to 100%, and the second threshold is pre-set to 90%.

[0132] At this time, the similarity between the exemplary rule file and the example rule configuration file B is 90%, that is, when it is determined that the similarity between the target rule configuration file and the basic data of the rule file is the second threshold, the example rule configuration file B is added to the recommendation list, and then the graphical interface corresponding to the rule file is loaded and displayed. Figure 8As shown, the graphical interface includes a graphical sub-interface and a recommendation list sub-interface, wherein the graphical sub-interface area is used to display a graphical interface created according to a tree structure, the graphical interface is used to display multiple nested data of a rule file as interface elements, the tree structure is converted from multiple nested data, the node hierarchy of the tree structure corresponds one-to-one to the content hierarchy of the rule file, and the data loaded by the leaf nodes of the tree structure corresponds to the key-value pairs used to describe the rule variables, or the key-value pairs used to describe the rule operators, or the key-value pairs used to describe the rule actions. The recommendation list sub-interface is used to display the legal basic data list of the rule configuration file associated with the rule file, the legal basic data list includes a first sub-list corresponding to the legal rule variables, a second sub-list corresponding to the legal rule operators, and a third sub-list corresponding to the legal rule actions.

[0133] When the file recommendation processing device determines that there is mismatched basic data between the rule file and the rule configuration file associated with the rule file, a list of legal rule data contained in the rule configuration file having the highest similarity value with the rule file is highlighted. Figure 8 As shown, the first sublist is a list related to legal rule variables, the second sublist is a list related to legal rule operators, and the third sublist is a list related to legal rule actions. After the user manually confirms that the example rule configuration file B is the target rule configuration file associated with the example rule file, the user can click the control to confirm the association. In response to the click operation, Figure 8 In the illustrated graphical sub-interface, elements of the first sub-list are added as selectable option contents in the second area of ​​the interactive component associated with the basic data.

[0134] In some embodiments, a rule configuration file that matches the rule file can be selected by manual confirmation, for example, clicking OK to select example rule configuration file B as the target rule configuration file associated with the example rule file. In response to clicking OK, the rule variable is highlighted in the graphical interface to prompt the user that the rule variable does not match the rule configuration file. Alternatively, the unmatched rule data and the sublist corresponding to the rule data are highlighted in the graphical interface. For example, Figure 8Variable_1 and the first sublist are shown, which are used to prompt the user that there is a mismatch between the rule data variable_1 and the first sublist in the example rule configuration file B, and the example rule configuration file B should be the target rule configuration file associated with the rule file. The user can obtain the elements of the first sublist by clicking on the first sublist. After the user confirms that the example rule configuration file B is the target rule configuration file associated with the rule file, the elements in the first sublist are loaded into the second area of ​​the interactive control where variable_1 is located as optional options. The user can directly complete the modification by clicking on the optional options in the second area.

[0135] When the user wishes to modify the basic data of the rule file displayed in the graphical interface, the user can modify it by operating the interactive components associated with the basic data. Figure 8 As shown, after receiving a click operation input by the user on the first area, the processor displays the second area to the user in response to the click operation.

[0136] A click operation is received for any one of the one or more selectable option contents contained in the displayed second area, and in response to the click operation, the text content displayed in the first area is modified to the selected option content. Then click Save to save the modified content to the rule file.

[0137] The file recommendation method proposed in the present invention automatically associates rule configuration files and, based on manual confirmation by the user, adds legal rule data to the interactive components in the graphical interface, thereby reducing the errors caused by manual operations of the user and improving the efficiency of data processing.

[0138] Please refer to Fig.12 , Fig.12 The structure diagram of a data display device 1200 provided by another embodiment of the present invention is shown. The device comprises:

[0139] A rule file acquisition unit 1201 is used to acquire a rule file in response to a first operation received on the first interface, where the rule file includes a plurality of basic data, where the basic data is related to a key-value pair structure for describing a rule variable, a key-value pair structure for describing a rule operator, or a key-value pair structure for describing a rule action;

[0140] The profile recommendation unit 1202, in response to a second operation input to the rule file, recommends a target rule profile associated with the rule file according to basic data, the target rule profile including at least a first key value in the rule file for describing a key-value pair structure of a rule variable, a second key value for describing a key-value pair structure of a rule operator, and a third key value for describing a key-value pair structure of a rule action.

[0141] Optionally, the profile recommendation unit 1202 is also used to: extract a basic data list from the rule file, the basic data list including a first key value for describing a key-value pair structure of a rule variable, a second key value for describing a key-value pair structure of a rule operator, or a third key value for describing a key-value pair structure of a rule action; and compare the basic data list with a rule profile in a pre-stored rule profile database to obtain a target rule profile associated with the rule file.

[0142] Optionally, the profile recommendation unit 1202 is also used to: traverse each rule profile in the rule profile database, construct a legal basic data list corresponding to each rule profile, the legal basic data list includes a first sub-list corresponding to the legal rule variable, a second sub-list corresponding to the legal rule operator, and a third sub-list corresponding to the legal rule action; respectively calculate the similarity value between the basic data list and each legal basic data list; when it is determined that the similarity value reaches a threshold, add the target rule profile whose similarity reaches the threshold to the recommendation list, and the recommendation list includes the target rule profile associated with the rule file.

[0143] Optionally, the device also includes a data loading and display unit for loading and displaying a recommendation list interface, the recommendation list interface including a target rule configuration file associated with the rule file; and highlighting the rule configuration file with the highest similarity value among the rule configuration files associated with the rule file in the recommendation list interface.

[0144] Optionally, the device also includes a data loading and display unit, which is used to load and display only a graphical interface corresponding to the rule file when it is determined that the similarity between the target rule configuration file and the basic data is a first threshold value, the graphical interface is created based on the tree structure corresponding to the rule file, and is used to display multiple nested data of the rule file as interface elements, the tree structure is converted from multiple nested data, the node hierarchy of the tree structure corresponds one-to-one to the content hierarchy of the rule file, and the data loaded by the leaf nodes of the tree structure corresponds to the key-value pairs used to describe the rule variables, or the key-value pairs used to describe the rule operators, or the key-value pairs used to describe the rule actions; when it is determined that the similarity between the target rule configuration file and the basic data is greater than or equal to the second threshold value, the graphical interface and the recommendation list interface corresponding to the rule file are loaded and displayed, and the recommendation list interface includes the target rule configuration file associated with the rule file.

[0145] Optionally, the device also includes a data loading and display unit, which is used to load and display a graphical interface corresponding to the rule file, the graphical interface including a graphical sub-interface and a configuration file display sub-interface, the graphical interface is used to display multiple nested data of the rule file as interface elements in a tree structure, the tree structure is converted from multiple nested data, the node hierarchy of the tree structure corresponds one-to-one to the content hierarchy of the rule file, and the data loaded by the leaf nodes of the tree structure corresponds to the key-value pairs used to describe the rule variables, or the key-value pairs used to describe the rule operators, or the key-value pairs used to describe the rule actions; the configuration file display sub-interface is used to display a list of legal basic data of the rule configuration file associated with the rule file, the legal basic data list includes a first sub-list corresponding to the legal rule variables, a second sub-list corresponding to the legal rule operators, and a third sub-list corresponding to the legal rule actions.

[0146] Optionally, the device also includes a data loading and display unit, which is used to highlight the target basic data in the graphical sub-interface and the sub-list area corresponding to the target basic data in the configuration file display sub-interface when it is determined that there is mismatched basic data between the rule file and the rule configuration file associated with the rule file.

[0147] The file recommendation device proposed in the present invention automatically associates rule configuration files and, based on manual confirmation by the user, adds legal rule data to interactive components in a graphical interface, thereby reducing errors caused by manual operations by the user and improving the efficiency of data processing.

[0148] Please refer to Fig.13 , Fig.13 The schematic diagram of the structure of the electronic device 1300 provided by the embodiment of the present invention is shown. The electronic device can be a terminal such as a computer device or a desktop computer. Fig.13 It does not limit the structure of the electronic device. Fig.13 As shown, the electronic device at least includes a memory 1301 and a processor 1302. For example, the electronic device may also include Fig.13 More or fewer components (such as network interfaces, display devices, etc.) are shown. An embodiment of the present invention also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the above-mentioned Figure 2-Figure 5 Describe the method.

[0149] In particular, according to the embodiment provided by the present invention, the above reference flow chart Figure 2-Figure 5The described process can be implemented as a computer software program. For example, the embodiments provided by the present invention include a computer program product, which includes a computer program carried on a machine-readable medium, and the computer program contains program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit (CPU), the above-mentioned functions defined in the system of the present invention are executed.

[0150] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0151] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the methods and computer program products described in various embodiments provided by the present invention. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the aforementioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0152] The units or modules involved in the embodiments described in the present invention may be implemented by software or hardware. The units or modules described may also be provided in a processor. For example, they may be described as: a processor including a rule file acquisition unit and a configuration file recommendation unit. The names of these units or modules do not, in certain cases, constitute limitations on the units or modules themselves. For example, the rule file acquisition unit may also be described as "a unit for acquiring a rule file in response to a first operation received on a first interface."

[0153] As another aspect, an embodiment of the present invention further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment; or may exist independently and not be installed in the electronic device. The above computer-readable storage medium stores one or more programs, and when the above programs are used by one or more processors to execute the file recommendation method described in the present invention.

[0154] The above description is only a preferred embodiment of the present invention and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present invention is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present invention (but not limited to) to form a technical solution.

Claims

1. A file recommendation method, It is characterized in that The method includes: In response to a first operation received on the first interface, a rule file is acquired, the rule file comprising at least a plurality of basic data, the basic data being related to a key-value pair structure for describing a rule variable, a key-value pair structure for describing a rule operator, or a key-value pair structure for describing a rule action; In response to a second operation input to the rule file, a target rule configuration file associated with the rule file is recommended based on the basic data, the target rule configuration file including at least a first key value in the rule file for describing a key-value pair structure of rule variables, a second key value for describing a key-value pair structure of rule operators, and a third key value for describing a key-value pair structure of rule actions.

2. The method according to claim 1, It is characterized in that Recommending a target rule configuration file associated with the rule file according to the basic data includes: Extracting a basic data list from the rule file, the basic data list including a first key value for describing a key-value pair structure of a rule variable, a second key value for describing a key-value pair structure of a rule operator, or a third key value for describing a key-value pair structure of a rule action; The basic data list is compared with the rule configuration files in the pre-stored rule configuration file database to obtain a target rule configuration file associated with the rule file.

3. The method according to claim 2, It is characterized in that Comparing the basic data list with the rule configuration files in the pre-stored rule configuration file database to obtain a target rule configuration file associated with the rule file includes: Traversing each rule profile in the rule profile database, constructing a legal basic data list corresponding to each rule profile, wherein the legal basic data list includes a first sublist corresponding to legal rule variables, a second sublist corresponding to legal rule operators, and a third sublist corresponding to legal rule actions; respectively calculating the similarity value between the basic data list and each of the legal basic data lists; When it is determined that the similarity value reaches a threshold, the target rule configuration file whose similarity reaches the threshold is added to a recommendation list, and the recommendation list includes the target rule configuration file associated with the rule file.

4. The method according to claim 1, It is characterized in that The method further comprises: Loading and displaying a recommendation list interface, the recommendation list interface including a target rule configuration file associated with the rule file; The rule configuration file with the highest similarity value among the rule configuration files associated with the rule file is highlighted in the recommendation list interface.

5. The method according to claim 1, It is characterized in that The method further includes: When it is determined that the similarity between the target rule configuration file and the basic data is a first threshold, only a graphical interface corresponding to the rule file is loaded and displayed, the graphical interface is created according to a tree structure corresponding to the rule file, and is used to display multiple nested data of the rule file as interface elements, the tree structure is converted from the multiple nested data, the node hierarchy of the tree structure corresponds one-to-one to the content hierarchy of the rule file, and the data loaded in the leaf nodes of the tree structure correspond to key-value pairs used to describe rule variables, or key-value pairs used to describe rule operators, or key-value pairs used to describe rule actions; When it is determined that the similarity between the target rule configuration file and the basic data is greater than or equal to a second threshold, a graphical interface and a recommendation list interface corresponding to the rule file are loaded and displayed, and the recommendation list interface includes the target rule configuration file associated with the rule file.

6. The method according to claim 1, It is characterized in that The method includes: Load and display a graphical interface corresponding to the rule file, the graphical interface including a graphical sub-interface and a configuration file display sub-interface, the graphical interface being used to display multiple nested data of the rule file as interface elements in a tree structure, the tree structure being converted from the multiple nested data, the node hierarchy of the tree structure corresponding one-to-one to the content hierarchy of the rule file, the data loaded by the leaf nodes of the tree structure corresponding to key-value pairs used to describe rule variables, or key-value pairs used to describe rule operators, or key-value pairs used to describe rule actions; the configuration file display sub-interface being used to display a legal basic data list of a rule configuration file associated with the rule file, the legal basic data list including a first sub-list corresponding to legal rule variables, a second sub-list corresponding to legal rule operators, and a third sub-list corresponding to legal rule actions.

7. The method according to claim 6, It is characterized in that The method further includes: When it is determined that there is mismatched basic data between the rule file and the rule configuration file associated with the rule file, the target basic data in the graphical sub-interface and the sub-list area corresponding to the target basic data in the configuration file display sub-interface are highlighted.

8. A file recommendation device, It is characterized in that The device includes: A rule file acquisition unit, configured to acquire a rule file in response to a first operation received on the first interface, wherein the rule file includes a plurality of basic data, wherein the basic data is related to a key-value pair structure for describing a rule variable, a key-value pair structure for describing a rule operator, or a key-value pair structure for describing a rule action; A profile recommendation unit, in response to a second operation input to the rule file, recommends a target rule profile associated with the rule file according to the basic data, the target rule profile comprising at least a first key value in the rule file for describing a key-value pair structure of a rule variable, a second key value for describing a key-value pair structure of a rule operator, and a third key value for describing a key-value pair structure of a rule action.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method according to any one of claims 1 to 7.