A multi-supplier information aggregation method, system and program product
By using the rule engine to update and orchestrate aggregation rules in the aggregation platform, the problem of downtime in the adjustment of aggregation rules in the existing technology is solved, and unified integration of multi-supplier information and efficient resource optimization are achieved.
Patent Information
- Application Number
- CN202411747256.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-04-08
AI Technical Summary
The prior art requires downtime operations when adjusting the multi-supplier information aggregation rules, which affects service continuity, and is inefficient in adjustments and cannot adapt to market changes and business needs in a timely manner.
By introducing a rule engine into the aggregation platform, obtaining the supply information and preset aggregation rules of multiple supplier platforms, updating the configuration information of the rule engine to obtain target aggregation rules, orchestrating the rule chain for information aggregation, and real-time adjustment of the aggregation rules without shutting down.
It realizes the unified integration of information scattered among different suppliers, breaks the isolation of supplier information, improves the optimization of information resources, enhances the convenience of information search and use, and promptly adapts to business needs and market changes.
Smart Images

Figure CN119784016A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing technology, and in particular to a multi-supplier information aggregation method, system and program product. Background Art
[0002] In the current energy supply market, especially in the field of refueling and charging services, there are multiple suppliers. Each supplier has its own platform to register and manage gas station or power station information. The same gas station or power station may have different name ID values and other information when registered with different suppliers. Therefore, after the aggregation platform obtains this information from different suppliers, it needs to identify whether it is the same gas station or power station, and merge the gas station or power station information from different suppliers into one gas station or power station information and display it to users.
[0003] Currently, when trying to aggregate information from gas stations or power stations of different suppliers, there is often a lack of a set of flexible rules and mechanisms. Once the aggregation rules are determined, adjustments may require downtime, which will affect service continuity, and the rule adjustment process is inefficient and unable to adapt to market changes and business needs in a timely manner. Summary of the invention
[0004] In view of this, the present invention provides a multi-supplier information aggregation method, system and program product to solve the problem in the prior art that when adjusting aggregation rules, downtime is required, which affects the continuity of services.
[0005] In a first aspect, the present invention provides a method for aggregating information from multiple suppliers, which is used in an aggregation platform, wherein the aggregation platform is connected to multiple supplier platforms, and the aggregation platform includes a rule engine; the method includes:
[0006] Obtain supply information and multiple preset aggregation rules from multiple supplier platforms, where the supply information is gas station information or power station information; use the rule engine to update multiple preset aggregation rules to obtain multiple target aggregation rules; based on the multiple target aggregation rules and supply information, use the rule engine to arrange the rules of the supply business to obtain multiple target rule chains; aggregate the supply information of multiple supplier platforms based on the multiple target rule chains to obtain aggregate information.
[0007] The multi-supplier information aggregation method provided by the present invention obtains the supply information of multiple supplier platforms through the aggregation platform, breaking the state of information isolation between the suppliers. Further, by using the rule engine to update multiple preset aggregation rules, different aggregation rules can be adjusted in real time without stopping the machine according to actual business needs, market changes or newly emerging operating conditions. Further, on the basis of multiple target aggregation rules, the rule engine is used to arrange the supply business rules, so that different types of supply businesses can be processed according to their own adaptive rule logic. Finally, based on the aggregation of multiple target rule chains, the information that meets the rule requirements can be screened out for integration, and those redundant or irrelevant information that does not meet the conditions can be removed, effectively optimizing information resources. Therefore, by implementing the present invention, by integrating the supply information of multiple supplier platforms, and by using the rule engine to update the preset aggregation rules, arrange the rule chain, and aggregate information based on the rule chain, the effect of unifying and integrating the relevant information scattered in different suppliers is achieved, breaking the situation of independent information of each supplier, allowing the supply information to be orderly aggregated, facilitating subsequent unified management and utilization, and providing users with a more comprehensive and integrated service information reference, improving the convenience of information search and use.
[0008] In an optional implementation, a rule engine is used to update multiple preset aggregation rules to obtain multiple target aggregation rules, including:
[0009] The configuration information of the rule engine is updated to obtain an updated rule engine; and the multiple preset aggregation rules are updated using the updated rule engine to obtain multiple target aggregation rules.
[0010] The multi-supplier information aggregation method provided by the present invention updates the aggregation rules by updating the configuration information of the rule engine, and can adjust different aggregation rules in real time without stopping the machine according to actual business needs, market changes or newly emerging operating conditions.
[0011] In an optional implementation, based on multiple target aggregation rules and supply information, a rule engine is used to arrange the supply business rules to obtain multiple target rule chains, including:
[0012] Determine the supply business based on the supply information; and arrange the supply business rules using the rule engine based on multiple target aggregation rules to obtain multiple target rule chains.
[0013] The multi-supplier information aggregation method provided by the present invention determines the supply business through supply information and then arranges the rule chain, thereby ensuring a high degree of adaptability between the target rule chain and the specific business.
[0014] In an optional implementation, determining the provisioning service based on the provisioning information includes:
[0015] When the supply information is gas station information, the supply service is determined to be a refueling service; when the supply information is power station information, the supply service is determined to be a charging service.
[0016] The multi-supplier information aggregation method provided by the present invention clearly divides the supply business into refueling business or charging business according to the supply information (gas station information or power station information), which can make the definition of business type very clear and provide support for the arrangement of subsequent rule chains.
[0017] In an optional implementation, based on multiple target aggregation rules, a rule engine is used to arrange the supply business rules to obtain multiple target rule chains, including:
[0018] Based on multiple target aggregation rules, a rule engine is used to arrange rules for the refueling service to obtain multiple target rule chains; and / or, based on multiple target aggregation rules, a rule engine is used to arrange rules for the charging service to obtain multiple target rule chains.
[0019] The multi-supplier information aggregation method provided by the present invention arranges rules for the refueling business and / or charging business in the supply business respectively, refines the application mode of the rule engine under different business types, can make the rule chain more in line with the actual situation of each business, and helps to more accurately screen out information that meets the business requirements when aggregating the supply information, providing support for subsequently improving the rationality and accuracy of information aggregation.
[0020] In an optional implementation, supply information of multiple supplier platforms is aggregated based on multiple target rule chains to obtain aggregate information, including:
[0021] Determine whether the supply information of each supplier platform satisfies multiple target rule chains; when the supply information of each supplier platform satisfies multiple target rule chains, aggregate the supply information of each supplier platform using multiple target rule chains to obtain aggregated information.
[0022] The multi-supplier information aggregation method provided by the present invention first determines whether the supply information of each supplier platform satisfies multiple target rule chains. If so, information aggregation is performed according to the multiple target rule chains. This can ensure that only the supply information that meets the established rule requirements will be aggregated together, avoiding unreasonable or erroneous data aggregation, thereby ensuring the quality of the aggregated information, so that the aggregated information finally obtained is all strictly rule-checked, compliant with business logic and valuable content, thereby improving the effectiveness and availability of the aggregated information.
[0023] In an optional implementation, after obtaining supply information of multiple supplier platforms and multiple preset aggregation rules, the method further includes: based on the multiple preset aggregation rules and supply information, using a rule engine to orchestrate the supply business rules to obtain multiple target rule chains.
[0024] In an optional implementation, the aggregation platform further includes a display device; the method further includes: displaying the aggregated information through the display device.
[0025] The multi-supplier information aggregation method provided by the present invention can intuitively present the aggregated information to the user by displaying the aggregated information through a display device, thereby facilitating the user to quickly view the integrated gas station or power station related information, thereby enhancing the convenience of the user in obtaining information and improving the user experience.
[0026] In a second aspect, the present invention provides a multi-supplier information aggregation system for use in a gas station or a power station; the system comprises: a plurality of supplier platforms and an aggregation platform, the aggregation platform comprising a rule engine and a display device;
[0027] Multiple supplier platforms are used to obtain supply information of gas stations or power stations and send the supply information to an aggregation platform; a rule engine is used to obtain multiple preset aggregation rules and update the multiple preset aggregation rules to obtain multiple target aggregation rules; an aggregation platform is used to execute the multiple supplier information aggregation method of any one of claims 1 to 7.
[0028] The multi-supplier information aggregation system provided by the present invention can adjust different aggregation rules in real time without stopping the system through a rule engine. Furthermore, it realizes the effect of unifying and integrating the relevant information scattered among different suppliers through an aggregation platform, breaking the situation where the information of each supplier is independent, allowing the relevant data of gas stations and power stations to be aggregated in an orderly manner, facilitating subsequent unified management and utilization, and providing users with a more comprehensive and integrated service information reference, thereby improving the convenience of information search and use.
[0029] In a third aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the multi-supplier information aggregation method of the first aspect or any corresponding embodiment thereof.
[0030] In a fourth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the multi-supplier information aggregation method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0032] Figure 1 is a structural block diagram of a multi-supplier information aggregation system according to an embodiment of the present invention;
[0033] Figure 2 is a schematic flow chart of a multi-supplier information aggregation method according to an embodiment of the present invention;
[0034] Figure 3 is a flow chart of another multi-supplier information aggregation method according to an embodiment of the present invention;
[0035] Figure 4 is a flow chart of another multi-supplier information aggregation method according to an embodiment of the present invention;
[0036] Figure 5 It is a flowchart of a multi-supply gas station aggregation method based on an algorithm and rule engine technology according to an embodiment of the present invention;
[0037] Figure 6 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0039] The embodiment of the present invention provides a method for aggregating information from multiple suppliers, which updates multiple preset aggregation rules through a rule engine to achieve the effect of adjusting different aggregation rules in real time without stopping the system.
[0040] According to an embodiment of the present invention, an embodiment of a multi-supplier information aggregation method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0041] In this embodiment, a multi-supplier information aggregation method is provided, which can be used for example Figure 1 The aggregation platform 12 is shown, and the aggregation platform 12 is connected to multiple supplier platforms 11. Further, the aggregation platform 12 includes a rule engine 121.
[0042] Figure 2 is a flowchart of a multi-supplier information aggregation method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0043] Step S201, obtaining supply information of multiple supplier platforms and multiple preset aggregation rules.
[0044] The supply information may be gas station information or power station information.
[0045] Multiple preset aggregation rules can include:
[0046] a. The coordinates of different oil / power stations of suppliers are within 100 meters;
[0047] b. The coordinates of different oil / power stations of suppliers are within 200 meters;
[0048] c. The addresses of oil / power stations of different suppliers are the same;
[0049] d. The names of oil / power stations from different suppliers are the same;
[0050] e. The total number of charging guns / fueling guns from different suppliers is equal;
[0051] f. The ID values of charging guns / fueling guns from different suppliers are inclusive (a includes b or b includes a);
[0052] g. The ID values of charging guns / fueling guns from different suppliers are equal.
[0053] Specifically, the aggregation platform 12 can establish a stable connection channel with each supplier platform 11 through a network interface and communication protocol (such as HTTP, TCP / IP, etc.). For example, for the supplier platform of an oil company, it can be connected by configuring the corresponding API interface in accordance with the agreed authorization method and data transmission format; for the supplier platform of charging services, it is similar to ensure that the aggregation platform 12 can establish a data interaction link with different charging operator platforms.
[0054] Furthermore, a plurality of supplier platforms 11 may be connected to different gas stations or power stations respectively, and store gas station information or power station information corresponding to different gas stations or power stations.
[0055] Therefore, the aggregation platform 12 can send a data acquisition request to the supplier platform 11 and obtain the corresponding gas station information or power station information. The gas station information may include the gas station name, geographical location coordinates, number of gas pumps, business hours, oil type and price, etc.; the power station information may include the power station name, coordinates, number of charging guns, charging power, supported charging protocols, charging standards, etc.
[0056] Furthermore, multiple preset aggregation rules may be stored in a configuration file of the rule engine 121. These configuration files may be in common text formats, such as .ini, .properties, or custom text formats. For example, in a .ini file, a rule may be stored in the form of "rule name = rule content", such as "Rule 1 = different supplier oil / power station coordinates are within 100 meters".
[0057] Furthermore, multiple preset aggregation rules can also be stored in the database of the rule engine 121. The table structure in the database can be designed to include fields such as rule number, rule content, rule type (used to distinguish between refueling business rules and charging business rules, etc.). For example, in a "rules" table in a MySQL database, the "rule_id" field is used to uniquely identify the rule, and the "rule_content" field stores the specific content of the rule, such as "the id values of charging guns / refueling guns from different suppliers are equal."
[0058] Furthermore, when the aggregation platform 12 starts or initializes the rule engine 121, it can obtain multiple preset aggregation rules in the configuration file of the rule engine 121 through a file reading operation, or it can establish a connection with the database storing rules in the rule engine 121 through database connection technology, and obtain the corresponding multiple preset aggregation rules from the database table by executing SQL query statements.
[0059] Step S202: using a rule engine to update multiple preset aggregation rules to obtain multiple target aggregation rules.
[0060] Among them, the rule engine represents a component embedded in the application that can separate business rules from application code and use predefined semantic modules to write business decision rules. These rules are usually described in a way that is easy to understand and modify, such as using if-then statements.
[0061] Furthermore, in this embodiment, the rule engine 121 can be used to define multiple preset aggregation rules, so multiple preset aggregation rules can be updated and multiple updated target aggregation rules can be obtained through the rule engine 121. Therefore, different aggregation rules can be adjusted in real time without stopping the system through the rule engine 121.
[0062] Step S203, based on the multiple target aggregation rules and supply information, a rule engine is used to arrange the supply business rules to obtain multiple target rule chains.
[0063] Among them, rule arrangement refers to the process of combining multiple rules in a certain order and logic to form a rule chain for specific services (such as refueling services and charging services) to achieve specific business functions.
[0064] Specifically, the rule engine 121 is the basis for implementing rule chain orchestration.
[0065] Further, rule chaining relies on various target aggregation rules defined by the rule engine 121 .
[0066] Furthermore, the rule engine 121 provides rule elements that can be selected and combined, and the rule chain orchestration is to combine and sort these rule elements in a targeted manner according to business needs based on the rule engine.
[0067] Therefore, based on multiple target aggregation rules and supply information, the rule engine can be used to arrange the supply business rules and obtain corresponding multiple target rule chains.
[0068] Step S204, aggregating the supply information of multiple supplier platforms based on multiple target rule chains to obtain aggregated information.
[0069] Specifically, the supply information of multiple supplier platforms can be aggregated through the obtained multiple target rule chains, and the information that meets the requirements of the rules can be screened out for integration, and redundant or irrelevant information that does not meet the conditions can be removed, effectively optimizing information resources. Furthermore, the effect of unifying and integrating the relevant information scattered across different suppliers is achieved, breaking the situation of independent information from each supplier, providing users with a more comprehensive and integrated service information reference, and improving the convenience of information search and use.
[0070] The multi-supplier information aggregation method provided in this embodiment obtains the supply information of multiple supplier platforms through the aggregation platform, breaking the state of information isolation between each supplier. Further, by using the rule engine to update multiple preset aggregation rules, different aggregation rules can be adjusted in real time without stopping the machine according to actual business needs, market changes or newly emerging operating conditions. Further, on the basis of multiple target aggregation rules, the rule engine is used to arrange the rules of the supply business, so that different types of supply businesses can be processed according to their own adaptive rule logic. Finally, based on the aggregation of supply information based on multiple target rule chains, it is possible to screen out information that meets the requirements of the rules for integration, remove redundant or irrelevant information that does not meet the conditions, and effectively optimize information resources. Therefore, by implementing the present invention, by integrating the supply information of multiple supplier platforms, and using the rule engine to update the preset aggregation rules, arrange the rule chain, and aggregate information based on the rule chain, the effect of unifying and integrating the relevant information scattered in different suppliers is achieved, breaking the situation of independent information of each supplier, allowing the supply information to be orderly aggregated, facilitating subsequent unified management and utilization, and providing users with a more comprehensive and integrated service information reference, improving the convenience of information search and use.
[0071] In this embodiment, a multi-supplier information aggregation method is provided, which can be used for example Figure 1 The aggregation platform 12 is shown, and the aggregation platform 12 is connected to multiple supplier platforms 11. Further, the aggregation platform 12 includes a rule engine 121.
[0072] Figure 3 is a flowchart of a multi-supplier information aggregation method according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0073] Step S301, obtain the supply information of multiple supply platforms and multiple preset aggregation rules. Figure 2 Step S201 of the illustrated embodiment will not be described in detail here.
[0074] Step S302: using a rule engine to update multiple preset aggregation rules to obtain multiple target aggregation rules.
[0075] Specifically, the above step S302 includes:
[0076] Step S3021, update the configuration information of the rule engine to obtain an updated rule engine.
[0077] Specifically, the configuration information of the rule engine 121 may be stored in a local text format configuration file or a database table.
[0078] Furthermore, if the rule engine 121 can obtain corresponding configuration information from a local text format configuration file or a database table.
[0079] Furthermore, a modification action may be triggered and the configuration information of the rule engine 121 may be modified.
[0080] In an optional implementation, the modification action may be triggered in the following manner:
[0081] (1) Manual operation trigger by the administrator: The aggregation platform 12 usually provides the administrator with a special management background interface, on which there is an editing area for the rule engine configuration information. After the administrator logs in to the background and enters the corresponding configuration page, he can intuitively see each configuration item and its current value, and manually modify the value of the corresponding configuration item according to changes in business needs. For example, as the business expands, the priority of the rule needs to be adjusted. The administrator finds the input box corresponding to the rule_priority configuration item on the interface, changes the original value to a new appropriate value, and then clicks the Save button. The system will capture this modification operation and pass it to the relevant modules of the rule engine as a signal to trigger the configuration update.
[0082] (2) External system command triggering: In some complex integrated system environments, external business systems may send configuration update commands to the rule engine based on their own operational adjustments or the need to collaborate with other systems. For example, when a superior system related to energy supply scheduling finds that the configuration of the current gas station and power station aggregation rule engine does not conform to the new business scheduling strategy, it will send update commands containing new configuration parameters to the aggregation platform where the rule engine is located through a pre-defined interface (such as RESTful API, etc.). The rule engine will receive and identify these commands in real time to start the configuration update process.
[0083] (3) Based on the system's internal scheduled task trigger: In order to automatically adapt to changes in business at different time periods, the system can set up scheduled tasks to regularly check and update the rule engine configuration information. For example, set a configuration check task to run at 2 a.m. every Monday. This task will determine whether the current rule engine configuration needs to be adjusted based on the pre-set business indicator thresholds and rules. For example, if it is found that the number of newly registered gas stations has increased by more than a certain percentage in the past week, it may be necessary to adjust some configuration parameters for gas station information matching in the rule engine (such as coordinate distance weight, etc.). Once it is determined that the update conditions are met, the configuration update process is automatically triggered.
[0084] Further, taking the configuration information of the rule engine 121 stored in a local text format configuration file as an example, the modification process may include:
[0085] (1) Modify configuration data according to update requirements: Based on the update trigger signal received (whether it is manual operation by the administrator, external instructions, or timed task trigger), modify the corresponding configuration items in the configuration data structure in memory. For example, if you want to change the timeout setting for rule matching in the rule engine, find the corresponding rule_match_timeout configuration item and change its original value (such as 10 seconds) to a new value (assuming 15 seconds). For some complex configuration items, it may involve the reorganization of data structures or the adjustment of logical relationships. For example, if the order of rule execution is changed, it may be necessary to rearrange the rule execution sequence list corresponding to the configuration item to ensure that the configuration data accurately reflects the updated requirements.
[0086] (2) Write the updated configuration information back to the storage: After completing the modification of the configuration data in the memory, the updated configuration information needs to be written back to the storage location to achieve persistent storage, so as to ensure that the new configuration can be applied the next time the rule engine is started or in the subsequent operation. If it is a configuration file storage, the corresponding file write operation will be used (the appropriate function library is also selected according to the programming language) to rewrite the updated configuration data into the file in the original format (such as the .ini file format requirements), overwriting the original old configuration content. For database storage, the SQL update statement (for example, UPDATErule_engine_config SET config_value='new_value'WHERE config_key='rule_match_timeout') is executed through the database connection to update the configuration records in the corresponding table, so that the configuration information in the database is consistent with the modified configuration in the memory.
[0087] Furthermore, the rule engine related components may be reinitialized or restarted to obtain an updated rule engine.
[0088] Step S3022: Use the updated rule engine to update multiple preset aggregation rules to obtain multiple target aggregation rules.
[0089] Specifically, the updated rule engine can obtain the corresponding multiple preset aggregation rules from the corresponding rule storage location.
[0090] Furthermore, for each preset aggregation rule, the rule engine 121 can check and modify the rule content according to the new configuration information. For example, the new rule engine configuration adjusts the accuracy requirements for distance judgment in the rule. The original preset aggregation rule is expressed as "the coordinates of different suppliers' oil / power stations are within X meters". Now according to the new configuration, the calculation accuracy of this distance needs to be changed from an integer to one decimal place. Then the rule engine 121 will modify the part involving coordinate distance calculation and judgment in the corresponding rule expression, adjust the relevant numerical processing logic and the use of comparison operators, and ensure that the rule can perform distance judgment according to the new accuracy requirements.
[0091] For example, if the new configuration changes the combination logic of the rules, from the original "and" relationship (that is, multiple conditions need to be met at the same time) to an "or" relationship (only one of the multiple conditions needs to be met), the rule engine will replace the logical connectives in the preset aggregation rules, and adjust the judgment process and internal logical structure of the entire rule accordingly, and re-arrange the conditional branches and execution order of the rules to make them conform to the combination logic set by the new configuration.
[0092] Furthermore, if adjustments are made to the data source, data type, etc. of the preset aggregation rules, the rule engine 121 can also make corresponding adaptation modifications to the preset aggregation rules. For example, if the attribute data of a certain gas station referenced in the original rule is obtained from the supplier platform A, and the new configuration requires uniform acquisition from the integrated data source, the rule engine will modify the corresponding data acquisition path and calling method in the rule to ensure that the rule can correctly obtain and use the data for judgment after the update.
[0093] Furthermore, multiple updated target aggregation rules can be obtained through updating.
[0094] Step S303, based on the multiple target aggregation rules and supply information, the rule engine is used to arrange the supply business rules to obtain multiple target rule chains.
[0095] Specifically, the above step S303 includes:
[0096] Step S3031, determining the supply service based on the supply information.
[0097] Specifically, different supply information corresponds to different supply services.
[0098] In some optional implementations, the above step S3031 includes:
[0099] Step a1: when the supply information is gas station information, determine that the supply service is a gas station service.
[0100] Step a2: when the supply information is power station information, determine that the supply service is a charging service.
[0101] Specifically, if the supply information is gas station information, it means that the gas station provides the supply information to the supplier platform. Therefore, the corresponding supply service is the service that the gas station can provide, namely, the refueling service.
[0102] Furthermore, if the supply information is power station information, it means that it is the power station that provides the supply information to the supplier platform. Therefore, the corresponding supply service is the service that the power station can provide, namely, the charging service.
[0103] Step S3032: Based on the multiple target aggregation rules, the rule engine is used to arrange the supply business rules to obtain multiple target rule chains.
[0104] Specifically, different supply services correspond to different rule chains. Therefore, based on multiple target aggregation rules, the rule engine can be used to arrange the rules of the corresponding supply services, and multiple target rule chains corresponding to different supply services can be obtained.
[0105] In some optional embodiments, the above step S3032 includes: based on multiple target aggregation rules, using a rule engine to arrange rules for the refueling business to obtain multiple target rule chains; and / or, based on multiple target aggregation rules, using a rule engine to arrange rules for the charging business to obtain multiple target rule chains.
[0106] Specifically, if the supply service is a refueling service, the rule engine may be used to arrange rules for the refueling service and obtain multiple target rule chains corresponding to the refueling service.
[0107] Furthermore, if the supply service is a charging service, the rule engine can be used to arrange the rules for the charging service and obtain multiple target rule chains corresponding to the charging service.
[0108] In an optional implementation, the multiple target rule chains corresponding to the refueling service include:
[0109] (1) The coordinates of different suppliers’ gas stations are within 200 meters;
[0110] (2) The total number of fuel nozzles from different suppliers is equal.
[0111] The multiple target rule chains corresponding to the charging business include:
[0112] (1) The coordinates of power stations of different suppliers are within 200 meters;
[0113] (2) The ID values of charging guns from different suppliers are equal.
[0114] Step S304: Aggregate the supply information of multiple supplier platforms based on multiple target rule chains to obtain aggregated information. Figure 2 Step S204 of the illustrated embodiment will not be described in detail here.
[0115] The multi-supplier information aggregation method provided in this embodiment updates the aggregation rules by updating the configuration information of the rule engine, and can adjust different aggregation rules in real time without stopping the machine according to actual business needs, market changes or new operating conditions. Furthermore, the supply business is clearly divided into refueling business or charging business according to the supply information (gas station information or power station information), which can make the definition of business types very clear. Furthermore, the rules for the refueling business and / or charging business in the supply business are arranged separately, and the application method of the rule engine under different business types is refined, which can make the rule chain more in line with the actual situation of each business, and help to more accurately screen out information that meets business requirements when aggregating the supply information.
[0116] In this embodiment, a multi-supplier information aggregation method is provided, which can be used for example Figure 1 The aggregation platform 12 is shown, and the aggregation platform 12 is connected to multiple supplier platforms 11. Further, the aggregation platform 12 includes a rule engine 121 and a display device 122.
[0117] Figure 4 is a flowchart of a multi-supplier information aggregation method according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:
[0118] Step S401, obtain the supply information of multiple supply platforms and multiple preset aggregation rules. Figure 2 Step S201 of the illustrated embodiment will not be described in detail here.
[0119] Step S402: Use the rule engine to update multiple preset aggregation rules to obtain multiple target aggregation rules. Figure 3 Step S202 of the illustrated embodiment will not be described in detail here.
[0120] Step S403: Based on multiple target aggregation rules and supply information, the rule engine is used to arrange the supply business rules to obtain multiple target rule chains. Figure 3 Step S203 of the illustrated embodiment will not be described in detail here.
[0121] Step S404: Aggregate the supply information of multiple supplier platforms based on multiple target rule chains to obtain aggregated information.
[0122] Specifically, the above step S404 includes:
[0123] Step S4041, determining whether the supply information of each supplier platform satisfies multiple target rule chains.
[0124] Specifically, different supply services correspond to different multiple target rule chains. Therefore, before aggregating supply information, it is necessary to determine whether the supply information of each supplier platform satisfies the corresponding multiple target rule chains. For example, when the supply service is a refueling service, it is necessary to determine whether the corresponding multiple supply information, i.e., multiple gas station information, satisfies the following target rule chains at the same time:
[0125] (1) The coordinates of different suppliers’ gas stations are within 200 meters;
[0126] (2) The total number of fuel nozzles from different suppliers is equal.
[0127] Step S4042: When the supply information of each supplier platform satisfies multiple target rule chains, the supply information of each supplier platform is aggregated using the multiple target rule chains to obtain aggregated information.
[0128] Specifically, if the supply information of each supplier platform satisfies multiple target rule chains, the supply information of each supplier platform can be directly aggregated using the corresponding multiple target rule chains to obtain aggregated information. For example, if multiple gas station information simultaneously satisfies the target rule chain in step S4041, the multiple gas station information can be aggregated based on the target rule chain.
[0129] Step S405: display the aggregated information through a display device.
[0130] The display device 122 may be a display screen or the like.
[0131] Specifically, by displaying the obtained aggregate information on the corresponding display device 122, the aggregate information can be intuitively presented to the user, thereby facilitating the user to quickly view the integrated gas station or power station related information, thereby enhancing the convenience of the user in obtaining information and improving the user experience.
[0132] In an optional implementation, after the above step S401, the method may further include: based on multiple preset aggregation rules and supply information, using a rule engine to perform rule arrangement on the supply business to obtain multiple target rule chains.
[0133] Specifically, if the acquired multiple preset aggregation rules do not need to be updated, the rule engine 121 can be used to directly arrange the supply business rules according to the multiple preset aggregation rules and supply information and obtain multiple target rule chains. The specific process can refer to the rule arrangement process of step S303 above, which will not be repeated here.
[0134] The multi-supplier information aggregation method provided in this embodiment first determines whether the supply information of each supplier platform meets multiple target rule chains. If so, the information is aggregated according to the multiple target rule chains. This ensures that only the supply information that meets the established rule requirements will be aggregated together, avoiding unreasonable or erroneous data aggregation, thereby ensuring the quality of the aggregated information, so that the aggregated information finally obtained is strictly rule-verified, conforms to business logic and has valuable content, thereby improving the effectiveness and availability of the aggregated information. Furthermore, by displaying the aggregated information through a display device, the aggregated information can be intuitively presented to the user, thereby facilitating the user to quickly view the integrated gas station or power station related information, enhancing the convenience of the user in obtaining information, and improving the user experience.
[0135] In this embodiment, a multi-supplier information aggregation system is provided for use in a gas station or a power station; Figure 1 As shown, the aggregation platform 12 is connected to multiple supplier platforms 11 and is used to execute the multi-supplier information aggregation method provided in the above embodiment of the present invention.
[0136] Furthermore, the aggregation platform 12 includes a rule engine 121 and a display device 122 .
[0137] Specifically, the multiple supplier platforms 11 are used to obtain supply information of gas stations or power stations, and send the supply information to the aggregation platform 12. For the specific process, reference may be made to the description of step S201 above.
[0138] Further, the rule engine 121 is used to obtain multiple preset aggregation rules and update the multiple preset aggregation rules to obtain multiple target aggregation rules. The specific process can refer to the description of the above step S201 and step S302.
[0139] The multi-supplier information aggregation system provided in this embodiment can adjust different aggregation rules in real time without stopping the system through the rule engine. Furthermore, it realizes the effect of unifying and integrating the relevant information scattered among different suppliers through the aggregation platform, breaking the situation of independent information of each supplier, allowing the relevant data of gas stations and power stations to be aggregated in an orderly manner, facilitating the subsequent unified management and utilization, and providing users with a more comprehensive and integrated service information reference, thereby improving the convenience of information search and use.
[0140] In one example, if Figure 5 As shown, taking a certain gas station as an example, a multi-supplier gas station aggregation method based on algorithm and rule engine technology is provided.
[0141] The descriptions of Rule 1, Rule 2 and Rule 3 may refer to the description in the above step S201.
[0142] The multi-supply gas station aggregation method based on the algorithm and rule engine technology provided in this example has the following beneficial effects:
[0143] (1) When the same gas station / electricity station is registered with different suppliers, it may have different name ID values and other information. After obtaining this information from different suppliers, the aggregation platform identifies whether it is the same gas station and merges the information from different suppliers into one gas station information and displays it to users. This will not cause users to be confused by seeing multiple identical gas stations / electricity stations. Secondly, the cheapest gas / electricity price from the supplier can be directly displayed to users, ultimately achieving user convenience, allowing users to enjoy the most favorable prices and generating user stickiness.
[0144] (2) The aggregation platform presets some algorithmic rules and adjusts the aggregation rules in real time based on the gas station data obtained from different suppliers to achieve better aggregation results;
[0145] (3) When the aggregation rules need to be adjusted, the configuration of the rule engine can be directly updated to make real-time adjustments without stopping the server. That is, different aggregation rules can be adjusted in real time without stopping the server.
[0146] The embodiment of the present invention also provides a computer device for executing the above Figures 2 to 4 The multi-supplier information aggregation method shown.
[0147] See also Figure 6 , Figure 6 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 6 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.
[0148] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0149] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0150] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0151] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0152] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0153] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0154] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0155] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for aggregating information from multiple suppliers, characterized in that: Used for an aggregation platform, the aggregation platform is connected to a plurality of supply-side platforms, the aggregation platform includes a rule engine; the method includes: Acquire supply information of multiple supply-side platforms and multiple preset aggregation rules, wherein the supply information is gas station information or power station information; Using the rule engine to update the plurality of preset aggregation rules to obtain a plurality of target aggregation rules; Based on the multiple target aggregation rules and the supply information, using the rule engine to perform rule arrangement on the supply business to obtain multiple target rule chains; The supply information of the multiple supplier platforms is aggregated based on the multiple target rule chains to obtain aggregated information.
2. The method according to claim 1, characterized in that The rule engine is used to update the plurality of preset aggregation rules to obtain a plurality of target aggregation rules, including: Updating the configuration information of the rule engine to obtain an updated rule engine; The multiple preset aggregation rules are updated using the updated rule engine to obtain the multiple target aggregation rules.
3. The method according to claim 1, characterized in that Based on the multiple target aggregation rules and the supply information, the rule engine is used to arrange the supply business rules to obtain multiple target rule chains, including: determining the supply service based on the supply information; Based on the multiple target aggregation rules, the rule engine is used to perform rule arrangement on the supply business to obtain the multiple target rule chains.
4. The method according to claim 3, characterized in that Determining the supply service based on the supply information includes: When the supply information is gas station information, determining that the supply service is a gas station service; When the supply information is power station information, it is determined that the supply service is a charging service.
5. The method according to claim 4, characterized in that Based on the multiple target aggregation rules, the rule engine is used to arrange the supply business rules to obtain the multiple target rule chains, including: Based on the multiple target aggregation rules, the rule engine is used to arrange the rules of the refueling business to obtain the multiple target rule chains; and / or, Based on the multiple target aggregation rules, the rule engine is used to arrange the charging service rules to obtain the multiple target rule chains.
6. The method according to claim 1, characterized in that Aggregating the supply information of the multiple supply-side platforms based on the multiple target rule chains to obtain aggregated information includes: Determining whether the supply information of each supply platform satisfies the multiple target rule chains; When the supply information of each supplier platform satisfies the multiple target rule chains, the supply information of each supplier platform is aggregated using the multiple target rule chains to obtain the aggregated information.
7. The method according to claim 1, characterized in that After obtaining the supply information of multiple supply side platforms and multiple preset aggregation rules, the method further includes: Based on the multiple preset aggregation rules and the supply information, the rule engine is used to perform rule arrangement on the supply business to obtain the multiple target rule chains.
8. The method according to claim 1, characterized in that The aggregation platform further includes a display device; and the method further includes: The aggregate information is displayed through the display device.
9. A multi-supplier information aggregation system, used in gas stations or power stations; characterized in that: The system includes: a plurality of supplier platforms and an aggregation platform, wherein the aggregation platform includes a rule engine and a display device; The multiple supplier platforms are used to obtain the supply information of the gas station or the power station and send the supply information to the aggregation platform; The rule engine is used to obtain multiple preset aggregation rules and update the multiple preset aggregation rules to obtain multiple target aggregation rules; The aggregation platform is used to execute the multi-supplier information aggregation method described in any one of claims 1 to 8.
10. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the multi-supplier information aggregation method according to any one of claims 1 to 8.