Application creation method and apparatus, device, and storage medium
By directly retrieving associated data from the database using the data object set of the IoT application, the inefficiency caused by manually writing associated data in existing technologies is solved, enabling the rapid creation and efficient management of IoT applications.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN NEOWAY TECH
- Filing Date
- 2022-12-13
- Publication Date
- 2026-06-05
AI Technical Summary
Existing technologies require manual, random writing of related data when creating IoT applications, resulting in low efficiency.
By acquiring a set of data objects associated with the target IoT application, including target resource objects, target function objects, target scenario objects, and target service objects, the application is generated by directly retrieving related data from the database, avoiding manual coding.
It enables the rapid creation of IoT applications, improves creation efficiency, meets different application needs, and reduces creation and management costs.
Smart Images

Figure CN115826926B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet of Things (IoT) technology, and in particular to application creation methods, apparatus, devices, and storage media. Background Technology
[0002] With the development of science and technology, the Internet of Things (IoT) has been widely applied to various aspects of industrial production and daily life. Within the IoT architecture, IoT applications need to manage the data collected by IoT sensing devices and integrate this data with practical applications across various industries. Currently, creating IoT applications requires manually and randomly writing relevant data, which is time-consuming and leads to low efficiency in application creation. Summary of the Invention
[0003] This application provides an application creation method, apparatus, device, and storage medium, which can directly and quickly retrieve related data for IoT application creation from the database based on data objects, thereby rapidly creating IoT applications and effectively improving the efficiency of IoT application creation.
[0004] On one hand, embodiments of this application provide an application creation method, the method comprising:
[0005] Obtain a set of data objects associated with the target IoT application, the set of data objects including target resource objects, target function objects, target scenario objects, and target service objects, the target IoT application being the IoT application to be created;
[0006] Retrieve from the database the first associated data related to the creation of the IoT application corresponding to the target resource object, the second associated data related to the creation of the IoT application corresponding to the target function object, the third associated data related to the creation of the IoT application corresponding to the target scene object, and the fourth associated data related to the creation of the IoT application corresponding to the target service object;
[0007] The target IoT application is obtained by performing IoT application generation processing based on the first associated data, the second associated data, the third associated data, and the fourth associated data.
[0008] On one hand, embodiments of this application provide an application creation apparatus, the apparatus comprising:
[0009] The acquisition unit is used to acquire a set of data objects associated with the target IoT application. The set of data objects includes target resource objects, target function objects, target scenario objects, and target service objects. The target IoT application is the IoT application to be created.
[0010] The processing unit is configured to retrieve from the database the first associated data related to the creation of the IoT application corresponding to the target resource object, the second associated data related to the creation of the IoT application corresponding to the target function object, the third associated data related to the creation of the IoT application corresponding to the target scene object, and the fourth associated data related to the creation of the IoT application corresponding to the target service object;
[0011] The processing unit is further configured to perform IoT application generation processing based on the first associated data, the second associated data, the third associated data, and the fourth associated data to obtain the target IoT application.
[0012] On one hand, embodiments of this application provide a computer device, including: a processor, a communication interface, and a memory, wherein the processor, the communication interface, and the memory are interconnected, wherein the memory stores executable program code, and the processor is used to call the executable program code to implement the application creation method provided in embodiments of this application.
[0013] Accordingly, embodiments of this application also provide a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to implement the application creation method provided in embodiments of this application.
[0014] This application obtains a set of data objects associated with a target IoT application. This set of data objects includes target resource objects, target functional objects, target scenario objects, and target service objects. The IoT application is generated by determining the associated data related to IoT application creation based on the data object set, thus obtaining the target IoT application. The application creation method provided in this application can decompose different application requirements into data objects comprising four parts: resource objects, functional objects, scenario objects, and service objects. Based on these data objects, associated data related to IoT application creation is determined from the database, thereby quickly creating the IoT application. This results in high efficiency in creating IoT applications and ensures that the obtained IoT application meets the application requirements. Compared with existing methods for creating IoT applications, the application creation method proposed in this application does not require manual random creation of associated data during IoT application creation; instead, it directly retrieves associated data from the database, effectively improving the efficiency of IoT application creation. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a schematic diagram of the system architecture of an application creation system applicable to the embodiments of this application;
[0017] Figure 2 This is a flowchart illustrating an application creation method provided in an embodiment of this application;
[0018] Figure 3 This is a schematic diagram of an object selection interface provided in an embodiment of this application;
[0019] Figure 4 This is a flowchart illustrating another application creation method provided in an embodiment of this application;
[0020] Figure 5 This is a schematic diagram of a data map provided in an embodiment of this application;
[0021] Figure 6 This is a schematic diagram of the structure of an application creation model provided in an embodiment of this application;
[0022] Figure 7 This is a schematic diagram of the structure of an application creation device provided in an embodiment of this application;
[0023] Figure 8 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0024] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0025] It should be noted that the terms "first," "second," etc., used in the embodiments of this application are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a technical feature specified with "first" or "second" may explicitly or implicitly include at least one of those features.
[0026] This application provides an application creation method that determines associated data related to the creation of an IoT application by using a data object set including resource objects, function objects, scene objects, and service objects, and creates an IoT application based on the associated data. The method provided by this application can quickly create IoT applications and effectively improve the creation efficiency of IoT applications.
[0027] In feasible embodiments, the application creation method provided in this application can be based on cloud technology. Specifically, it may involve one or more technologies such as cloud computing and cloud databases. For example, a set of data objects associated with the target IoT application can be obtained based on cloud computing technology, and related data associated with the creation of the IoT application can be obtained from the cloud database.
[0028] In feasible embodiments, the application creation method provided in this application can also be based on blockchain technology. Blockchain is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Essentially, a blockchain is a decentralized database, a series of data blocks linked together using cryptographic methods. Each data block includes information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. It includes a series of blocks sequentially generated in chronological order. Once a new block is added to the blockchain, it is not removed. The blocks record the data submitted by nodes in the blockchain system. Optionally, the data generated by executing the application creation method (e.g., data object sets, associated data, etc.) can be stored in the blockchain network in the form of blocks. Alternatively, associated data related to the creation of the IoT application can be obtained from the blockchain network for use in other business scenarios. Furthermore, the device executing the application creation method can be a node device in the blockchain network.
[0029] Please see Figure 1 This figure is a schematic diagram of the system architecture of an application creation system applicable to an embodiment of this application. Figure 1 The application creation system includes an application creation platform 101, a terminal device 102, and a database 103. The application creation platform 101 is connected to the terminal device 102 and the database 103 via a network, enabling data interaction. The database 103 stores associated data related to the creation of IoT applications.
[0030] In feasible implementations, the application creation platform 101 can be an Internet of Things (IoT) platform, or it can be another platform different from an IoT platform. The device hosting the application creation platform 101 can be a server. This server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0031] In feasible implementations, the terminal device 102 may be a handheld device with wireless communication capabilities (such as a smartphone or tablet), a computing device (such as a personal computer (PC), a smart voice interaction device, a wearable device, or other smart devices), but is not limited thereto.
[0032] In a feasible implementation, database 103 can be a local database of the device hosting application creation platform 101, or a cloud database that application creation platform 101 can access.
[0033] The application creation method provided in this application embodiment can be implemented by the application creation platform 101, including but not limited to the following steps:
[0034] The application creation platform 101 obtains a set of data objects associated with the IoT application to be created from the terminal device 102. This set of data objects includes target resource objects, target function objects, target scenario objects, and target service objects. The application creation platform 101 obtains first associated data related to the creation of the IoT application from the database 103 based on the target resource objects, second associated data based on the target function objects, third associated data based on the target scenario objects, and fourth associated data based on the target service objects. The application creation platform 101 performs IoT application generation processing based on the first, second, third, and fourth associated data to obtain the target IoT application.
[0035] In a feasible implementation, the application creation platform 101 can obtain a set of data objects associated with the target IoT application from the database 103.
[0036] The application creation method provided in this application deconstructs the requirement information of an IoT application into a data object set, including resource objects, functional objects, scene objects, and service objects, enabling the created IoT application to better meet the requirements. By determining associated data based on the data object set and generating the IoT application based on this associated data, the method achieves rapid creation of IoT applications, thereby effectively improving the creation efficiency of IoT applications. The application creation method provided in this application can deconstruct different requirement information into a data object set, and the IoT applications created based on this data object set have similar structures. Therefore, the method provided in this application can reduce the creation and management costs of IoT applications.
[0037] It is understood that the system architecture diagrams illustrating the application creation methods described in the embodiments of this application are for the purpose of more clearly explaining the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. Those skilled in the art will recognize that... Figure 1 The number of terminal devices 102 shown is merely illustrative. Any number of terminal devices can be configured according to business implementation needs. Furthermore, as system architecture evolves and new business scenarios emerge, the application creation method provided in this application embodiment is equally applicable to similar technical problems.
[0038] It should be noted that the related data involved in the embodiments of this application are all obtained with the user's authorization. Furthermore, when the embodiments of this application are applied to specific products or technologies, the data used must be authorized by the user, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0039] Please see Figure 2 This figure is a flowchart illustrating an application creation method provided in an embodiment of this application. This application creation method can be implemented by the aforementioned application creation platform 101, or by other application creation platforms. The flow of the application creation method provided in this embodiment includes, but is not limited to:
[0040] S201. Obtain a set of data objects associated with the target IoT application. The set of data objects includes target resource objects, target function objects, target scenario objects, and target service objects. The target IoT application is the IoT application to be created.
[0041] In this embodiment, resource objects include physical resources associated with the IoT platform, such as IoT sensing devices (e.g., cameras, temperature sensors) deployed on or managed by the IoT platform. Functional objects include shared functions deployed on the IoT platform, such as network monitoring and evaluation functions of the IoT platform. Scenario objects include business scenarios, such as practical application scenarios like road safety and ecological environment. Service objects include data carriers with business attributes associated with device objects, where device objects are the physical resources included in the resource objects mentioned above.
[0042] In one embodiment, the process of obtaining a set of data objects associated with a target IoT application can be as follows: First, obtain the application description information of the target IoT application, which includes the application's functional information, business scenario information, and device information of associated devices. Then, analyze and process the application description information to obtain the set of data objects associated with the target IoT application. For example, the application description information of the target IoT application could be: "This IoT application is suitable for indoor fire prevention scenarios. When the smoke detection concentration of the indoor smoke sensor exceeds a threshold, the IoT application sends an alarm message to the client device (such as a mobile phone)." In this application description information, the functional information of the target IoT application includes "able to acquire smoke sensor detection data," "able to send information to terminal devices," and "able to perform smoke alarm judgment." The business scenario information is "indoor fire prevention scenario." The device information of associated devices includes relevant information about the "indoor smoke sensor" (such as device model, communication protocol, etc.) and relevant information about the "client device" (such as device model, communication interface, command format, etc.).
[0043] In one embodiment, after analyzing and processing the application description information to obtain a set of data objects associated with the target IoT application, the following operations can be performed: determining whether a target data object exists in the data object set. This target data object is a data object not recorded in the data object list, and it can be any one of a resource object, functional object, scene object, or service object. If the target data object exists in the data object set, then associated data creation instruction information is generated based on the target data object. The associated data creation instruction information is sent to a first terminal device, causing the first terminal device to respond to the associated data creation instruction information and output prompt information. This prompt information is used to prompt the input of associated data corresponding to the target data object and associated with the creation of the IoT application. The associated data corresponding to the target data object and associated with the creation of the IoT application is received from the first terminal device, and the associated data corresponding to the target data object and associated with the creation of the IoT application is stored in the database corresponding to the target data object. In the application creation method provided in this application embodiment, the first terminal device can be a client device, such as a smartphone or computer. For example: the data object set determined based on the application description information includes a target data object not recorded in the data object list, which is the resource object "temperature sensor"; a related data creation prompt message (such as "Please create related data corresponding to the temperature sensor") is generated based on the target data object; the related data creation prompt message is sent to the first terminal device (such as the target computer), which prompts the target computer to input the related data corresponding to the target data object and associated with the creation of the IoT application; the related data corresponding to the target data object and associated with the creation of the IoT application (i.e., the related data corresponding to the target data object "temperature sensor") sent by the first terminal device is received, and the related data corresponding to the target data object and associated with the creation of the IoT application is stored in the database corresponding to the target data object. The application creation method provided in this application embodiment can obtain the new related data created by the terminal device and store the new related data in the database, realizing the self-updating of the related data database, effectively saving the cost of data collection, realizing the reuse of related data, and can also create target IoT applications better according to application requirements.
[0044] In one embodiment, the process of obtaining a set of data objects associated with a target IoT application can further include: receiving a set of data objects associated with a target IoT application sent by a second terminal device; wherein the data objects included in the set are determined based on the object selection operation selected in the object selection operation, which is a selection operation for the object options displayed in the object selection interface, and the object options displayed in the object selection interface include multiple resource object options, multiple function object options, multiple scene object options, and multiple service object options. Please refer to [link to relevant documentation]. Figure 3This figure is a schematic diagram of an object selection interface provided in an embodiment of this application. Figure 3 As shown, the object selection interface includes four object options: "Resource Objects," "Functional Objects," "Scene Objects," and "Service Objects." Each object option includes multiple candidate objects. "Resource Objects" include "Infrared Camera," "Radar," and "Temperature Sensor" for selection; "Functional Objects" include "System Integration Functions," "Network Fault Diagnosis," and "Data Processing Functions" for selection; "Scene Objects" include "Ecological Environment," "Road Safety," and "Indoor Fire Prevention" for selection; and "Service Objects" include "IoT Design," "IoT Front-End Management," and "IoT Scheduling" for selection. The process of obtaining the data object set associated with the target IoT application can be as follows: The second terminal device (such as a mobile phone) performs an object selection operation on the object selection interface, checking the target resource objects, target functional objects, target scene objects, and target service objects associated with the target IoT application. The application creation platform receives the data object set associated with the target IoT application sent by the second terminal device. The application creation method provided in this application provides an object selection interface, which simplifies the operation process of obtaining data object sets, thereby effectively improving the efficiency of IoT application creation and realizing the sharing of IoT resources, functions, and scenarios in a way that is "on-demand, timely, high-quality and efficient, accurate and convenient, safe and reliable".
[0045] In one embodiment, before the application creation platform receives the set of data objects associated with the target IoT application sent by the second terminal device, it may also perform the following operations: The application creation platform receives an interface data request sent by the second terminal device. The interface data request is used to request interface data of the object selection interface. The interface data request carries identification information, which includes one or more of the device information of the second terminal device and the account information of the currently logged-in account of the second terminal device; identity authentication is performed based on the identification information, and after the identity authentication is successful, the interface data of the object selection interface is sent to the second terminal device so that the second terminal device can display the object selection interface based on the received interface data. For example, a second terminal device sends interface request data to an application creation platform. This interface request information requests interface data for an object interface. The interface request data carries identification information, including the device information of the second terminal device (such as device serial number, device MAC address, etc.) and the account information of the currently logged-in account of the second terminal device (such as username, password, etc.). The application creation platform performs identity authentication based on the identification information in the interface data request, determining whether the username corresponding to the second terminal device exists and whether the password is correct. Once the second terminal device's identity authentication is successful, the platform sends the interface data for the object selection interface to the second terminal device, enabling the second terminal device to display the object selection interface based on the received interface data. The application creation method provided in this application embodiment can perform identity verification before the terminal device performs data interaction, ensuring the security of the application creation process.
[0046] S202. Obtain from the database the first associated data related to the creation of the IoT application corresponding to the target resource object, the second associated data related to the creation of the IoT application corresponding to the target function object, the third associated data related to the creation of the IoT application corresponding to the target scene object, and the fourth associated data related to the creation of the IoT application corresponding to the target service object.
[0047] In this embodiment, the first associated data, second associated data, third associated data, and fourth associated data can be code related to a data object, or rules associated with creating an IoT application. The associated data is used to create the target IoT application.
[0048] In one embodiment, the process of obtaining the first associated data related to the creation of an IoT application corresponding to a target resource object, the second associated data related to the creation of an IoT application corresponding to a target functional object, the third associated data related to the creation of an IoT application corresponding to a target scene object, and the fourth associated data related to the creation of an IoT application corresponding to a target service object can be as follows: querying a first database based on the target resource object to obtain the first associated data related to the creation of an IoT application corresponding to the target resource object from the first database; wherein the first database stores associated data related to the creation of IoT applications corresponding to multiple resource objects; querying a second database based on the target functional object to obtain the second associated data related to the creation of an IoT application corresponding to the target functional object from the second database; wherein the second database stores associated data related to the creation of IoT applications corresponding to multiple functional objects; querying a third database based on the target scene object to obtain the third associated data related to the creation of an IoT application corresponding to the target scene object from the third database; wherein the third database stores associated data related to the creation of IoT applications corresponding to multiple scene objects; and querying a fourth database based on the target service object to obtain the fourth associated data related to the creation of an IoT application corresponding to the target service object from the fourth database; wherein the fourth database stores associated data related to the creation of IoT applications corresponding to multiple service objects. The first, second, third, and fourth databases can be the same or different databases. The application creation method provided in this application performs data matching processing from existing databases based on objects in the data object set to obtain associated data related to the creation of IoT applications. This allows for the creation of new IoT applications using existing associated data, effectively reducing the resources consumed in creating IoT applications, increasing the application creation speed, and lowering the creation cost of various IoT applications.
[0049] In one embodiment, the process of adding associated data to the database can be as follows: determining whether an unknown data object exists in the data object set, wherein the unknown data object is a data object not recorded in the data object list, and the unknown data object is any one of resource object, function object, scene object, and service object; if the unknown data object exists, sending associated data creation instruction information to the third terminal device, so that the third terminal device responds to the associated data creation instruction information and outputs prompt information, the prompt information being used to prompt the input of associated data corresponding to the unknown data object and related to the creation of the Internet of Things application; receiving the associated data corresponding to the unknown data object and related to the creation of the Internet of Things application sent by the third terminal device, and storing the associated data corresponding to the unknown data object and related to the creation of the Internet of Things application in the database corresponding to the unknown data object.
[0050] In one embodiment, the process of storing data that does not have an association with a database into the corresponding database can be as follows: Deconstruct the existing IoT application to obtain fifth, sixth, seventh, and eighth associated data, wherein the fifth associated data is data associated with resource objects, the sixth associated data is data associated with functional objects, the seventh associated data is data associated with scene objects, and the eighth associated data is data associated with service objects; obtain the resource object to be stored corresponding to the fifth associated data, the functional object to be stored corresponding to the sixth associated data, the scene object to be stored corresponding to the seventh associated data, and the storage service object to be stored corresponding to the eighth associated data; store the fifth, sixth, seventh, and eighth associated data into the corresponding databases, and store the resource object to be stored, the functional object to be stored, the scene object to be stored, and the storage service object to be stored into the data object list.
[0051] S203. Perform IoT application generation processing based on the first associated data, the second associated data, the third associated data, and the fourth associated data to obtain the target IoT application.
[0052] In this embodiment, IoT application generation processing is performed based on the first associated data, the second associated data, the third associated data, and the fourth associated data. The IoT application is then created according to a unified template to obtain the target IoT application. The IoT applications created using the application creation method provided in this embodiment are all based on resource objects, functional objects, scene objects, and service objects. Therefore, these IoT applications have a unified structure, which is beneficial for improving the management efficiency of IoT applications.
[0053] Based on the above embodiments, the beneficial effects of this application are as follows: By using a data object set including resource objects, functional objects, scene objects, and service objects, the application requirements of IoT in different fields are effectively deconstructed into four types of objects, which facilitates the rapid creation of subsequent IoT applications and enables the created IoT applications to better meet different application needs; by determining the associated data with the creation of IoT applications based on the objects in the data object set, the code, rules, and other data required for creating IoT applications can be quickly determined. For objects that have already appeared, there is no need to write new associated data, which effectively reduces the workload of creating IoT applications; IoT application generation processing is performed based on the determined associated data to obtain the target IoT application, realizing the rapid creation of IoT applications. At the same time, because the created IoT applications have similar application structures, it is convenient for the IoT platform to manage IoT applications in a unified manner. The application creation method provided by this application also effectively improves the creation efficiency and management efficiency of IoT applications.
[0054] Please see Figure 4 This figure is a flowchart illustrating another application creation method provided in an embodiment of this application. The process of the application creation method provided in this embodiment may include, but is not limited to:
[0055] S401. Obtain the application requirements of the target IoT application, wherein the target IoT application is the IoT application to be created.
[0056] In this embodiment, the application requirements of the target IoT application include the functional information, business scenario information, and device information of associated devices. For example, if a ship collision avoidance IoT application needs to be created, the application requirements of the target IoT application would be: "This IoT application is suitable for ship collision avoidance scenarios on bridges. IoT sensing devices such as cameras and radar installed on the bridge will collect data on the ship's trajectory. The IoT sensing devices will send the collected data to the target IoT application, which will process the collected data to obtain the expected result. If the expected result is that the ship may collide with the bridge, then the warning lights and horns installed on the bridge will be activated." These application requirements include the functional information of the target IoT application (the function of data interaction with IoT devices and the function of data analysis and processing), the business scenario information (ship collision avoidance scenario on bridges), and the device information of associated devices (the device models, communication protocols, and command formats of IoT sensing devices such as cameras and radar, and warning lights and horns).
[0057] S402. Analyze and process the application requirements to obtain a set of data objects associated with the target IoT application. The set of data objects includes target resource objects, target function objects, target scenario objects, and target service objects.
[0058] In this embodiment, resource objects include physical resources associated with the IoT platform, functional objects include shared functions deployed on the IoT platform, scenario objects include business scenarios, and service objects include data carriers with business attributes associated with device objects. Device objects are the physical resources included in the aforementioned resource objects. The data object list stores objects categorized into four types: resources, functions, scenarios, and services. The database contains associated data corresponding to the objects in the data object list.
[0059] Please see Figure 5 This figure is a schematic diagram of a data map provided in an embodiment of this application. The data object list can be represented as follows: Figure 5The data map shown is a top-level directory containing resource objects, functional objects, scenario objects, and service objects. Each top-level directory contains multiple second-level directories, and each second-level directory contains multiple data objects. For example, in this data map, the top-level directory "Resource Objects" includes second-level directories such as "IoT Front-end Resources" and "IoT Terminal Resources." The second-level directory "IoT Front-end Resources" includes resource objects such as "Temperature Sensors" and "Mechanical Sensors." The second-level directory "IoT Terminal Resources" includes resource objects such as "Result Display Devices" and "Interactive Devices." The top-level directory "Function Objects" includes second-level directories such as "IoT Communication Functions" and "IoT Management and Control Functions." The second-level directory "IoT Communication Functions" includes functional objects such as "Network Assessment Functions" and "Network Fault Diagnosis." The second-level directory "IoT Management and Control Functions" includes "System Integration." The application creation method provided in this application provides functional objects such as "Functions" and "Application Management Functions"; the first-level directory "Scenario Objects" includes second-level directories such as "Ecological Livability" and "Smart Governance"; the second-level directory "Ecological Livability" includes scenario objects such as "Ecological Environment" and "Smart Water Conservancy"; the second-level directory "Smart Governance" includes scenario objects such as "Road Safety" and "Indoor Fire Prevention"; the first-level directory "Service Objects" includes second-level directories such as "IoT Sensing Function Support" and "IoT Enablement"; the second-level directory "IoT Sensing Function Support" includes service objects such as "IoT Design" and "IoT Front-end Management"; the second-level directory "IoT Enablement" includes service objects such as "IoT Scheduling". The application creation method provided in this application provides a hierarchical classification of existing data objects through a data object list (or data graph), which is beneficial for effective data management; when creating an IoT application, the data object list can quickly determine whether an object in the data object set exists in the data object list, thereby further improving the efficiency of IoT application creation.
[0060] In one embodiment, after analyzing and processing the application requirements to obtain a set of data objects associated with the target IoT application, the following operations can be performed: determining whether a target data object exists in the data object set. This target data object is a data object not recorded in the data object list, and can be any one of a resource object, functional object, scenario object, or service object. If the target data object exists in the data object set, then generating associated data creation instruction information based on the target data object; sending the associated data creation instruction information to a fourth terminal device, causing the fourth terminal device to respond with a prompt message, which prompts the input of associated data corresponding to the target data object and associated with IoT application creation; receiving the associated data corresponding to the target data object and associated with IoT application creation sent by the fourth terminal device, and storing the associated data corresponding to the target data object and associated with IoT application creation in the database corresponding to the target data object. In the application creation method provided in this application embodiment, the fourth terminal device can be a client device, such as a smartphone or computer.
[0061] In one embodiment, the process of acquiring a set of data objects associated with a target IoT application can further include: receiving a set of data objects associated with a target IoT application sent by a fifth terminal device; wherein, the data objects included in the data object set are determined according to the object selection operation selected in the object selection operation, which is a selection operation for the object options displayed in the object selection interface, and the object options displayed in the object selection interface include multiple resource object options, multiple function object options, multiple scene object options, and multiple service object options. The object selection interface can be configured according to the above... Figure 5 The data map shown can be determined either by the data object list or by other means.
[0062] S403. Obtain the first associated data related to the creation of the IoT application corresponding to the target resource object, the second associated data related to the creation of the IoT application corresponding to the target function object, the third associated data related to the creation of the IoT application corresponding to the target scene object, and the fourth associated data related to the creation of the IoT application corresponding to the target service object.
[0063] In this embodiment, first associated data, second associated data, third associated data, and fourth associated data can be obtained from a database. This first associated data, second associated data, third associated data, and fourth associated data can be code related to a data object, or rules associated with creating an IoT application.
[0064] In one embodiment, the process of obtaining the first associated data related to the creation of an IoT application corresponding to a target resource object, the second associated data related to the creation of an IoT application corresponding to a target functional object, the third associated data related to the creation of an IoT application corresponding to a target scene object, and the fourth associated data related to the creation of an IoT application corresponding to a target service object can be as follows: querying a first database based on the target resource object to obtain the first associated data related to the creation of an IoT application corresponding to the target resource object from the first database; wherein the first database stores associated data related to the creation of IoT applications corresponding to multiple resource objects; querying a second database based on the target functional object to obtain the second associated data related to the creation of an IoT application corresponding to the target functional object from the second database; wherein the second database stores associated data related to the creation of IoT applications corresponding to multiple functional objects; querying a third database based on the target scene object to obtain the third associated data related to the creation of an IoT application corresponding to the target scene object from the third database; wherein the third database stores associated data related to the creation of IoT applications corresponding to multiple scene objects; and querying a fourth database based on the target service object to obtain the fourth associated data related to the creation of an IoT application corresponding to the target service object from the fourth database; wherein the fourth database stores associated data related to the creation of IoT applications corresponding to multiple service objects. The first, second, third, and fourth databases can be the same database or different databases.
[0065] S404. Perform IoT application generation processing based on the first associated data, the second associated data, the third associated data, and the fourth associated data to obtain the target IoT application.
[0066] In this embodiment, IoT application generation processing is performed based on the first associated data, the second associated data, the third associated data, and the fourth associated data, and IoT application is created according to a unified template to obtain the target IoT application.
[0067] The application creation method provided in this application embodiment can be derived from, for example, Figure 6 The IoT application creation model shown is implemented. For example... Figure 6As shown, the IoT application creation model includes four modules: an initial creation module 610, a process creation module 620, a model definition module 630, and an application creation module 640. The model definition module 630 includes a resource definition module 631, a function definition module 632, a scenario definition module 633, and a service definition module 634. When creating an IoT application, the initial creation module 610 analyzes the IoT application requirements information to obtain a data object set, which includes target resource objects, target function objects, target scenario objects, and target service objects. The process creation module 620 verifies the target objects included in the data object set and determines whether the target objects exist in the object list. After verification, the resource definition module 631, function definition module 632, scenario definition module 633, and service definition module 634 in the model definition module 630 perform matching processing based on the target resource objects, target function objects, target scenario objects, and target service objects in the data object set, respectively, to obtain associated data related to IoT application creation. The application creation module 640 performs IoT application creation processing based on the associated data to obtain a target IoT application that meets the application requirements. The application creation method provided in this application embodiment can meet the needs of lightweight, planned, process-oriented, highly readable, and maintainable IoT application writing business.
[0068] Based on the above embodiments, the beneficial effects of this application are as follows: By using a data object set including resource objects, functional objects, scene objects, and service objects, the application requirements of IoT in different fields are effectively deconstructed into four types of objects, which facilitates the rapid creation of subsequent IoT applications and enables the created IoT applications to better meet different application requirements; by determining the associated data with the creation of IoT applications based on the objects in the data object set, and by using an object list to hierarchically classify and manage existing objects, the speed of determining associated data based on objects can be improved, thereby effectively improving the efficiency of IoT application creation; by performing IoT application generation processing based on the determined associated data, the target IoT application is obtained, realizing the rapid creation of IoT applications, and the application creation method of this application can meet the IoT application requirements of multiple fields, effectively reducing the creation cost of IoT applications.
[0069] Please see Figure 7 , Figure 7 This is a schematic diagram of an application creation apparatus provided in an embodiment of this application. The application creation apparatus provided in this embodiment includes, but is not limited to:
[0070] The acquisition unit 701 is used to acquire a set of data objects associated with the target IoT application. The set of data objects includes target resource objects, target function objects, target scenario objects, and target service objects. The target IoT application is an IoT application to be created.
[0071] The processing unit 702 is used to obtain from the database the first associated data related to the creation of the Internet of Things application corresponding to the target resource object, the second associated data related to the creation of the Internet of Things application corresponding to the target function object, the third associated data related to the creation of the Internet of Things application corresponding to the target scene object, and the fourth associated data related to the creation of the Internet of Things application corresponding to the target service object;
[0072] The processing unit 702 is further configured to perform IoT application generation processing based on the first associated data, the second associated data, the third associated data, and the fourth associated data to obtain the target IoT application.
[0073] In one embodiment, when the processing unit 702 acquires the data object set associated with the target IoT application, it is specifically configured to: acquire application description information of the target IoT application, the application description information including functional information, business scenario information, and device information of associated devices of the target IoT application; and analyze and process the application description information to obtain the data object set associated with the target IoT application.
[0074] In one embodiment, the processing unit 702 is further configured to: determine whether a target data object exists in the data object set, wherein the target data object is a data object not recorded in the data object list, and the target data object is any one of a resource object, a function object, a scene object, and a service object; if the target data object exists in the data object set, generate associated data creation instruction information based on the target data object; send the associated data creation instruction information to a first terminal device, so that the first terminal device responds to the associated data creation instruction information and outputs prompt information, wherein the prompt information is used to prompt the input of associated data corresponding to the target data object and associated with the creation of an IoT application; receive the associated data corresponding to the target data object and associated with the creation of an IoT application sent by the first terminal device, and store the associated data corresponding to the target data object and associated with the creation of an IoT application in the database corresponding to the target data object.
[0075] In one embodiment, when the processing unit 702 acquires a set of data objects associated with a target IoT application, it is specifically configured to: receive a set of data objects associated with the target IoT application sent by a second terminal device; wherein, each data object included in the data object set is determined according to the object option selected in the object selection operation, the object selection operation being a selection operation for the object options displayed in the object selection interface, the object options displayed in the object selection interface including multiple resource object options, multiple function object options, multiple scene object options, and multiple service object options.
[0076] In one embodiment, the processing unit 702 is further configured to: receive an interface data request sent by the second terminal device, the interface data request being used to request interface data of the object selection interface, the interface data request carrying identification information, the identification information including one or more of the device information of the second terminal device and the account information of the currently logged-in account of the second terminal device; perform identity authentication processing based on the identification information, and after successful identity authentication, send the interface data of the object selection interface to the second terminal device, so that the second terminal device displays the object selection interface based on the received interface data.
[0077] In one embodiment, when the processing unit 702 acquires the first associated data related to the creation of an IoT application corresponding to the target resource object, the second associated data related to the creation of an IoT application corresponding to the target functional object, the third associated data related to the creation of an IoT application corresponding to the target scene object, and the fourth associated data related to the creation of an IoT application corresponding to the target service object, it is specifically configured to: query a first database based on the target resource object, and acquire the first associated data related to the creation of an IoT application corresponding to the target resource object from the first database; wherein, the first database stores multiple associated data related to the creation of IoT applications corresponding to multiple resource objects; query a second database based on the target functional object, and acquire the first associated data related to the creation of an IoT application corresponding to the target functional object from the second data... The system retrieves second associated data related to the creation of an IoT application corresponding to the target functional object from the database; wherein the second database stores associated data related to the creation of IoT applications corresponding to multiple functional objects; it queries a third database based on the target scenario object to retrieve third associated data related to the creation of IoT applications corresponding to the target scenario object from the third database; wherein the third database stores associated data related to the creation of IoT applications corresponding to multiple scenario objects; it queries a fourth database based on the target service object to retrieve fourth associated data related to the creation of IoT applications corresponding to the target service object from the fourth database; wherein the fourth database stores associated data related to the creation of IoT applications corresponding to multiple service objects.
[0078] In one embodiment, the resource object includes physical resources associated with the Internet of Things (IoT) platform, the functional object includes shared functions deployed on the IoT platform, the scenario object includes business scenarios, and the service object includes data carriers with business attributes associated with device objects.
[0079] The beneficial effects of this application are as follows: By using a data object set including resource objects, functional objects, scenario objects, and service objects, the application requirements of IoT in different fields are effectively deconstructed into four types of objects, facilitating the rapid creation of subsequent IoT applications and enabling the created IoT applications to better meet different application needs; by determining the associated data for IoT application creation based on the objects in the data object set, the code, rules, and other data required for creating IoT applications can be quickly determined. For objects that have already appeared, there is no need to write new associated data, which effectively reduces the workload of creating IoT applications; IoT application generation processing is performed based on the determined associated data to obtain the target IoT application, realizing the rapid creation of IoT applications. At the same time, because the created IoT applications have the same structure, the application creation method provided by this application also effectively improves the efficiency of managing IoT applications.
[0080] It is understood that the functions of each functional unit of the application creation device in the embodiments of this application can be specifically implemented according to the application creation method in the above method embodiments, and the specific implementation process can be referred to the relevant description in the above method embodiments, which will not be repeated here.
[0081] Please see Figure 8 , Figure 8 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. The computer device described in this embodiment includes a processor 801, a communication interface 802, and a memory 803. The processor 801, communication interface 802, and memory 803 can be connected via a bus or other means; this embodiment uses a bus connection as an example.
[0082] The processor 801 (or CPU, Central Processing Unit) is the computing and control core of the computer device. It can parse various instructions and process various data within the computer device. For example, the CPU can parse power-on / off commands sent by the user and control the computer device to perform power-on / off operations; it can also transmit various interactive data between internal structures of the computer device. The communication interface 802 may optionally include standard wired interfaces or wireless interfaces (such as Wi-Fi, mobile communication interfaces, etc.), and is controlled by the processor 801 for sending and receiving data. The memory 803 is the storage device in the computer device, used to store programs and data. It is understood that the memory 803 here can include the computer device's built-in memory, or it can include extended memory supported by the computer device. The memory 803 provides storage space for the computer device's operating system, which may include, but is not limited to, Android, iOS, Windows Phone, etc., and this application does not limit this.
[0083] In this embodiment of the application, the processor 801 performs the following operations by running the executable program code in the memory 803:
[0084] Obtain a set of data objects associated with the target IoT application, the set of data objects including target resource objects, target function objects, target scenario objects, and target service objects, the target IoT application being the IoT application to be created;
[0085] Retrieve from the database the first associated data related to the creation of the IoT application corresponding to the target resource object, the second associated data related to the creation of the IoT application corresponding to the target function object, the third associated data related to the creation of the IoT application corresponding to the target scene object, and the fourth associated data related to the creation of the IoT application corresponding to the target service object;
[0086] The target IoT application is obtained by performing IoT application generation processing based on the first associated data, the second associated data, the third associated data, and the fourth associated data.
[0087] In one embodiment, when the processor 801 acquires the data object set associated with the target IoT application, it is specifically configured to: acquire application description information of the target IoT application, the application description information including functional information, business scenario information, and device information of associated devices of the target IoT application; and analyze and process the application description information to obtain the data object set associated with the target IoT application.
[0088] In one embodiment, the processor 801 is further configured to: determine whether a target data object exists in the data object set, wherein the target data object is a data object not recorded in the data object list, and the target data object is any one of a resource object, a function object, a scene object, and a service object; if the target data object exists in the data object set, generate associated data creation instruction information based on the target data object; send the associated data creation instruction information to a first terminal device, so that the first terminal device responds to the associated data creation instruction information and outputs prompt information, wherein the prompt information is used to prompt the input of associated data corresponding to the target data object and associated with the creation of an IoT application; receive the associated data corresponding to the target data object and associated with the creation of an IoT application sent by the first terminal device, and store the associated data corresponding to the target data object and associated with the creation of an IoT application in the database corresponding to the target data object.
[0089] In one embodiment, when the processor 801 acquires a set of data objects associated with a target IoT application, it is specifically configured to: receive a set of data objects associated with the target IoT application sent by a second terminal device; wherein, each data object included in the data object set is determined according to the object option selected in the object selection operation, the object selection operation being a selection operation for the object options displayed in the object selection interface, the object options displayed in the object selection interface including multiple resource object options, multiple function object options, multiple scene object options, and multiple service object options.
[0090] In one embodiment, the processor 801 is further configured to: receive an interface data request sent by the second terminal device, the interface data request being used to request interface data of the object selection interface, the interface data request carrying identification information, the identification information including one or more of the device information of the second terminal device and the account information of the currently logged-in account of the second terminal device; perform identity authentication processing based on the identification information, and after successful identity authentication, send the interface data of the object selection interface to the second terminal device, so that the second terminal device displays the object selection interface based on the received interface data.
[0091] In one embodiment, when the processor 801 acquires the first associated data related to the creation of an IoT application corresponding to the target resource object, the second associated data related to the creation of an IoT application corresponding to the target functional object, the third associated data related to the creation of an IoT application corresponding to the target scene object, and the fourth associated data related to the creation of an IoT application corresponding to the target service object, it specifically performs the following steps: querying a first database based on the target resource object, and acquiring the first associated data related to the creation of an IoT application corresponding to the target resource object from the first database; wherein, the first database stores associated data related to the creation of IoT applications corresponding to multiple resource objects; querying a second database based on the target functional object, and acquiring the first associated data related to the creation of an IoT application corresponding to the target resource object from the second database. The process involves: obtaining second associated data related to the creation of an IoT application corresponding to the target functional object; wherein the second database stores associated data related to the creation of IoT applications corresponding to multiple functional objects; querying a third database based on the target scenario object to obtain third associated data related to the creation of IoT applications corresponding to the target scenario object; wherein the third database stores associated data related to the creation of IoT applications corresponding to multiple scenario objects; and querying a fourth database based on the target service object to obtain fourth associated data related to the creation of IoT applications corresponding to the target service object; wherein the fourth database stores associated data related to the creation of IoT applications corresponding to multiple service objects.
[0092] In one embodiment, the resource object includes physical resources associated with the Internet of Things (IoT) platform, the functional object includes shared functions deployed on the IoT platform, the scenario object includes business scenarios, and the service object includes data carriers with business attributes associated with device objects.
[0093] The beneficial effects of this application are as follows: By using a data object set including resource objects, functional objects, scenario objects, and service objects, the application requirements of IoT in different fields are effectively deconstructed into four types of objects, facilitating the rapid creation of subsequent IoT applications and enabling the created IoT applications to better meet different application needs; by determining the associated data for IoT application creation based on the objects in the data object set, the code, rules, and other data required for creating IoT applications can be quickly determined. For objects that have already appeared, there is no need to write new associated data, which effectively reduces the workload of creating IoT applications; IoT application generation processing is performed based on the determined associated data to obtain the target IoT application, realizing the rapid creation of IoT applications. At the same time, because the created IoT applications have the same structure, the application creation method provided by this application also effectively improves the efficiency of managing IoT applications.
[0094] In specific implementations, the processor 801, communication interface 802, and memory 803 described in the embodiments of this application can execute the implementation of the computer device described in the application creation method provided in the embodiments of this application, or the implementation of the application creation apparatus provided in the embodiments of this application, which will not be repeated here.
[0095] This application also provides a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to execute the application creation method described in this application embodiment. The specific implementation can be found in the foregoing description and will not be repeated here.
[0096] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0097] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.
[0098] The above-disclosed embodiments are only some of the embodiments of this application, and should not be construed as limiting the scope of this application. Therefore, any equivalent changes made in accordance with the claims of this application shall still fall within the scope of this application.
Claims
1. An application creation method, characterized in that, The method includes: Obtain a set of data objects associated with the target IoT application, the set of data objects including target resource objects, target function objects, target scenario objects, and target service objects, the target IoT application being the IoT application to be created; Retrieve from the database the first associated data related to the creation of the IoT application corresponding to the target resource object, the second associated data related to the creation of the IoT application corresponding to the target function object, the third associated data related to the creation of the IoT application corresponding to the target scene object, and the fourth associated data related to the creation of the IoT application corresponding to the target service object; The target IoT application is obtained by performing IoT application generation processing based on the first associated data, the second associated data, the third associated data, and the fourth associated data; The acquisition of the data object set associated with the target IoT application includes: Obtain the application description information of the target IoT application, wherein the application description information includes the functional information, business scenario information, and device information of the associated devices of the target IoT application; The application description information is analyzed and processed to obtain a set of data objects associated with the target IoT application.
2. The method according to claim 1, characterized in that, The method further includes: Determine whether a target data object exists in the data object set. The target data object is a data object that is not recorded in the data object list. The target data object can be any one of resource objects, function objects, scene objects, and service objects. If the target data object exists in the data object set, then generate associated data creation instruction information based on the target data object; Send the associated data creation instruction information to the first terminal device so that the first terminal device responds to the associated data creation instruction information and outputs prompt information, the prompt information being used to prompt the input of associated data corresponding to the target data object and associated with the creation of the Internet of Things application; The system receives the associated data corresponding to the target data object and the creation of the IoT application sent by the first terminal device, and stores the associated data corresponding to the target data object and the creation of the IoT application in the database corresponding to the target data object.
3. The method according to claim 1, characterized in that, The acquisition of the data object set associated with the target IoT application includes: Receive a set of data objects associated with the target IoT application sent by the second terminal device; The data object set includes various data objects determined by the object selection operation. The object selection operation is a selection operation for the object options displayed in the object selection interface. The object options displayed in the object selection interface include multiple resource object options, multiple function object options, multiple scene object options, and multiple service object options.
4. The method according to claim 3, characterized in that, The method further includes: The interface data request sent by the second terminal device is received. The interface data request is used to request interface data of the object selection interface. The interface data request carries identification information, which includes one or more of the device information of the second terminal device and the account information of the currently logged-in account of the second terminal device. The identity authentication process is performed based on the identification information, and after the identity authentication is successful, the interface data of the object selection interface is sent to the second terminal device so that the second terminal device can display the object selection interface based on the received interface data.
5. The method according to any one of claims 1-4, characterized in that, The acquisition of the first associated data related to the creation of the IoT application corresponding to the target resource object, the second associated data related to the creation of the IoT application corresponding to the target function object, the third associated data related to the creation of the IoT application corresponding to the target scene object, and the fourth associated data related to the creation of the IoT application corresponding to the target service object includes: The first database is queried based on the target resource object, and the first associated data corresponding to the target resource object and associated with the creation of the Internet of Things application is obtained from the first database; wherein, the first database stores the associated data corresponding to multiple resource objects and associated with the creation of the Internet of Things application; The second database is queried according to the target functional object, and the second associated data corresponding to the target functional object and associated with the creation of the Internet of Things application is obtained from the second database; wherein, the second database stores the associated data corresponding to multiple functional objects and associated with the creation of the Internet of Things application; The third database is queried based on the target scene object, and the third associated data corresponding to the target scene object and associated with the creation of the Internet of Things application is obtained from the third database; wherein, the third database stores the associated data corresponding to multiple scene objects and associated with the creation of the Internet of Things application; The fourth database is queried based on the target service object, and the fourth associated data corresponding to the target service object and associated with the creation of the Internet of Things application is obtained from the fourth database; wherein, the fourth database stores associated data corresponding to multiple service objects and associated with the creation of the Internet of Things application.
6. The method according to any one of claims 1-4, characterized in that, The resource objects include physical resources associated with the IoT platform, the functional objects include shared functions deployed on the IoT platform, the scenario objects include business scenarios, and the service objects include data carriers with business attributes associated with device objects.
7. An application creation apparatus, characterized in that, include: An acquisition unit is used to acquire a set of data objects associated with a target IoT application. The set of data objects includes target resource objects, target function objects, target scenario objects, and target service objects. The target IoT application is an IoT application to be created. Acquiring the set of data objects associated with the target IoT application includes: acquiring application description information of the target IoT application, which includes functional information, business scenario information, and device information of associated devices of the target IoT application; and analyzing and processing the application description information to obtain the set of data objects associated with the target IoT application. The processing unit is configured to retrieve from the database the first associated data related to the creation of the IoT application corresponding to the target resource object, the second associated data related to the creation of the IoT application corresponding to the target function object, the third associated data related to the creation of the IoT application corresponding to the target scene object, and the fourth associated data related to the creation of the IoT application corresponding to the target service object; The processing unit is further configured to perform IoT application generation processing based on the first associated data, the second associated data, the third associated data, and the fourth associated data to obtain the target IoT application.
8. A computer device, characterized in that, include: The system includes a processor, a communication interface, and a memory, which are interconnected. The memory stores executable program code, and the processor is used to call the executable program code to implement the application creation method as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed on a computer, cause the computer to implement the application creation method as described in any one of claims 1-6.