CN115422916A - Data access method, data access device, electronic equipment, storage medium and program product - Google Patents

Data access method, data access device, electronic equipment, storage medium and program product Download PDF

Info

Publication number
CN115422916A
CN115422916A CN202211056735.7A CN202211056735A CN115422916A CN 115422916 A CN115422916 A CN 115422916A CN 202211056735 A CN202211056735 A CN 202211056735A CN 115422916 A CN115422916 A CN 115422916A
Authority
CN
China
Prior art keywords
target
operator
attribute
attribute name
variable
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
CN202211056735.7A
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.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network 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 Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202211056735.7A priority Critical patent/CN115422916A/en
Publication of CN115422916A publication Critical patent/CN115422916A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/274Converting codes to words; Guess-ahead of partial word inputs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure provides a data access method, a data access device, an electronic device, a storage medium and a program product. The method comprises the following steps: responding to the input of a preset operator in an input field, and acquiring a target operator positioned on one side of the preset operator; acquiring a target variable in the target operator, and determining a target variable category of the target variable; determining at least one attribute name corresponding to the target variable category based on the target variable category and an attribute access dictionary; the attribute access dictionary comprises at least one group of corresponding relations between variable categories and attribute names; generating a target attribute name based on the at least one attribute name; and determining the data to be accessed based on the target operator, the preset operator and the target attribute name. The method and the device can access the variable attribute of the formula through the preset operational characters, so that the formula can be written more flexibly and conveniently.

Description

Data access method, data access device, electronic equipment, storage medium and program product
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a data access method, an apparatus, an electronic device, a storage medium, and a program product.
Background
In the usage scenario of a formula, it is sometimes necessary to access the property of a variable in the formula.
However, the current formula does not support the attribute of the access variable, so that a user cannot obtain the attribute of the variable by writing the formula to participate in formula calculation.
Disclosure of Invention
In view of the above, an object of the present disclosure is to provide a data access method, apparatus, electronic device, storage medium and program product.
Based on the above object, the present disclosure provides a data access method, including:
in response to the input of a preset operator in an input field, acquiring a target operator positioned on one side of the preset operator;
acquiring a target variable in the target operator, and determining a target variable category of the target variable;
determining at least one attribute name corresponding to the target variable category based on the target variable category and an attribute access dictionary; the attribute access dictionary comprises at least one group of corresponding relation between variable categories and attribute names;
generating a target attribute name based on the at least one attribute name;
and determining the data to be accessed based on the target operator, the preset operator and the target attribute name.
In some embodiments, after determining the at least one attribute name corresponding to the target variable name, the method further comprises:
and generating a selection list corresponding to the input box, and displaying at least one attribute name in the selection list.
In some embodiments, said generating a target attribute name based on said at least one attribute name comprises:
determining the target attribute name in response to a selection operation on any one of the attribute names in the selection list;
and/or the presence of a gas in the atmosphere,
and inputting the target attribute name in the input field.
In some embodiments, after generating the target attribute name based on the at least one attribute name, the method further comprises:
and displaying the target attribute name on the other side of the preset operator in the input field.
In some embodiments, the determining data to be accessed based on the target operator, the preset operator, and the target attribute name includes:
acquiring a target attribute corresponding to the target attribute name in the target operator based on the preset operator;
and analyzing the target operator, and acquiring a target variable value corresponding to the target attribute of the target variable as the content to be accessed.
In some embodiments, in the property access dictionary, the variable names and/or the property names comprise a plurality of different language types;
before determining the data to be accessed based on the target operator, the preset operator and the target attribute name, the method further includes:
and converting the target operator and the target attribute name into a preset language type and displaying the preset language type in the input field.
An embodiment of the present disclosure further provides a data access apparatus, including:
a first acquisition module configured to: in response to the input of a preset operator in an input field, acquiring a target operator positioned on one side of the preset operator;
a second acquisition module configured to: acquiring a target variable in the target operator, and determining a target variable category of the target variable;
a first determination module configured to: determining at least one attribute name corresponding to the target variable category based on the target variable category and an attribute access dictionary; the attribute access dictionary comprises at least one group of corresponding relation between variable categories and attribute names;
a generation module configured to: generating a target attribute name based on the at least one attribute name;
a second determination module configured to: and determining the data to be accessed based on the target operator, the preset operator and the target attribute name.
Embodiments of the present disclosure also provide an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the program to implement the method according to any one of the above-mentioned methods.
The disclosed embodiments also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the method of any one of the above.
Embodiments of the present disclosure also provide a computer program product comprising a computer-readable storage medium having stored thereon instructions that, when executed, cause at least one central processor unit of a computing device to perform the method according to any of the above.
As can be seen from the foregoing, according to the data access method, the data access apparatus, the electronic device, the storage medium, and the program product provided by the present disclosure, when a user inputs a formula, a preset operator may be input after a variable is input, so that a target attribute name accessible to the variable in a target operator may be obtained through the preset operator, and data to be accessed may be determined through the target attribute name, so that the user may obtain a variable attribute through writing the formula to participate in formula calculation, and access the variable attribute through the preset operator, so that writing the formula is more flexible and convenient.
Drawings
In order to clearly illustrate the technical solutions of the present disclosure or related technologies, the drawings used in the embodiments or related technologies description will be briefly introduced below, and obviously, the drawings in the following description are only embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 illustrates a hardware architecture diagram of an exemplary electronic device provided by an embodiment of the present disclosure;
FIG. 2 illustrates a schematic diagram of formula input provided by embodiments of the present disclosure;
FIG. 3 illustrates a schematic diagram of formula input provided by embodiments of the present disclosure;
FIG. 4 illustrates a schematic diagram of formula input provided by embodiments of the present disclosure;
FIG. 5 illustrates a schematic diagram of formula input provided by embodiments of the present disclosure;
FIG. 6 illustrates a schematic diagram of formula input provided by embodiments of the present disclosure;
FIG. 7 illustrates an exemplary data access method flow diagram provided by an embodiment of the present disclosure;
fig. 8 shows a schematic structural diagram of an exemplary data access device provided by an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, the present disclosure will be described in further detail below with reference to specific embodiments and the accompanying drawings.
It is to be noted that technical terms or scientific terms used in the embodiments of the present disclosure should have a general meaning as understood by one having ordinary skill in the art to which the present disclosure belongs, unless otherwise defined. The use of "first," "second," and similar terms in the embodiments of the disclosure is not intended to indicate any order, quantity, or importance, but rather to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used only to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
As described in the background, in usage scenarios such as tables, forms, and multidimensional tables, some formula calculation functions may be implemented using formulas. For example, in the excel table, the calculation of the sum of a plurality of rows of numerical values of the column a and a plurality of rows of numerical values of the column B can be realized by using a formula without separately calculating two numerical values in each row of the column a and the column B, which reduces the workload of a user and enables the user to have better use effect.
However, in the usage scenario of the above formula, it is sometimes necessary to access the attribute of one variable, for example, to obtain the link attribute of a hyperlink variable, to obtain the file link attribute of an attachment variable, to obtain the province and city information attribute of a geographic coordinate point variable, and the like.
For example, for the formula Hyperlink ("www.url.com", "Hyperlink's Display Text"), which includes the Hyperlink variable Hyperlink, the Hyperlink variable Hyperlink includes two properties: link and display text; com, and the content corresponding to the attribute Display Text is Hyperlink's Display Text.
However, at present, from the formula Hyperlink ("www.url.com", "Hyperlink's Display Text"), it is impossible to acquire the content www.url.com corresponding to the attribute link included in the Hyperlink variable Hyperlink and the content Hyperlink's Display Text corresponding to the attribute Display Text. That is, the current formula does not support the attribute of the access variable, so that the user cannot obtain the attribute of the variable by writing the formula to participate in the formula calculation.
In view of the above, the present disclosure provides a data access method for acquiring a target operator located on a side of a preset operator by responding to input of the preset operator in an input field; acquiring a target variable name of a target variable in the target operator; determining at least one attribute name corresponding to the target variable name based on the target variable name and an attribute access dictionary; the attribute access dictionary comprises at least one group of corresponding relation between variable names and attribute names; generating a target attribute name based on the at least one attribute name; and determining the data to be accessed based on the target operator, the preset operator and the target attribute name, so that a user can obtain the target attribute name accessible to the variable in the target operator through the preset operator, and determine the data to be accessed through the target attribute name, so that the user can obtain the variable attribute to participate in formula calculation by writing a formula.
Fig. 1 shows a schematic diagram of a hardware structure of an exemplary electronic device provided in this embodiment, where the device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein the processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 are communicatively coupled to each other within the device via bus 1050.
Processor 1010 may be a Central Processing Unit (CPU), an image processor, a neural Network Processor (NPU), a Microcontroller (MCU), a programmable logic device, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits. Processor 1010 may be used to perform functions related to the techniques described in this disclosure. In some embodiments, processor 1010 may also include multiple processors integrated into a single logic component.
The Memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 1020 may be configured to store data (e.g., instructions, computer code, etc.). As shown in fig. 1, the data stored by the memory may include program instructions (e.g., for implementing the data processing methods of the present disclosure) as well as data to be processed (e.g., the memory may store documents of a logic system design, etc.). The processor 1010 may also access memory-stored program instructions and data and execute the program instructions to operate on the data to be processed. The memory 1020 may include volatile memory devices or nonvolatile memory devices. In some embodiments, memory 1020 may include Random Access Memory (RAM), read Only Memory (ROM), optical disks, magnetic disks, hard disks, solid State Disks (SSDs), flash memory, memory sticks, and the like.
The input/output interface 1030 is used for connecting an input/output module to connect the electronic device with one or more peripheral devices, so as to input and output information. The input/output module may be configured as a component in an electronic device (not shown), or may be external to the electronic device to provide corresponding functionality. The peripheral devices may include input devices such as a keyboard, mouse, touch screen, microphone, various sensors, etc. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 1040 is used for connecting a communication module (not shown in the drawings) to implement communication interaction between the electronic device and other devices. The communication module can realize communication in a wired mode (for example, USB, network cable, etc.), and can also realize communication in a wireless mode (for example, mobile network, WIFI, bluetooth, etc.). It is to be understood that the manner of communication is not limited to the specific examples described above. In some embodiments, communication interface 108 may include any combination of any number of Network Interface Controllers (NICs), radio frequency modules, transceivers, modems, routers, gateways, adapters, cellular network chips, and the like.
Bus 1050 includes a path that transfers information between various components of the device, such as processor 1010, memory 1020, input/output interface 1030, and communication interface 1040. The bus 1050 may include an internal bus (e.g., processor-memory bus), an external bus (USB port, PCI-E bus), and so forth.
It should be noted that although the above-described device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
The electronic device may be a terminal device. The electronic equipment provides a table, a form, a multi-dimensional table and other use scenes, provides input fields in the table, the form and the multi-dimensional table, and inputs a formula through the input fields, so that a formula editing function is realized. The terminal device may be at least one of a smart phone, a game console, a desktop computer, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, and a laptop computer, but is not limited thereto.
The following further describes an implementation manner of the data access method provided by the embodiment of the disclosure with reference to the electronic device shown in fig. 1.
First, the properties that different variables can be accessed need to be determined, i.e., the properties that state which variables can be accessed. For example, hyperlink variables may have access to link attributes and text attributes, and geographic variables may have access to province, city, district, etc. attributes.
Therefore, it is necessary to set in advance a correspondence between the variable name and the attribute name and store the correspondence between the variable name and the attribute name in the attribute access dictionary.
For example, the variable category is a "hyperlink variable", and the accessible attribute names are link (i.e., link attribute) and text (i.e., text attribute); the variable category is "geo-location variable" and the accessible property names are provice (i.e., province) and city (i.e., city).
In this way, the attribute access dictionary may be generated based on the correspondence between the at least one set of variable categories and the attribute names, and the attribute access dictionary may be stored in the electronic device in advance. Optionally, the corresponding relationship between the variable category and the attribute name in the attribute access dictionary may be maintained to add, modify, or delete the corresponding relationship between the variable category and the attribute name in the attribute access dictionary, which is not limited in this embodiment.
In some alternative embodiments, the user may enter input content in the input field in different language types due to different usage environments. For example, for the link attribute of a hyperlink variable, the user enters "link" in the Chinese context and "link" in the English context; for the text attribute of a hyperlink variable, the user enters "text" in the Chinese context and "text" in the English context; for the province attribute of the geographic location variable, the user inputs "province" in the Chinese environment and "province" in the English environment; for the city nature of the geo-location variable, the user enters "city" in the Chinese context and "city" in the English context.
In the above, the same attribute is ultimately pointed to regardless of whether the user enters chinese or english, and therefore the variable name and/or the attribute name setting may include descriptions of a plurality of different language types in the attribute access dictionary.
For example, for the link attribute of a hyperlink variable, the corresponding attribute name includes "link" and "link", and when a user inputs "link" or "link" in the input field, the link attribute of the hyperlink variable is pointed to, so that the input requirements of the user in different language environments are met.
For example, for the province attribute of the geographic location variable, the corresponding attribute name comprises "province" and "provision", and when the user inputs "province" or "provision" in the input field, the province attribute of the geographic location variable is pointed to, so that the input requirements of the user under different language environments are met.
In some embodiments, since the formula calculation can only recognize english letters under normal conditions, for an attribute of a variable, its english description can be set as an attribute name, and both the chinese description and the english expression are set as attribute exhibition texts corresponding to the attribute name. Thus, when the user directly inputs Chinese into the input field, the Chinese input in the input field can be converted into English attribute names based on the attribute display text so as to be convenient for the calculation of subsequent formulas; and when the attribute names are directly displayed, the English attribute names can be directly displayed so as to be convenient for the user to view and select.
And after the attribute access dictionary is generated, the attribute access to the formula variables can be realized.
As shown in fig. 2, the electronic device is provided with an input field 901, which input field 901 can be used for formula input. The input field 901 may be an input box capable of inputting a formula in an application such as a table, a form, and a multidimensional table.
First, the user inputs a formula 801 in the input field 901, and preset operators 802 can be input after the input of the formula 801 is completed. The preset operator may be a point operator "", or may be any other symbol. The present embodiment describes the technical solution of the present disclosure in detail by taking a point operator as an example.
When the electronic device detects that a point operator is input in the input field 901, the electronic device acquires a target operator located on the side of the point operator, that is, the formula 801 input in the input field 901.
As shown in fig. 2, since the input field 901 is generally in a horizontal direction, and the input content is input from left to right sequentially, the target operator on one side of the point operator, i.e. the left operator hyper link ("www.
After the left operator of the point operator is obtained, the electronic device analyzes the left operator, so that a target variable Hyperlink in the left operator is obtained, and the target variable category to which the target variable Hyperlink belongs is further determined to be a Hyperlink variable.
Then, the electronic device obtains the attribute names of link (namely link attribute) and text (namely text attribute) corresponding to the variable category of the hyperlink variable from the attribute access dictionary based on the target variable category of the hyperlink variable and the preset attribute access dictionary, so that at least one attribute name of link and text corresponding to the target variable category of the hyperlink variable can be determined.
In some embodiments, as shown in fig. 3, the electronic device may generate a selection list 902 corresponding to the input field 901, and display the at least one attribute name "link" and "text" in the selection list 902. In this way, the user can search for the attribute contents that can be accessed in the formula entered in the input field 901, thereby reminding the user that the formula contents in the input field 901 can be completed based on the attribute names in the selection list 902.
Thereafter, the electronic device may generate target attribute names "link" and "text" required by the user based on the at least one attribute name "link" and "text". For example, when the link attribute in the left operator is desired to be accessed by the user, "link" can be used as the target attribute name; when the text attribute in the left operator is desired to be accessed by the user, the text can be used as the target attribute name.
Specifically, in this embodiment, the target attribute name may be determined by a user selecting any one of the attribute names in the selection list 902. For example, after the user clicks "link" in the selection list 902 with a mouse or a finger, the "link" is selected as the target attribute name; after the user clicks "text" in the selection list 902 with a mouse or a finger, the "text" is selected as a target attribute name.
Alternatively, the user may directly input the target attribute name "link" or "text" in the input field 901, which is not limited in this embodiment.
After determining the target attribute name, the electronic device displays the target attribute name on the other side of the preset operator in the input field 901, thereby completing the formula content. As shown in fig. 4, assuming that the target property name determined by the user is "link", the target property name 803 is displayed on the right side of the preset operator 802, and at this time, the completed formula displayed in the input field 901 is "Hyperlink (" www.
In the above embodiment, when the target property name input by the user in the input field is chinese, as shown in fig. 5, for example, when the complemented formula displayed in the input field 901 is "Hyperlink (" www.url.com "," Hyperlink's Display Text "). Link", the formula "Hyperlink (" www.url.com "," Hyperlink's Display Text "). Link" may be compiled into the description "english language (" www.url.com "," Hyperlink's Display Text "). Link" based on the description of the variable name and/or the property name setting recorded in the property access dictionary, that is, the target operator and the target property name are displayed in the input field after being converted into the preset english language type (i.e. english language) that can be used for formula calculation, so that property access of the formula can be directly performed in the subsequent input field.
And finally, determining the data to be accessed based on the target operator, the preset operator and the target attribute name.
When formula calculation is performed, the preset operator, namely the point operator, can acquire a target attribute corresponding to the target attribute name from a target operator positioned on the left side of the point operator; and then analyzing the target operator, namely acquiring a target variable value corresponding to the target attribute of the target variable as the content to be accessed.
In this embodiment, as shown in fig. 6, when performing formula calculation, a point operator after the formula is compiled is an attribute access operator, taking "Hyperlink (" www.url.com "," Hyperlink's Display Text "). Link" as an example, a target variable category of a left operator Hyperlink ("www.url.com", "Hyperlink's Display Text") of the attribute access operator is a "Hyperlink variable", a right operator link is an accessed target attribute name, and an operation logic is to obtain an attribute declared by a right operator from the left operator and then return. The final calculation is to return "www.
In other embodiments, a geographic location input box is also included, and specific geographic location information is entered in the geographic location input box, such as "first park, city, a, B, C, D, street number E. The formula "Location" is input in the input field 901, wherein the "Location" refers to the geographical Location information in the geographical Location input box.
When the electronic device detects that the point operator is input in the input field 901, the electronic device obtains a target operator "Location" located on one side of the point operator, and analyzes the left operator, so as to obtain a target variable Location in the left operator, and further determines that a target variable category to which the target variable Location belongs is a "geographic Location variable".
Then, based on the target variable category "geographic location variable" and a preset property access dictionary, the electronic device obtains the property names of the property (i.e., province property) and the property (i.e., city property) corresponding to the variable category "geographic location variable" from the property access dictionary, so that at least one property name of the target variable category "geographic location variable" can be determined as "province" and "property", and the property name can be displayed in the selection list 902.
Thereafter, the user completes the formula content by directly inputting "provide" or performing a selection operation on "provide" in the selection list 902, thereby determining a target property name "provide" and displaying it on the other side of the preset operator in the input field 901. At this time, the complemented formula displayed in the input field 901 is "location.
And finally, when the formula is calculated, the compiled formula point operator is an attribute access operator, the target variable category of the left operator Location of the attribute access operator is a geographical position variable, the right operator provision is an accessed target attribute name, and the operation logic is to acquire the attribute declared by the right operator from the left operator and then return. The final calculation result is to return "province a".
According to the data access method disclosed by the embodiment of the disclosure, when a user inputs a formula, a point operator is input after a variable, a completion prompt of an accessible attribute related to the variable can be seen, and the efficiency of inputting the formula by the user is improved; the user inputs the attribute name in the language environment of the user, and the recognition of the attribute name of a multilingual type can be realized by accessing the dictionary through the preset attribute, so that the readability of the formula input by the user is greatly improved; a user can access variable attributes through formula point operators, so that formula writing is more flexible and convenient.
Based on the same inventive concept, the present disclosure also provides a data access method corresponding to any of the above-described embodiments.
Fig. 7 shows a flowchart of a data access method according to an embodiment of the present disclosure.
As shown in fig. 7, the data access method according to the embodiment of the present disclosure includes:
in step S101, in response to a preset operator being input in an input field, a target operator located on a side of the preset operator is acquired.
Step S103, acquiring the target variable name of the target variable in the target operator.
Step S105, based on the target variable name and the attribute access dictionary, determining at least one attribute name corresponding to the target variable name; the attribute access dictionary comprises at least one group of corresponding relations between variable names and attribute names.
Step S107, generating a target attribute name based on the at least one attribute name.
Step S109, determining the data to be accessed based on the target operator, the preset operator and the target attribute name.
According to the data access method disclosed by the embodiment of the disclosure, when a user inputs a formula, a preset operator can be input after a variable, so that a target attribute name accessible by the variable in a target operator can be obtained through the preset operator, and data to be accessed is determined through the target attribute name, so that the user can obtain the variable attribute through writing the formula to participate in formula calculation, and the variable attribute is accessed through the preset operator, so that the writing of the formula is more flexible and convenient.
In some embodiments, after the determining at least one attribute name corresponding to the target variable name in step S105, the method further includes:
and generating a selection list corresponding to the input box, and displaying at least one attribute name in the selection list.
In some embodiments, the generating of the target attribute name based on the at least one attribute name in step S107 includes:
determining the target attribute name in response to a selection operation on any one of the attribute names in the selection list; and/or inputting the target attribute name in the input field.
In some embodiments, after the generating the target attribute name based on the at least one attribute name in step S107, the method further includes:
and displaying the target attribute name on the other side of the preset operator in the input field.
In some embodiments, the determining data to be accessed based on the target operator, the preset operator and the target attribute name in step S109 includes:
acquiring a target attribute corresponding to the target attribute name in the target operator based on the preset operator;
and analyzing the target operator, and acquiring a target variable value corresponding to the target attribute of the target variable as the content to be accessed.
In some embodiments, in the property access dictionary, the variable names and/or the property names comprise a plurality of different language types;
before determining the data to be accessed based on the target operator, the preset operator, and the target attribute name in step S109, the method further includes:
and converting the target operator and the target attribute name into a preset language type and displaying the preset language type in the input field.
It should be noted that the method of the embodiments of the present disclosure may be executed by a single device, such as a computer or a server. The method of the embodiment can also be applied to a distributed scene and is completed by the mutual cooperation of a plurality of devices. In such a distributed scenario, one of the devices may only perform one or more steps of the method of the embodiments of the present disclosure, and the devices may interact with each other to complete the method.
It should be noted that the above describes some embodiments of the disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments described above and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Based on the same inventive concept, the present disclosure also provides a data access device corresponding to any of the above-described embodiments.
Referring to fig. 8, the apparatus includes:
a first obtaining module 11 configured to: in response to the input of a preset operator in an input field, acquiring a target operator positioned on one side of the preset operator;
a second obtaining module 13 configured to: acquiring a target variable in the target operator, and determining a target variable type of the target variable;
a first determination module 15 configured to: determining at least one attribute name corresponding to the target variable category based on the target variable category and an attribute access dictionary; the attribute access dictionary comprises at least one group of corresponding relation between variable categories and attribute names;
a generating module 17 configured to: generating a target attribute name based on the at least one attribute name;
a second determination module 19 configured to: and determining the data to be accessed based on the target operator, the preset operator and the target attribute name.
In some embodiments, the first determining module 15 is further configured to:
and generating a selection list corresponding to the input box, and displaying at least one attribute name in the selection list.
In some embodiments, the generating module 17 is further configured to:
determining the target attribute name in response to a selection operation on any one of the attribute names in the selection list;
and/or the presence of a gas in the atmosphere,
and inputting the target attribute name in the input field.
In some embodiments, the generating module 17 is further configured to:
and displaying the target attribute name on the other side of the preset operator in the input field.
In some embodiments, the second determining module 19 is further configured to:
acquiring a target attribute corresponding to the target attribute name in the target operator based on the preset operator;
and analyzing the target operator, and acquiring a target variable value corresponding to the target attribute of the target variable as the content to be accessed.
In some embodiments, in the property access dictionary, the variable names and/or the property names include a plurality of different language types;
the second determining module 19 is further configured to: and converting the target operator and the target attribute name into a preset language type and displaying the preset language type in the input field.
For convenience of description, the above devices are described as being divided into various modules by functions, which are described separately. Of course, the functionality of the various modules may be implemented in the same one or more software and/or hardware implementations of the present disclosure.
The apparatus in the foregoing embodiment is used to implement the corresponding service orchestration method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, corresponding to any of the above-described embodiment methods, the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the method according to any of the above embodiments.
Computer-readable media of the present embodiments, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device.
The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the method according to any of the above embodiments, and have the beneficial effects of the corresponding method embodiment, and are not described herein again.
Based on the same inventive concept, the present disclosure also provides a computer program product, corresponding to any of the above-described embodiment methods, comprising a computer program. In some embodiments, the computer program is executable by one or more processors to cause the processors to perform the method. Corresponding to the execution subject corresponding to each step in the embodiments of the method, the processor executing the corresponding step may be the corresponding execution subject.
The computer program product of the foregoing embodiment is used to enable a processor to execute the method according to any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of the present disclosure, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of brevity.
In addition, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown in the provided figures for simplicity of illustration and discussion, and so as not to obscure the embodiments of the disclosure. Further, devices may be shown in block diagram form in order to avoid obscuring embodiments of the disclosure, and also in view of the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the embodiments of the disclosure are to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the disclosure, it should be apparent to one skilled in the art that the embodiments of the disclosure can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present disclosure has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures, such as Dynamic RAM (DRAM), may use the discussed embodiments.
The disclosed embodiments are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalents, improvements, and the like that may be made without departing from the spirit or scope of the embodiments of the present disclosure are intended to be included within the scope of the disclosure.

Claims (10)

1. A method of data access, comprising:
in response to the input of a preset operator in an input field, acquiring a target operator positioned on one side of the preset operator;
acquiring a target variable in the target operator, and determining a target variable type of the target variable;
determining at least one attribute name corresponding to the target variable category based on the target variable category and an attribute access dictionary; the attribute access dictionary comprises at least one group of corresponding relations between variable categories and attribute names;
generating a target attribute name based on the at least one attribute name;
and determining the data to be accessed based on the target operator, the preset operator and the target attribute name.
2. The method of claim 1, wherein after determining at least one attribute name corresponding to the target variable name, further comprising:
and generating a selection list corresponding to the input box, and displaying at least one attribute name in the selection list.
3. The method of claim 2, wherein generating the target attribute name based on the at least one attribute name comprises:
determining the target attribute name in response to a selection operation of any one of the attribute names in the selection list;
and/or the presence of a gas in the atmosphere,
and inputting the target attribute name in the input field.
4. The method of claim 1, wherein after generating the target attribute name based on the at least one attribute name, further comprising:
and displaying the target attribute name on the other side of the preset operator in the input field.
5. The method according to any one of claims 1 to 4, wherein the determining the data to be accessed based on the target operator, the preset operator and the target attribute name comprises:
acquiring a target attribute corresponding to the target attribute name in the target operator based on the preset operator;
and analyzing the target operator, and acquiring a target variable value corresponding to the target attribute of the target variable as the content to be accessed.
6. The method according to claim 1, wherein in the property access dictionary, the variable names and/or the property names include a plurality of different language types;
before determining the data to be accessed based on the target operator, the preset operator and the target attribute name, the method further includes:
and converting the target operator and the target attribute name into a preset language type and displaying the preset language type in the input field.
7. A data access device, comprising:
a first acquisition module configured to: responding to the input of a preset operator in an input field, and acquiring a target operator positioned on one side of the preset operator;
a second acquisition module configured to: acquiring a target variable in the target operator, and determining a target variable category of the target variable;
a first determination module configured to: determining at least one attribute name corresponding to the target variable category based on the target variable category and an attribute access dictionary; the attribute access dictionary comprises at least one group of corresponding relations between variable categories and attribute names;
a generation module configured to: generating a target attribute name based on the at least one attribute name;
a second determination module configured to: and determining the data to be accessed based on the target operator, the preset operator and the target attribute name.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 6 when executing the program.
9. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 6.
10. A computer program product comprising a computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed, cause at least one central processor unit of a computing device to perform the method according to any of claims 1 to 6.
CN202211056735.7A 2022-08-31 2022-08-31 Data access method, data access device, electronic equipment, storage medium and program product Pending CN115422916A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211056735.7A CN115422916A (en) 2022-08-31 2022-08-31 Data access method, data access device, electronic equipment, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211056735.7A CN115422916A (en) 2022-08-31 2022-08-31 Data access method, data access device, electronic equipment, storage medium and program product

Publications (1)

Publication Number Publication Date
CN115422916A true CN115422916A (en) 2022-12-02

Family

ID=84200074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211056735.7A Pending CN115422916A (en) 2022-08-31 2022-08-31 Data access method, data access device, electronic equipment, storage medium and program product

Country Status (1)

Country Link
CN (1) CN115422916A (en)

Similar Documents

Publication Publication Date Title
US9507480B1 (en) Interface optimization application
CN109508189B (en) Layout template processing method and device and computer readable storage medium
CN111240669B (en) Interface generation method and device, electronic equipment and computer storage medium
US8290925B1 (en) Locating product references in content pages
CN114153791A (en) File fast retrieval method and device, electronic equipment and storage medium
CN106156109B (en) Searching method and device
JP2019522847A (en) Method, device and terminal device for extracting data
CN113741753A (en) Revocation method, electronic device, storage medium, and computer program product
CN110705208B (en) Text display method, text display device, computer readable storage medium and electronic equipment
CN112506503A (en) Programming method, device, terminal equipment and storage medium
WO2023138546A1 (en) Information processing method and apparatus, electronic device, and storage medium
CN110990006A (en) Form management system and form generation device
CN111209277A (en) Data processing method, device, equipment and medium
CN115081423A (en) Document editing method and device, electronic equipment and storage medium
CN112329409A (en) Cell color conversion method and device and electronic equipment
CN115422916A (en) Data access method, data access device, electronic equipment, storage medium and program product
CN110968513B (en) Recording method and device of test script
CN115357696A (en) Dynamic chart billboard display method based on components and related equipment
CN109165065B (en) Method, device and equipment for processing word list
CN113641785A (en) Multi-dimension-based scientific and technological resource similar word retrieval method and electronic equipment
CN113849106A (en) Page-turning handwriting processing method and device, electronic device and storage medium
CN108073594B (en) Method and device for generating thermodynamic diagram
CN112835494A (en) Voice recognition result error correction method and device
CN115688816A (en) Method and related equipment for translating model characters
CN110879738B (en) Operation step display method and device and electronic equipment

Legal Events

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