CN105760491B - Data modeling method and device based on equipment function - Google Patents

Data modeling method and device based on equipment function Download PDF

Info

Publication number
CN105760491B
CN105760491B CN201610091335.8A CN201610091335A CN105760491B CN 105760491 B CN105760491 B CN 105760491B CN 201610091335 A CN201610091335 A CN 201610091335A CN 105760491 B CN105760491 B CN 105760491B
Authority
CN
China
Prior art keywords
equipment
attribute information
information
data
associated equipment
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.)
Expired - Fee Related
Application number
CN201610091335.8A
Other languages
Chinese (zh)
Other versions
CN105760491A (en
Inventor
王海龙
倪茂昌
张宇
王雅哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Institute of Information Engineering of CAS
Original Assignee
Institute of Information Engineering of CAS
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 Institute of Information Engineering of CAS filed Critical Institute of Information Engineering of CAS
Priority to CN201610091335.8A priority Critical patent/CN105760491B/en
Publication of CN105760491A publication Critical patent/CN105760491A/en
Application granted granted Critical
Publication of CN105760491B publication Critical patent/CN105760491B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/288Entity relationship models

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a data modeling method and a data modeling device based on equipment functions, wherein the method comprises the following steps: dividing equipment in the Internet of things into different function sets according to functions; dividing main equipment and associated equipment in each function set, storing attribute information of the main equipment, attribute information of the associated equipment and data acquired by the associated equipment according to the association relationship of the main equipment and the associated equipment, and respectively setting continuous codes with preset lengths; and generating a data model according to the continuous codes with the preset length and the corresponding relation between the continuous codes and the attribute information of the main equipment, the attribute information of the associated equipment and the data collected by the associated equipment. According to the method, the devices are divided according to functions, and the main devices and the associated devices are stored in an associated mode, so that not only can the relation between entities in the Internet of things be represented, but also the layers are clear, and the expandability is realized; meanwhile, by setting continuous codes with preset lengths for each attribute, the data model is convenient to generate, and inquiry and modification are also convenient.

Description

Data modeling method and device based on equipment function
Technical Field
The invention relates to the technical field of application of the Internet of things, in particular to a data modeling method and device based on equipment functions.
Background
The internet of things plays an increasingly important role in modern life, and is particularly widely applied to smart home and industrial control, so that the data volume needing to be processed by the internet of things is increased, and if no proper data modeling method exists, the data processing speed is greatly influenced.
The existing Internet of things data modeling method mainly comprises the following steps:
(1) ORM (Object-Role Modeling) based Modeling method
ORM provides a conceptual, easy-to-understand method of modeling data. The ORM represents the application world as a set of objects (entities or values) with roles (parts in relationships). This modeling approach has powerful expressive power, which allows a document to contain more constraint rules. Although a series of constraint rules can be clearly added in the modeling method based on the ORM, the method is slightly insufficient in the processing object level, and the constraint rules in the current Internet of things equipment are not complex, so that the advantages of the ORM cannot be embodied.
(2) Modeling method based on UML (unified Modeling language)
UML is a standard class of Object-oriented modeling language, proposed by Object Management Group in 1997. The goal of UML is to "describe any type of system in an object-oriented way". UML is applicable to various stages of model creation, such as using use cases to collect user requirements during a requirement analysis stage, using UML class diagrams to organize key concepts in problem domains during an analysis stage, and so on. Although this method is intuitive and clear, sometimes a complex rule cannot be expressed by a simple diagram, which easily causes information loss or creates a complex UML object diagram.
(3) Modeling method based on ER (entity relationship)
The ER model is an entity association model and is a data model used for high-level description of a conceptual model, and the data model is typically used in the first stage of information system design, for example, in a requirement analysis stage to describe information requirements. A solid represents a discrete object that can be roughly considered to be a noun (e.g., temperature sensor, temperature, and wind speed); a connection can be roughly thought of as a verb (e.g., an association between a temperature sensor and a temperature); both the entity and the contact may have attributes (e.g., a temperature sensor entity may have an encoding attribute and a owning association may have an acquiring attribute). However, the modeling method cannot represent the relationship between entities in the internet of things.
Therefore, the current data modeling method of the internet of things lacks a simple and comprehensive modeling method, so that the relation between entities in the internet of things can be represented, the hierarchy is clear, the query and the modification are easy, and the expandability is realized.
Disclosure of Invention
Because the existing data modeling method of the Internet of things lacks a simple and comprehensive modeling method, the relation between entities in the Internet of things can be represented, the hierarchy is clear, the query and the modification are easy, and the expandability is realized.
In a first aspect, the present invention provides a data modeling method based on device functions, including:
acquiring function attribute information of all equipment in the Internet of things, and dividing the equipment into different function sets according to functions;
dividing the main equipment and the associated equipment in each function set, and storing the attribute information of the main equipment, the attribute information of the associated equipment and the data collected by the associated equipment according to the association relationship between the main equipment and the associated equipment;
setting continuous codes with preset lengths for the attribute information of the main equipment, the attribute information of the associated equipment and the data collected by the associated equipment respectively;
and generating a data model according to the continuous codes with the preset length and the corresponding relation between the continuous codes and the attribute information of the main equipment, the attribute information of the associated equipment and the data collected by the associated equipment.
Preferably, the method further comprises the following steps:
and setting continuous codes with a first preset length for the main equipment, wherein the first preset length is greater than the sum of the attribute information of the main equipment, the attribute information of the associated equipment and the preset length of the data collected by the associated equipment.
Preferably, further comprising modifying the data model, comprising:
reading attribute information of all main equipment, attribute information of associated equipment, data collected by the associated equipment and continuous codes in a data model;
generating a display interface according to the corresponding relation between the continuous codes and the attribute information of the main equipment, the attribute information of the associated equipment and the data collected by the associated equipment;
and receiving a modification instruction of the display interface, and modifying the data model according to the modification instruction.
Preferably, the receiving a modification instruction of the display interface and modifying the data model according to the modification instruction includes:
receiving an information adding instruction of the display interface;
determining continuous codes corresponding to the information to be added according to the information adding instruction;
and storing the information to be added into a data model according to the continuous codes corresponding to the information to be added.
Preferably, the method further comprises the following steps:
and receiving a query instruction of the display interface, querying according to the query instruction, and sending a query result to the display interface.
Preferably, the data model is an xml data model.
In a second aspect, the present invention further provides an apparatus for modeling data based on device functions, including:
the equipment dividing module is used for acquiring the function attribute information of all equipment in the Internet of things and dividing the equipment into different function sets according to functions;
the association information storage module is used for dividing the main equipment and the association equipment in each function set, and storing the attribute information of the main equipment, the attribute information of the association equipment and the data acquired by the association equipment according to the association relationship between the main equipment and the association equipment;
the code setting module is used for setting continuous codes with preset lengths for the attribute information of the main equipment, the attribute information of the associated equipment and the data acquired by the associated equipment respectively;
and the model generation module is used for generating a data model according to the continuous codes with the preset length and the corresponding relation between the continuous codes and the attribute information of the main equipment, the attribute information of the associated equipment and the data acquired by the associated equipment.
Preferably, the device further comprises a main device code setting module, wherein the main device code setting module is used for setting continuous codes with a first preset length for the main device, and the first preset length is greater than the sum of the attribute information of the main device, the attribute information of the associated device and the preset length of the data collected by the associated device.
Preferably, the data model modification module is further configured to modify the data model, and the model modification module includes:
the information reading unit is used for reading the attribute information of all the main equipment, the attribute information of the associated equipment, the data collected by the associated equipment and the continuous codes in the data model;
the display interface generating unit is used for generating a display interface according to the corresponding relation between the continuous codes and the attribute information of the main equipment, the attribute information of the associated equipment and the data collected by the associated equipment;
and the information modification unit is used for receiving the modification instruction of the display interface and modifying the data model according to the modification instruction.
Preferably, the information modifying unit includes:
the instruction receiving subunit is used for receiving the information adding instruction of the display interface;
the code determining subunit is used for determining continuous codes corresponding to the information to be added according to the information adding instruction;
and the information adding subunit is used for storing the information to be added into the data model according to the continuous codes corresponding to the information to be added.
According to the technical scheme, the equipment is divided according to the equipment functions, and the main equipment and the associated equipment are stored in an associated manner, so that not only can the relationship between entities in the Internet of things be represented, but also the hierarchy is clear and the expandability is realized; meanwhile, by setting continuous codes with preset lengths for each attribute, the data model is convenient to generate, and inquiry and modification are also convenient.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a data modeling method based on device functions according to an embodiment of the present invention;
FIG. 2 is a hierarchical diagram of a data model based on device functionality according to an embodiment of the present invention;
FIG. 3 is a web editing interface of a data model based on device functions according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating device attributes and encoding ranges in a data model based on device functions according to an embodiment of the present invention;
FIG. 5 is a block diagram illustrating the properties and encoding ranges of associated devices in a data model based on device functionality according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a data modeling apparatus based on device functions according to an embodiment of the present invention.
Detailed Description
The following further describes embodiments of the invention with reference to the drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
Fig. 1 shows a data modeling method based on device functions according to an embodiment of the present invention, including:
s101, acquiring function attribute information of all equipment in the Internet of things, and dividing the equipment into different function sets according to functions;
s102, dividing the main equipment and the associated equipment in each function set, and storing the attribute information of the main equipment, the attribute information of the associated equipment and data collected by the associated equipment according to the association relationship between the main equipment and the associated equipment;
s103, setting continuous codes with preset lengths for the attribute information of the main equipment, the attribute information of the associated equipment and the data collected by the associated equipment respectively;
and S104, generating a data model according to the continuous codes with the preset length and the corresponding relation between the continuous codes and the attribute information of the main equipment, the attribute information of the associated equipment and the data collected by the associated equipment.
The associated device is a device installed under a certain master device and having a specific function, for example: an elevator and a sensor in the elevator, which sensor is the associated equipment of the elevator. The continuous coding can adopt a numerical coding mode, an alphabetical coding mode or other coding modes with continuity.
In the embodiment, the devices are divided according to the device functions, and the main devices and the associated devices are stored in an associated manner, so that not only can the relationship between entities in the internet of things be represented, but also the hierarchy is clear and the expandability is realized; meanwhile, by setting continuous codes with preset lengths for each attribute, the data model is convenient to generate, and inquiry and modification are also convenient.
As a preferable scheme of this embodiment, between S103 and S104, further comprising:
and S1031, setting continuous codes with a first preset length for the main equipment, wherein the first preset length is larger than the sum of the attribute information of the main equipment, the attribute information of the associated equipment and the preset length of the data collected by the associated equipment.
The reserved code with a certain length is set for the main equipment by setting the continuous code with the first preset length for the main equipment, wherein the first preset length is larger than the sum of the attribute information of the main equipment, the attribute information of the associated equipment and the preset length of the data collected by the associated equipment, so that the related information of the main equipment can be conveniently and directly added without changing other information of a data model.
Further, also includes
S105, modifying the data model, specifically comprising:
s1051, reading attribute information of all main devices, attribute information of associated devices, data collected by the associated devices and continuous codes in a data model;
s1052, generating a display interface according to the corresponding relation between the continuous codes and the attribute information of the main equipment, the attribute information of the associated equipment and the data collected by the associated equipment;
s1053, receiving the modification instruction of the display interface, and modifying the data model according to the modification instruction.
By generating the display interface, the data model can be conveniently and directly modified. The problem of data file inefficacy caused by equipment failure and scene function change in the Internet of things is solved.
Further, S1053 includes:
s10531, receiving an information adding instruction of the display interface;
s10532, determining the continuous coding corresponding to the information to be added according to the information adding instruction;
and S10533, storing the information to be added into the data model according to the continuous codes corresponding to the information to be added.
Because the reserved codes with a certain length are set for the main equipment, when information needs to be added, the information to be added can be directly stored in the data model only by determining the continuous codes corresponding to the information without changing other information of the data model. The problem of data file inefficacy caused by equipment failure and scene function change in the Internet of things is solved, and the expandability of Internet of things equipment management is improved.
Still further, still include:
s106, receiving a query instruction of the display interface, querying according to the query instruction, and sending a query result to the display interface.
And the query is quick and visual through the display interface.
In particular, the data model is an xml data model.
By utilizing the advantage of clear hierarchy of the xml data model, specific equipment can be quickly inquired.
For example, in most environments, each function is in units of equipment, for example, in elevator monitoring, the monitored equipment is an elevator, sensors on the elevator are used for acquiring the real-time state of the elevator, and the equipment forms an elevator monitoring set. In boiler monitoring in industrial production, monitored devices are boilers, sensors in the boilers are used for acquiring real-time states of the boilers, and the devices form a boiler monitoring set. Therefore, each device in the internet of things is divided according to functions, and each device is distinguished in an attribute marking mode, so that each main device (such as an elevator in an elevator monitoring set) and associated devices (such as sensors in the elevator monitoring set) and attributes and data levels thereof are clear, and query is facilitated. And then classifying the attribute information of the main equipment, the attribute information of the associated equipment and the data collected by the associated equipment to determine the hierarchical relationship.
Fig. 2 is a hierarchical structure diagram of a data model of an elevator according to this embodiment, and the data relationship in the diagram is described by taking elevator monitoring as an example. By analyzing the attributes contained in an elevator, we classify the individual attributes of an elevator into two categories: one type is the attributes of the elevator, including the information of the serial number, the location, the production date, etc. of the elevator. The other type is various sensors for collecting the real-time state of the elevator, the names of the sensors are generated into a sensor list, and then the information of each sensor is stored in a corresponding sensor name in the sensor list in an associated mode. By such a division, one elevator can be described using two large elements: elevator attributes themselves and sensor lists.
For the sensor list, further sorting is performed. Each sensor contains a series of attributes that can be divided into two broad categories. One type is the sensor's own attributes and may include sub-elements such as the sensor code, serial number, etc. The other type is data collected by sensors, and may be one or more. For each data, a parameter name, a parameter description, a data type, and a value 4 sub-element may be used for description.
In the hierarchy diagram of the data model, the root element is typically the first element in the data model. It will be appreciated that the hierarchy can be further optimized, for example, by treating all elevators as a group so that the desired elevator found can be quickly found in the group.
And respectively setting continuous codes with preset lengths for bottom nodes in the tree structure of the figure 2, wherein the codes of serial numbers, production dates, positions, IDs (identities), sensor descriptions, names, parameter descriptions, data types and numerical values are 0-8 in sequence by taking numerical codes as an example. Wherein, the serial number, the production date and the position are the attribute information of the main equipment elevator; ID and sensor description as attribute information of the associated device sensor 1; the name, parameter description, data type and value are the data collected by the associated device sensor 1.
And generating a data model according to the continuous codes 0-8 and the corresponding relation between the continuous codes and the attribute information of the main equipment, the attribute information of the associated equipment and the data collected by the associated equipment.
In order to facilitate management and operation, when modifying, inquiring and adding information of the model, firstly reading attribute information of all main equipment, attribute information of associated equipment, data collected by the associated equipment and continuous codes in the data model; generating a display interface according to the corresponding relation between the continuous codes and the attribute information of the main equipment, the attribute information of the associated equipment and the data collected by the associated equipment; the display interface can be used for designing an equipment modification interface on a web page according to a hierarchical structure, and the web management page can be realized through javascript. As shown in fig. 3, the method includes adding a master device, deleting a master device, adding an associated device, deleting an associated device, adding a parameter, deleting a parameter, and the like, and by clicking a corresponding control, a corresponding function can be completed. For example, after the adding device is clicked, new devices can be added to the original xml data model by inputting attribute information of the device to be added and information of related devices thereof, and the problem of dynamic change of a device network in the internet of things can be solved. Taking the sensor network of the elevator as an example, according to the characteristic of dynamic change of the sensor network, the sensor and the elevator in the sensor network can be changed at any time. In consideration of management convenience, only the changed part is changed, and the unchanged part is not affected. When the equipment (single equipment or a plurality of equipment) changes, only the corresponding part needs to be modified. When the javascript is specifically implemented, the controls in the same logic structure are placed in the same div block, so that the integral addition and deletion are facilitated. For example, in an elevator monitoring system, the entire elevator installation is placed in one large div block and the entire sensor installation is placed in the next level of the div block. Each block in fig. 3 represents a div block, and the div blocks are nested with each other to facilitate modular management of the device. By "add master" and "delete master" in a div block, additions or deletions to the master in the div block, e.g. to an elevator installation, can be made. The "master device name", "parameter list", "serial number", "production date", "address" and the like in the div block can be edited. When the equipment in the preset system changes, the equipment can be edited. The addition or deletion of sensors in the div block, for example the addition or deletion of sensors in an elevator installation, can be performed by "delete sensors" and "add sensors" in the div block. The "associated device name", "code ID", and the like in the div block can be edited. The data collected by the sensor can be added, deleted or modified. For example, data collected by sensors in the div block may be added or deleted by "add parameter" and "delete parameter" in the div block, and "parameter name", "description", and "type" in the div block may be edited. When any change occurs to the device in the preset system, it can be modified through the display interface as shown in fig. 3.
As shown in fig. 2, each attribute of the lowest node corresponds to a continuous code, each intermediate node corresponds to a continuous code with a predetermined length, the length of the continuous code is greater than the sum of the number of all the child nodes, and a certain number of codes are reserved for subsequent expansion. Taking the sensors in the elevators as an example, as in fig. 4, the allocation is made for a total of 1-1000 codes contained by the elevator 1, containing, for each device, two large items of its own parameters and the list of sensors: due to the small number of self-parameters, 0-20 codes can be allocated for describing self-attributes. The sensor list contains any number of sensors, so the code range occupied by the part is large.
The parameters contained in the sensors are then analyzed, and as shown in fig. 2, the parameters of each sensor can be classified into two broad categories: the self-parameters (ID and description) and parameter list (i.e. data collected by the sensor, including name, description, data type and value) can be assigned 15 data (the sensor 1 in fig. 5 uses 21 st to 35 th data to describe the self-parameters).
Since each item of data (corresponding to "parameter" in fig. 2 and "parameter 1", "parameter 2", "parameter 3" and "parameter 4" in fig. 5) acquired requires at least three items of data to describe (name, type, value), each parameter is assigned 5 codes, and 2 codes are reserved for subsequent addition. Since each sensor is not too complex and can acquire at most 7 parameters, each sensor can be assigned 60 codes for description (e.g., sensor 1 in fig. 5 is described with data coded 21-80). Thus, after the code range of each sensor is determined, the code range of each elevator can be further determined, and the code length of each elevator is set to 1000.
The data modeling method based on the device function provided by the embodiment takes the devices as units, and analyzes the relationship between each device and the associated device, so that the data model is clear in hierarchy and convenient to query and manage. Meanwhile, the problems of data file failure caused by equipment failure and scene function change in the Internet of things are solved. On the other hand, the equipment is managed through the display interface, and the management of the equipment of the Internet of things is greatly facilitated.
Fig. 6 shows a schematic structural diagram of a data modeling apparatus based on device functions according to this embodiment, including:
the device dividing module 61 is configured to obtain function attribute information of all devices in the internet of things, and divide the devices into different function sets according to functions;
the associated information storage module 62 is configured to divide the main device and the associated device in each function set, and store the attribute information of the main device, the attribute information of the associated device, and the data acquired by the associated device according to the association relationship between the main device and the associated device;
the code setting module 63 is configured to set continuous codes of a predetermined length for the attribute information of the master device, the attribute information of the associated device, and the data acquired by the associated device, respectively;
and the model generation module 64 is used for generating a data model according to the continuous codes with the preset length and the corresponding relation between the continuous codes and the attribute information of the main equipment, the attribute information of the associated equipment and the data collected by the associated equipment.
In the embodiment, the devices are divided according to the device functions, and the main devices and the associated devices are stored in an associated manner, so that not only can the relationship between entities in the internet of things be represented, but also the hierarchy is clear and the expandability is realized; meanwhile, by setting continuous codes with preset lengths for each attribute, the data model is convenient to generate, and inquiry and modification are also convenient.
As a preferable scheme of this embodiment, the apparatus further includes a main device code setting module, where the main device code setting module is configured to set a continuous code with a first predetermined length for the main device, and the first predetermined length is greater than a sum of the attribute information of the main device, the attribute information of the associated device, and a predetermined length of data collected by the associated device.
The reserved code with a certain length is set for the main equipment by setting the first preset continuous code for the main equipment, wherein the length of the continuous code is greater than the sum of the attribute information of the main equipment, the attribute information of the associated equipment and the preset length of the data collected by the associated equipment, so that the related information of the main equipment is conveniently and directly added without changing other information of a data model.
Further, a model modification module is included, and the model modification module is used for modifying the data model, and comprises:
the information reading unit is used for reading the attribute information of all the main equipment, the attribute information of the associated equipment, the data collected by the associated equipment and the continuous codes in the data model;
the display interface generating unit is used for generating a display interface according to the corresponding relation between the continuous codes and the attribute information of the main equipment, the attribute information of the associated equipment and the data collected by the associated equipment;
and the information modification unit is used for receiving the modification instruction of the display interface and modifying the data model according to the modification instruction.
By generating the display interface, the data model can be conveniently and directly modified.
Still further, the information modifying unit includes:
the instruction receiving subunit is used for receiving the information adding instruction of the display interface;
the code determining subunit is used for determining continuous codes corresponding to the information to be added according to the information adding instruction;
and the information adding subunit is used for storing the information to be added into the data model according to the continuous codes corresponding to the information to be added.
Because the reserved codes with a certain length are set for the main equipment, when information needs to be added, the information to be added can be directly stored in the data model only by determining the continuous codes corresponding to the information without changing other information of the data model.
In the description of the present invention, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.

Claims (7)

1. A data modeling method based on device functions is characterized by comprising the following steps:
acquiring function attribute information of all equipment in the Internet of things, and dividing the equipment into different function sets according to functions;
dividing the main equipment and the associated equipment in each function set, and storing the attribute information of the main equipment, the attribute information of the associated equipment and the data collected by the associated equipment according to the association relationship between the main equipment and the associated equipment;
setting continuous codes with preset lengths for the attribute information of the main equipment, the attribute information of the associated equipment and the data collected by the associated equipment respectively;
generating a data model according to the continuous codes with the preset length and the corresponding relation between the continuous codes and the attribute information of the main equipment, the attribute information of the associated equipment and the data collected by the associated equipment;
wherein the data model is an xml data model;
further comprising:
and setting continuous codes with a first preset length for the main equipment, wherein the first preset length is greater than the sum of the attribute information of the main equipment, the attribute information of the associated equipment and the preset length of the data collected by the associated equipment.
2. The method of claim 1, further comprising modifying the data model, comprising:
reading attribute information of all main equipment, attribute information of associated equipment, data collected by the associated equipment and continuous codes in a data model;
generating a display interface according to the corresponding relation between the continuous codes and the attribute information of the main equipment, the attribute information of the associated equipment and the data collected by the associated equipment;
and receiving a modification instruction of the display interface, and modifying the data model according to the modification instruction.
3. The method of claim 2, wherein receiving a modification instruction of the display interface and modifying the data model according to the modification instruction comprises:
receiving an information adding instruction of the display interface;
determining continuous codes corresponding to the information to be added according to the information adding instruction;
and storing the information to be added into a data model according to the continuous codes corresponding to the information to be added.
4. The method of claim 3, further comprising:
and receiving a query instruction of the display interface, querying according to the query instruction, and sending a query result to the display interface.
5. An apparatus for modeling data based on device functionality, comprising:
the equipment dividing module is used for acquiring the function attribute information of all equipment in the Internet of things and dividing the equipment into different function sets according to functions;
the association information storage module is used for dividing the main equipment and the association equipment in each function set, and storing the attribute information of the main equipment, the attribute information of the association equipment and the data acquired by the association equipment according to the association relationship between the main equipment and the association equipment;
the code setting module is used for setting continuous codes with preset lengths for the attribute information of the main equipment, the attribute information of the associated equipment and the data acquired by the associated equipment respectively;
the model generation module is used for generating a data model according to the continuous codes with the preset length and the corresponding relation between the continuous codes and the attribute information of the main equipment, the attribute information of the associated equipment and the data acquired by the associated equipment;
wherein the data model is an xml data model;
the system further comprises a main equipment code setting module, wherein the main equipment code setting module is used for setting continuous codes with a first preset length for the main equipment, and the first preset length is larger than the sum of the attribute information of the main equipment, the attribute information of the associated equipment and the preset length of the data collected by the associated equipment.
6. The apparatus of claim 5, further comprising a model modification module for modifying the data model, comprising:
the information reading unit is used for reading the attribute information of all the main equipment, the attribute information of the associated equipment, the data collected by the associated equipment and the continuous codes in the data model;
the display interface generating unit is used for generating a display interface according to the corresponding relation between the continuous codes and the attribute information of the main equipment, the attribute information of the associated equipment and the data collected by the associated equipment;
and the information modification unit is used for receiving the modification instruction of the display interface and modifying the data model according to the modification instruction.
7. The apparatus of claim 6, wherein the information modifying unit comprises:
the instruction receiving subunit is used for receiving the information adding instruction of the display interface;
the code determining subunit is used for determining continuous codes corresponding to the information to be added according to the information adding instruction;
and the information adding subunit is used for storing the information to be added into the data model according to the continuous codes corresponding to the information to be added.
CN201610091335.8A 2016-02-18 2016-02-18 Data modeling method and device based on equipment function Expired - Fee Related CN105760491B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610091335.8A CN105760491B (en) 2016-02-18 2016-02-18 Data modeling method and device based on equipment function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610091335.8A CN105760491B (en) 2016-02-18 2016-02-18 Data modeling method and device based on equipment function

Publications (2)

Publication Number Publication Date
CN105760491A CN105760491A (en) 2016-07-13
CN105760491B true CN105760491B (en) 2020-02-07

Family

ID=56330159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610091335.8A Expired - Fee Related CN105760491B (en) 2016-02-18 2016-02-18 Data modeling method and device based on equipment function

Country Status (1)

Country Link
CN (1) CN105760491B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106909645B (en) * 2017-02-21 2019-03-26 中国科学院电子学研究所 A kind of space-time data organization of unity method of expansible definition
CN109327329B (en) * 2018-08-31 2021-11-09 华为技术有限公司 Data model updating method and device
CN111985185A (en) * 2019-05-21 2020-11-24 广州汽车集团股份有限公司 Circuit board code generation method and device, computer equipment and storage medium
CN110795842B (en) * 2019-10-24 2023-10-27 海尔优家智能科技(北京)有限公司 Method and device for creating combined equipment model and control equipment
TWI730530B (en) * 2019-12-05 2021-06-11 中華電信股份有限公司 Internet of things device binding method and system
CN112862347A (en) * 2021-03-02 2021-05-28 同济大学 Equipment abnormity monitoring method and system based on federal learning, storage medium and terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1399196A (en) * 2001-07-25 2003-02-26 曾志荣 Method of reducing electronic list file storing space and raising data processing speed
EP1922620A4 (en) * 2005-08-10 2010-11-17 Iav Gmbh Ingenieursgesellschaf Creating, designing, managing, scheduling, developing and producing products
CN102081361B (en) * 2010-11-29 2012-08-29 广东威创视讯科技股份有限公司 Hardware equipment control method and system
CN102214206B (en) * 2011-04-27 2017-02-15 百度在线网络技术(北京)有限公司 Method and equipment for establishing association relation between information entities
CN102243676B (en) * 2011-07-13 2012-12-05 国电南瑞科技股份有限公司 Three-level modeling method of new energy comprehensive monitoring system
CN103631970B (en) * 2013-12-20 2017-08-18 百度在线网络技术(北京)有限公司 The method and apparatus for excavating attribute and entity associated relation

Also Published As

Publication number Publication date
CN105760491A (en) 2016-07-13

Similar Documents

Publication Publication Date Title
CN105760491B (en) Data modeling method and device based on equipment function
CN112231917B (en) Space digital twin modeling method, device, computer equipment and storage medium
JP5284403B2 (en) Ontology update device, method, and system
WO2001024033A2 (en) Binary tree with override nodes for representing a time-varying function in an enterprise model
JP2009099124A (en) Method and system for data construction
CN103093045A (en) Interactive product configuration platform
CN103780448B (en) A kind of generation method and device of control layer identification code
CN115329504B (en) BOM construction method based on complex product structure
Prehofer Models at REST or modelling RESTful interfaces for the Internet of Things
CN115617776A (en) Data management system and method
McBirnie et al. Motifs: dominant interaction patterns in event structures of serendipity
CN110781430B (en) Novel virtual data center system of internet and construction method thereof
EP1110160A1 (en) Data structure and operations for time-varying variable in an enterprise model
US20190258653A1 (en) System of dynamic hierarchies based on a searchable entity model
CN109977516B (en) Automatic modeling logic node processing method
Fernbach et al. Linked data for building management
CN114329720A (en) UI data synchronization method and device, electronic equipment and storage medium
CN114118944A (en) Forensic laboratory grading management method, terminal device and storage medium
CN113779178A (en) Data storage method and device based on knowledge graph
CN113971500A (en) Data subdivision management method and device and data management platform
CN111143322A (en) Data standard treatment system and method
CN110471373B (en) Information processing method, program, and information processing apparatus
Böhms et al. IntUBE energy information integration platform
Ramparany et al. Automated Context Learning in Ubiquitous Computing Environments.
US11734024B2 (en) Device for managing digital twins

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200207

Termination date: 20210218