CN110221827B - Data processing method and related device - Google Patents

Data processing method and related device Download PDF

Info

Publication number
CN110221827B
CN110221827B CN201810178018.9A CN201810178018A CN110221827B CN 110221827 B CN110221827 B CN 110221827B CN 201810178018 A CN201810178018 A CN 201810178018A CN 110221827 B CN110221827 B CN 110221827B
Authority
CN
China
Prior art keywords
metadata
data
editing
editing mode
object type
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.)
Active
Application number
CN201810178018.9A
Other languages
Chinese (zh)
Other versions
CN110221827A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201810178018.9A priority Critical patent/CN110221827B/en
Publication of CN110221827A publication Critical patent/CN110221827A/en
Application granted granted Critical
Publication of CN110221827B publication Critical patent/CN110221827B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Artificial Intelligence (AREA)
  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a data processing method and a related device, wherein the method comprises the following steps: the device determines first metadata associated with the first object type; generating a first editing environment according to the first metadata and a first editing mode; receiving and storing the first data input on the first editing environment. By implementing the method and the device, editing environments can be developed for users in different fields, further, corresponding editing environments can be rapidly developed according to the requirements of the users for editing modes, the editing environments can be dynamically adjusted, the development cost and the development difficulty are reduced, and the development efficiency is improved.

Description

Data processing method and related device
Technical Field
The present application relates to the field of computer technologies and development platforms, and in particular, to a data processing method and a related apparatus.
Background
With the development of computer technology, information management systems, such as material management systems, customer management systems, enterprise management systems, and the like, are being popularized in various industries. The user may perform operations to input data, store data, manage data, and the like through the information management system. The information management system is directly oriented to the user to be an editing environment, and the user can carry out the operation through the editing environment.
When using the information management system, different editing environments support users to manage information using corresponding editing modes, for example, a text editing environment (e.g., closed 9, Eclipse Che, etc.) supports users to use text management information, a workflow editing environment (e.g., activity, etc.) supports users to use workflow management information, a state machine editing environment supports users to use state machine management information, an object relationship editing environment supports users to use object relationship management information, and a mind map editing environment supports users to use mind map management information.
Since the editing mode of the user management information is often changed, for example, a user may wish to use management information such as a workflow (workflow), a state machine, a Unified Modeling Language (UML) diagram, a database table diagram, or a thinking diagram, in order to meet the user's requirements for multiple editing modes, it is necessary to provide different editing environments for the user.
At present, an information management system (including an editing environment therein) is generally developed by a system developer through a development platform, wherein the development platform is a framework for secondary software development, and the system developer can develop various software products (such as the information management system) on the development platform. The development platform needs to meet the requirement of "low-code development information management system (low-code approach)", and therefore, the development platform generally provides the capability of Metadata (Metadata) driven development, so that a system developer develops the information management system and the editing environment therein based on the Metadata.
How to enable system developers to develop different editing environments based on metadata through a development platform is a problem which needs to be solved urgently.
Disclosure of Invention
The application provides a data processing method and a related device, which can develop editing environments for users in different fields, further can rapidly develop corresponding editing environments according to the requirements of the users on editing modes, can dynamically adjust the editing environments, reduce development cost and development difficulty and improve development efficiency.
In a first aspect, the present application provides a data processing method, applied to an apparatus side, including: the device determines first metadata associated with the first object type; the equipment generates a first editing environment according to the first metadata and a first editing mode; receiving and storing the first data input on the first editing environment.
Wherein the first object type is selected by a user from at least one object type; the device stores at least one metadata, the at least one metadata including the first metadata, each metadata including at least one attribute; the first editing mode is specified by the user, or the first editing mode corresponds to the first object type;
the first editing environment supports the user to edit the first data in the first editing mode; the first object type is a first metadata type, and the first data is data corresponding to the first metadata, or the first object type is a first attribute type, and the first data is data belonging to a first attribute in the data corresponding to the first metadata, where the first attribute includes an attribute belonging to the first attribute type in the at least one attribute.
In an alternative embodiment, the first editing mode includes, but is not limited to, any one of the following: a workflow editing mode, a state machine editing mode, a UML graph editing mode, a database table graph editing mode, a text editing mode, a graphical editing mode, a form editing mode, a field-specific language text editing mode, a graph editing mode, a network topology graph editing mode, a page layout editing mode or a cabinet frame graph editing mode.
In an alternative embodiment, the storing the first data entered on the first editing environment includes: storing the first data input on the first editing environment according to an attribute classification. Here, the device stores the first data according to the attribute classification, which is equivalent to a standardized storage manner of the data, and can provide convenience for subsequent related operations (such as modification, query, deletion, and the like) on the first data.
In an alternative embodiment, after said receiving and storing said first data entered on said first editing environment, said method further comprises: verifying the first data according to a verification rule corresponding to the first metadata; and outputting a verification result on the first editing environment. Here, the apparatus outputs the verification result to the first editing environment, which may enable the user to refine or change the input first data in time.
In an alternative embodiment, after said receiving and storing said first data entered on said first editing environment, said method further comprises: receiving a first instruction for the first data input on the first editing environment, the first instruction for performing a first operation on the stored first data, the first operation including at least one of: queried, deleted, or modified.
In a second aspect, the present application provides an apparatus comprising means for performing the data processing method described in the first aspect. The apparatus may comprise: a memory, and a processor and a communication interface coupled with the memory, wherein: the communication interface is configured to receive signals or transmit signals, the memory is configured to store implementation codes of the data processing method described in the first aspect, and the processor is configured to execute the program codes stored in the memory, that is, to execute the data processing method provided in the first aspect or any one of the possible implementations of the first aspect. Optionally, the apparatus of the second aspect may be a chipset; the memory and the processor can be integrated on the same chip or can be respectively arranged on different chips.
In a third aspect, the present application provides an apparatus comprising a plurality of functional modules for performing the method provided in the first aspect or any one of the possible implementation manners of the first aspect.
In a fourth aspect, the present application provides a data processing system comprising: metadata definition environment, metadata base, object type base, editing environment rendering engine base and back end data management system, wherein: the metadata definition environment is used for defining metadata, the metadata base is used for storing the metadata, the object type base is used for storing object types, the editing environment rendering engine base is used for storing rendering engines, the rendering engines are used for obtaining editing environments according to metadata rendering, and the back-end data management system is used for managing user data or business data.
It will be appreciated that the data processing system of the fourth aspect is provided to a system developer who can use the data processing system to develop an information management system comprising an authoring environment, and that the apparatus of the second or third aspect can be used to run the information management system.
In a fifth aspect, a computer-readable storage medium is provided, the computer-readable storage medium storing thereon a program code implementing the data processing method described in the first aspect, the program code containing execution instructions for executing the data processing method described in the first aspect.
In a sixth aspect, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the data processing method described in the first aspect above.
By implementing the method, when a system developer develops an information management system in a certain field through a data processing system (namely a development platform), only the association relation among the metadata, the object type and the metadata in the field needs to be defined and stored in advance, the editing environment can be developed for users in different fields, further, the corresponding editing environment can be developed rapidly according to the requirements of the users on the editing mode, the editing environment can be dynamically adjusted, the development cost and the development difficulty are reduced, and the development efficiency is improved.
Drawings
FIG. 1 is a schematic diagram illustrating a development process of an editing environment in the prior art;
FIG. 2 is a schematic diagram of the relationship of a data processing system and an information management system according to the present application;
FIG. 3 is a block diagram of a data processing system provided herein;
FIG. 4 is a schematic structural diagram of the apparatus provided herein;
FIG. 5 is a schematic flow chart diagram of a data processing method provided herein;
FIGS. 6 and 7 are schematic diagrams of an editing environment provided by the present application;
fig. 8 is a functional block diagram of an apparatus provided herein.
Detailed Description
The terminology used in the description of the embodiments section of the present application is for the purpose of describing particular embodiments of the present application only and is not intended to be limiting of the present application.
To better describe the present application, the basic concepts related to the present application are first introduced.
Data and Metadata (Metadata)
The data is typically user data or service data, and is mainly used for describing detailed information in the information field.
Metadata is data about data that describes specific data or information. When describing real world things or data, abstract information is generated, and the abstract information can be regarded as metadata, namely, the metadata is an abstract expression of user data or business data. For example, the name of a file, the file type, the size, the creation time, and the creator are all metadata describing the file.
Understandably, metadata describes and classifies data in a formatting manner, and can help users find needed information conveniently and quickly.
In particular, metadata describes the content and format of data. In the present application, the metadata includes a plurality of properties (properties) that collectively describe data corresponding to the metadata. Each attribute includes a name (name), a type (type) and a detailed description (description), wherein the type (type) represents the type of data described by the attribute, and may include an integer (int), a string (string), and the like, and the detailed description (description) represents the specific meaning of the data described by the attribute.
It can be understood that, in different domains, user data (or service data) are very different, and the user data needs to be abstractly expressed for different domains, that is, different metadata needs to be defined for different domains.
As a specific example, in the field of company business information management, user data may include specific data of a customer, a supplier, and the like, and metadata for describing customer data and metadata for describing supplier data may be defined. For example, in defining metadata for describing customer data, the metadata may include a plurality of attributes in the following table, which may be used to collectively describe the customer data to which the metadata corresponds.
Figure BDA0001586927270000031
Table 1 metadata for describing customer data
Similarly, in defining metadata for describing vendor data, the metadata may include a plurality of attributes in the following table, which may be used to collectively describe the vendor data to which the metadata corresponds.
Figure BDA0001586927270000041
Table 2 metadata for describing vendor data
It is understood that table 1 and table 2 are only simple examples, and metadata may include more attributes when actually defining metadata, and the attributes included in different metadata may be different.
Here, if the specific data of a certain client includes: customer name (Eric), age (30), residual (Shenzhen), and provider name (IBM, Oracle), then the data "Eric, 30, Shenzhen, IBM, and Oracle" of the customer may be referred to as a metadata instance.
Object type (II)
In the present application, an object may be metadata or an attribute included in metadata. The objects may be classified into different object types according to different classification rules, both of which are described in detail below.
(1) The object is metadata.
When the object is metadata, a plurality of metadata in the same field can be classified to obtain a plurality of object types. Specifically, the metadata may be classified based on different classification rules, and the application does not limit the specific classification rules. This is illustrated below by two examples.
In an alternative embodiment, when the metadata is classified, different metadata belong to different object types respectively. For example, among the two metadata in the above-described company business information management field, the metadata for describing customer data may belong to an object type 1, and the metadata for describing supplier data may belong to an object type 2.
In another alternative embodiment, when the metadata is classified, different metadata may belong to the same object type. For example, in the field of school personnel information management, the following three types of metadata may be defined: metadata for describing student data, metadata for describing teacher data, metadata for describing teaching assistance person data, and metadata for describing work attendance person data. The metadata can be divided into two categories according to whether the in-school person is in direct contact with the teaching, the first three categories of metadata can belong to object type 1, and the latter category of metadata can belong to object type 2.
(2) The object is an attribute included in the metadata.
When the object is an attribute included in the metadata, the attributes included in the metadata in the same field may be classified to obtain a plurality of object types. Specifically, the attributes may be classified based on different classification rules, and the application does not limit the specific classification rules.
For example, in the above metadata in the field of company business information management, the following attributes are included: provider name, age, existence, customer name, in alternative embodiments, the attributes may be divided into two categories: one is an attribute for describing basic information, and the other is an attribute for describing an external relationship. Specifically, referring to table 1, for metadata used to describe client data, the client name, age, and existence, which are used to describe the basic information of the client, can be regarded as belonging to object type 1; the provider name is used for describing the external relationship of the client and can be regarded as belonging to the object type 2. Similarly, referring to table 2, for metadata used to describe data of a vendor, provider name, age, and existence, which are used to describe basic information of the vendor, can be regarded as belonging to object type 1; the customer name is used to describe the supplier's external relationship and may be considered as belonging to object type 2.
(III) editing Environment
The editing environment is a part directly facing to a user in the information management system, is a page for the user to edit data, and is developed by a system developer through a development platform. The user can perform related operations on the user data or the service data through the editing environment, such as information management operations of adding and storing data, deleting data, changing data, inquiring data and the like.
Generally, one editing environment supports a unique editing mode, and a user performs related operations on user data or service data by using the editing mode supported by the editing environment. For example, a text editing environment (e.g., closed 9, Eclipse Che, etc.) supports a text editing mode, a workflow editing environment (e.g., activity, etc.) supports a workflow editing mode, a state machine editing environment supports a state machine editing mode, and a mind map editing environment supports a mind map editing mode.
At present, the editing mode used when a user manages information is often changed according to the user requirements, and therefore, different editing environments need to be provided for the user for system developers.
In the prior art, in order to meet the requirements of users for different editing environments, system developers usually use the existing development platform, such as Salesforce, PEGA, etc., to develop different editing environments (i.e., editing environments in an information management system). Referring to fig. 1, in the prior art, when a system developer develops an editing environment through a development platform, the following process may be included:
1. firstly, defining metadata of a current development field, and determining an editing mode provided for a user;
2. a system developer writes codes through a development platform to realize logic processing based on metadata in the current development field and an editing mode, and an editing environment supporting the editing mode is obtained.
Referring to fig. 1, fig. 1 shows a method flow of a system developer developing an editing environment through a development platform in the prior art. As shown in the figure, in the field of school personnel information management, when a workflow editing environment needs to be provided for information management personnel in a school, a system developer first defines metadata of the current school personnel information management field, and defines a workflow model for creating business process operation based on the metadata; and compiling codes through the development platform to obtain a workflow editing environment in the field of school personnel information management. For another example, if a text editing environment needs to be provided for information management personnel in a school, a system developer first defines metadata of the current school personnel information management field, and defines a text model based on the metadata; and compiling codes through the development platform to obtain a text editing environment in the field of school personnel information management.
The method for developing the editing environment by the code writing mode of the development platform in the prior art has the following defects:
1. the whole process needs system developers to write codes based on metadata and editing modes in the current field, and therefore development efficiency is low and development difficulty is high.
2. Because the metadata of each field is different, system developers need to rewrite codes to provide editing environments of the corresponding fields for users aiming at different fields; in the same field, if a user needs to use different editing modes, system developers also need to rewrite codes to provide the user with editing environments supporting the different editing modes, so that code reuse cannot be achieved, and the labor cost is high.
3. Because the editing environment is realized by the system developer writing codes, after the editing environment is developed, the editing environment can be adjusted only by adjusting the codes, so that the editing environment is difficult to be adjusted flexibly and dynamically according to the requirements of users.
The application provides a data processing method and a data processing system, which can rapidly develop an editing environment aiming at different fields and dynamically adjust the editing environment. By applying the data processing method and the system, system developers do not need to write codes or write a small number of codes, development cost and development difficulty are reduced, and development efficiency is improved.
Referring to FIG. 2, FIG. 2 shows a relational diagram of a data processing system and an information management system in accordance with the present application. The data processing system in the present application may also be regarded as a development platform or a development system. The data processing system can be provided for system developers for developing information management systems; the information management system may be provided to users (e.g., company employees, school employees, etc.) for information management.
Referring to fig. 3, fig. 3 is a data processing system 100 provided in the present application, which can also be regarded as a development platform or a development system, and can be used for system developers to develop an information management system. As shown in FIG. 3, data processing system 100 may include: metadata definition environment 110, metadata repository 120, object type repository 130, editing environment rendering engine repository 140, and back-end data management system 150.
The metadata is data describing data, that is, the metadata itself is also data, and the metadata definition environment 110 defines the structure and semantics of the metadata and specifies a uniform metadata syntax rule. In an alternative embodiment, the metadata definition environment 110 may implement the function of a meta model layer (MOF) in a meta model, and a system developer may define the metadata of the current domain according to the metadata definition environment 110 when using the development platform shown in fig. 3.
The metadata repository 120 is used to store metadata defined by system developers using the metadata definition environment 110.
The object type library 130 is used for storing object types defined by system developers, and here, the object types may refer to the related description of the basic concepts, which is not described herein again.
The editing environment rendering engine library 140 stores a plurality of rendering engines, such as a workflow rendering engine, a mind map rendering engine, a state machine rendering engine, and the like, which respectively correspond to different editing modes. It will be appreciated that system developers can customize or develop other editing environment rendering engines and store them in the rendering engine library 140. The rendering engine is configured to generate an editing environment supporting a corresponding editing mode according to the metadata rendering, and in short, the rendering engine is responsible for displaying the metadata in various modes (i.e., rendering the metadata to obtain the corresponding editing environment), and a large amount of codes do not need to be written by system developers in the process.
The back-end data management system 150 may be used to manage (including store, query, delete, change, etc.) user data or business data.
It should be noted that the data processing system shown in fig. 3 is only one implementation manner of the present application, and in practical applications, the data processing system may further include more or less components, and is not limited herein.
In the present application, when a system developer develops an information management system in a certain field through the data processing system shown in fig. 3, the system developer needs to specify the following three types of information:
1. metadata of the domain. Wherein the metadata of the domain includes at least one metadata, each metadata including at least one attribute. The metadata of the domain can be defined by a system developer using a defined grammar rule (e.g., the metadata grammar rule defined by the metadata definition environment 110 of FIG. 3) according to the specifics of the domain.
2. The object type of the domain. The object types of the field comprise at least one object type, and can be determined by a system developer according to the specific situation of the field. Here, the object type may refer to the detailed description in the above basic concept (two), which is not described herein.
3. Each object type and metadata association. In the application, the association relationship between the object type and the metadata can be determined by a system developer according to the actual requirements of users, wherein the object type and the metadata can be in a one-to-one correspondence relationship or a many-to-one relationship. It is to be appreciated that upon determining an object type, metadata associated with the object type can be uniquely determined.
By way of example, referring to the example in the basic concept (two) object type in the foregoing, in the field of company business information management, two metadata are included: metadata describing customer data, metadata describing vendor data.
When the object is metadata, metadata for describing customer data may belong to an object type 1, and metadata for describing vendor data may belong to an object type 2. Here, object type 1 may be associated with metadata for describing customer data, and object type 2 may be associated with metadata for describing vendor data.
When an object is an attribute included in metadata, with reference to table 1, for metadata used to describe client data, a client name, age, and existence are used to describe basic information of the client, and may be regarded as belonging to object type 1; the provider name is used for describing the external relationship of the client and can be regarded as belonging to the object type 2. Here, both object type 1 and object type 2 may be associated with metadata for describing customer data.
In an alternative embodiment, the system developer may also specify the following type 4 information:
4. and the corresponding relation between the object type and the editing mode. In the application, the corresponding relationship between the object type and the editing mode can be determined by a system developer according to the user requirement, wherein the object type and the editing mode can be in a one-to-one corresponding relationship or a many-to-one relationship. Here, after the object type is determined, the editing method corresponding to the object type may be uniquely determined, that is, the corresponding rendering engine may be uniquely determined.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an apparatus 200 provided in the present application, where the apparatus 200 may be used to run an information management system developed by a system developer through the data processing system shown in fig. 3, and may provide an editing environment for a user.
As shown in FIG. 4, device 200 may include a bus 210, a processor 220, a memory 230, an input-output module 240, a display module 250, a communication interface 260, and other similar components.
Bus 210 may be circuitry that interconnects the above-described elements and passes communications (e.g., control messages) between the above-described elements.
The processor 220 may receive commands from the above-described other elements (e.g., the memory 230, the input and output module 240, the display module 250, the communication interface 260, etc.) through the bus 210, and parse the received commands, perform calculations or data processing according to the parsed commands. Specifically, the processor 220 may be configured to call a program stored in the memory 230, for example, an implementation program of the data processing method provided in one or more embodiments of the present application, and execute instructions included in the program.
Memory 230 may store commands and data received or generated by processor 220 or other elements (e.g., memory 230, input-output module 240, display module 250, communication interface 260, etc.). In some embodiments of the present application, the memory 230 may be used to store an implementation program of the data processing method provided in one or more embodiments of the present application, and please refer to the following embodiments regarding the implementation of the data processing method provided in one or more embodiments of the present application.
In this application, in an optional embodiment, for a certain domain, the storage 230 may store metadata of the domain, object types of the domain, and an association relationship between each object type and the metadata; optionally, the memory 230 may further store a corresponding relationship between the object type and the editing mode in the field.
It is to be appreciated that the memory 230 can store information for multiple domains simultaneously, such that the device 200 can provide editing environments for customers in different domains simultaneously.
In alternative embodiments, the information may be stored in other electronic devices from which device 200 may obtain the information via communication interface 260.
The input-output module 240 may be used to enable interaction between the device 200 and the device/external environment, and may mainly include an audio input-output module, a key input module, a display, and the like. Specifically, the input/output module may further include: cameras, touch screens, sensors, and the like.
The display module 250 may display various information (e.g., multimedia data, text data, etc.) received from the above elements.
Communication interface 260 may be used for device 200 to communicate with other electronic devices. Specifically, the communication interface 260 may be a Long Term Evolution (LTE) communication interface, or may be a communication interface of a 5G or future new air interface. Not limited to wireless communication interfaces, device 200 may also be configured with a wired communication interface to support wired communications, such as a Local Access Network (LAN) interface.
It should be noted that the apparatus 200 shown in fig. 4 is only one implementation manner of the embodiment of the present application, and in practical applications, the apparatus 200 may also include more or less components, which is not limited herein.
Based on the basic concept, the data processing system shown in fig. 3 and the device 200 shown in fig. 4, the present application provides a data processing method, which can develop editing environments for users in different fields, and further, can rapidly develop corresponding editing environments according to the requirements of the users for editing modes, reduce development cost and development difficulty, and improve development efficiency.
In the application, when a system developer develops an information management system in a certain field through a data processing system (i.e., a development platform), the information management system in the field can be developed quickly only by predefining and storing the association relationship among metadata, object types and metadata in the field, and an editing environment meeting the user requirements is provided. In addition, a system developer may dynamically adjust the editing environment provided to the user by altering the domain metadata (e.g., the attributes included in the metadata, etc.).
Specifically, the editing environment is directly oriented to the user, and the user can manage data through the editing environment. First, briefly introduce two key points that need to be confirmed when the data processing method in the present application provides an editing environment for a user:
the user (one) needs to manage which data of the current domain.
In general, data in each domain is relatively large. When a user manages data using an editing environment, the data involved occupies only a part of the entire data in the field. Therefore, the data which needs to be managed by the user is confirmed, and the corresponding editing environment is generated according to the data which needs to be managed by the user, so that the operation can be simplified, and the data management by the user is facilitated.
And (II) managing data by the user in any editing mode.
Specifically, the user may manage the data in different editing manners, such as a text editing manner, a workflow editing manner, a state diagram editing manner, a mind map editing manner, a Domain Specific Language (DSL) text editing manner, a graphical editing manner, a form editing manner, and the like. The editing mode of the user management data is confirmed, and the corresponding editing environment is generated according to the editing mode, so that the requirement on the editing mode can be met.
Referring to fig. 5, fig. 5 is a schematic flow chart of the data processing method provided herein. As shown in fig. 5, the data processing method may include the steps of:
s101, the device determines first metadata associated with a first object type, wherein the first object type is selected from at least one object type by a user.
In the present application, the device referred to may be the device 200 shown in fig. 4. In an alternative embodiment, the device may store metadata of a current domain, object types of the domain, an association of each object type and the metadata; in another alternative embodiment, the device may also obtain the above information from other devices or networks. Wherein the domain includes at least one metadata, each metadata including at least one attribute.
Specifically, step S101 can be divided into the following two sub-steps:
s1011, the user selects a first object type.
Specifically, when the information management system is operated by the device, a user needs to select one object type from object types in the current field to generate a corresponding editing environment.
In this application, the user may select the first object type according to the data that needs to be managed currently and the association relationship between the object type and the metadata, and the following two examples are specifically described:
referring to the example in the foregoing basic concept (two) object type, in the field of company business information management, two metadata are included: metadata describing customer data, metadata describing vendor data.
(1) In a specific example, the object is metadata, and metadata for describing customer data belongs to object type 1, and metadata for describing supplier data belongs to object type 2; object type 1 is associated with metadata describing customer data and object type 2 is associated with metadata describing vendor data.
In this case, if the user needs to manage data related to the client, the user may select object type 1 as the first object type; if the user needs to manage data associated with the vendor, the user may select object type 2 as the first object type.
(2) In a specific example, the object is an attribute included in the metadata, see table 1, and for the metadata used to describe the client data, the client name, age, and existence are used to describe the basic information of the client, and belong to object type 1; the provider name is used for describing the external relation of the client and belongs to the object type 2. Both object type 1 and object type 2 are associated with metadata that describes the customer data.
In this case, if the user needs to manage data related to the basic information of the client, the user may select object type 1 as the first object type; if the user needs to manage data related to the client's external relationship, the user may select object type 2 as the first object type.
In alternative embodiments, the device may provide a display page or an edit page to the user, and the user may input the selected first object type to the device by voice input, text input, or the like, without limitation.
S1012, the device determines first metadata associated with the first object type.
In the present application, after determining a first object type selected by a user, a device may determine metadata associated with the first object type according to an association relationship between an object type and metadata in a current domain.
And S102, generating a first editing environment by the equipment according to the first metadata and the first editing mode.
Specifically, in step S102, when the device generates the first editing environment, it needs to confirm the two key points: the first data, which data the user needs to manage in the current domain, and the first editing mode, which editing mode the user manages the data through. The following describes the confirmation process of the first data and the first editing mode in the present application, respectively:
(1) confirming the first data
In this application, the first data is data corresponding to the first metadata, that is, data described by the first metadata. This is briefly illustrated below by two examples.
In an alternative embodiment, if the object is metadata, the first object type is a first metadata type, and the first data is data corresponding to the first metadata, that is, the first data is data described by the first metadata. For example, in the above step S101, in the (1) th example of the company business information management field, if the user selects the object type 1 as the first object type, the first data is specific data related to the customer, such as a name (Eric), an age (32), a place of residence (shenzhen), a name of a supplier (Oracle, IBM) related to the customer, and the like.
In another optional embodiment, the object is an attribute in the metadata, the first object type is a first attribute type, and the first data is data belonging to a first attribute in data corresponding to the first metadata, where an attribute belonging to the first attribute type in at least one attribute included in the first metadata is the first attribute. For example, in the above step S101, in the (2) th example of the company business information management field, if the user selects the object type 1 as the first object type, the first data is specific data related to the basic information of the client, such as the name (Eric), age (32), and place of residence (shenzhen) of a certain client; if the user selects object type 2 as the first object type, the first data is specific data related to the external relationship of the customer, such as a name of a supplier (Oracle, IBM) related to the customer, and the like.
(2) Confirming the first editing mode
In an alternative embodiment, the first editing mode may be specified by a user, and the specified mode may be voice input, text input, and the like, which is not limited in the present application. The first editing mode may be any editing mode, including but not limited to any of the following: a workflow editing mode, a state machine editing mode, a Unified Modeling Language (UML) graph editing mode, a database table graph editing mode, a text editing mode, a graphical editing mode, a form editing mode, a Domain Specific Language (DSL) text editing mode, a chart (chart) (including a bar chart, a pie chart, a bar chart, etc.) editing mode, a network topology editing mode, a page layout (page layout) editing mode or a cabinet rack diagram editing mode.
In another alternative embodiment, the first editing mode may also be determined according to the first object type. Specifically, when a system developer develops the information management system, the corresponding relationship between the editing mode and the object type can be predefined according to the user requirement, wherein one object type uniquely corresponds to one editing mode. Optionally, the corresponding relationship between the editing mode and the object type may be stored in the device, other devices, or a network.
In the application, after the first data and the first editing mode are determined, the device may generate a first editing environment according to the first data and the first editing mode, where the first editing environment supports a user to edit the first data through the first editing mode. Specifically, the device may generate the first editing environment through a rendering engine corresponding to the first editing mode in the editing environment rendering engine library 140 in the data processing system shown in fig. 3.
The following describes in detail possible implementations of the editing environment in the present application with reference to two specific examples. Referring to fig. 6 and 7, fig. 6 and 7 illustrate one possible editing environment, respectively.
In the above step S101, in the (2) th example of the company business information management field, if the user selects the object type 1 as the first object type, the first data is specific data related to the basic customer information, and the editing environment generated by the device is available for the user to manage the basic customer information; if the user selects the text editing mode, the editing environment generated by the equipment supports the user to manage the basic information of the client in the text editing mode. As shown in fig. 6, the text editing environment in the figure supports a user to manage basic information of a client by means of text editing, for example, the user can input a name (Eric), an age (32), a place of residence (shenzhen), and the like of a certain client, it can be understood that the text editing environment in fig. 6 only shows a text input function, and in practical applications, the editing environment also supports the user to inquire, delete, and change basic information of the client.
Here, in the editing environment, attributes belonging to the object type 1 in the metadata describing the client information are displayed to the user, so that the user edits the specific data described by the attributes. In an alternative embodiment, the system developer may redefine the metadata describing the customer information, such as by dynamically adjusting the page through the text editor in FIG. 6, adding the attribute "height" describing the basic information of the customer to the metadata describing the customer information. After a system developer redefines metadata used for describing customer information, the text editing environment generated by the data transmission method can be used for a user to manage the "height" of the customer. That is, in the present application, a system developer can adjust the definition of metadata according to actual requirements, thereby flexibly and dynamically adjusting the editing environment provided to a user.
In the above step S101, in the (2) th example of the company business information management field, if the user selects the object type 2 as the first object type, the first data is specific data related to the external relationship of the client, and the editing environment generated by the device is available for the user to manage the external relationship of the client; if the user selects the graphical editing mode, the editing environment generated by the equipment supports the user to manage the external relation of the client in the graphical editing mode. As shown in FIG. 7, the graphical editing environment in the figure enables a user to manage the external relationship of a client by means of graphical editing. For example, a user may add a vendor Oracle and IBM associated with customer Eric.
S103, receiving and storing the first data input on the first editing environment.
Specifically, after the device generates the first editing environment, the user may input the first data to the device through the first editing environment, and the manner in which the first editing environment displays the first data input by the user is related to the first editing manner. For example, when the first editing mode is a text editing mode, the first editing environment displays the first data in the form of text; when the first editing mode is a mind map editing mode, the first editing environment displays first data in the form of a mind map; when the first editing mode is a state machine editing mode, the first editing environment displays the first data in a state machine mode.
Specifically, the device stores the first data entered by the user on the first authoring environment in a local storage or in a back end data management system 150 of the data processing system shown in FIG. 3. In an alternative embodiment, the device may store the first data according to an attribute classification, where the attribute is an attribute comprised by the first metadata.
For example, referring to table 1, when the first metadata is metadata for describing client data, the first metadata includes the following four attributes, namely, client name, age, existence, and provider name. If the first data input by the user comprises data of two clients, wherein the data of the client 1 comprises: customer name (Eric), age (32), residual (Shenzhen), and provider name (IBM and Oracle), and the data of the customer 2 includes customer name (Mark), age (30), residual (Guangzhou), provider name (Google and SAP), so that when the device stores the first data, the first data is stored according to four attribute classifications, Eric and Mark are stored together according to the attribute customer name, 32 and 30 are stored together according to the attribute age, and so on.
It can be understood that the device stores the first data according to the attribute classification, which is equivalent to standardizing the storage mode of the data, and can provide convenience for subsequent related operations (such as modification, query, deletion and the like) on the first data.
Optionally, the data processing method of the present application further includes the following steps:
and S104, verifying the first data according to the verification rule corresponding to the first metadata, and outputting a verification result on the first editing environment.
Specifically, after receiving first data input by a user through a first editing environment, the device verifies the first data according to a verification rule corresponding to the first metadata. In a certain field, the definition of each metadata may be different, and therefore, each metadata has a corresponding check rule for checking whether the data format input by the user is correct, whether the input data is complete, and the like. Here, the verification rule may be predefined by a system developer, may be stored in the device, and may also be stored in the back-end data management system 150 in the data processing system described in fig. 3.
For a specific example, referring to table 1, when the first metadata is metadata for describing client data, the first metadata includes the following four attributes, namely, client name, age, existence, and provider name. The first object type selected by the user is a first metadata type indicating that the user needs to manage information related to the customer. When the user inputs the data of the client 1, only the following data are input: customer name (Eric), age (32), and residue (Shenzhen), the device may verify that the user did not enter the provider name; if the user entered the string at the time of age entry, the device may verify that the user entered an error.
Understandably, the device can output the verification result to the first editing environment, so that the user can complete or change the input first data in time.
S105, receiving a first instruction aiming at first data input on the first editing environment, wherein the first instruction is used for executing a first operation on the stored first data, and the first operation comprises at least one of the following operations: queried, deleted, or modified.
Specifically, after receiving first data input by a user through a first editing environment, the device may receive a query, deletion, or modification instruction input by the user, and is configured to perform a corresponding operation on part or all of the stored first data.
It can be understood that steps S104 and S105 do not have a strict execution sequence, and step S104 can be executed before or after step S105, or can be executed simultaneously, which is not limited in the present application.
Referring to fig. 8, fig. 8 is a functional block diagram of the apparatus provided in the present application, and the functional blocks of the apparatus may be implemented by hardware, software, or a combination of hardware and software. Those skilled in the art will appreciate that the functional blocks described in FIG. 8 may be combined or separated into sub-blocks to implement the application scheme.
As shown, the apparatus may comprise: a determination unit 801, a generation unit 802, and a management unit 803, wherein,
a determining unit 801 for determining first metadata associated with a first object type, the first object type being selected by a user from at least one object type; the device stores at least one metadata, the at least one metadata including a first metadata, each metadata including at least one attribute;
a generating unit 802, configured to generate a first editing environment according to the first metadata and the first editing manner; the first editing mode is specified by a user, or the first editing mode corresponds to a first object type;
the first editing environment supports a user to edit the first data in a first editing mode; the first object type is a first metadata type, the first data is data corresponding to the first metadata, or the first object type is a first attribute type, the first data is data belonging to a first attribute in the data corresponding to the first metadata, and the first attribute comprises at least one attribute belonging to the first attribute type;
a management unit 803, configured to receive and store the first data input on the first editing environment.
Optionally, the first editing mode includes, but is not limited to, any one of the following: a workflow editing mode, a state machine editing mode, a UML graph editing mode, a database table graph editing mode, a text editing mode, a graphical editing mode, a form editing mode, a field-specific language text editing mode, a graph editing mode, a network topology graph editing mode, a page layout editing mode or a cabinet frame graph editing mode.
Optionally, the management unit 803 is specifically configured to store the first data input on the first editing environment according to the attribute classification.
Optionally, the management unit 803 is further configured to verify the first data according to a verification rule corresponding to the first metadata; and outputting the verification result on the first editing environment.
Optionally, the apparatus may further include a receiving unit 804, configured to receive a first instruction for the first data input on the first editing environment, where the first instruction is used to perform a first operation on the stored first data, and the first operation includes at least one of: queried, deleted, or modified.
It is understood that specific implementation of each functional unit of the apparatus shown in fig. 8 may refer to the related description of the foregoing method embodiment, and will not be described herein again.
When the application is implemented, a system developer develops an information management system in a certain field through a data processing system (namely a development platform), the information management system in the field can be rapidly developed only by predefining and storing the association relation among the metadata, the object type and the metadata in the field, and an editing environment meeting the requirements of users is provided. The data processing method and the related device can be used for developing editing environments for users in different fields, further, corresponding editing environments can be rapidly developed according to the requirements of the users for editing modes, the editing environments can be dynamically adjusted, the development cost and the development difficulty are reduced, and the development efficiency is improved.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions described in accordance with the present application are generated, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk SolidStateDisk), among others.

Claims (10)

1. A data processing method, comprising:
the device determines first metadata associated with a first object type, the first object type selected by a user from at least one object type; the device stores at least one metadata, the at least one metadata including the first metadata, each metadata including at least one attribute;
the equipment generates a first editing environment according to the first metadata and a first editing mode; the first editing mode is specified by the user, or the first editing mode corresponds to the first object type;
the first editing environment supports the user to edit the first data in the first editing mode; the first object type is a first metadata type, the first data is data corresponding to the first metadata, or the first object type is a first attribute type, the first data is data belonging to a first attribute in the data corresponding to the first metadata, and the first attribute comprises an attribute belonging to the first attribute type in the at least one attribute;
receiving and storing the first data input on the first editing environment.
2. The method of claim 1,
the first editing mode is any one of the following modes: a workflow editing mode, a state machine editing mode, a UML graph editing mode, a database table graph editing mode, a text editing mode, a graphical editing mode, a form editing mode, a field-specific language text editing mode, a graph editing mode, a network topology graph editing mode, a page layout editing mode or a cabinet frame graph editing mode.
3. The method of claim 1,
the storing the first data entered on the first editing environment comprises: classifying the first data input stored on the first editing environment according to the attribute of the first metadata.
4. The method of claim 1,
after said receiving and storing said first data entered on said first editing environment, said method further comprises:
verifying the first data according to a verification rule corresponding to the first metadata;
and outputting a verification result on the first editing environment.
5. The method of any of claims 1-4, wherein after receiving and storing the first data entered on the first editing environment, the method further comprises:
receiving a first instruction for the first data input on the first editing environment, the first instruction for performing a first operation on the stored first data, the first operation including at least one of: queried, deleted, or modified.
6. An apparatus for data processing, comprising:
a determining unit for determining first metadata associated with a first object type, the first object type being selected by a user from at least one object type; the device stores at least one metadata, the at least one metadata including the first metadata, each metadata including at least one attribute;
the generating unit is used for generating a first editing environment according to the first metadata and a first editing mode; the first editing mode is specified by the user, or the first editing mode corresponds to the first object type;
the first editing environment supports the user to edit the first data in the first editing mode; the first object type is a first metadata type, the first data is data corresponding to the first metadata, or the first object type is a first attribute type, the first data is data belonging to a first attribute in the data corresponding to the first metadata, and the first attribute comprises an attribute belonging to the first attribute type in the at least one attribute;
a management unit for receiving and storing the first data input on the first editing environment.
7. The apparatus of claim 6,
the first editing mode is any one of the following modes: a workflow editing mode, a state machine editing mode, a UML graph editing mode, a database table graph editing mode, a text editing mode, a graphical editing mode, a form editing mode, a field-specific language text editing mode, a graph editing mode, a network topology graph editing mode, a page layout editing mode or a cabinet frame graph editing mode.
8. The apparatus of claim 6,
the management unit is specifically configured to store the first data input in the first editing environment in a classified manner according to the attribute of the first metadata.
9. The apparatus of claim 6,
the management unit is further configured to verify the first data according to a verification rule corresponding to the first metadata; and outputting a verification result on the first editing environment.
10. The apparatus of any of claims 6-9, further comprising:
a receiving unit, configured to receive a first instruction for the first data input on the first editing environment, where the first instruction is used to perform a first operation on the stored first data, and the first operation includes at least one of: queried, deleted, or modified.
CN201810178018.9A 2018-03-02 2018-03-02 Data processing method and related device Active CN110221827B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810178018.9A CN110221827B (en) 2018-03-02 2018-03-02 Data processing method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810178018.9A CN110221827B (en) 2018-03-02 2018-03-02 Data processing method and related device

Publications (2)

Publication Number Publication Date
CN110221827A CN110221827A (en) 2019-09-10
CN110221827B true CN110221827B (en) 2021-10-22

Family

ID=67822291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810178018.9A Active CN110221827B (en) 2018-03-02 2018-03-02 Data processing method and related device

Country Status (1)

Country Link
CN (1) CN110221827B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115953507B (en) * 2023-03-10 2023-05-16 成都索贝视频云计算有限公司 Micro-service template management system for imaging arrangement container and template generation method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699393A (en) * 2009-10-09 2010-04-28 中国电子科技集团公司第二十八研究所 Intelligent software interface dynamic generation method facing network
CN102609271A (en) * 2012-02-20 2012-07-25 山东大学 Metadata-driven visual SaaS (Software as a Service) application customizing method and metadata-driven visual SaaS application customizing system
CN103164221A (en) * 2013-02-21 2013-06-19 用友软件股份有限公司 Service modeling device and service modeling method
CN105224377A (en) * 2015-10-08 2016-01-06 广州华旻信息科技有限公司 A kind of method by metadata automatic generating software project code file and device
US9703763B1 (en) * 2014-08-14 2017-07-11 Google Inc. Automatic document citations by utilizing copied content for candidate sources
US9864733B2 (en) * 2014-12-04 2018-01-09 M-Files Oy Method, a system and a computer program for generating viewable presentations

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699393A (en) * 2009-10-09 2010-04-28 中国电子科技集团公司第二十八研究所 Intelligent software interface dynamic generation method facing network
CN102609271A (en) * 2012-02-20 2012-07-25 山东大学 Metadata-driven visual SaaS (Software as a Service) application customizing method and metadata-driven visual SaaS application customizing system
CN103164221A (en) * 2013-02-21 2013-06-19 用友软件股份有限公司 Service modeling device and service modeling method
US9703763B1 (en) * 2014-08-14 2017-07-11 Google Inc. Automatic document citations by utilizing copied content for candidate sources
US9864733B2 (en) * 2014-12-04 2018-01-09 M-Files Oy Method, a system and a computer program for generating viewable presentations
CN105224377A (en) * 2015-10-08 2016-01-06 广州华旻信息科技有限公司 A kind of method by metadata automatic generating software project code file and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
仿真网格原型***SimGrid-HLA的设计与实现;凌云翔等;《***仿真学报》;20051231;第17卷(第12期);第2953-2956页 *

Also Published As

Publication number Publication date
CN110221827A (en) 2019-09-10

Similar Documents

Publication Publication Date Title
WO2022160707A1 (en) Human-machine interaction method and apparatus combined with rpa and ai, and storage medium and electronic device
US11249734B2 (en) Tri-affinity model driven method and platform for authoring, realizing, and analyzing a cross-platform application
US8712947B2 (en) Collaborative system for capture and reuse of software application knowledge and a method of realizing same
US10127218B2 (en) Object templates for data-driven applications
CN102236544B (en) Method and device for designing skins
US20170003987A1 (en) Access operation with dynamic linking and access of data within plural data sources
TW202105336A (en) Development method, system and computer equipment for course package and storage medium thereof
CN110688145B (en) Android MVP code automatic generation method and device, medium and electronic equipment
CN111125064B (en) Method and device for generating database schema definition statement
CN113448562B (en) Automatic logic code generation method and device and electronic equipment
KR101754258B1 (en) Apparatus and method for verifying simultaneous edit configuration for markup language based document
CN112199373A (en) Form development method and system
CN103186661A (en) Declarative view objects
US20110126171A1 (en) Dynamic native editor code view facade
CN110221827B (en) Data processing method and related device
CN116450107B (en) Method and device for secondary development of software by low-code platform and electronic equipment
US11900269B2 (en) Method and apparatus for managing knowledge base, device and medium
CN104731765A (en) Resolving Content Editing Conflicts Arising From Concurrent Drafts
US20220413843A1 (en) Combining model-driven applications and canvas-type applications with application lifecycle management
CN112394920B (en) Application software development method, platform and electronic equipment
CN114692055A (en) Form processing method and device, storage medium and electronic equipment
CN114489674A (en) Data verification method and device of dynamic data model
US7730105B2 (en) Time sharing managing apparatus, document creating apparatus, document reading apparatus, time sharing managing method, document creating method, and document reading method
CN115017149A (en) Data processing method and device, electronic equipment and storage medium
CN102841918A (en) Method and device for processing binary system long-object fluidized data

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
TA01 Transfer of patent application right

Effective date of registration: 20200207

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Applicant after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 210012 HUAWEI Nanjing base, 101 software Avenue, Yuhuatai District, Jiangsu, Nanjing

Applicant before: Huawei Technologies Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant