CN113779294A - Data query method, mobile terminal and storage medium - Google Patents

Data query method, mobile terminal and storage medium Download PDF

Info

Publication number
CN113779294A
CN113779294A CN202111083147.8A CN202111083147A CN113779294A CN 113779294 A CN113779294 A CN 113779294A CN 202111083147 A CN202111083147 A CN 202111083147A CN 113779294 A CN113779294 A CN 113779294A
Authority
CN
China
Prior art keywords
scene information
data
information
query
scene
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111083147.8A
Other languages
Chinese (zh)
Inventor
楚金丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Xiaochuan Technology Co ltd
Original Assignee
Shanghai Xiaochuan Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Xiaochuan Technology Co ltd filed Critical Shanghai Xiaochuan Technology Co ltd
Priority to CN202111083147.8A priority Critical patent/CN113779294A/en
Publication of CN113779294A publication Critical patent/CN113779294A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/5866Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/587Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using geographical or spatial information, e.g. location
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/7867Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title and artist information, manually generated time, location and usage information, user ratings
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/787Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using geographical or spatial information, e.g. location

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a data query method, a mobile terminal and a storage medium, wherein the method comprises the following steps: the method comprises the steps of obtaining scene information, determining or generating a first query instruction based on the scene information, and obtaining target data corresponding to the scene information according to the first query instruction. By adopting the method provided by the application, when the memory is fuzzy and cannot provide accurate information for data search, the method is beneficial to improving the accuracy of query.

Description

Data query method, mobile terminal and storage medium
Technical Field
The application relates to the technical field of mobile terminals, in particular to a data query method, a mobile terminal and a storage medium.
Background
In some implementations, the scheme for querying data such as pictures and videos mainly searches for the file name, time, file location information and the like as keywords, or searches for manually marked information when a user stores the data such as pictures and videos as keywords.
In the course of conceiving and implementing the present application, the inventors found that at least the following problems existed: when a user inputs the file name, time, file position information of data such as pictures and videos or manually marks keywords such as information, if the memory is fuzzy, incorrect keywords are easy to input, and therefore the user cannot accurately and quickly find the desired data from a large amount of data.
The foregoing description is provided for general background information and is not admitted to be prior art.
Disclosure of Invention
In view of the above technical problems, the present application provides a data query method, a mobile terminal, and a storage medium, which can implement using the description of a scene as query key information to improve the accuracy during query.
In order to solve the above technical problem, the present application provides a data query method, including:
s1: acquiring scene information;
s2: determining or generating a first query instruction based on the context information;
s3: and acquiring target data corresponding to the scene information according to the first query instruction.
Optionally, before the step S1, at least one piece of scene information satisfying an acquisition condition is acquired, where the satisfying the acquisition condition includes at least one of: opening a scene information query data function; detecting a display data query interface; data query failure is detected within a preset time period.
Optionally, the step S1 includes: identifying the scene meeting the acquisition condition to acquire the scene information; or identifying the scene meeting the scene information obtaining condition, obtaining second scene information, determining third scene information with the similarity between the third scene information and the second scene information being greater than or equal to a second preset threshold value, and taking the third scene information and/or the second scene information as the scene information.
Optionally, the context information includes at least one of: location category information of the data; time category information of the data; environmental information of the data; user status information of the data; event information of the data.
Optionally, before the step of S1, the method further includes: and correspondingly storing the at least one piece of scene information and the data. Optionally, the step S1 further includes: and in response to the fact that the number of the scene information is at least two and a confirmation operation is received, taking at least one confirmed scene information as the scene information.
Optionally, the step S1 includes: and acquiring at least one first scene information with the similarity greater than or equal to a preset threshold with the scene information.
Optionally, before the step of S1, the method further includes: if the data matched with the second query instruction is not found, executing the step S1; and/or if the data matched with the second query instruction is found, not executing the step of S1.
The present application further provides a mobile terminal, including: the device comprises a memory and a processor, wherein the memory is stored with a data query program, and the data query program realizes the steps of the method when being executed by the processor.
The present application also provides a readable storage medium storing a computer program which, when executed by a processor, performs the steps of the method as described above.
As described above, in the data query method of the present application, scene information is acquired; determining or generating a first query instruction based on the scene information; and acquiring target data corresponding to the scene information according to the first query instruction. By the method, the scene information is used as the query condition, so that the query speed and accuracy can be improved when the memory is fuzzy and accurate information cannot be provided for data search.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic hardware structure diagram of a mobile terminal implementing various embodiments of the present application;
fig. 2 is a communication network system architecture diagram according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a data query method according to a first embodiment;
FIG. 4 is a diagram of a target data display interface of the data query method shown according to the first embodiment;
FIG. 5 is a flowchart illustrating a data query method according to a second embodiment;
fig. 6 is a view of a scene information confirmation interface of the data query method shown according to the second embodiment;
FIG. 7 is a view of a scene information modification interface of a data query method according to the second embodiment;
fig. 8 is a scene information addition interface diagram of the data query method shown in the second embodiment;
fig. 9 is a search interface diagram of a data query method shown according to the second embodiment;
FIG. 10 is a flowchart illustrating a data query method according to a third embodiment;
fig. 11 is a search interface diagram showing a data query method according to the third embodiment;
fig. 12 is a prompt interface diagram showing a data query method according to the third embodiment;
FIG. 13 is a flowchart illustrating a data query method according to a fourth embodiment;
fig. 14 is a prompt interface diagram of a data query method shown according to the fourth embodiment.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings. With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the recitation of an element by the phrase "comprising an … …" does not exclude the presence of additional like elements in the process, method, article, or apparatus that comprises the element, and further, where similarly-named elements, features, or elements in different embodiments of the disclosure may have the same meaning, or may have different meanings, that particular meaning should be determined by their interpretation in the embodiment or further by context with the embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or," "and/or," "including at least one of the following," and the like, as used herein, are to be construed as inclusive or mean any one or any combination. For example, "includes at least one of: A. b, C "means" any of the following: a; b; c; a and B; a and C; b and C; a and B and C ", again for example," A, B or C "or" A, B and/or C "means" any of the following: a; b; c; a and B; a and C; b and C; a and B and C'. An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It should be noted that step numbers such as S301 and S302 are used herein for the purpose of more clearly and briefly describing the corresponding contents, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform S302 first and then S301 in specific implementation, but these should be within the scope of the present application.
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
The mobile terminal may be implemented in various forms. For example, the mobile terminal described in the present application may include mobile terminals such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and fixed terminals such as a Digital TV, a desktop computer, and the like.
The following description will be given taking a mobile terminal as an example, and it will be understood by those skilled in the art that the configuration according to the embodiment of the present application can be applied to a fixed type terminal in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present application, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex-Long Term Evolution), TDD-LTE (Time Division duplex-Long Term Evolution, Time Division Long Term Evolution), 5G, and so on.
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Optionally, the light sensor includes an ambient light sensor that may adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 1061 and/or the backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Alternatively, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Optionally, the touch detection device detects a touch orientation of a user, detects a signal caused by a touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Optionally, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited thereto.
Alternatively, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a program storage area and a data storage area, and optionally, the program storage area may store an operating system, an application program (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, optionally, the application processor mainly handles operating systems, user interfaces, application programs, etc., and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present application, a communication network system on which the mobile terminal of the present application is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present disclosure, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Optionally, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Alternatively, the eNodeB2021 may be connected with other enodebs 2022 through a backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. Optionally, the MME2031 is a control node that handles signaling between the UE201 and the EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present application is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems (e.g. 5G), and the like.
Based on the above mobile terminal hardware structure and communication network system, various embodiments of the present application are provided.
The following describes the data query method, the mobile terminal, and the storage medium provided in the embodiments of the present application in further detail.
First embodiment
Referring to fig. 3, fig. 3 is a schematic flow chart illustrating a data query method according to a first embodiment. The data query method shown in fig. 3 includes S301 to S303. The method of the embodiment of the present application may be executed by the mobile terminal shown in fig. 1, or may be executed by a chip in the mobile terminal, and the mobile terminal may be applied to the communication network system shown in fig. 2. The method shown in fig. 3 is executed by a mobile terminal as an example. Wherein:
and S301, acquiring scene information.
In an embodiment of the present application, the context information includes at least one of: location category information, time category information, environmental information, user status information, and event information. Alternatively, the context information may be environment information of the data to be queried, user state information of the data to be queried, time category information of the data to be queried, location category information of the data to be queried, and event information of the data to be queried. Illustratively, the scene information is "cool", "bright", "afternoon", "cafe", "mobile phone still", and "chatty"; optionally, "cool" and "bright" correspond to environment information, "afternoon" corresponds to time category information, "cafe" corresponds to location category information, "mobile phone is still" corresponds to user status information, and "chatty" corresponds to event information.
Optionally, the scene information may be obtained by text, picture, or voice. When the query condition input by the user is voice, the voice information of the user needs to be analyzed to obtain the scene information corresponding to the voice information. The input text or information extracted from the text, the picture or the voice may be used as scene information after the text, the picture or the voice input by the user.
S302, determining or generating a first query instruction based on the scene information.
In the embodiment of the application, the scenario information may be used to describe a query condition of data to be queried, and the first query instruction is used to indicate a query condition set when the data query is performed. Optionally, the form of the first query instruction may be a text, a picture, a voice, or the like, which is not limited herein. For example, a first query instruction in the form of voice may be determined or generated based on context information, and then data may be queried by the voice.
And S303, acquiring target data corresponding to the scene information according to the first query instruction.
In an embodiment of the present application, the target data includes at least one of: text, pictures, video, and voice. Alternatively, the target data may be other forms of data, and is not limited herein. Target data are searched according to the scene information, and the speed and the accuracy of data query are improved.
In the embodiment of the present application, the manner of outputting the target data includes at least one of: and popping up target data on a display interface, listing the target data on the display interface, and sequentially displaying the target data on the display interface. For example, as shown in fig. 4, a target data display interface diagram is shown, where the pictures M1-M3 in the display interface S401 are all target data, and optionally, the target data are pictures, and the corresponding pictures can be displayed according to the user' S intention by sliding left and right.
Alternatively, the manner of outputting the target data may be other manners, and is not limited herein. By outputting the target data, the user experience is improved.
In the method depicted in FIG. 3, scene information is obtained; determining or generating a first query instruction based on the scene information; and acquiring target data corresponding to the scene information according to the first query instruction. Therefore, based on the method described in fig. 3, the corresponding target data is searched for through the first query instruction determined by the scene information, which is beneficial to improving the query speed and accuracy.
Second embodiment
Referring to fig. 5, fig. 5 is a flowchart illustrating another data query method according to a second embodiment. The data query method shown in fig. 5 includes S501 to S505. The method of the embodiment of the present application may be executed by the mobile terminal shown in fig. 1, or may be executed by a chip in the mobile terminal, and the mobile terminal may be applied to the communication network system shown in fig. 2. The method shown in fig. 5 is executed by a mobile terminal as an example. Wherein:
s501, storing at least one piece of scene information and data correspondingly.
In the embodiment of the present application, the corresponding storing may be to store at least one piece of scene information of the data and the data in the same database in an associated manner, or to establish a mapping relationship between at least one piece of scene information of the data and the data, and then store at least one piece of scene information of the data and the data in different databases, respectively.
In an embodiment of the present application, the at least one piece of scene information is: in the process of acquiring any data, identifying scenes when the data is acquired, and determining or acquiring at least one piece of scene information.
In the embodiment of the present application, the manner of acquiring any data includes one or more of the following: the data is acquired by editing, video recording, sound recording or copying, the data generated by the mobile terminal in real time by shooting and the like, and the data is acquired by wire transmission, network transmission, Bluetooth transmission and the like. For example, after the picture is taken and the picture is automatically saved in the current mobile terminal, the current scene is identified, and at least one piece of scene information of the picture is determined or acquired. Alternatively, the manner of acquiring the data may be other manners, and is not limited herein.
In an embodiment of the present application, the manner of determining or acquiring at least one piece of scene information of the data includes at least one of: in the process of acquiring data, acquiring environmental information or user state information through a sensor; in the process of acquiring data, acquiring position category information through a positioning device; in the process of acquiring data, counting event information in a first preset time period, wherein the event information comprises at least one of the following: communicating data, notification data or scene data; in the process of acquiring data, time category information is collected. Optionally, the first preset time period may be a time period set as desired by the user, or may be a time period preset by the mobile terminal. Optionally, the scene information may also be other information for describing a scene in the process of acquiring data, and is not limited herein.
The environment information may be used to describe the environment in which the mobile terminal is located. Illustratively, the brightness and temperature of the acquired data are acquired by a light sensor and a temperature sensor, so that the environmental information is determined as characters describing the environment, such as "bright" and "cool".
The user state information may be used to describe a state of the mobile terminal or a state of a usage object using the mobile terminal. For example, the mobile phone state data in the data acquisition process is acquired through an acceleration sensor, a gyroscope sensor and the like, so that the user state information is determined to be 'the mobile phone is still'. In a possible implementation manner, the state information of the user can be determined to be a category, the state can be selected optionally, the category can be entertainment, work, rest and the like through mobile phone state data acquired by an acceleration sensor, a gyroscope sensor and the like in the data acquisition process, and the number and category of the APPs recently used by the user and the use duration are counted; the states may be running, traveling, working, meeting, shopping, resting, etc., such as "entertainment, shopping," "work, meeting," "stationary," and afternoon nap.
The location information or the location category information is used to describe the location where the mobile terminal is located. Illustratively, the location information during data acquisition by a positioning device such as a GPS is "the fifth mao quiet cafe", and the location category information is further determined as "cafe".
The event information is used to describe an event experienced by a usage object of the mobile terminal. For example, in the data acquisition process, communication data such as social software chat data of the mobile terminal, notification data such as a calendar, a memo, an alarm clock and the like, and environment data such as real-time voice acquired through a microphone sensor within 2 hours before the data acquisition is started are counted, so that the event information is determined to be "friend gathering".
The time information or time category information is used to describe a time or a time category. For example, the current time of acquisition is "15: 30", and the time category information is further determined to be "afternoon".
In a possible implementation manner, data such as a sensor, a positioning device, event information, terminal communication data, scene data, and the like can be integrated to obtain scene information. Illustratively, the positioning device collects the motion track of the mobile terminal within 1 hour before the data acquisition is started, displays the recorded furniture list passing through 3 furniture shops, and simultaneously collects the memorandum, so that the scene information can be comprehensively obtained as 'furniture purchase'.
In a possible implementation manner, after identifying a scene when the data is acquired and determining or acquiring at least one piece of scene information of the data, the method further includes: and receiving confirmation operation, and taking at least one confirmed scene information as the scene information corresponding to the data. As shown in fig. 6, a scene information confirmation interface diagram provided by the embodiment of the present application is shown, optionally, the display interface S601 includes a picture 1, scene information a, scene information B, scene information C, scene information D, and a confirmation interface S602, identifies a scene of the obtained picture 1, obtains four pieces of scene information, namely, the scene information a, the scene information B, the scene information C, and the scene information D, and checks whether the four pieces of scene information corresponding to the picture 1 are incorrect, and if there is no error, clicks the confirmation interface S602, so as to trigger a confirmation operation, and at this time, the four pieces of scene information, namely, the scene information a, the scene information B, the scene information C, and the scene information D, are used as the scene information corresponding to the picture 1.
As shown in fig. 7, a scene information modification interface diagram provided in the embodiment of the present application is shown, optionally, a display interface S701 includes a picture 2, scene information E, scene information F, scene information G, scene information H, a confirmation S703 and a modification S704, after a user clicks the modification S704, the interface S702 is entered, and if the user needs to modify the scene information G, the user presses the scene information G for a long time until a selected button S707 appears, and at this time, the scene information G can be directly modified; if the user needs to delete the scene information G, pressing the scene information G for a long time until a selected button S707 appears, and then clicking to delete S705; if the user needs to add new scene information, click to add S706, as shown in fig. 8, enter interface S801, directly input scene information I to be added, if the user needs to continue to add scene information, click to continue to add button S803, if the user does not need to add scene information again, click to return S804, enter interface S802, at this time, there is newly added scene information I already in interface S802, the user checks whether five pieces of scene information corresponding to picture 2 are wrong, if there is no mistake, click to confirm S805, thereby triggering a confirmation operation, and at this time, five pieces of scene information, namely scene information E, scene information F, scene information G, scene information H, and scene information I, are taken as the scene information corresponding to picture 2.
And S502, acquiring scene information.
Optionally, a specific implementation manner of S502 is the same as the specific implementation manner of S301, and is not described herein again. S503, at least one first scene information with the similarity degree with the scene information being larger than or equal to a preset threshold value is obtained.
In this embodiment of the application, the manner of obtaining or generating the first scenario information may be to compare the scenario information with at least one scenario information pre-stored locally or on a server to obtain a similarity between the at least one scenario information pre-stored and the scenario information, and then use each scenario information pre-stored with the similarity greater than a preset threshold as the first scenario information. Optionally, first scene information with a similarity greater than or equal to a preset threshold may also be acquired based on the scene information, or a synonym of the scene information may be acquired as the first scene information, for example, the first scene information of "cafe" may be "cafe", the first scene information of "afternoon" may be "afternoon", and the first scene information of "seaside" may be "beach". Alternatively, the similar scene information may be obtained or generated in other manners, which are not limited herein. Optionally, the preset threshold may be a value range set by the user as desired, or may be a value range preset by the mobile terminal, for example, 60% to 100% or 30% to 95%. For example, the similarity threshold of the two pieces of scene information at the seaside and the beach is greater than the similarity threshold of the seaside and the sea.
Optionally, the manner of acquiring or generating the first context information may also be to acquire a similarity between the context information and context information corresponding to each piece of pre-stored data. For example, the method for obtaining the similarity may be to compare the scene information with each piece of scene information corresponding to each piece of pre-stored data to obtain the similarity between the scene information and each piece of scene information corresponding to each piece of data, and then synthesize the similarity between each piece of scene information corresponding to each piece of data to obtain the similarity between the scene information and all pieces of scene information corresponding to each piece of pre-stored data. Alternatively, the similarity between the scene information and the scene information corresponding to each piece of pre-stored data may be obtained in other manners, which is not limited herein.
S504, determining or generating a first query instruction based on the scene information and/or the first scene information.
And S505, acquiring target data corresponding to the scene information according to the first query instruction.
In the embodiment of the application, the first query instruction may include scene information and/or first scene information, and if only the scene information is included, the data stored corresponding to the scene information may be queried, which is more accurate; if the query instruction contains the scene information and the first scene information at the same time, the query condition is expanded, the data stored corresponding to the scene information or the first scene information can be queried, the query result is more comprehensive, the situation that the target data cannot be queried due to the fact that the keywords in the scene information are set forgotten or input inaccurately can be avoided, and the result is not queried through the scene information due to the fact that irrelevant results exist. Optionally, according to the difference in similarity between the first context information and the context information, the manner of searching for the target data includes at least one of: precision lookup, associative lookup, and broad/fuzzy lookup. Alternatively, the target data may be searched in other manners, which is not limited herein.
Optionally, as shown in fig. 9, a search interface diagram provided by an embodiment of the present application is shown, and the interface S901 includes a search bar S906, a precise mode S902, an interesting mode S903, a broad/fuzzy mode S904, and a start search S905. Optionally, the accurate mode S902 is accurate search, and the preset threshold has a high requirement on the similarity of the first scene information, for example, the preset threshold may be 85% to 99%; the interesting mode S903 is related searching, and the requirement of the preset threshold on the similarity of the first scene information is moderate at the moment, for example, the preset threshold can be 35% -65%; the wide/blur mode S904 is a wide search, and the requirement of the preset threshold on the similarity of the first scene information is low, for example, the preset threshold may be 10% to 30%, and when the target picture cannot be found in the precise mode or the interesting mode, the wide/blur mode may be tried to be adopted. After the user inputs a data query instruction containing scene information in the search bar, the user can select an accurate mode, an interesting mode and a wide/fuzzy mode according to the requirement, and finally clicks to start searching S905. Illustratively, the user enters scene information of "meeting" in the search bar and selects to search in an interesting mode, at which time, the preset threshold is set to be 30% -70%, the first scene information and/or the picture corresponding to the scene information with the similarity between 30% -70% and the scene information is taken as the target picture, at this time, because the similarity between the target picture and the scene information is not so high, some surprise search results can appear while the search results are more accurate, for example, when the scene information of 'meeting' is included in the query instruction, in the accurate mode, pictures or video information corresponding to the meeting scene can be found, and in the interesting mode, pictures under other scene information related to the scene information can be found, such as pictures for taking tea at the meeting place or other moving pictures at the same place. If the query instruction contains the scene information of 'seaside', the picture or video information of which the scene information is 'seaside' can be queried in the accurate mode, and the picture or video corresponding to other scene information 'sand beach' and 'sunshine' similar to the scene information can be queried in the wide/fuzzy mode.
Optionally, according to an optional example in S503, after the similarity between the scene information and the scene information corresponding to each piece of pre-saved data is obtained, the target data may be obtained by using, as the target data, data corresponding to the scene information whose similarity between the scene information and the target data is greater than a preset threshold. Optionally, the preset threshold may be a value range set by the user as desired, or may be a value range preset by the mobile terminal, for example, 60% to 100% or 30% to 95%.
Optionally, a specific implementation manner of S505 is the same as that of S303 described above, and is not described herein again. In the method described in fig. 5, by storing at least one piece of scene information corresponding to data, it is convenient to query target data more accurately through a query instruction containing the scene information when querying data subsequently; the method comprises the steps of obtaining scene information, obtaining at least one first scene information with the similarity degree larger than or equal to a preset threshold value with the scene information, determining or generating a first query instruction based on the scene information and/or the first scene information, and obtaining target data corresponding to the scene information according to the first query instruction, so that the target data can be screened out more purposefully. Therefore, based on the method described in fig. 5, the query speed and accuracy can be improved while the user experience is improved.
Third embodiment
Referring to fig. 10, fig. 10 is a flowchart illustrating a data query method according to a third embodiment. The data query method shown in fig. 10 includes S1001 to S1008. The method of the embodiment of the present application may be executed by the mobile terminal shown in fig. 1, or may be executed by a chip in the mobile terminal, and the mobile terminal may be applied to the communication network system shown in fig. 2. The method shown in fig. 10 is executed by a mobile terminal as an example. Wherein:
and S1001, receiving a second query instruction.
In the embodiment of the present application, the second query instruction is used to indicate a query condition set when a data query is performed. Alternatively, the indicated query condition of the second query instruction needs to be accurate and clear, for example, the user clearly remembers the time when the picture was taken, and then the time can be used as the query condition indicated by the second query instruction. The second data query instruction includes at least one of: time information of the data, position information of the data, and label information of the data. Optionally, the second query instruction may be a text, a picture or a voice, which is not limited herein. Illustratively, when the second query instruction is a voice, the voice needs to be analyzed to obtain the annotation information, the time information, or the location corresponding to the voice.
S1002, judging whether target data matched with the second query instruction is found;
and if the data matched with the second query instruction is found, taking the data matched with the second query instruction as target data, executing S1008 and outputting the target data.
If the data matched with the second query instruction is not found, executing:
s1003, identifying the scene when the acquisition condition is met, and acquiring scene information.
In the embodiment of the application, the scene when the obtaining condition is met is identified, and the obtained scene information includes at least one of the following: environment information, user status information, location category information, event information, time information, and time category information. Optionally, a specific implementation manner of obtaining the scene information in S1003 is the same as the specific implementation manner of determining or obtaining at least one scene information of the data in S501, and is not described herein again.
Optionally, in a possible implementation manner, S1003 to S1007 may be directly executed without going through S1001 and S1002, that is, the scene when the acquisition condition is satisfied is directly identified, the scene information is acquired, and the subsequent steps are executed. Optionally, in this embodiment of the present application, the scenario when the obtaining condition is satisfied may be: if data query failure is detected within a preset time period, determining that the acquisition condition is met, and acquiring scene information in the scene at the moment. Optionally, the preset time period may be a time period set by the user as desired, or may be a time period preset by the mobile terminal, for example, when it is detected that the second query instruction fails to query within 1 minute, the scene information when the query fails is obtained.
Optionally, in a possible implementation manner, the scenario when the acquisition condition is satisfied may also be: if the function of inquiring data based on the scene information is opened, determining that the acquisition condition is met; for example, when the user starts a scene query picture mode, the scene information of the current scene is acquired in the query state. Optionally, if the display data query interface is detected, it is determined that the acquisition condition is met, and scene information of the current scene is acquired. Illustratively, when the user opens the interface S1101 on the subway in the morning at 8:30, the display data query interface may be detected, and the scene information of the current scene is acquired, as shown in fig. 11, the interface S1101 includes a search bar S1102 and some acquired scene information according to the scene when the user opens the interface S1101, such as "commute", "morning", "drowsiness", and "subway", etc. Alternatively, the condition for acquiring the scene information may be an acquisition condition of another manner, which is not limited herein.
Optionally, in a possible implementation manner, the scene when the obtaining condition is met may be identified, and the second scene information is obtained; and determining third scene information with the similarity degree with the second scene information being larger than a first preset threshold value, and taking the second scene information, or the third scene information and the second scene information as the scene information. Optionally, the first preset threshold may be a value range set by the user as desired, or a value range preset by the mobile terminal.
Illustratively, as shown in table 1, scenes when the acquisition condition is satisfied are identified, the second scene information is detected as "football pitch" and "chatting", then third scene information having a similarity greater than 65% with the second scene information is determined, so as to obtain the third scene information in table 1, and finally, the second scene information and the third scene information are both used as scene information, so as to obtain final scene information.
TABLE 1
Figure BDA0003264733110000121
And S1004, outputting second prompt information, wherein the second prompt information comprises at least one piece of scene information.
In the embodiment of the application, the second prompt message is used for prompting the acquired at least one piece of scene information. For example, the user inputs a second query instruction, where the second query instruction is "8-point meeting", but the query fails after the query by the second query instruction, and at this time, it is determined that the scene information acquisition condition is satisfied when the query by the second query instruction fails, so as to acquire the scene information, and optionally, the "8-point meeting" is used as one of the scene data in the event information acquired when the scene information is acquired, so as to obtain the scene information such as "morning meeting" and "conference opening" accordingly. At this time, as shown in fig. 12, the interface S1201 outputs a second prompt message S1203, where the second prompt message S1203 includes information such as "you probably want to input: an suggestive language such as "and a plurality of first scene information such as" morning meeting "," meetings ", etc.
S1005, receiving the confirmation operation, and taking at least one confirmed scene information as the scene information.
S1006, determining or generating a first query instruction based on the scene information.
In the embodiment of the present application, the confirmation operation refers to scene information confirmed by a use object of the mobile terminal. Optionally, the confirmation operation may be at least one piece of scene information selected by the use object of the mobile terminal from the scene information included in the second prompt information, or at least one piece of scene information input to the mobile terminal by the use object of the mobile terminal in another manner. In this embodiment of the application, the generating of the first query instruction may be automatically generated based on the context information included in the second prompt information, or may be generated based on the context information selected by the user's will. Illustratively, after the user sees the second prompting message, scene information in the second prompting message can be selected, so that the first query instruction is generated based on the selected one or more scene information. For example, the user selects "meeting" and "office" by clicking, and the first query instruction containing the two pieces of scene information of "meeting" and "office" is directly generated at this time.
And S1007, acquiring target data corresponding to the scene information according to the first query instruction.
And S1008, outputting the target data.
Optionally, the specific implementation manners of S1007 to S1008 are the same as those of S503, and are not described herein again.
In the method described in fig. 10, a second query instruction is received and queried, after query by the second query instruction fails, a scene satisfying the acquisition condition is identified, scene information is acquired, second prompt information including at least one piece of scene information is output, then a first query instruction is generated based on the confirmed scene information, and finally target data is output. Therefore, based on the method described in fig. 10, when the host user forgets that the user can use the scene information for query and fails to query by using the conventional query method, the user can be prompted to query the scene information, and the predicted scene information is provided, which is beneficial to improving the user experience, and the speed and accuracy during query.
Fourth embodiment
Referring to fig. 13, fig. 13 is a flowchart illustrating a data query method according to a fourth embodiment. The data query method shown in fig. 13 includes S1301 to S1307. The method of the embodiment of the present application may be executed by the mobile terminal shown in fig. 1, or may be executed by a chip in the mobile terminal, and the mobile terminal may be applied to the communication network system shown in fig. 2. The method shown in fig. 13 is executed by a mobile terminal as an example. Wherein:
and S1301, receiving a second query instruction.
S1302, judging whether the data matched with the second query instruction is found;
if the data matched with the second query instruction is found, the data matched with the second query instruction is used as target data, and S1307 is executed to output the target data.
If the data matched with the second query instruction is not found, executing:
and S1303, outputting first prompt information to remind the user of inputting scene information.
In the embodiment of the application, the first prompt information is used for prompting a user to input the scene information, so that a first data query instruction containing the scene information is generated conveniently. The mode of outputting the first prompt message comprises at least one of the following modes: voice, text, picture. For example, as shown in fig. 14, a prompt interface diagram is shown, and an interface S1401 includes a search bar S1402, "please try to input scene information for search: examples of the suggestive words "and the scene information include scene information Y1 to Y3. Alternatively, the manner of outputting the first prompt message may be other manners, and is not limited herein.
S1304, determining or generating a first query instruction based on the scene information;
optionally, a specific implementation manner of S1304 is the same as the specific implementation manner of S302, and is not described herein again.
And S1305, acquiring target data corresponding to scene information.
Optionally, the obtaining means includes at least one of: precision lookup and fuzzy lookup. For example, when only one piece of scene information is available, for example, when the scene information input by the host user is accurately searched for as "cafe", the data corresponding to the "cafe" is directly searched for as the target data; when the fuzzy search is that the scene information input by the master user is 'coffee shop', the scene information similar to 'coffee shop', such as 'coffee' and 'coffee beans', is determined, and then the data corresponding to 'coffee shop', 'coffee' and 'coffee beans' are acquired as target data.
And S1306, acquiring target data corresponding to the scene information.
In the embodiment of the application, one or more pieces of scene information input by a user can be available, and when only one piece of scene information exists, the target data corresponding to the scene information is acquired; when the scene information is multiple, the target data corresponding to each scene information is obtained, and/or the optional scene information in the multiple scene information is combined and searched, so that the target data corresponding to the multiple scene information is obtained. For example, the scene information input by the owner user includes "cafe", "afternoon" and "cool", and the four scene information combination modes of "cafe" and "afternoon", "cafe" and "cool", "afternoon" and "cool" and "cafe", "afternoon" and "cool" can be selected for searching while the searching is performed according to the three scene information respectively, so that the target data corresponding to each scene information and the target data corresponding to the four scene information combination modes are searched respectively.
And S1307, outputting the target data.
Optionally, a specific implementation manner of S1307 is the same as that of the optional example in S303 described above, and is not described herein again.
In the method described in fig. 13, a second query instruction is received and queried, after query failure occurs in the second query instruction, a first prompt message is output to prompt input of scene information, then a first query instruction is generated based on the scene information, and target data is obtained and output by obtaining target data corresponding to one scene information and/or obtaining target data corresponding to a plurality of scene information. Therefore, based on the method described in fig. 13, when the host user forgets that the user can use the scene information for query and fails to query by using the conventional query method, the user is prompted to query the scene information, and meanwhile, the accuracy in query is improved by searching for the target data corresponding to one or more pieces of scene information.
The application also provides a mobile terminal, which comprises a memory and a processor, wherein the memory is stored with a data query program, and the data query program is executed by the processor to realize the steps of the data query method in any embodiment.
The present application further provides a computer-readable storage medium, in which a data query program is stored, and when being executed by a processor, the data query program implements the steps of the data query method in any of the above embodiments.
In the embodiments of the mobile terminal and the computer-readable storage medium provided in the present application, all technical features of the embodiments of the data query method are included, and the expanding and explaining contents of the specification are basically the same as those of the embodiments of the method, and are not described herein again.
Embodiments of the present application also provide a computer program product, which includes computer program code, when the computer program code runs on a computer, the computer is caused to execute the method in the above various possible embodiments.
Embodiments of the present application further provide a chip, which includes a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device in which the chip is installed executes the method in the above various possible embodiments.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device in the embodiment of the application can be merged, divided and deleted according to actual needs.
In the present application, the same or similar term concepts, technical solutions and/or application scenario descriptions will be generally described only in detail at the first occurrence, and when the description is repeated later, the detailed description will not be repeated in general for brevity, and when understanding the technical solutions and the like of the present application, reference may be made to the related detailed description before the description for the same or similar term concepts, technical solutions and/or application scenario descriptions and the like which are not described in detail later.
In the present application, each embodiment is described with emphasis, and reference may be made to the description of other embodiments for parts that are not described or illustrated in any embodiment.
The technical features of the technical solution of the present application may be arbitrarily combined, and for brevity of description, all possible combinations of the technical features in the embodiments are not described, however, as long as there is no contradiction between the combinations of the technical features, the scope of the present application should be considered as being described in the present application.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, memory Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A data query method, comprising the steps of:
s1: acquiring scene information;
s2: determining or generating a first query instruction based on the context information;
s3: and acquiring target data corresponding to the scene information according to the first query instruction.
2. The method according to claim 1, wherein before the step of S1, at least one piece of scene information satisfying an acquisition condition is acquired, and the satisfying the acquisition condition includes at least one of:
opening a scene information query data function;
detecting a display data query interface;
data query failure is detected within a preset time period.
3. The method according to claim 2, wherein the step of S1 includes:
identifying the scene meeting the acquisition condition to acquire the scene information; or the like, or, alternatively,
identifying the scene meeting the scene information obtaining condition, obtaining second scene information, determining third scene information with the similarity between the third scene information and the second scene information being larger than or equal to a second preset threshold value, and taking the third scene information and/or the second scene information as the scene information.
4. The method of claim 1, wherein the context information comprises at least one of:
location category information of the data;
time category information of the data;
environmental information of the data;
user status information of the data;
event information of the data.
5. The method according to any one of claims 1 to 4, further comprising, before the step of S1:
and correspondingly storing the at least one piece of scene information and the data.
6. The method according to any one of claims 1 to 4, wherein the step S1 further comprises:
and in response to the fact that the number of the scene information is at least two and a confirmation operation is received, taking at least one confirmed scene information as the scene information.
7. The method according to any one of claims 1 to 4, wherein the step S1 includes:
and acquiring at least one first scene information with the similarity greater than or equal to a preset threshold with the scene information.
8. The method according to any one of claims 1 to 4, further comprising, before the step of S1:
if the data matched with the second query instruction is not found, executing the step S1; and/or if the data matched with the second query instruction is found, not executing the step of S1.
9. A mobile terminal, characterized in that the mobile terminal comprises: memory, processor, wherein the memory has stored thereon a data query program, which when executed by the processor implements the steps of the data query method according to any one of claims 1 to 8.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the data query method according to any one of claims 1 to 8.
CN202111083147.8A 2021-09-15 2021-09-15 Data query method, mobile terminal and storage medium Pending CN113779294A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111083147.8A CN113779294A (en) 2021-09-15 2021-09-15 Data query method, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111083147.8A CN113779294A (en) 2021-09-15 2021-09-15 Data query method, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN113779294A true CN113779294A (en) 2021-12-10

Family

ID=78844308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111083147.8A Pending CN113779294A (en) 2021-09-15 2021-09-15 Data query method, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113779294A (en)

Similar Documents

Publication Publication Date Title
CN108334539B (en) Object recommendation method, mobile terminal and computer-readable storage medium
CN107517153B (en) Message push control method and terminal
CN108241752B (en) Photo display method, mobile terminal and computer readable storage medium
CN113704631B (en) Interactive instruction prompting method, intelligent device and readable storage medium
CN114371803B (en) Operation method, intelligent terminal and storage medium
CN112181233B (en) Message processing method, intelligent terminal and computer readable storage medium
CN114761926A (en) Information acquisition method, terminal and computer storage medium
CN113487705A (en) Image annotation method, terminal and storage medium
CN114398113A (en) Interface display method, intelligent terminal and storage medium
CN113485899A (en) Information processing method, terminal device and storage medium
CN113608808A (en) Data processing method, mobile terminal and storage medium
CN113190752A (en) Information recommendation method, mobile terminal and storage medium
CN113094585A (en) Information recommendation method, terminal device and readable storage medium
CN114595007A (en) Operation method, intelligent terminal and storage medium
CN113835586A (en) Icon processing method, intelligent terminal and storage medium
CN113779294A (en) Data query method, mobile terminal and storage medium
CN113901245A (en) Picture searching method, intelligent terminal and storage medium
CN113918820A (en) Interface display method, mobile terminal and storage medium
CN111399710B (en) Associated touch method, associated touch equipment and computer readable storage medium
CN113703892A (en) Operation method, mobile terminal and storage medium
CN116010680A (en) Information processing method, intelligent terminal and storage medium
CN114003159A (en) Processing method, intelligent terminal and storage medium
CN115793904A (en) Lock screen display method, mobile terminal and storage medium
CN113721997A (en) Interactive processing method, intelligent terminal and storage medium
CN113392318A (en) Processing method, terminal device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication