CN112926001A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN112926001A
CN112926001A CN202110230461.8A CN202110230461A CN112926001A CN 112926001 A CN112926001 A CN 112926001A CN 202110230461 A CN202110230461 A CN 202110230461A CN 112926001 A CN112926001 A CN 112926001A
Authority
CN
China
Prior art keywords
attribute
internet
attribute name
data
things
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110230461.8A
Other languages
Chinese (zh)
Inventor
安小建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zhongxiaoyun Iot Institute Co ltd
Original Assignee
Beijing Zhongxiaoyun Iot Institute Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zhongxiaoyun Iot Institute Co ltd filed Critical Beijing Zhongxiaoyun Iot Institute Co ltd
Priority to CN202110230461.8A priority Critical patent/CN112926001A/en
Publication of CN112926001A publication Critical patent/CN112926001A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing

Abstract

The application discloses a data processing method and device. Wherein, the method comprises the following steps: determining target equipment to be displayed, wherein the target equipment is one of a plurality of pieces of Internet of things equipment; determining an attribute name corresponding to target equipment; acquiring an attribute value corresponding to the attribute name; and displaying the attribute values. The method and the device solve the technical problem of how to display different data attributes on the display page according to different data structure types in the field of development of the Internet of things.

Description

Data processing method and device
Technical Field
The application relates to the field of data processing of Internet of things equipment, in particular to a data processing method and device.
Background
In the field of development of the internet of things, there is an application scenario as follows: the data structure uploaded by the device A has 5 attributes, the data uploaded by the device B has 8 attributes, and the device attributes uploaded by the device C has 3 attributes. Different data attributes need to be displayed on the display page according to different data structure types.
For the application scenarios, how to display different data attributes on a display page according to different data structure types is a technical problem which needs to be solved urgently.
Disclosure of Invention
The embodiment of the application provides a data processing method and device, and the technical problem of how to display different data attributes on a display page according to different data structure types in the field of development of the Internet of things is at least solved.
According to an aspect of an embodiment of the present application, there is provided a data processing method, including: determining target equipment to be displayed, wherein the target equipment is one of a plurality of pieces of Internet of things equipment; determining an attribute name corresponding to target equipment; acquiring an attribute value corresponding to the attribute name; and displaying the attribute values.
Optionally, before determining the attribute name corresponding to the target device, the method further includes: respectively establishing a corresponding relation between each Internet of things device and the corresponding attribute name; and storing the corresponding relation.
Optionally, determining an attribute name corresponding to the target device includes: and searching the attribute name corresponding to the target equipment from the corresponding relation.
Optionally, obtaining an attribute value corresponding to the attribute name includes: and searching an attribute value corresponding to the attribute name from a preset database.
Optionally, before obtaining the attribute value corresponding to the attribute name, the method further includes: acquiring data of different data structures, wherein the data of different data structures comprises: attribute names corresponding to different Internet of things devices and attribute values corresponding to the attribute names; analyzing data of different data structures to obtain attribute values; and storing the attribute values into a preset database.
According to another aspect of the embodiments of the present application, there is also provided a data processing method, including: acquiring data of different data structures, wherein the data of different data structures comprises: attribute names corresponding to different Internet of things devices and attribute values corresponding to the attribute names; analyzing data of different data structures to obtain attribute values, and storing the attribute values into a preset database; respectively establishing a corresponding relation between each Internet of things device and the corresponding attribute name; and searching the attribute value corresponding to the to-be-displayed Internet of things equipment from the database according to the corresponding relation.
According to another aspect of the embodiments of the present application, there is also provided a data processing apparatus, including: the display device comprises a first determination module, a display module and a display module, wherein the first determination module is used for determining target equipment to be displayed, and the target equipment is one of a plurality of Internet of things equipment; the second determining module is used for determining the attribute name corresponding to the target equipment; the acquisition module is used for acquiring an attribute value corresponding to the attribute name; and the display module is used for displaying the attribute values.
Optionally, the apparatus further comprises: the establishing module is used for respectively establishing the corresponding relation between each Internet of things device and the corresponding attribute name before determining the attribute name corresponding to the target device; and storing the corresponding relation.
According to still another aspect of the embodiments of the present application, there is provided a nonvolatile storage medium, where the nonvolatile storage medium includes a stored program, and when the program runs, a device in which the nonvolatile storage medium is located is controlled to execute the above data processing method.
According to still another aspect of the embodiments of the present application, there is also provided a processor configured to execute a program stored in a memory, where the program executes the above data processing method.
In the embodiment of the application, target equipment to be displayed is determined, wherein the target equipment is one of a plurality of pieces of equipment of the internet of things; determining an attribute name corresponding to target equipment; acquiring an attribute value corresponding to the attribute name; the attribute value is displayed in a mode that corresponding relations between different devices and attribute names are configured, so that the technical effect of displaying different data attributes on a page according to different structure types is achieved, and the technical problem of how to display different data attributes on the display page according to different data structure types in the field of development of the internet of things is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a flow chart of a method of processing data according to an embodiment of the application;
FIG. 2 is a flow chart of another method of processing data according to an embodiment of the application;
fig. 3 is a block diagram of a data processing apparatus according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, some terms or terms appearing in the description of the embodiments of the present application are applicable to the following explanations:
data structure: a data structure is a way in which a computer stores, organizes data by, and refers to a collection of data elements that have one or more particular relationships to each other.
In accordance with an embodiment of the present application, there is provided an embodiment of a method for processing data, it should be noted that the steps shown in the flowchart of the figure can be executed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that here.
Fig. 1 is a flowchart of a data processing method according to an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
step S102, determining target equipment to be displayed, wherein the target equipment is one of a plurality of Internet of things equipment;
according to an optional embodiment of the present application, the target device is an internet of things device.
Step S104, determining an attribute name corresponding to the target equipment;
note that the attribute names in step S104 include, but are not limited to, temperature, voltage, and current. For example, device a corresponds to 5 attribute names: temperature/voltage/electric _ current/power/signal.
Step S106, obtaining an attribute value corresponding to the attribute name;
for example, the temperature is 10 ℃ and the voltage is 220V.
And step S108, displaying the attribute values.
It should be noted that, in step S108, the attribute values are displayed on the human-computer interaction interface of the terminal device.
Through the steps, the technical effect of displaying different data attributes on the page according to different structure types is achieved by configuring the corresponding relation between different devices and the attribute names.
According to an optional embodiment of the present application, before executing step S104, a corresponding relationship between each internet of things device and its corresponding attribute name needs to be established; the correspondence is stored.
According to another alternative embodiment of the present application, in step S104, the attribute name corresponding to the target device is searched for from the corresponding relationship.
In this step, the corresponding relationship between different devices and attribute names is configured, for example, device a configures 5 types of attributes, device B configures 8 types of attributes. After the corresponding relation between the equipment and the attribute name is configured, the attribute name corresponding to the target equipment can be searched from the corresponding relation.
In an alternative embodiment of the present application, step S106 is implemented by the following method: and searching an attribute value corresponding to the attribute name from a preset database.
In another alternative embodiment of the present application, before performing step S106, it is further required to obtain data of different data structures, where the data of different data structures includes: attribute names corresponding to different Internet of things devices and attribute values corresponding to the attribute names; analyzing data of different data structures to obtain attribute values; and storing the attribute values into a preset database.
In this step, after parsing a plurality of different data structures, the attribute values are stored in mongodb (the mogodb database can well support the storage of a plurality of different types of data structures). And then configuring corresponding relations between different devices and attribute names. When the platform needs to display the attribute value information of the A equipment, only the 5 attribute names of the A equipment need to be acquired from the configuration, and then the corresponding attribute values are acquired from mongodb according to the attribute names.
Fig. 2 is a flowchart of another data processing method according to an embodiment of the present application, and as shown in fig. 2, the method includes the following steps:
step S202, acquiring data of different data structures, wherein the data of different data structures includes: attribute names corresponding to different Internet of things devices and attribute values corresponding to the attribute names;
step S204, analyzing data of different data structures to obtain attribute values, and storing the attribute values into a preset database;
step S206, respectively establishing a corresponding relation between each Internet of things device and the corresponding attribute name;
and S208, searching an attribute value corresponding to the to-be-displayed Internet of things equipment from the database according to the corresponding relation.
It should be noted that, reference may be made to the description related to the embodiment shown in fig. 1 for a preferred implementation of the embodiment shown in fig. 2, and details are not described here again.
Fig. 3 is a block diagram of a data processing apparatus according to an embodiment of the present application, and as shown in fig. 3, the apparatus includes:
the first determining module 30 is configured to determine a target device to be displayed, where the target device is one of multiple internet of things devices;
according to an optional embodiment of the present application, the target device is an internet of things device.
A second determining module 32, configured to determine an attribute name corresponding to the target device;
it should be noted that the above attribute names include, but are not limited to, temperature, voltage, and current.
An obtaining module 34, configured to obtain an attribute value corresponding to the attribute name;
the attribute values are, for example, temperature:10 ℃ and voltage: 220V.
And the display module 36 is used for displaying the attribute values.
It should be noted that, reference may be made to the description related to the embodiment shown in fig. 1 for a preferred implementation of the embodiment shown in fig. 3, and details are not described here again.
According to an alternative embodiment of the present application, the apparatus further comprises: the establishing module is used for respectively establishing the corresponding relation between each Internet of things device and the corresponding attribute name before determining the attribute name corresponding to the target device; and storing the corresponding relation.
The embodiment of the application also provides a nonvolatile storage medium, wherein the nonvolatile storage medium comprises a stored program, and the device where the nonvolatile storage medium is located is controlled to execute the processing method of the data when the program runs.
The nonvolatile storage medium stores a program for executing the following functions: determining target equipment to be displayed, wherein the target equipment is one of a plurality of pieces of Internet of things equipment; determining an attribute name corresponding to target equipment; acquiring an attribute value corresponding to the attribute name; and displaying the attribute values.
The embodiment of the application also provides a processor, wherein the processor is used for running the program stored in the memory, and the program is used for executing the processing method of the data when running.
The processor is configured to process a program that performs the following functions: determining target equipment to be displayed, wherein the target equipment is one of a plurality of pieces of Internet of things equipment; determining an attribute name corresponding to target equipment; acquiring an attribute value corresponding to the attribute name; and displaying the attribute values.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A method for processing data, comprising:
determining target equipment to be displayed, wherein the target equipment is one of a plurality of Internet of things equipment;
determining an attribute name corresponding to the target device;
acquiring an attribute value corresponding to the attribute name;
and displaying the attribute value.
2. The method of claim 1, wherein before determining the attribute name corresponding to the target device, the method further comprises:
respectively establishing a corresponding relation between each Internet of things device and the corresponding attribute name;
and storing the corresponding relation.
3. The method of claim 2, wherein determining the attribute name corresponding to the target device comprises:
and searching the attribute name corresponding to the target equipment from the corresponding relation.
4. The method of claim 1, wherein obtaining the attribute value corresponding to the attribute name comprises:
and searching an attribute value corresponding to the attribute name from a preset database.
5. The method of claim 4, wherein before obtaining the attribute value corresponding to the attribute name, the method further comprises:
acquiring data of different data structures, wherein the data of different data structures comprises: attribute names corresponding to different Internet of things devices and attribute values corresponding to the attribute names;
analyzing the data of the different data structures to obtain the attribute values;
and storing the attribute values into the preset database.
6. A method for processing data, comprising:
acquiring data of different data structures, wherein the data of different data structures comprises: attribute names corresponding to different Internet of things devices and attribute values corresponding to the attribute names;
analyzing the data of the different data structures to obtain the attribute values, and storing the attribute values into the preset database;
respectively establishing a corresponding relation between each Internet of things device and the corresponding attribute name;
and searching an attribute value corresponding to the to-be-displayed Internet of things equipment from the database according to the corresponding relation.
7. An apparatus for processing data, comprising:
the display device comprises a first determination module, a display module and a display module, wherein the first determination module is used for determining target equipment to be displayed, and the target equipment is one of a plurality of pieces of Internet of things equipment;
the second determining module is used for determining the attribute name corresponding to the target equipment;
the acquisition module is used for acquiring the attribute value corresponding to the attribute name;
and the display module is used for displaying the attribute value.
8. The apparatus of claim 7, further comprising:
the establishing module is used for respectively establishing the corresponding relation between each Internet of things device and the corresponding attribute name before determining the attribute name corresponding to the target device; and storing the corresponding relation.
9. A non-volatile storage medium, comprising a stored program, wherein when the program runs, a device in which the non-volatile storage medium is located is controlled to execute the data processing method according to any one of claims 1 to 5.
10. A processor for executing a program stored in a memory, wherein the program executes to perform the method for processing data according to any one of claims 1 to 5.
CN202110230461.8A 2021-03-02 2021-03-02 Data processing method and device Pending CN112926001A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110230461.8A CN112926001A (en) 2021-03-02 2021-03-02 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110230461.8A CN112926001A (en) 2021-03-02 2021-03-02 Data processing method and device

Publications (1)

Publication Number Publication Date
CN112926001A true CN112926001A (en) 2021-06-08

Family

ID=76173013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110230461.8A Pending CN112926001A (en) 2021-03-02 2021-03-02 Data processing method and device

Country Status (1)

Country Link
CN (1) CN112926001A (en)

Similar Documents

Publication Publication Date Title
CN111176976B (en) Test data generation method and device, storage medium and electronic device
CN106681903B (en) Method and device for generating test case
CN104765746B (en) Data processing method and device for mobile communication terminal browser
CN113986241B (en) Configuration method and device of business rules based on knowledge graph
CN112800197A (en) Method and device for determining target fault information
CN116384109A (en) Novel power distribution network-oriented digital twin model automatic reconstruction method and device
CN105550179A (en) Webpage collection method and browser plug-in
CN113779328B (en) Power supply monitoring data integration processing method, system, terminal and storage medium
CN106844406B (en) Search method and search device
CN106339381B (en) Information processing method and device
CN112926001A (en) Data processing method and device
CN108614844B (en) Multimedia file generation method and device
CN108255888B (en) Data processing method and system
CN111352917B (en) Information input method and device, electronic equipment and storage medium
CN117009430A (en) Data management method, device, storage medium and electronic equipment
CN113688899A (en) Data fusion method and device, storage medium and electronic equipment
CN113961693A (en) Search result recommendation method and device, electronic device and readable storage medium
CN106469086B (en) Event processing method and device
CN112486796A (en) Method and device for collecting information of vehicle-mounted intelligent terminal
CN111970675A (en) Early warning method and device and storage medium
CN115495769B (en) Data desensitization method, system, readable storage medium and device
CN105843812B (en) A kind of data presentation method, apparatus and system
CN109688433A (en) Shearing video method and Related product based on picture
CN110781370B (en) Mobile terminal information query method and computer equipment
CN113536074A (en) vue framework keyword query method, device, computer equipment and medium

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