Data query method and device, readable medium, electronic equipment and program product

By calling the attribute query service at the query level to obtain the associated attribute data, the problem of waste of repeated storage resources in the dataset is solved, and efficient data query and analysis is achieved.

CN120407597APending Publication Date: 2025-08-01BEIJING YOUZHUJU NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510561133.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-29
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

In data analysis scenarios, the prior art requires adding attribute fields to the output link of the data set to obtain associated attribute data, resulting in waste of storage resources and additional development needs.

Method used

By calling the attribute query service at the query level, the associated attribute data is obtained from the attribute set, without storing it in the data set and it is directly modified in the output link of the data set.

Benefits of technology

It improves the reuse rate of attribute data, reduces waste of storage resources, simplifies the development of output links of data sets, and improves data query and analysis efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120407597A_ABST
    Figure CN120407597A_ABST
Patent Text Reader

Abstract

The invention discloses a data query method and device, a readable medium, electronic equipment and a program product, which can improve the reuse rate of attribute data and reduce the waste of storage resources. The data query method comprises the steps that in response to query operation on a target query field, when the target query field comprises an attribute field, a first query field and a second query field are determined according to the target query field, the first query field is a data field in a data set, and the second query field is a data field in a data set; the second query field is an attribute field associated with the first query field; obtaining first data corresponding to the first query field from the data set, and calling an attribute query service to obtain second data corresponding to the second query field, the attribute query service being used for querying attributes from an attribute set and / or calling an attribute query interface to query the attributes; and displaying the first data and the second data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technologies, and in particular, to a data query method, apparatus, readable medium, electronic device, and program product. Background Art

[0002] In the data analysis scenario, if a user wants to query the attribute data associated with a certain field in a data set, it is necessary to add corresponding attribute fields in the output link of the data set, obtain the corresponding attribute data and store it in the data set for the user to perform attribute queries. On the one hand, it is necessary to perform additional development on the output link of the data set. On the other hand, there may be the same data fields in different data tables in the data set. If the attribute data associated with the same data field is stored for different data tables, it will cause waste of storage resources. Summary of the Invention

[0003] This Summary of the Invention section is provided to introduce concepts in a brief form, which will be described in detail in the following Detailed Description section. This Summary of the Invention section is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to be used to limit the scope of the claimed technical solution.

[0004] In a first aspect, the present disclosure provides a data query method, the data query method comprising: In response to a query operation on a target query field, when the target query field includes an attribute field, determining a first query field and a second query field according to the target query field, wherein the first query field is a data field in the data set, and the second query field is an attribute field associated with the first query field; Obtaining first data corresponding to the first query field from the data set, and invoking an attribute query service to obtain second data corresponding to the second query field, the attribute query service being used to query attributes from an attribute set and / or invoke an attribute query interface to query attributes; Displaying the first data and the second data.

[0005] In a second aspect, the present disclosure provides a data query apparatus, the data query apparatus comprising: A response module, configured to, in response to a query operation on a target query field, when the target query field includes an attribute field, determine a first query field and a second query field according to the target query field, wherein the first query field is a data field in the data set, and the second query field is an attribute field associated with the first query field; A calling module, configured to obtain first data corresponding to the first query field from the dataset and call an attribute query service to obtain second data corresponding to the second query field, where the attribute query service is configured to query attributes from an attribute set and / or call an attribute query interface to query attributes; A display module, configured to display the first data and the second data.

[0006] In a third aspect, the present disclosure provides a computer-readable medium, on which a computer program is stored, and when the program is executed by a processing device, the steps of the method described in the first aspect are implemented.

[0007] In a fourth aspect, the present disclosure provides an electronic device, including: A storage device, on which a computer program is stored; A processing device, configured to execute the computer program in the storage device to implement the steps of the method described in the first aspect.

[0008] In a fifth aspect, the present disclosure provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0009] Through the above technical solutions, when the target query field includes an attribute field, the first query field and the second query field can be determined according to the target query field, and then the first data corresponding to the first query field is obtained from the dataset, and the attribute query service is called to obtain the second data corresponding to the second query field, and finally the first data and the second data are displayed. By adopting this method, the attribute data does not need to be stored in the dataset, but the corresponding attribute data is obtained from the attribute set or the attribute query interface by calling the attribute query service during attribute query. Therefore, it is not necessary to modify the output link of the dataset, the reuse rate of the attribute data is improved, and the waste of storage resources is reduced.

[0010] Other features and advantages of the present disclosure will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Combined with the drawings and referring to the following specific implementation manners, the above and other features, advantages and aspects of the embodiments of the present disclosure will become more obvious. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic, and the original elements and elements are not necessarily drawn to scale. In the drawings: Figure 1 is a flowchart of a data query method shown according to an exemplary embodiment of the present disclosure; Figure 2 is a process diagram of a data query method shown according to an exemplary embodiment of the present disclosure; Figure 3 is a schematic diagram of a data query page shown according to an exemplary embodiment of the present disclosure; Figure 4 is a schematic diagram of a data query page shown according to an exemplary embodiment of the present disclosure; Figure 5 is a block diagram of a data query device shown according to an exemplary embodiment of the present disclosure; Figure 6 is a schematic diagram of a structure of an electronic device shown according to an exemplary embodiment of the present disclosure. Detailed implementation manners

[0012] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. On the contrary, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not used to limit the protection scope of the present disclosure.

[0013] It should be understood that the various steps recited in the method embodiments of the present disclosure can be executed in a different order and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this regard.

[0014] The term "including" and its variants used herein are open-ended, that is, "including but not limited to". The term "based on" is "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0015] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependent relationships.

[0016] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive. Those skilled in the art should understand that, unless otherwise clearly specified in the context, it should be understood as "one or more".

[0017] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information.

[0018] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, usage scopes, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to users and the authorization of users should be obtained through appropriate means in accordance with relevant laws and regulations.

[0019] For example, when receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested by the user will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application program, server, or storage medium that executes the operation of the technical solution of the present disclosure according to the prompt message.

[0020] As an optional but non-limiting implementation manner, the manner of sending a prompt message to the user in response to receiving an active request from the user may be, for example, in the form of a pop-up window, and the prompt message may be presented in text in the pop-up window. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0021] It is understandable that the above process of notifying and obtaining user authorization is only illustrative and does not limit the implementation manner of the present disclosure. Other manners that meet relevant laws and regulations can also be applied to the implementation manner of the present disclosure.

[0022] At the same time, it is understandable that the data involved in the technical solution of the present disclosure (including but not limited to the data itself, the acquisition or use of the data) should comply with the requirements of corresponding laws, regulations and related provisions.

[0023] In the data analysis scenario, if a user wants to query the attribute data associated with a certain field in a data set, corresponding attribute fields need to be added in the real-time output link or offline output link of the data set, and the corresponding attribute data is obtained and stored in the data set for the user to perform attribute queries. On the one hand, additional development of the output link of the data set is required. On the other hand, the same data fields may exist in different data tables in the data set. If the attribute data associated with the same data field is stored for different data tables, it will cause waste of storage resources.

[0024] In view of this, the present disclosure provides a data query method, device, readable medium, electronic device and program product to solve the above technical problems.

[0025] The following further explains the embodiments of the present disclosure with reference to the accompanying drawings.

[0026] Figure 1 is a flowchart of a data query method shown according to an exemplary embodiment of the present disclosure. Referring to Figure 1 , the method includes: S101: In response to a query operation on a target query field, when the target query field includes an attribute field, determine a first query field and a second query field according to the target query field.

[0027] Among them, the first query field is a data field in the dataset, and the second query field is an attribute field associated with the first query field.

[0028] It should be noted that the dataset is used to store metric data corresponding to metric fields and / or dimension data corresponding to dimension fields. Among them, the metric fields and dimension fields can be business metrics and business dimensions determined according to the actual business scenario, and the present disclosure does not limit this. Taking the advertising placement scenario as an example, the dimension field can be the number field of the advertising placement plan, the corresponding attribute field can be the placement status field of the advertising placement plan, the metric field can be the consumption field of the advertising placement plan, and the corresponding attribute fields can be the date field, the region field, etc., which can be specifically determined according to the actual business scenario, and the present disclosure does not limit this.

[0029] S102: Obtain the first data corresponding to the first query field from the dataset, and call the attribute query service to obtain the second data corresponding to the second query field. The attribute query service is used to query attributes from the attribute set and / or call the attribute query interface to query attributes.

[0030] S103: Display the first data and the second data.

[0031] By calling the query service at the query level to splice the query results of the data field and the attribute field, the attribute data to be queried is presented to the user, which is convenient for the user to view.

[0032] By adopting the above method, the attribute data does not need to be stored in the dataset, but the corresponding attribute data is obtained from the attribute set or the attribute query interface by calling the attribute query service when performing attribute queries. Therefore, there is no need to modify the output link of the dataset, the reuse rate of the attribute data is improved, and further the waste of storage resources is reduced.

[0033] In a possible way, the method further includes: obtaining initial data obtained through a data generation task; when the data generation task provides the fourth data corresponding to the attribute field associated with the initial data, creating a first attribute table corresponding to the initial data and storing the first attribute table in the attribute set; or, when the data generation task provides a second attribute table corresponding to the initial data, storing the second attribute table in the attribute set; or, when the data generation task provides an attribute query interface corresponding to the initial data, determining the information of the attribute query interface for the attribute query service to call.

[0034] Exemplarily, such as Figure 2As shown, initial data can be obtained from a data source based on a data generation task, and then the initial data can be processed based on metrics and / or dimensions according to requirements. For example, the metric data of the required metric fields and / or the dimension data corresponding to the dimension fields can be filtered out according to business requirements, which can be determined specifically according to business requirements, and the present disclosure does not limit this. Then the processed data is stored in a dataset for users to query the metric data and / or dimension data.

[0035] Exemplarily, when the data generation task provides attribute data associated with the initial data, a first attribute table corresponding to the initial data can be created based on the attribute data and stored in an attribute set. When the data generation task provides a second attribute table corresponding to the initial data, the second attribute table can be directly stored in the attribute set. When the data generation task provides an attribute query interface corresponding to the initial data, the information of the attribute query interface is determined for the attribute query service to call. Subsequently, the attribute query service can obtain the corresponding attribute data from the attribute table or the attribute query interface according to the attribute fields.

[0036] It is worth noting that if the data provider provides an attribute table, the attribute table can be directly obtained. If the data provider provides an attribute query interface, the corresponding attributes can be obtained by calling the attribute query interface. If neither an attribute table nor an attribute query interface is provided, after obtaining the attribute data through the data generation task, a corresponding attribute table can be created to store the attribute data.

[0037] Exemplarily, for attribute fields with high real-time requirements, such as status fields, an attribute query interface can be provided, so that the latest attribute data can be queried through the attribute query interface each time an attribute query is performed, thereby improving the real-time performance of data analysis.

[0038] By constructing an attribute set, there is no need to separately develop the output link of the dataset additionally. Instead, the corresponding attribute data can be queried through the attribute set during data query, and the attribute data associated with the same data fields of different data tables does not need to be repeatedly stored and can directly reuse the existing attribute set, improving the reuse rate of attribute data and reducing the waste of storage resources.

[0039] Subsequently, when new attribute query requirements are added according to business requirements, a new attribute table can be constructed, or the information of the corresponding attribute table or attribute query interface can be stored, without adding new attribute fields to the data output link of the dataset.

[0040] In a possible way, determining a first query field and a second query field according to a target query field includes: when the target query field does not include a data field, determining meta information for characterizing the association between the data field and the attribute field; according to the meta information and the attribute field included in the target query field, determining a target data field; correspondingly, the first query field is the target data field, and the second query field is the attribute field included in the target query field.

[0041] Exemplarily, an attribute field cannot be queried alone, and the data field to which it belongs needs to be determined. For example, there is an attribute field 1 under a dimension field 1. The attribute field 1 cannot be queried alone. Querying the dimension field 1 and the attribute field 1 can execute the query process. By automatically supplementing the data field to which the attribute field belongs, the user query operation can be simplified, and the efficiency of user data query and analysis can be improved.

[0042] Exemplarily, continuing with the above advertising placement scenario as an example, if a user only selects the placement status field of the advertising placement plan during data query, meta information for characterizing the association between the data field and the attribute field can be determined. For example, it can be the association relationship between the data field and the associated attribute field, or the identification information of the corresponding data field marked on the attribute field, etc. The present disclosure places no limitation on this. According to the meta information and the attribute field included in the target query field, for example, it can be determined that the placement status field of the advertising placement plan is an attribute field of the advertising placement plan number field, and then the advertising placement plan number field is used as the first query field, so as to meet the integrity requirements of data query.

[0043] In a possible way, the attribute query service is externally encapsulated with a unified call interface. Invoking the attribute query service to obtain second data corresponding to the second query field includes: by using the second query field as the input parameter of the unified call interface, invoking the attribute query service to execute the following process: determining an attribute query method according to the second query field; when the attribute query method represents querying from an attribute set, obtaining second data corresponding to the second query field from the attribute set; when the attribute query method represents querying through an interface, invoking an attribute query interface to obtain second data corresponding to the second query field.

[0044] Exemplarily, as Figure 2 shown, the attribute query service is externally encapsulated with a unified call interface. By using the attribute field as the input parameter of the unified call interface, the attribute query service is invoked to determine the attribute query method according to the attribute field, and then obtain the attribute data corresponding to the attribute field according to the corresponding attribute query method. For example, if the attribute data corresponding to the attribute field is stored in an attribute set, the attribute data is obtained from the attribute set. If the attribute field needs to be obtained through a corresponding attribute query interface, the attribute query interface is invoked to obtain the attribute data.

[0045] Exemplarily, the identification of the attribute query method can be pre-marked for the attribute field, or the correspondence between the attribute field and the attribute query method can be maintained. For example, if attribute field 1 corresponds to attribute table 1, it means that the attribute data corresponding to attribute field 1 is stored in attribute table 1. If attribute field 2 corresponds to attribute query interface 1, it means that the attribute data corresponding to attribute field 2 needs to be obtained by calling attribute query interface 1. Specifically, it can be selected according to requirements, and the present disclosure does not limit this.

[0046] In a possible way, the number of second query fields is multiple. Invoking the attribute query service to obtain the second data corresponding to the second query fields includes: invoking the attribute query service to obtain the third data corresponding to each second query field, obtaining multiple third data, and aggregating the multiple third data to obtain the second data.

[0047] Exemplarily, as Figure 2 shown, if there are multiple attribute fields to be queried, then multiple attribute fields can be used as input parameters. After respectively querying the attribute data corresponding to each attribute field by invoking the attribute query service, the multiple attribute data are aggregated and output as the output parameter, without invoking the attribute query service multiple times, thus avoiding waste of communication resources.

[0048] In a possible way, the method further includes: in response to a trigger operation for querying the data set, displaying a data query page, where the data query page includes a first area for displaying candidate query fields and a second area for displaying data charts corresponding to the selected query fields. In response to a query operation on the target query field, when the target query field includes an attribute field, determining the first query field and the second query field according to the target query field, including: in response to a drag operation on the candidate query field in the first area, determining the target query field corresponding to the drag operation, and in response to a query operation on the target query field, when the target query field includes an attribute field, determining the first query field and the second query field according to the target query field. Displaying the first data and the second data includes: displaying a data chart determined based on the first data and the second data in the second area.

[0049] Exemplarily, as Figure 3 shown, the data query page includes a first area for displaying candidate query fields and a second area for displaying data charts corresponding to the selected query fields. The user can drag the candidate query field in the data query page to indicate that the field is selected for query. For example, drag dimension field 1 in the candidate query fields to the second area. Of course, the target query field can also be determined by other means, such as by clicking or checking, and the present disclosure does not limit this.

[0050] Exemplarily, as Figure 3As shown, if the user drags a single attribute field, a prompt message will be displayed and the associated data field will be automatically added. The selected query fields can also be displayed in the second area so that the user can confirm the selected query fields and understand the analysis dimensions and / or analysis metrics of the subsequent query results.

[0051] Exemplarily, continuing to refer to Figure 3 , after the user selects the target query fields, data query can be performed by triggering the query control, and then the corresponding query results will be displayed in the second area. For example, a data chart determined based on the first data and the second data is displayed. The data chart can be a data table, a trend chart, a pie chart, etc., and the present disclosure does not limit this. Corresponding data chart types can also be set for the user to select, and corresponding charts are generated according to the data chart types selected by the user.

[0052] Exemplarily, continuing with the above advertising placement scenario as an example, for instance, selecting the dimension field "advertising placement plan number", the corresponding attribute field "advertising placement plan status", and the metric field "advertising placement plan consumption", as Figure 4 shown, a data chart can be displayed with the "advertising placement plan number" as the abscissa, the "advertising placement plan consumption" as the ordinate, and different colors distinguishing the advertising placement plan status. Specifically, it can be determined according to the actual business scenario, and the present disclosure does not limit this.

[0053] Thus, in response to the user's query operation on the visual data query page, the corresponding data chart can be intuitively displayed, improving the efficiency of user data query and data analysis, and also improving the readability and comprehensibility of the data query results.

[0054] Based on the same concept, an embodiment of the present disclosure provides a data query device, as Figure 5 shown, the data query device 500 includes: A response module 501, configured to respond to a query operation on the target query fields. When the target query fields include attribute fields, determine a first query field and a second query field according to the target query fields, where the first query field is a data field in the dataset, and the second query field is an attribute field associated with the first query field; An invocation module 502, configured to obtain first data corresponding to the first query field from the dataset, and invoke an attribute query service to obtain second data corresponding to the second query field, where the attribute query service is used to query attributes from an attribute set and / or invoke an attribute query interface to query attributes; A display module 503, configured to display the first data and the second data.

[0055] Optionally, the response module 501 is configured to: In the case where the target query field does not include a data field, determine meta information for characterizing the association between the data field and the attribute field; Determine a target data field according to the meta information and the attribute field included in the target query field; Correspondingly, the first query field is the target data field, and the second query field is the attribute field included in the target query field.

[0056] Optionally, the attribute query service is externally encapsulated with a unified call interface, and the call module 502 is configured to: By using the second query field as the input parameter of the unified call interface, call the attribute query service to execute the following process: Determine an attribute query method according to the second query field; When the attribute query method represents querying from the attribute set, obtain second data corresponding to the second query field from the attribute set; When the attribute query method represents querying through an interface, call the attribute query interface to obtain second data corresponding to the second query field.

[0057] Optionally, the number of the second query fields is multiple, and the call module 502 is configured to: Call the attribute query service to obtain third data corresponding to each of the second query fields, obtain a plurality of third data, and aggregate the plurality of third data to obtain the second data.

[0058] Optionally, the data query device 500 further includes: A display sub-module, configured to display a data query page in response to a trigger operation for querying a data set. The data query page includes a first area for displaying candidate query fields and a second area for displaying a data chart corresponding to the selected query field; The response module 501 is configured to: In response to a drag operation on a candidate query field in the first area, determine a target query field corresponding to the drag operation, and in response to a query operation on the target query field, when the target query field includes an attribute field, determine a first query field and a second query field according to the target query field; The display module 503 is configured to: Display a data chart determined based on the first data and the second data in the second area.

[0059] Optionally, the data query device 500 further includes an acquisition module, and the acquisition module is configured to: Acquire initial data obtained through a data generation task; When the data generation task provides the fourth data corresponding to the attribute field associated with the initial data, create a first attribute table corresponding to the initial data, and store the first attribute table in the attribute set; or, When the data generation task provides a second attribute table corresponding to the initial data, store the second attribute table in the attribute set; or, When the data generation task provides an attribute query interface corresponding to the initial data, determine the information of the attribute query interface for the attribute query service to call.

[0060] Based on the same concept, an embodiment of the present disclosure also provides a computer-readable medium, on which a computer program is stored, and when the program is executed by a processing device, the steps of the above data query method are implemented.

[0061] Based on the same concept, an embodiment of the present disclosure also provides an electronic device, which may include: A storage device on which a computer program is stored; A processing device configured to execute the computer program in the storage device to implement the steps of the above data query method.

[0062] Based on the same concept, an embodiment of the present disclosure also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the above data query method are implemented.

[0063] Next, refer to Figure 6 , which shows a schematic structural diagram of an electronic device 600 suitable for implementing an embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), PMPs (Portable Multimedia Players), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present disclosure.

[0064] As Figure 6As shown, the electronic device 600 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0065] Generally, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or wiredly to exchange data. Although Figure 6 the electronic device 600 with various devices is shown, it should be understood that it is not required to implement or have all the shown devices. Instead, more or fewer devices may be implemented or had.

[0066] Specifically, according to an embodiment of the present disclosure, the process described above with reference to the flowchart may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes program codes for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above functions defined in the method of the embodiment of the present disclosure are executed.

[0067] It should be noted that the above-mentioned computer-readable medium in the present disclosure can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can 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 disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, in which computer-readable program code is carried. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, and this computer-readable signal medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0068] In some embodiments, communication can be carried out using any currently known or future-developed network protocol such as HTTP (HyperText Transfer Protocol), and can be interconnected with digital data communication in any form or medium (for example, a communication network). Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet (for example, the Internet), and end-to-end networks (for example, ad hoc end-to-end networks), as well as any currently known or future-developed networks.

[0069] The above-mentioned computer-readable medium can be included in the above-mentioned electronic device; it can also exist separately without being assembled into the electronic device.

[0070] The above computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: in response to a query operation on a target query field, when the target query field includes an attribute field, determine a first query field and a second query field according to the target query field, where the first query field is a data field in a dataset, and the second query field is an attribute field associated with the first query field; obtain first data corresponding to the first query field from the dataset, and call an attribute query service to obtain second data corresponding to the second query field, where the attribute query service is used to query attributes from an attribute set and / or call an attribute query interface to query attributes; and display the first data and the second data.

[0071] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or combinations thereof. The programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0072] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that, in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.

[0073] The modules involved in the embodiments of the present disclosure can be implemented in software or in hardware. In some cases, the name of a module does not constitute a limitation on the module itself.

[0074] The functions described above herein can be performed, at least in part, by one or more hardware logic components. By way of example, and without limitation, the types of hardware logic components that can be used include: Field Programmable Gate Arrays (FPGA), Application Specific Integrated Circuits (ASIC), Application Specific Standard Products (ASSP), System on a Chip (SOC), Complex Programmable Logic Devices (CPLD), and the like.

[0075] In the context of the present disclosure, a machine-readable medium may be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM or Flash Memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0076] The above description is only a preferred embodiment of the present disclosure and an illustration of the applied technical principles. Those skilled in the art should understand that the scope of the disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, the technical solutions formed by mutually replacing the above features with the technical features having similar functions (but not limited to) disclosed in the present disclosure.

[0077] Moreover, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although a number of specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features described in the context of separate embodiments may also be implemented combinatorially in a single embodiment. Conversely, the various features described in the context of a single embodiment may also be implemented separately or in any suitable sub-combination in multiple embodiments.

[0078] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. On the contrary, the specific features and acts described above are merely example forms for implementing the claims. Regarding the apparatus in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be elaborated here.

Claims

1. A data query method, characterized in that, The data query method includes: In response to a query operation on a target query field, when the target query field includes an attribute field, determining a first query field and a second query field according to the target query field, where the first query field is a data field in a dataset, and the second query field is an attribute field associated with the first query field; Obtaining first data corresponding to the first query field from the dataset, and invoking an attribute query service to obtain second data corresponding to the second query field, where the attribute query service is used to query attributes from an attribute set and / or invoke an attribute query interface to query attributes; Displaying the first data and the second data.

2. The data query method according to claim 1, wherein The determining the first query field and the second query field according to the target query field includes: In the case where the target query field does not include a data field, determining meta information for characterizing the association between the data field and the attribute field; Determining a target data field according to the meta information and the attribute field included in the target query field; Correspondingly, the first query field is the target data field, and the second query field is the attribute field included in the target query field.

3. The data query method according to claim 1, wherein The attribute query service is externally encapsulated with a unified call interface, and the invoking the attribute query service to obtain second data corresponding to the second query field includes: By using the second query field as an input parameter of the unified call interface, invoking the attribute query service to execute the following process: Determining an attribute query method according to the second query field; When the attribute query method represents querying from the attribute set, obtaining second data corresponding to the second query field from the attribute set; When the attribute query method represents querying through an interface, invoking the attribute query interface to obtain second data corresponding to the second query field.

4. The data query method according to any one of claims 1-3, characterized in that The number of the second query fields is multiple, and the invoking the attribute query service to obtain second data corresponding to the second query field includes: Invoking the attribute query service to obtain third data corresponding to each of the second query fields, obtaining a plurality of third data, and summarizing the plurality of third data to obtain the second data.

5. The data query method according to any one of claims 1 to 3, characterized in that, The method further includes: In response to a trigger operation for querying the dataset, displaying a data query page, where the data query page includes a first area displaying candidate query fields and a second area displaying a data chart corresponding to a selected query field; The in response to a query operation on a target query field, when the target query field includes an attribute field, determining a first query field and a second query field according to the target query field includes: In response to a drag operation on a candidate query field in the first area, determining the target query field corresponding to the drag operation, and in response to a query operation on the target query field, when the target query field includes an attribute field, determining a first query field and a second query field according to the target query field; The displaying the first data and the second data includes: Displaying a data chart determined based on the first data and the second data in the second area.

6. The data query method according to any one of claims 1 to 3, characterized in that The method further includes: Obtain the initial data obtained through the data generation task; When the data generation task provides the fourth data corresponding to the attribute field associated with the initial data, create the first attribute table corresponding to the initial data and store the first attribute table in the attribute set; or, When the data generation task provides the second attribute table corresponding to the initial data, store the second attribute table in the attribute set; or, When the data generation task provides the attribute query interface corresponding to the initial data, determine the information of the attribute query interface for the attribute query service to call.

7. A data query device, characterized in that, The data query device includes: A response module, configured to respond to a query operation on a target query field. When the target query field includes an attribute field, determine a first query field and a second query field according to the target query field, where the first query field is a data field in the data set, and the second query field is an attribute field associated with the first query field; An invocation module, configured to obtain the first data corresponding to the first query field from the data set and invoke the attribute query service to obtain the second data corresponding to the second query field, where the attribute query service is used to query attributes from the attribute set and / or invoke the attribute query interface to query attributes; A display module, configured to display the first data and the second data.

8. A computer-readable medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processing device, the steps of the method according to any one of claims 1-7 are implemented.

9. An electronic device, characterized in that, Including: A storage device, on which a computer program is stored; A processing device, configured to execute the computer program in the storage device to implement the steps of the method according to any one of claims 1-7.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1-7 are implemented.