Data processing method, device and electronic equipment

By building a component semantic library and determining optional configuration information based on component type, the complex problem of multi-component associated configuration is solved, and the simplification and efficiency improvement of application development is achieved.

CN115129317BActive Publication Date: 2025-08-19LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210867465.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-22
Publication Date
2025-08-19
Estimated Expiration
2042-07-22

AI Technical Summary

Technical Problem

In application development based on the corresponding development platform, the associated configuration between multiple components is more complex and cumbersome, resulting in high difficulty and low efficiency in application development.

Method used

By building a component semantic library, selectable configuration information is determined from the pre-generated component semantic library according to the component type, and prompt information is output to assist developers in configuring the component's running code.

Benefits of technology

The design and configuration of multi-component association relationships has been simplified, reducing the difficulty of application development and improving development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115129317B_ABST
    Figure CN115129317B_ABST
Patent Text Reader

Abstract

The present application discloses a data processing method, apparatus and electronic device. The method, apparatus and electronic device respond to a component adding instruction, add a component indicated by the component adding instruction on an application building page, and respond to a code configuration instruction for a first component on the application building page, switch to a code configuration state for the first component. In the above code configuration state, optional configuration information of the first component is determined from a pre-generated component semantic library at least according to the component type of the first component, and output prompt information corresponding to the above optional configuration information, so as to perform running code configuration on the first component based on the prompt information, and implement application construction based on the running code configuration of the component accordingly; wherein the above optional configuration information at least includes component information of a second component that can be associated with the first component in the components included in the current application and / or association information between the first component and the second component.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of software development technology, and in particular relates to a data processing method, device and electronic device. Background Art

[0002] In application development based on the corresponding development platform, a complex application often contains a large number of components. Traditional technology requires developers to design and configure the relationship between different components based on their own code editing capabilities. The relationship configuration between multiple components is relatively complex and cumbersome, resulting in high difficulty and low efficiency in application development. Summary of the Invention

[0003] To this end, this application discloses the following technical solutions:

[0004] A data processing method, comprising:

[0005] In response to the component adding instruction, adding the component indicated by the component adding instruction on the application building page;

[0006] In response to a code configuration instruction for a first component on the application build page, switching to a code configuration state for the first component;

[0007] In the code configuration state, determining optional configuration information of the first component from a pre-generated component semantic library at least according to a component type of the first component;

[0008] Output prompt information corresponding to the optional configuration information so as to perform running code configuration on the first component based on the prompt information, and implement application construction based on the running code configuration of the component accordingly; wherein the optional configuration information at least includes component information of the second component that can be associated with the first component in the components included in the current application and / or association information between the first component and the second component.

[0009] Optionally, in response to a code configuration instruction for a first component on the application build page, switching to a code configuration state for the first component includes:

[0010] In response to a code configuration instruction for the first component triggered by executing a code configuration instruction operation on the first component, a code editor for the first component is called out to enter a code configuration state for the first component.

[0011] Optionally, before determining the optional configuration information of the first component from a pre-generated component semantic library at least according to the component type of the first component, the method further includes:

[0012] An application-level component data source is established and stored, where the application-level component data source at least includes component types of various components included in the current application.

[0013] Optionally, determining the optional configuration information of the first component from a pre-generated component semantic library at least according to the component type of the first component includes:

[0014] determining a component type of the first component according to the application-level component data source;

[0015] At least according to the component type of the first component, the optional structural features and / or optional behavioral features of the first component under the component set corresponding to the application-level component data source are determined from the component semantic library as optional configuration information of the first component.

[0016] Optionally, the optional structural features include optional attributes and / or optional associations corresponding to the first component, and the optional behavioral features include optional operations corresponding to the first component, events triggered by the optional operations, and / or methods for implementing the events;

[0017] The optional association is used to indicate component information of a second component that the first component can associate with under the component set;

[0018] In the case where the optional structural features of the first component include an optional association with the corresponding second component, the optional operations corresponding to the first component, the events triggered by the optional operations, and the methods for implementing the events respectively include: the linkage operations required to be performed based on the linkage of the first component with the second component, the linkage events for the second component triggered based on the linkage operations, and the methods required to implement the linkage events; the linkage operations, the linkage events and / or the methods required to implement the linkage events constitute the association information between the first component and the second component.

[0019] Optionally, determining, from the component semantic library, at least based on the component type of the first component, optional structural features and / or optional behavioral features of the first component in the component set corresponding to the application-level component data source includes:

[0020] determining, according to the component type of the first component, from the component semantic library, optional structural features and / or optional behavioral features of the first component in the component set;

[0021] Alternatively, according to the component type of the first component and the input retrieval information, the optional structural features and / or optional behavioral features of the first component in the component set are determined from the component semantic library.

[0022] Optionally, determining, from the component semantic library, at least based on the component type of the first component, optional structural features and / or optional behavioral features of the first component in the component set corresponding to the application-level component data source includes:

[0023] Searching a multi-way balanced search tree according to the component type of the first component to obtain optional structural features and / or optional behavioral features of the first component in the component set;

[0024] The multi-way balanced search tree organizes the information of the component semantic library through a corresponding tree structure, and the nodes of the multi-way balanced search tree include the correspondence between the component type and the structural characteristics and / or behavioral characteristics of the component.

[0025] Optional, pre-generated component semantic library, including:

[0026] Extracting structural features and / or behavioral features of each component in the component library;

[0027] Build a component semantic library containing the structural characteristics and / or behavioral characteristics of each component.

[0028] The structural characteristics of a component include properties and / or associations of the component, and the behavioral characteristics of a component include operations supported by the component, events triggered by the operations, and / or methods required to implement the events.

[0029] A data processing device, comprising:

[0030] An adding module, configured to add a component indicated by the component adding instruction to the application building page in response to the component adding instruction;

[0031] A switching module, configured to switch to a code configuration state for the first component in response to a code configuration instruction for the first component on the application construction page;

[0032] a determining module, configured to determine, in the code configuration state of the first component, optional configuration information of the first component from a pre-generated component semantic library based at least on the component type of the first component;

[0033] A prompt module outputs prompt information corresponding to the optional configuration information so as to perform running code configuration on the first component based on the prompt information, and implement application construction based on the running code configuration of the component accordingly; wherein the optional configuration information at least includes component information of a second component that can be associated with the first component in the components included in the current application and / or association information between the first component and the second component.

[0034] An electronic device, comprising:

[0035] a memory for storing at least one set of computer instructions;

[0036] A processor is used to implement the data processing method as described in any one of the above items by calling and executing the instruction set stored in the memory.

[0037] It can be seen from the above scheme that the data processing method, device and electronic device disclosed in the present application, in the code configuration state of the first component on the application construction page, determines the optional configuration information of the first component from the pre-generated component semantic library at least according to the component type of the first component, and outputs a corresponding prompt, the optional configuration information of the first component at least includes the component information of the second component that the first component can associate with in the components included in the current application and / or the association information between the first component and the second component. The present application pre-constructs a component semantic library, determines the associable components of the component and / or the association information between the associable components based on the component semantic library during the application construction process, and simultaneously gives relevant prompts, which can facilitate developers to quickly complete the association relationship design and association configuration of multiple components with the help of prompt information, simplifying the association relationship design and configuration work of multiple components, thereby effectively reducing the difficulty of application development and improving development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without any creative work.

[0039] Figure 1 It is a flowchart of the data processing method provided by this application;

[0040] Figure 2 This is a schematic diagram of the overall process of accelerating application construction by prompting optional configuration information for components provided by this application;

[0041] Figure 3 It is a schematic diagram of the structure of the data processing device provided by this application;

[0042] Figure 4 It is a schematic diagram of the composition structure of the electronic device provided in this application. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0044] The embodiments of the present application disclose a data processing method, apparatus, and electronic device that can be applied to application development / construction scenarios based on an application development platform, such as, but not limited to, low-code platform application development / construction scenarios based on a low-code development platform. The data processing method disclosed in the embodiments of the present application can be applied to, but not limited to, electronic devices in a variety of general or specialized computing device environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multi-processor devices, and the like.

[0045] See also Figure 1 The data processing method provided in the embodiment of the present application includes the following processing steps:

[0046] Step 101: In response to a component adding instruction, add a component indicated by the component adding instruction on an application building page.

[0047] Taking low-code platform applications as an example, the method of adding components on the application construction page is mainly to drag and drop visual components. During the application construction process, it can detect component addition operations such as dragging visual components on the application construction page, and respond to the component addition instruction triggered by the operation, add the component indicated by the instruction on the application construction page, and optionally, specifically add and deploy the component to the location indicated by the component addition instruction on the application construction page. For example, in response to the component addition instruction triggered by the drag operation of the button component, add the button component on the application construction page according to the drag end position, or, in response to the component addition instruction triggered by the drag operation of the input box component, add the input box component on the application construction page according to the drag end position, etc.

[0048] Among them, the visualization components are provided by the component library of the low-code development platform, specifically the visualization display of the components in the component library.

[0049] It is easy to understand that the triggering of component adding instructions is not limited to the dragging and dropping operation of visual components. For example, the component adding instructions can also be triggered by running the relevant software code written by the developer to instruct the addition of components on the application building page.

[0050] A complex application build may contain a large number of components. In actual applications, you can add a series of components required by the application on the application build page by continuously responding to component addition instructions for each component required by the application.

[0051] Step 102: In response to the code configuration instruction for the first component on the application construction page, switch to the code configuration state for the first component.

[0052] Optionally, in response to a code configuration instruction for the first component triggered by executing a code configuration instruction operation on the first component, a code editor for the first component may be called and displayed, such as by displaying the code editor in a preset range area around the first component. After the code editor for providing code editing functionality for the first component is called and displayed, the code configuration state for the first component is entered.

[0053] The code configuration indication operation for the first component may be, but is not limited to, an operation of selecting a corresponding menu item in the operation menu corresponding to the first component to call out the code editor of the first component, or a gesture operation, voice input operation, etc. performed on the first component to indicate the calling out of the code editor of the first component.

[0054] Step 103: In the code configuration state, determine the optional configuration information of the first component from a pre-generated component semantic library at least according to the component type of the first component.

[0055] An application often contains multiple components, and the overall system functions required by the application are provided through the mutual relationship / linkage between the multiple components. This requires developers to design and configure the relationship between different components during application development / construction.

[0056] Based on step 102, after calling out the code editor of the first component and entering the code configuration state for the first component, in this state, developers and other relevant users can be supported to edit / configure the running code of the first component in the code editor as needed, such as configuring the properties of the first component, configuring the operations supported by the first component, configuring the association between the first component and other components, etc.

[0057] Traditional technology requires developers to design and configure the association relationships between different components based on their own code editing capabilities. The association configuration between multiple components is relatively complex and cumbersome. In order to simplify the design and configuration of the association relationships between multiple components, reduce the difficulty of application development and improve development efficiency, this application pre-builds / generates a corresponding component semantic library for the component library provided by the application development platform (such as a low-code development platform). In addition, when developing / building an application, an application-level component data source is established and stored for the current application being developed / built, so as to combine the component semantic library and the application-level component data source to provide relevant prompt functions for the component configuration process (such as association configuration between components, component property configuration, etc.) to assist and speed up the developer's configuration of components.

[0058] The component semantic library is an information library at the application development platform level, and includes structural features and / or behavioral features corresponding to each component in the component library.

[0059] Accordingly, the process of building / generating a component semantic library includes:

[0060] 11) Extracting structural features and / or behavioral features of each component in the component library;

[0061] 12) Build a component semantic library that includes the structural features and / or behavioral features of each component.

[0062] Among them, the structural characteristics of the component include the properties of the component and / or the corresponding associations of the component in the component library, and the behavioral characteristics of the component include the operations supported by the component, the events triggered by the operations and / or the methods required to implement the events.

[0063] Furthermore, the attributes of a component include but are not limited to any one or more of the component name, shape, size, color, etc. The corresponding association of the component in the component library is used to indicate the component information of the components that can be associated with the component in the component library. Here, the component information of the associated components includes but is not limited to the component type of the components that can be associated with the component in the component library.

[0064] The components that a component can be associated with in the component library can be components of the same type or different types, without restriction. For example, a button can be associated with components such as buttons, tables, or input boxes.

[0065] The operations supported by a component refer to the operations that users can perform on the component during the use of the component, including but not limited to click, long press, single selection, double selection, information input and other operations. The events triggered by the operations include but are not limited to object startup / shutdown, action pause, interface scaling, parameter passing, calling other components, etc. The methods required to implement the events may include the relevant functional functions required to implement the events, the relevant parameters involved in the functions, etc. Optionally, a public global function can be created to facilitate event calls with the same operation process.

[0066] Where the structural features of a component include associations with corresponding components in the component library, the corresponding operations of the component, the events triggered by the operations, and the methods for implementing the events include: the linkage operations required to link the component with its associated components, the linkage events triggered by the linkage operations on its associated components, and the methods required to implement the linkage events. For example, if a table component pops up by clicking a button, the linkage operation is "clicking the button" and the linkage event is "pop-up table component."

[0067] When applying this application, each component in the application development platform component library can be analyzed and summarized from multiple aspects such as layout, attribute value acquisition / assignment, business / functional logic judgment, API call / association between components, parameter passing, and API call result return, and on this basis, the above-mentioned series of structural features and / or behavioral features of each component in the component library can be extracted to realize the construction of a component semantic library, so that the constructed component semantic library contains the structural features and / or behavioral features of each component in the component library.

[0068] When developing / building an application, an application-level component data source is established and stored for the current application being developed / built, recording at least the component types of each component included in the current application, including but not limited to buttons, input boxes, menus, check boxes, radio buttons, and other types, so as to record what types of components the application contains based on at least the application-level component data source. For example, the correspondence between the component ID / number and the component type (such as button, check box) of each component included in the current application can be recorded in the application-level component data source. In addition, component information can be expanded in the application-level component data source as needed, such as recording the number of components corresponding to each component type involved in the current application.

[0069] In one embodiment, a component data source can be created for an application when it is first built. During the application building process, the types of components continuously added to the application are detected in real time, and the added component types are synchronously recorded in the application-level component data source. In other embodiments, after the addition / deployment of each component on the page is completed during the application building process (for example, if no component addition operation is detected within a set time period), a component data source can be established for the application, and the component types of each component included in the application can be detected and uniformly recorded in the application-level component data source. In actual applications, the first embodiment can be preferred to support on-demand use of the application-level component data source at any time point in the application building process.

[0070] Based on the constructed component semantic library and application-level component data source, when entering the code configuration state of the first component, it is necessary to edit / configure the running code of the first component based on the code editor of the first component, the embodiment of the present application first determines the component type of the first component according to the application-level component data source, such as reading the component type corresponding to the component number of the first component from the application-level component data source to obtain the component type of the first component, and then, at least based on the component type of the first component, determine the optional structural features and / or optional behavioral features of the first component under the component set corresponding to the application-level component data source from the component semantic library as the optional configuration information of the first component, and subsequently provide relevant prompts for the determined optional configuration information to assist and accelerate the developer's configuration of the running code of the first component.

[0071] Among them, the optional structural features of the first component include optional attributes and / or optional associations corresponding to the first component, and the optional behavioral features of the first component include optional operations corresponding to the first component, events triggered by the optional operations, and / or methods for implementing the events. The optional association is used to indicate the component information of the second component that the first component can be associated with under the component set corresponding to the application-level component data source of the current application, such as the component type (table or input box type) of the second component that the first component (button) can be associated with.

[0072] In the case where the optional structural features of the first component include an optional association with the corresponding second component, the optional operations corresponding to the first component, the events triggered by the optional operations, and the methods for implementing the events respectively include: the linkage operations required to be performed based on the linkage of the first component with the second component, the linkage events for the second component triggered based on the linkage operations, and the methods required to implement the linkage events; the linkage operations, linkage events and / or the methods required to implement the linkage events constitute the association information between the first component and the second component.

[0073] Optionally, in one embodiment, when determining the optional structural features and / or optional behavioral features of the first component under the component set corresponding to the application-level component data source from the component semantic library, the component type of the first component can be used as a retrieval basis to determine the optional structural features and / or optional behavioral features of the first component under the component set corresponding to the application-level component data source of the current application from the component semantic library. This process includes two aspects of screening operations. On the one hand, it is to screen out the structural features and / or behavioral features corresponding to the component type of the first component in the entire component semantic library. On the other hand, it is to further screen out the optional structural features and / or optional behavioral features of the first component under the component set corresponding to the application-level component data source of the current application from the structural features and / or behavioral features corresponding to the component type of the first component in the entire component semantic library based on the components covered by the application-level component data source.

[0074] Among them, the latter aspect of filtering is mainly for filtering the components that can be associated with the first component. For example, assuming that the components that can be associated with the button in the entire component semantic library include input boxes, tables, radio buttons and check boxes, if the currently constructed application contains buttons, input boxes, tables and check boxes, but does not contain radio buttons, then through the above two aspects of filtering, it is finally determined that the components that can be associated with the button under the component set corresponding to the current application are input boxes, tables and check boxes, and the radio buttons are filtered out to avoid subsequent error prompts and misleading users.

[0075] However, it is not limited to the above-mentioned embodiment. In other embodiments, the component type of the first component and the input search information can be used together as the search basis to determine the optional structural features and / or optional behavioral features of the first component under the component set corresponding to the application-level component data source of the current application from the component semantic library. This embodiment supports the user to input search information so that the optional structural features and / or optional behavioral features determined for the first component are consistent not only with the component type of the first component, but also with the search information input by the user, thereby further meeting the user's search needs. This embodiment also includes the above-mentioned two aspects of screening operations, and its only difference from the previous embodiment is that, in the screening, in addition to the component type of the first component, the search information input by the user is also used as the search basis. This embodiment has a better effect for the situation where the amount of optional configuration information determined from the component semantic library based on the component type of the first component is relatively large, and can further filter out the part of interest to the user from the large amount of optional configuration information.

[0076] The search information input by the user may be, but is not limited to, relevant characters used to represent the structural features and / or behavioral features of the component that the user is interested in, such as a complete character or a part of a complete character used to represent the target structural features and / or target behavioral features that the user is interested in.

[0077] Optionally, the present application uses a tree data structure of a multi-way balanced search tree (B-tree) to organize the information contained in the component semantic library. The nodes of the multi-way balanced search tree include the correspondence between the component type and the structural characteristics and / or behavioral characteristics of the component, that is, the tree nodes of the B-tree are key-value structures, the key is the component type, such as a button, input box, menu, check box, radio button, etc., and the value is the component structural characteristics and / or behavioral characteristics corresponding to the component type, so as to support tree search by component type. By using B-tree to organize the information contained in the component semantic library, the efficiency of information search in the component semantic library can be effectively improved.

[0078] Step 104: output prompt information corresponding to the optional configuration information, so as to configure the running code of the first component based on the prompt information, and implement application construction based on the running code configuration of the component accordingly; wherein the above-mentioned optional configuration information at least includes component information of the second component that can be associated with the first component in the components included in the current application and / or association information between the first component and the second component.

[0079] After determining the optional configuration information of the first component, the corresponding prompt is further output to prompt the user which optional configuration information the first component has, such as automatically prompting the component name of the first component, the properties it can have, the second component that the first component can be associated with in the current application, the corresponding associated event when the second component is associated, the method required to implement the associated event (function, required variables / global variables), etc., so as to provide assistance to users such as developers in configuring the running code of the component (property configuration, association configuration between components, etc.), so as to effectively reduce the design and configuration difficulty and workload of the user for the association relationship design and association configuration between multiple components, improve their efficiency in the association relationship design and association configuration between multiple components, and achieve the purpose of accelerating application development. By prompting optional configuration information for components, the entire process of application construction is accelerated. Figure 2 shown.

[0080] Among them, the component name prompted for the first component can be a complete name automatically generated for the first component (such as xxx-button1, xxx-button2, xxx represents other relevant format requirements for button naming), or the naming rules that the component type corresponding to the first component should meet. The number of second components that the first component can be associated with in the current application can be one or more, without restriction.

[0081] It can be seen from the above scheme that the data processing method disclosed in the present application, in the code configuration state of the first component on the application construction page, determines the optional configuration information of the first component from the pre-generated component semantic library at least according to the component type of the first component, and outputs a corresponding prompt, the optional configuration information of the first component at least includes the component information of the second component that the first component can associate with in the components included in the current application and / or the association information between the first component and the second component. The present application pre-constructs a component semantic library, determines the associable components of the component and / or the association information between the associable components based on the component semantic library during the application construction process, and simultaneously gives relevant prompts, which can facilitate developers to quickly complete the association relationship design and association configuration of multiple components with the help of prompt information, simplifying the association relationship design and configuration work of multiple components, thereby effectively reducing the difficulty of application development and improving development efficiency.

[0082] Corresponding to the above-mentioned data processing method, the embodiment of the present application further discloses a data processing device, the composition structure of which is as follows: Figure 3 Shown, including:

[0083] An adding module 301 is configured to add a component indicated by the component adding instruction to an application building page in response to the component adding instruction;

[0084] A switching module 302 is configured to switch to a code configuration state for the first component in response to a code configuration instruction for the first component on the application build page;

[0085] a determination module 303 configured to determine, in the code configuration state of the first component, optional configuration information of the first component from a pre-generated component semantic library based at least on the component type of the first component;

[0086] The prompt module 304 outputs prompt information corresponding to the optional configuration information, so as to configure the running code of the first component based on the prompt information, and implement application construction based on the running code configuration of the component accordingly; wherein, the optional configuration information at least includes component information of the second component that can be associated with the first component in the components included in the current application and / or the association information between the first component and the second component.

[0087] In one embodiment, the switching module 302 is specifically configured to:

[0088] In response to a code configuration instruction for the first component triggered by executing a code configuration instruction operation on the first component, a code editor for the first component is called out to enter a code configuration state for the first component.

[0089] In one embodiment, the above-mentioned device also includes a construction module for establishing and storing an application-level component data source before determining the optional configuration information of the first component from a pre-generated component semantic library at least based on the component type of the first component, and the application-level component data source includes at least the component types of each component included in the current application.

[0090] In one embodiment, the determination module 303 is specifically configured to:

[0091] determining a component type of the first component according to the application-level component data source;

[0092] At least according to the component type of the first component, the optional structural features and / or optional behavioral features of the first component under the component set corresponding to the application-level component data source are determined from the component semantic library as optional configuration information of the first component.

[0093] In one embodiment, the optional structural features include optional attributes and / or optional associations corresponding to the first component, and the optional behavioral features include optional operations corresponding to the first component, events triggered by the optional operations, and / or methods for implementing the events;

[0094] The optional association is used to indicate component information of a second component that the first component can associate with under the component set;

[0095] In the case where the optional structural features of the first component include an optional association with the corresponding second component, the optional operations corresponding to the first component, the events triggered by the optional operations, and the methods for implementing the events respectively include: the linkage operations required to be performed based on the linkage of the first component with the second component, the linkage events for the second component triggered based on the linkage operations, and the methods required to implement the linkage events; the linkage operations, the linkage events and / or the methods required to implement the linkage events constitute the association information between the first component and the second component.

[0096] In one embodiment, the determination module 303, when determining, from the component semantic library based on at least the component type of the first component, the optional structural features and / or optional behavioral features of the first component in the component set corresponding to the application-level component data source, is specifically configured to:

[0097] Determining, according to the component type of the first component, optional structural features and / or optional behavioral features of the first component in the component set from a component semantic library;

[0098] Alternatively, according to the component type of the first component and the input retrieval information, the optional structural features and / or optional behavioral features of the first component in the component set are determined from the component semantic library.

[0099] In one embodiment, the determination module 303, when determining, from the component semantic library based on at least the component type of the first component, the optional structural features and / or optional behavioral features of the first component in the component set corresponding to the application-level component data source, is specifically configured to:

[0100] Searching a multi-way balanced search tree according to the component type of the first component to obtain optional structural features and / or optional behavioral features of the first component under the component set;

[0101] The multi-way balanced search tree organizes the information of the component semantic library through a corresponding tree structure, and the nodes of the multi-way balanced search tree include the correspondence between the component type and the structural characteristics and / or behavioral characteristics of the component.

[0102] In one embodiment, the above-mentioned construction module may also be used to pre-generate a component semantic library. When generating the component semantic library, the construction module is specifically used to:

[0103] Extracting structural features and / or behavioral features of each component in the component library;

[0104] Build a component semantic library containing the structural characteristics and / or behavioral characteristics of each component.

[0105] The structural characteristics of a component include properties and / or associations of the component, and the behavioral characteristics of a component include operations supported by the component, events triggered by the operations, and / or methods required to implement the events.

[0106] As for the data processing device disclosed in the embodiment of the present application, since it corresponds to the data processing method disclosed in the above method embodiment, the description is relatively simple. For relevant similarities, please refer to the description of the above method embodiment, and no further details will be given here.

[0107] The embodiments of the present application also disclose an electronic device, which may be, but is not limited to, a device in a variety of general or special computing device environments or configurations, such as: a personal computer, a server computer, a handheld device or a portable device, a tablet device, a multi-processor device, etc.

[0108] The structure of electronic equipment, such as Figure 4 As shown, including at least:

[0109] Memory 10, for storing a computer instruction set;

[0110] A set of computer instructions can be implemented in the form of a computer program.

[0111] The processor 20 is configured to implement the data processing method disclosed in any of the above method embodiments by executing a computer instruction set.

[0112] The processor 20 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices.

[0113] The electronic device includes a display device and / or a display interface and can be connected to an external display device.

[0114] Optionally, the electronic device further includes a camera assembly, and / or is connected to an external camera assembly.

[0115] In addition, the electronic device may also include components such as a communication interface and a communication bus. The memory, processor, and communication interface communicate with each other via the communication bus.

[0116] Communication interfaces are used for communication between electronic devices and other devices. The communication bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. This communication bus can be divided into an address bus, a data bus, and a control bus.

[0117] In summary, the data processing method, apparatus, and electronic device disclosed in the embodiments of the present application have at least the following technical advantages over conventional technologies:

[0118] a) By building a matching component semantic library for the component library of the application development platform, an application-level component data source is built for the application during the application development process. During application development, the component semantic library and the application-level component data source are combined to at least determine the associated components and / or the association information between the associated components in the current application for the component, and simultaneously provide relevant prompts. This simplifies the design and configuration of the association relationship between multiple components and accelerates the application development rate;

[0119] b) Under the same code editing capabilities, the code editing of this application has an intelligent entry function, which can quickly associate components and select methods / events based on component types and entry information;

[0120] c) Created a public global function to facilitate the call of events with the same operation process;

[0121] d) It is convenient to provide expansion capabilities for complex interactions of low-code platforms.

[0122] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referenced to each other.

[0123] For the convenience of description, the above systems or devices are described as being divided into various modules or units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0124] Through the description of the above embodiments, it can be seen that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present application or certain parts of the embodiments.

[0125] Finally, it should be noted that, in this document, relational terms such as first, second, third, and fourth are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.

[0126] The above is only a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A data processing method, comprising: In response to the component adding instruction, adding the component indicated by the component adding instruction on the application building page; In response to a code configuration instruction for a first component on the application build page, switching to a code configuration state for the first component; In the code configuration state, determining optional configuration information of the first component from a pre-generated component semantic library at least according to a component type of the first component; Output prompt information corresponding to the optional configuration information so as to perform running code configuration on the first component based on the prompt information, and implement application construction based on the running code configuration of the component accordingly; wherein the optional configuration information at least includes component information of the second component that can be associated with the first component in the components included in the current application and / or association information between the first component and the second component.

2. The method according to claim 1, wherein, in response to a code configuration instruction for a first component on the application build page, switching to a code configuration state for the first component comprises: In response to a code configuration instruction for the first component triggered by executing a code configuration instruction operation on the first component, a code editor for the first component is called out to enter a code configuration state for the first component.

3. The method according to claim 1, before determining the optional configuration information of the first component from a pre-generated component semantic library based at least on the component type of the first component, further comprising: An application-level component data source is established and stored, where the application-level component data source at least includes component types of various components included in the current application.

4. The method according to claim 3, wherein determining the optional configuration information of the first component from a pre-generated component semantic library at least according to the component type of the first component comprises: determining a component type of the first component according to the application-level component data source; At least according to the component type of the first component, the optional structural features and / or optional behavioral features of the first component under the component set corresponding to the application-level component data source are determined from the component semantic library as optional configuration information of the first component.

5. The method according to claim 4, wherein the optional structural features include optional attributes and / or optional associations corresponding to the first component, and the optional behavioral features include optional operations corresponding to the first component, events triggered by the optional operations, and / or methods for implementing the events; in, The optional association is used to indicate component information of a second component that the first component can be associated with under the component set; In the case where the optional structural features of the first component include an optional association with the corresponding second component, the optional operations corresponding to the first component, the events triggered by the optional operations, and the methods for implementing the events respectively include: the linkage operations required to be performed based on the linkage of the first component with the second component, the linkage events for the second component triggered based on the linkage operations, and the methods required to implement the linkage events; the linkage operations, the linkage events and / or the methods required to implement the linkage events constitute the association information between the first component and the second component.

6. The method according to claim 4, wherein determining, from the component semantic library, at least based on the component type of the first component, optional structural features and / or optional behavioral features of the first component in the component set corresponding to the application-level component data source comprises: determining, according to the component type of the first component, from the component semantic library, optional structural features and / or optional behavioral features of the first component in the component set; Alternatively, according to the component type of the first component and the input retrieval information, the optional structural features and / or optional behavioral features of the first component in the component set are determined from the component semantic library.

7. The method according to claim 4, wherein determining, from the component semantic library, at least based on the component type of the first component, optional structural features and / or optional behavioral features of the first component in the component set corresponding to the application-level component data source comprises: Searching a multi-way balanced search tree according to the component type of the first component to obtain optional structural features and / or optional behavioral features of the first component in the component set; The multi-way balanced search tree organizes the information of the component semantic library through a corresponding tree structure, and the nodes of the multi-way balanced search tree include the correspondence between the component type and the structural characteristics and / or behavioral characteristics of the component.

8. The method according to claim 1, wherein Pre-generated component semantic library, including: Extracting structural features and / or behavioral features of each component in the component library; Building a component semantic library containing the structural characteristics and / or behavioral characteristics of each component; The structural characteristics of a component include properties and / or associations of the component, and the behavioral characteristics of a component include operations supported by the component, events triggered by the operations, and / or methods required to implement the events.

9. A data processing device, comprising: An adding module, configured to add a component indicated by the component adding instruction to the application building page in response to the component adding instruction; A switching module, configured to switch to a code configuration state for the first component in response to a code configuration instruction for the first component on the application construction page; a determining module, configured to determine, in the code configuration state of the first component, optional configuration information of the first component from a pre-generated component semantic library based at least on the component type of the first component; A prompt module outputs prompt information corresponding to the optional configuration information so as to perform running code configuration on the first component based on the prompt information, and implement application construction based on the running code configuration of the component accordingly; wherein the optional configuration information at least includes component information of a second component that can be associated with the first component in the components included in the current application and / or association information between the first component and the second component.

10. An electronic device comprising: a memory for storing at least one set of computer instructions; A processor, configured to implement the data processing method according to any one of claims 1 to 8 by calling and executing the instruction set stored in the memory.

Citation Information

Patent Citations

  • Visual page building method and device and computer equipment

    CN112925520A

  • Application function design method and software development platform

    CN113688141A