CN115145989B - Data sharing method and device based on data model of Internet of things - Google Patents

Data sharing method and device based on data model of Internet of things Download PDF

Info

Publication number
CN115145989B
CN115145989B CN202210788085.9A CN202210788085A CN115145989B CN 115145989 B CN115145989 B CN 115145989B CN 202210788085 A CN202210788085 A CN 202210788085A CN 115145989 B CN115145989 B CN 115145989B
Authority
CN
China
Prior art keywords
data
information
sharing
internet
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.)
Active
Application number
CN202210788085.9A
Other languages
Chinese (zh)
Other versions
CN115145989A (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.)
School Of Military Management National Defense University Of People's Liberation Army Of China
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202210788085.9A priority Critical patent/CN115145989B/en
Publication of CN115145989A publication Critical patent/CN115145989A/en
Application granted granted Critical
Publication of CN115145989B publication Critical patent/CN115145989B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • 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/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • 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/26Visual data mining; Browsing structured data

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)
  • Software Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a data sharing method and a data sharing device based on an Internet of things data model, wherein the method comprises the following steps: acquiring heterogeneous data information; carrying out structural integration processing on heterogeneous data information by using a preset Internet of things data model to obtain identification data information; and responding to the user sharing requirement, and performing data sharing on the identification data information. Therefore, the method and the device are beneficial to uniformly and standardizing the data fragments to realize the real-time information interaction between the platform of the Internet of things and the equipment, and further improve the real-time data sharing capability.

Description

Data sharing method and device based on data model of Internet of things
Technical Field
The invention relates to the technical field of data processing of the Internet of things, in particular to a data sharing method and device based on a data model of the Internet of things.
Background
With the large-scale application of the internet of things technology, massive internet of things data, equipment, services and services respectively adopt different data description modes, so that fragmentation problems such as data isomerization, equipment isomerization and application isomerization are caused, difficulty is brought to the application of data real-time sharing, service analysis and the like, and industrial development is hindered. Therefore, the data sharing method and device based on the data model of the internet of things are provided, so that data fragments are bonded in a unified and standardized manner, real-time information interaction between the platform of the internet of things and equipment is realized, and the real-time data sharing capability is improved.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a data sharing method and device based on an internet of things data model, which can perform structural integration processing on heterogeneous data information by using the internet of things data model, respond to user sharing requirements to perform convenient data sharing, and are beneficial to uniformly and standardizing bonding of data fragments so as to realize real-time information interaction between an internet of things platform and equipment and further improve the real-time data sharing capability.
In order to solve the technical problem, a first aspect of the embodiment of the present invention discloses a data sharing method based on an internet of things data model, where the method includes:
acquiring heterogeneous data information;
carrying out structural integration processing on the heterogeneous data information by using a preset Internet of things data model to obtain identification data information;
and responding to the user sharing requirement, and performing data sharing on the identification data information.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the identification data information includes format data information, data model information, and application layer data information;
the method for carrying out structural integration processing on the heterogeneous data information by using the preset Internet of things data model to obtain identification data information comprises the following steps:
carrying out format conversion on the heterogeneous data information by using a preset physical network data model to obtain the format data information;
extracting the function information of the Internet of things equipment in the heterogeneous data information to obtain the data model information;
and performing attribute and extended description processing on the heterogeneous data information to obtain the application layer data information.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the application layer data information is, from front to back, XH information, SBID information, JXX information, CPID information, DXX information, SJC information, BQXX information, and KZ information in sequence;
the XH information is the unique identification of the current recorded data sequence corresponding to the data information of the application layer;
the SBID information is a unique identifier of the Internet of things equipment corresponding to the application layer data information; the SBID information is used for carrying out unique security authentication on the application layer data information based on the SBID information and acquiring state information and position information of the Internet of things equipment corresponding to the application layer data information;
the JXX information is static information corresponding to the heterogeneous data information;
the CPID information is a model identifier of the data model of the Internet of things; the CPID information is used for systematic configuration of the Internet of things data models corresponding to the same type of Internet of things equipment in the Internet of things informatization system;
the DXX information is dynamic information corresponding to the heterogeneous data information;
the SJC information is a time mark for acquiring the heterogeneous data information so as to facilitate data query and update operations;
the BQXX information is label information corresponding to the Internet of things equipment;
and the KZ information is the expansion transmission information corresponding to the Internet of things equipment.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the data model information includes attribute information, service set information, and event information;
the data model information is used for calling a corresponding function based on a certain event in the event information to trigger the Internet of things equipment to execute an action corresponding to the certain event.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the performing format conversion on the heterogeneous data information by using a preset physical network data model to obtain the format data information includes:
judging whether the heterogeneous data information is acquired by a software unit embedded in the Internet of things equipment to obtain an acquisition judgment result;
when the acquisition judgment result is yes, calling a data format model corresponding to the Internet of things equipment from a preset physical network data model to perform data format conversion of a preset data format on the heterogeneous data information to obtain standby format data information;
when the acquisition judgment result is negative, calling a cloud script corresponding to the Internet of things equipment from a cloud end by using the physical network data model to perform data format conversion on the heterogeneous data information to obtain the standby format data information;
transmitting the to-be-used format data information to a Web server corresponding to the Internet of things equipment by using an intelligent terminal based on a data transmission protocol to obtain the format data information corresponding to the Web server; the data transmission protocol comprises a TCP request response protocol and/or an MQTT protocol.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the performing data sharing on the identification data information in response to a user sharing requirement includes:
responding to the sharing requirement of a user, and performing data extraction on the identification data information by using an integrated component to obtain data information to be shared;
screening out a target data sharing path set from a preset data sharing path set according to the user sharing requirement; the set of data sharing paths includes at least 4 data sharing paths; the target data sharing path set comprises at least 1 target data sharing path;
and carrying out data sharing on the data information to be shared by utilizing the target data sharing path set.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the integrable component includes a data registration component and a data service tool;
the step of performing data extraction on the identification data information by using an integratable component in response to the user sharing requirement to obtain the to-be-shared data information comprises the following steps:
responding to a registration requirement in user sharing requirements, utilizing the data registration component to perform connection definition of a database on a Web page and registration of a database table, and performing visual display on the database table;
acquiring a JDBC interface by using the data service tool to perform database connection and interface packaging, and performing list display of packaged data based on the Web page;
and responding to a data selection requirement in the user sharing requirement, and performing data screening and integration on the visually displayed database table and the displayed list of the packaged data to obtain the information of the data to be shared.
The second aspect of the embodiment of the invention discloses a data sharing device based on an internet of things data model, which comprises:
the acquisition module is used for acquiring heterogeneous data information;
the first processing module is used for carrying out structural integration processing on the heterogeneous data information by using a preset Internet of things data model to obtain identification data information;
and the sharing module is used for responding to the user sharing requirement and carrying out data sharing on the identification data information.
As one such optional implementation manner, in the second aspect of the embodiment of the present invention, the identification data information includes format data information, data model information, and application layer data information;
the first processing module performs structural integration processing on the heterogeneous data information by using a preset Internet of things data model, and the specific way of obtaining the identification data information is as follows:
carrying out format conversion on the heterogeneous data information by using a preset physical network data model to obtain the format data information;
extracting the functional information of the Internet of things equipment in the heterogeneous data information to obtain the data model information;
and performing attribute and extended description processing on the heterogeneous data information to obtain the application layer data information.
As one such optional implementation manner, in the second aspect of the embodiment of the present invention, the application layer data information is XH information, SBID information, JXX information, CPID information, DXX information, SJC information, BQXX information, and KZ information in sequence from front to back;
the XH information is the unique identification of the currently recorded data sequence corresponding to the data information of the application layer;
the SBID information is a unique identifier of the Internet of things equipment corresponding to the application layer data information; the SBID information is used for carrying out unique security authentication on the application layer data information based on the SBID information and acquiring state information and position information of the Internet of things equipment corresponding to the application layer data information;
the JXX information is static information corresponding to the heterogeneous data information;
the CPID information is a model identification of the data model of the Internet of things; the CPID information is used for systematic configuration of the Internet of things data models corresponding to the same type of Internet of things equipment in the Internet of things informatization system;
the DXX information is dynamic information corresponding to the heterogeneous data information;
the SJC information is a time mark for acquiring the heterogeneous data information so as to facilitate data query and update operations;
the BQXX information is label information corresponding to the Internet of things equipment;
and the KZ information is the expansion transmission information corresponding to the Internet of things equipment.
As one optional implementation manner, in the second aspect of the embodiment of the present invention, the data model information includes attribute information, service set information, and event information;
the data model information is used for calling a corresponding function based on a certain event in the event information to trigger the Internet of things equipment to execute an action corresponding to the certain event.
As one optional implementation manner, in the second aspect of the embodiment of the present invention, the data model information includes attribute information, service set information, and event information;
the data model information is used for calling a corresponding function based on a certain event in the event information to trigger the Internet of things equipment to execute an action corresponding to the certain event.
As one optional implementation manner, in the second aspect of the embodiment of the present invention, the data model information includes attribute information, service set information, and event information;
the data model information is used for calling a corresponding function based on a certain event in the event information to trigger the Internet of things equipment to execute an action corresponding to the certain event.
As one such optional implementation, in the second aspect of the embodiment of the present invention, the integrable component includes a data registration component and a data service tool;
the response module responds to the user sharing requirement, and performs data extraction on the identification data information by using an integratable component, and the specific way of obtaining the data information to be shared is as follows:
responding to a registration requirement in user sharing requirements, utilizing the data registration component to perform connection definition of a database on a Web page and registration of a database table, and performing visual display on the database table;
acquiring a JDBC interface by using the data service tool to perform database connection and interface packaging, and performing list display of packaged data based on the Web page;
and responding to a data selection requirement in the user sharing requirement, and performing data screening and integration on the visually displayed database table and the displayed list of the packaged data to obtain the information of the data to be shared.
The third aspect of the invention discloses another data sharing device based on the data model of the internet of things, which comprises:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program codes stored in the memory to execute part or all of the steps of the data sharing method based on the data model of the internet of things disclosed by the first aspect of the embodiment of the invention.
The fourth aspect of the present invention discloses a computer storage medium, where the computer storage medium stores computer instructions, and when the computer instructions are called, the computer instructions are used to execute part or all of the steps in the data sharing method based on the data model of the internet of things disclosed in the first aspect of the embodiments of the present invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, heterogeneous data information is obtained; carrying out structural integration processing on heterogeneous data information by using a preset Internet of things data model to obtain identification data information; and responding to the user sharing requirement, and performing data sharing on the identification data information. Therefore, the method and the device are beneficial to uniformly and standardizing the data fragments to realize the real-time information interaction between the platform of the Internet of things and the equipment, and further improve the real-time data sharing capability.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a data sharing method based on an internet of things data model according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of another data sharing method based on the data model of the internet of things according to the embodiment of the invention;
fig. 3 is a schematic structural diagram of a data sharing device based on a data model of the internet of things according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another data sharing device based on a data model of the internet of things according to the embodiment of the present invention;
fig. 5 is a schematic structural diagram of application layer data information disclosed in an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product, or apparatus that comprises a list of steps or elements is not limited to those listed but may alternatively include other steps or elements not listed or inherent to such process, method, product, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The invention discloses a data sharing method and device based on an Internet of things data model, which can be used for carrying out structural integration processing on heterogeneous data information by using the Internet of things data model, responding to user sharing requirements to carry out convenient data sharing, and facilitating uniform and standardized adhesion of data fragments so as to realize real-time information interaction between an Internet of things platform and equipment and further improve the real-time data sharing capability. The following are detailed descriptions.
Example one
Referring to fig. 1, fig. 1 is a schematic flowchart of a data sharing method based on a data model of the internet of things according to an embodiment of the present invention. The data sharing method based on the data model of the internet of things described in fig. 1 is applied to a data processing system, such as a local server or a cloud server for data sharing management based on the data model of the internet of things, and the embodiment of the present invention is not limited. As shown in fig. 1, the data sharing method based on the data model of the internet of things may include the following operations:
101. and acquiring heterogeneous data information.
102. And carrying out structural integration processing on the heterogeneous data information by using a preset Internet of things data model to obtain identification data information.
103. And responding to the user sharing requirement, and performing data sharing on the identification data information.
Optionally, the data model of the internet of things is independent of a network technology and a bearer protocol, and includes a common attribute and a specific attribute.
Optionally, the internet of things data model supports user-defined services, provides a data transparent transmission mechanism, and separately defines model basic capability and an industry template.
Optionally, the specific attribute is a customized characteristic according to the internet of things device.
Optionally, the public attribute is data information compatible with different types of internet of things devices.
Therefore, the data sharing method based on the data model of the internet of things can utilize the data model of the internet of things to perform structural integration processing on heterogeneous data information, conveniently and quickly share data in response to user sharing requirements, and is beneficial to uniformly and standardizing bonding data fragments to realize real-time information interaction between the platform of the internet of things and equipment, so that the real-time data sharing capability is improved.
In an alternative embodiment, the identification data information in step 102 includes format data information, data model information and application layer data information;
the method comprises the following steps of carrying out structural integration processing on heterogeneous data information by using a preset Internet of things data model to obtain identification data information, and comprises the following steps:
carrying out format conversion on the heterogeneous data information by using a preset physical network data model to obtain format data information;
extracting the functional information of the Internet of things equipment in the heterogeneous data information to obtain data model information;
and performing attribute and extension description processing on the heterogeneous data information to obtain the application layer data information.
Optionally, each internet of things device interacting with the internet of things platform is configured with an internet of things data model separately. The same Internet of things data model is used for the Internet of things equipment with the same brand and the same model, so that the Internet of things data model can be automatically identified and configured by a platform, the workload of manual configuration is reduced, and the application development of the equipment and the cloud end is simplified.
Therefore, the data sharing method based on the data model of the internet of things can perform structural integration processing on heterogeneous data information by using the preset data model of the internet of things to obtain identification data information, and is beneficial to uniformly and standardizing bonding of data fragments, so that real-time information interaction between the platform of the internet of things and equipment is realized, and the real-time data sharing capability is improved.
In another alternative embodiment, as shown in fig. 5, the application layer data information is XH information, SBID information, JXX information, CPID information, DXX information, SJC information, BQXX information, and KZ information in sequence from front to back;
the XH information is the unique identification of the currently recorded data sequence corresponding to the data information of the application layer;
the SBID information is a unique identifier of the Internet of things equipment corresponding to the application layer data information; the SBID information is used for carrying out unique security authentication on the data information of the application layer based on the SBID information and acquiring state information and position information of the Internet of things equipment corresponding to the data information of the application layer;
the JXX information is static information corresponding to the heterogeneous data information;
the CPID information is a model identifier of the data model of the Internet of things; the CPID information is used for systematic configuration of the Internet of things data models corresponding to the same type of Internet of things equipment in the Internet of things informatization system;
DXX information is dynamic information corresponding to the heterogeneous data information;
the SJC information is a time mark for acquiring heterogeneous data information so as to facilitate data query and update operations;
the BQXX information is label information corresponding to the Internet of things equipment;
and the KZ information is the expansion transmission information corresponding to the Internet of things equipment.
Optionally, the extended transmission information includes service data.
Optionally, the tag information includes device location information.
Therefore, the application layer data information in the data sharing method based on the data model of the internet of things described in the embodiment of the invention is beneficial to uniformly and standardizedly bonding data fragments, so that the real-time information interaction between the platform of the internet of things and the equipment is realized, and the real-time data sharing capability is further improved.
In yet another alternative embodiment, the data model information includes attribute information, service set information, and event information;
the data model information is used for calling a corresponding function based on a certain event in the event information to trigger the Internet of things equipment to execute an action corresponding to the certain event.
Optionally, the attribute information includes parameter information of the internet of things device and state information of the internet of things device during operation, and is used for performing label management on data and obtaining location information of the internet of things device based on a standard.
Optionally, the data structure of the attribute information is:
Figure BDA0003729446470000091
Figure BDA0003729446470000101
optionally, the service set information includes service information and shared information.
Optionally, the service information represents the capability of the internet of things device that can be called externally, and input parameters and output parameters can be set, which are basis for the platform side to execute task control function instructions such as a certain linkage to the internet of things device side.
Optionally, the data structure of the service information is as follows:
Figure BDA0003729446470000102
optionally, the shared information is used to implement data transmission based on the extension identifier to the defined interface.
Optionally, the event information represents an event of the internet of things device during operation.
Optionally, the event includes notification information that needs to be sensed and processed externally, and may include a plurality of output parameters. For example, information about completion of a certain task, or a temperature when a device of the internet of things malfunctions or alarms, and the like, an event may be subscribed and pushed.
Optionally, the data structure of the event information is as follows:
Figure BDA0003729446470000111
therefore, the data model information in the data sharing method based on the data model of the internet of things described in the embodiment of the invention is beneficial to uniformly and standardizing bonding of data fragments, so that real-time information interaction between the platform of the internet of things and the equipment is realized, and the real-time data sharing capability is further improved.
In another optional embodiment, the performing format conversion on the heterogeneous data information by using a preset physical network data model to obtain format data information includes:
judging whether the heterogeneous data information is acquired by a software unit embedded in the Internet of things equipment or not to obtain an acquisition judgment result;
when the acquisition judgment result is yes, calling a data format model corresponding to the Internet of things equipment from a preset physical network data model to perform data format conversion of a preset data format on the heterogeneous data information to obtain format data information to be used;
when the acquisition judgment result is negative, calling a cloud script corresponding to the Internet of things equipment from the cloud by using a physical network data model to perform data format conversion on the heterogeneous data information to obtain standby format data information;
transmitting the data information of the format to be used to a Web server corresponding to the Internet of things equipment by using an intelligent terminal based on a data transmission protocol to obtain the data information of the format corresponding to the Web server; the data transmission protocol comprises a TCP request response protocol and/or an MQTT protocol.
Optionally, the above-mentioned transmitting the data information in the standby format to the Web server corresponding to the internet of things device by using the intelligent terminal based on the data transmission protocol is implemented by using a BQID-based identifier or a CPID-based identifier.
Optionally, the intelligent terminal includes a gateway.
Therefore, the data sharing method based on the data model of the internet of things can utilize the preset physical network data model to perform format conversion on heterogeneous data information to obtain format data information, and is more beneficial to uniformly and standardizing bonding of data fragments to realize real-time information interaction between the platform of the internet of things and equipment, so that the real-time data sharing capability is improved.
Example two
Referring to fig. 2, fig. 2 is a schematic flowchart of another data sharing method based on a data model of the internet of things according to an embodiment of the present invention. The data sharing method based on the data model of the internet of things described in fig. 2 is applied to a data processing system, such as a local server or a cloud server for data sharing management based on the data model of the internet of things, and the embodiment of the present invention is not limited. As shown in fig. 2, the data sharing method based on the data model of the internet of things may include the following operations:
201. and acquiring heterogeneous data information.
202. And carrying out structural integration processing on the heterogeneous data information by using a preset Internet of things data model to obtain identification data information.
203. And responding to the sharing requirement of the user, and performing data extraction on the identification data information by using the integratable component to obtain the data information to be shared.
204. And screening out a target data sharing path set from a preset data sharing path set according to the user sharing requirement.
In an embodiment of the present invention, the data sharing path set includes at least 4 data sharing paths.
In an embodiment of the present invention, the target data sharing path set includes at least 1 target data sharing path.
205. And carrying out data sharing on the data information to be shared by using the target data sharing path set.
In the embodiment of the present invention, for specific technical details and technical noun explanations of step 201 to step 202, reference may be made to the detailed description of step 101 to step 102 in the first embodiment, and details are not repeated in the embodiment of the present invention.
Optionally, the data sharing path includes an entity resource real-time sharing path, and/or an associated resource real-time sharing path, and/or a system resource sharing path, and/or an aggregated resource retrieval sharing path, which is not limited in the embodiment of the present invention.
Optionally, the entity resource real-time sharing path is used for unifying the same type object model identification data to the standard interface and sharing the same type object model identification data to a third-party system.
Optionally, the associated resource real-time sharing path is used to share a certain type of resource or a certain set of resources, and the real-time sharing is implemented through a resource identifier.
Optionally, the system resource sharing path is used for realizing data sharing by processing the database resources and relying on an internet of things platform integrated resource sharing module.
Optionally, the aggregated resource retrieval sharing path is used to obtain a resource list through an index to a certain class or a certain set of resources, so as to implement shared access to the target resource.
Therefore, the data sharing method based on the data model of the internet of things can utilize the data model of the internet of things to perform structural integration processing on heterogeneous data information, conveniently and quickly share data in response to user sharing requirements, and is beneficial to uniformly and standardizing bonding data fragments to realize real-time information interaction between the platform of the internet of things and equipment, so that the real-time data sharing capability is improved.
In an alternative embodiment, the integrable component includes a data registration component and a data services tool;
responding to the sharing requirement of the user, performing data extraction on the identification data information by using the integratable component to obtain the data information to be shared, wherein the data extraction comprises the following steps:
responding to a registration requirement in user sharing requirements, performing connection definition of a database on a Web page and registration of a database table by using a data registration component, and performing visual display on the database table;
acquiring a JDBC interface by using a data service tool to perform database connection and interface packaging, and performing list display of packaged data based on a Web page;
and responding to a data selection requirement in the user sharing requirement, and screening and integrating data from the visually displayed database table and the displayed list of the packaged data to obtain the information of the data to be shared.
Optionally, the above-mentioned integrable component further includes an internal soft bus and interface, a DAL data access service module, a WEBC layer, and an external ESB service bus.
Optionally, the list of the encapsulated data includes an encapsulated interface name, a database name, a host name, IP information, and a port number.
Optionally, the database includes a time sequence database, a relational database and a non-relational database.
Optionally, the data encapsulated based on the Web page includes interface information of the encapsulated data.
Therefore, the data sharing method based on the data model of the internet of things, which is described by the embodiment of the invention, can respond to the user sharing requirement, and utilize the integratable component to extract the identification data information to obtain the data information to be shared, so that the data information to be shared can be better bonded with the data fragments in a unified and standardized manner, the real-time information interaction between the platform of the internet of things and the equipment can be realized, and the real-time data sharing capability can be further improved.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic structural diagram of a data sharing device based on a data model of the internet of things according to an embodiment of the present invention. The apparatus described in fig. 3 can be applied to a data processing system, such as a local server or a cloud server for data sharing management based on an internet of things data model, which is not limited in the embodiment of the present invention. As shown in fig. 3, the apparatus may include:
an obtaining module 301, configured to obtain heterogeneous data information;
the first processing module 302 is configured to perform structural integration processing on heterogeneous data information by using a preset internet of things data model to obtain identification data information;
and the sharing module 303 is configured to perform data sharing on the identification data information in response to a user sharing requirement.
It can be seen that, by implementing the data sharing device based on the data model of the internet of things described in fig. 3, the data model of the internet of things can be used for performing structural integration processing on heterogeneous data information, and convenient and fast data sharing is performed in response to a user sharing requirement, so that data fragments can be bonded in a unified and standardized manner, real-time information interaction between the platform of the internet of things and equipment is realized, and further the real-time data sharing capability is improved.
In another alternative embodiment, as shown in FIG. 3, the identification data information includes format data information, data model information, and application layer data information;
the first processing module 302 performs structural integration processing on heterogeneous data information by using a preset internet of things data model, and the specific way of obtaining the identification data information is as follows:
carrying out format conversion on the heterogeneous data information by using a preset physical network data model to obtain format data information;
extracting the functional information of the Internet of things equipment in the heterogeneous data information to obtain data model information;
and performing attribute and extension description processing on the heterogeneous data information to obtain the application layer data information.
It can be seen that, by implementing the data sharing device based on the data model of the internet of things described in fig. 3, the preset data model of the internet of things can be used for performing structural integration processing on heterogeneous data information to obtain identification data information, which is beneficial to unifying and standardizing data fragments to realize real-time information interaction between the platform of the internet of things and equipment, and further improve the real-time data sharing capability.
In yet another alternative embodiment, as shown in fig. 3, the application layer data information is XH information, SBID information, JXX information, CPID information, DXX information, SJC information, BQXX information, and KZ information in sequence from front to back;
the XH information is the unique identification of the currently recorded data sequence corresponding to the data information of the application layer;
the SBID information is a unique identifier of the Internet of things equipment corresponding to the application layer data information; the SBID information is used for carrying out unique security authentication on the data information of the application layer based on the SBID information and acquiring state information and position information of the Internet of things equipment corresponding to the data information of the application layer;
the JXX information is static information corresponding to the heterogeneous data information;
the CPID information is a model identification of the data model of the Internet of things; the CPID information is used for systematic configuration of the Internet of things data models corresponding to the same type of Internet of things equipment in the Internet of things informatization system;
DXX information is dynamic information corresponding to the heterogeneous data information;
the SJC information is a time mark for acquiring heterogeneous data information so as to facilitate data query and update operations;
the BQXX information is label information corresponding to the Internet of things equipment;
and the KZ information is the expansion transmission information corresponding to the Internet of things equipment.
It can be seen that the application layer data information in the data sharing device based on the data model of the internet of things described in fig. 3 is beneficial to unifying and standardizing the data fragments, so that real-time information interaction between the platform of the internet of things and the equipment is realized, and the real-time data sharing capability is further improved.
In yet another alternative embodiment, as shown in FIG. 3, the data model information includes attribute information, service set information, and event information;
the data model information is used for calling a corresponding function based on a certain event in the event information to trigger the Internet of things equipment to execute an action corresponding to the certain event.
It can be seen that the data model information in the data sharing device based on the internet of things data model described in fig. 3 is beneficial to unifying and standardizing the data fragments to realize the real-time information interaction between the internet of things platform and the equipment, and further improve the real-time data sharing capability.
In yet another alternative embodiment, as shown in fig. 3, the first processing module 302 performs format conversion on the heterogeneous data information by using a preset physical network data model, and the specific manner of obtaining the format data information is as follows:
judging whether the heterogeneous data information is acquired by a software unit embedded in the Internet of things equipment or not to obtain an acquisition judgment result;
when the acquisition judgment result is yes, calling a data format model corresponding to the Internet of things equipment from a preset physical network data model to perform data format conversion of a preset data format on the heterogeneous data information to obtain format data information to be used;
when the acquisition judgment result is negative, calling a cloud script corresponding to the Internet of things equipment from the cloud by using a physical network data model to perform data format conversion on the heterogeneous data information to obtain standby format data information;
transmitting the data information of the format to be used to a Web server corresponding to the Internet of things equipment by using an intelligent terminal based on a data transmission protocol to obtain the data information of the format corresponding to the Web server; the data transfer protocol includes a TCP request response protocol, and/or, an MQTT protocol.
It can be seen that, by implementing the data sharing device based on the data model of the internet of things described in fig. 3, format conversion can be performed on heterogeneous data information by using a preset physical network data model to obtain format data information, which is more beneficial to unifying and standardizing data fragments to realize real-time information interaction between the platform of the internet of things and the equipment, and further improve the real-time data sharing capability.
In yet another alternative embodiment, as shown in fig. 3, the response module 303 responds to the user sharing requirement, and the specific way of performing data sharing on the identification data information is as follows:
responding to the sharing requirement of the user, and performing data extraction on the identification data information by using the integratable component to obtain the data information to be shared;
screening out a target data sharing path set from a preset data sharing path set according to user sharing requirements; the set of data sharing paths includes at least 4 data sharing paths; the target data sharing path set comprises at least 1 target data sharing path;
and carrying out data sharing on the data information to be shared by using the target data sharing path set.
It can be seen that, by implementing the data sharing device based on the data model of the internet of things described in fig. 3, the data model of the internet of things can be used for performing structural integration processing on heterogeneous data information, and convenient and fast data sharing is performed in response to a user sharing requirement, so that data fragments can be bonded in a unified and standardized manner, real-time information interaction between the platform of the internet of things and equipment is realized, and further the real-time data sharing capability is improved.
In yet another alternative embodiment, as shown in FIG. 3, the integrable component includes a data registration component and a data services tool;
the response module 303 responds to the user sharing requirement, and performs data extraction on the identification data information by using the integratable component, so as to obtain the data information to be shared in a specific manner:
responding to a registration requirement in user sharing requirements, utilizing a data registration component to perform connection definition of a database on a Web page and registration of a database table, and performing visual display on the database table;
acquiring a JDBC interface by using a data service tool to perform database connection and interface packaging, and performing list display of packaged data based on a Web page;
and responding to a data selection requirement in the user sharing requirement, and screening and integrating data from the visually displayed database table and the displayed list of the packaged data to obtain the information of the data to be shared.
It can be seen that, by implementing the data sharing device based on the data model of the internet of things described in fig. 3, the data to be shared can be obtained by extracting the data from the identification data information by using the integratable component in response to the user sharing requirement, and the data to be shared can be better integrated and standardized to adhere data fragments, so that real-time information interaction between the platform of the internet of things and the device can be realized, and the real-time data sharing capability can be further improved.
Example four
Referring to fig. 4, fig. 4 is a schematic structural diagram of another data sharing device based on an internet of things data model according to an embodiment of the present invention. The apparatus described in fig. 4 can be applied to a data processing system, such as a local server or a cloud server for data sharing management based on an internet of things data model, which is not limited in the embodiment of the present invention. As shown in fig. 4, the apparatus may include:
a memory 401 storing executable program code;
a processor 402 coupled with the memory 401;
the processor 402 calls the executable program code stored in the memory 401 for executing the steps of the data sharing method based on the data model of the internet of things described in the first embodiment or the second embodiment.
EXAMPLE five
The embodiment of the invention discloses a computer-readable storage medium which stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the steps of the data sharing method based on the data model of the internet of things described in the first embodiment or the second embodiment.
EXAMPLE six
The embodiment of the invention discloses a computer program product, which comprises a non-transitory computer readable storage medium storing a computer program, wherein the computer program is operable to make a computer execute the steps of the data sharing method based on the data model of the internet of things described in the first embodiment or the second embodiment.
The above-described embodiments of the apparatus are only illustrative, and the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above detailed description of the embodiments, those skilled in the art will clearly understand that each embodiment may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. Based on such understanding, the above technical solutions may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, wherein the storage medium includes a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc-Read-Only Memory (CD-ROM) or other Memory capable of storing data, a magnetic tape, or any other computer-readable medium capable of storing data.
Finally, it should be noted that: the data sharing method and device based on the data model of the internet of things disclosed in the embodiments of the present invention are only preferred embodiments of the present invention, and are only used for illustrating the technical solutions of the present invention, not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art; the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A data sharing method based on an Internet of things data model is characterized by comprising the following steps:
acquiring heterogeneous data information;
carrying out structural integration processing on the heterogeneous data information by using a preset Internet of things data model to obtain identification data information;
responding to a user sharing requirement, and carrying out data sharing on the identification data information;
wherein, the responding to the user sharing requirement, and performing data sharing on the identification data information includes:
responding to the sharing requirement of the user, and performing data extraction on the identification data information by using an integratable component to obtain the data information to be shared;
screening out a target data sharing path set from a preset data sharing path set according to the user sharing requirement; the set of data sharing paths includes at least 4 data sharing paths; the target data sharing path set comprises at least 1 target data sharing path;
the data sharing path comprises an entity resource real-time sharing path, an associated resource real-time sharing path, a system resource sharing path and an aggregated resource retrieval sharing path;
the entity resource real-time sharing path is used for unifying the identification data of the same type of object models to a standard interface and sharing the identification data to a third-party system;
the associated resource real-time sharing path is used for sharing a certain type of resources or a certain set of resources, and real-time sharing is realized through resource identification;
the system resource sharing path is used for realizing data sharing by processing database resources and relying on an Internet of things platform integrated resource sharing module;
the aggregated resource retrieval sharing path is used for acquiring a resource list through an index of a certain type or a certain set of resources, and further realizing the sharing access of object resources;
and carrying out data sharing on the data information to be shared by utilizing the target data sharing path set.
2. The data sharing method based on the data model of the internet of things according to claim 1, wherein the identification data information comprises format data information, data model information and application layer data information;
the method for carrying out structural integration processing on the heterogeneous data information by using the preset Internet of things data model to obtain the identification data information comprises the following steps:
carrying out format conversion on the heterogeneous data information by using a preset physical network data model to obtain the format data information;
extracting the function information of the Internet of things equipment in the heterogeneous data information to obtain the data model information;
and performing attribute and extended description processing on the heterogeneous data information to obtain the application layer data information.
3. The data sharing method based on the data model of the internet of things as claimed in claim 2, wherein the data information of the application layer is XH information, SBID information, JXX information, CPID information, DXX information, SJC information, BQXX information and KZ information in sequence from front to back;
the XH information is the unique identification of the currently recorded data sequence corresponding to the data information of the application layer;
the SBID information is a unique identifier of the Internet of things equipment corresponding to the application layer data information; the SBID information is used for carrying out unique security authentication on the application layer data information based on the SBID information and acquiring state information and position information of the Internet of things equipment corresponding to the application layer data information;
the JXX information is static information corresponding to the heterogeneous data information;
the CPID information is a model identifier of the data model of the Internet of things; the CPID information is used for systematic configuration of the Internet of things data models corresponding to the same type of Internet of things equipment in the Internet of things informatization system;
the DXX information is dynamic information corresponding to the heterogeneous data information;
the SJC information is a time mark for acquiring the heterogeneous data information so as to facilitate data query and update operations;
the BQXX information is label information corresponding to the Internet of things equipment;
and the KZ information is the expansion transmission information corresponding to the Internet of things equipment.
4. The data sharing method based on the data model of the internet of things according to claim 2, wherein the data model information comprises attribute information, service set information and event information;
the data model information is used for calling a corresponding function based on a certain event in the event information to trigger the Internet of things equipment to execute an action corresponding to the certain event.
5. The data sharing method based on the data model of the internet of things of claim 2, wherein the performing format conversion on the heterogeneous data information by using a preset physical network data model to obtain the format data information comprises:
judging whether the heterogeneous data information is acquired by a software unit embedded in the Internet of things equipment or not to obtain an acquisition judgment result;
when the acquisition judgment result is yes, calling a data format model corresponding to the Internet of things equipment from a preset physical network data model to perform data format conversion of a preset data format on the heterogeneous data information to obtain standby format data information;
when the acquisition judgment result is negative, calling a cloud script corresponding to the Internet of things equipment from a cloud end by using the physical network data model to perform data format conversion on the heterogeneous data information to obtain the standby format data information;
transmitting the to-be-used format data information to a Web server corresponding to the Internet of things equipment by using an intelligent terminal based on a data transmission protocol to obtain the format data information corresponding to the Web server; the data transmission protocol comprises a TCP request response protocol and/or an MQTT protocol.
6. The data sharing method based on the data model of the internet of things of claim 1, wherein the integrable component comprises a data registration component and a data service tool;
the step of performing data extraction on the identification data information by using an integratable component in response to the user sharing requirement to obtain the to-be-shared data information comprises the following steps:
responding to a registration requirement in user sharing requirements, utilizing the data registration component to perform connection definition of a database on a Web page and registration of a database table, and performing visual display on the database table;
acquiring a JDBC interface by using the data service tool to perform database connection and interface packaging, and performing list display of packaged data based on the Web page;
responding to a data selection requirement in the user sharing requirement, and performing data screening and integration from the visually displayed database table and the displayed list of the packaged data to obtain the information of the data to be shared.
7. A data sharing device based on a data model of the Internet of things, the device comprising:
the acquisition module is used for acquiring heterogeneous data information;
the first processing module is used for carrying out structural integration processing on the heterogeneous data information by using a preset Internet of things data model to obtain identification data information;
the sharing module is used for responding to the sharing requirement of the user and carrying out data sharing on the identification data information;
wherein, the responding to the user sharing requirement, and performing data sharing on the identification data information includes:
responding to the sharing requirement of the user, and performing data extraction on the identification data information by using an integratable component to obtain the data information to be shared;
screening out a target data sharing path set from a preset data sharing path set according to the user sharing requirement; the set of data sharing paths includes at least 4 data sharing paths; the target data sharing path set comprises at least 1 target data sharing path;
the data sharing path comprises an entity resource real-time sharing path, a related resource real-time sharing path, a system resource sharing path and an aggregation resource retrieval sharing path;
the entity resource real-time sharing path is used for unifying the identification data of the same type of object models to a standard interface and sharing the identification data to a third-party system;
the associated resource real-time sharing path is used for sharing a certain type of resources or a certain set of resources, and real-time sharing is realized through resource identification;
the system resource sharing path is used for realizing data sharing by processing database resources and relying on an Internet of things platform integrated resource sharing module;
the aggregation resource retrieval sharing path is used for acquiring a resource list through an index of a certain type or a certain set of resources, so as to realize the sharing access of object resources;
and carrying out data sharing on the data information to be shared by utilizing the target data sharing path set.
8. A data sharing device based on a data model of the Internet of things, the device comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the data sharing method based on the data model of the internet of things according to any one of claims 1 to 6.
9. A computer storage medium storing computer instructions which, when invoked, perform the method of data sharing based on the data model of the internet of things of any one of claims 1 to 6.
CN202210788085.9A 2022-07-04 2022-07-04 Data sharing method and device based on data model of Internet of things Active CN115145989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210788085.9A CN115145989B (en) 2022-07-04 2022-07-04 Data sharing method and device based on data model of Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210788085.9A CN115145989B (en) 2022-07-04 2022-07-04 Data sharing method and device based on data model of Internet of things

Publications (2)

Publication Number Publication Date
CN115145989A CN115145989A (en) 2022-10-04
CN115145989B true CN115145989B (en) 2023-03-10

Family

ID=83411812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210788085.9A Active CN115145989B (en) 2022-07-04 2022-07-04 Data sharing method and device based on data model of Internet of things

Country Status (1)

Country Link
CN (1) CN115145989B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102271156A (en) * 2011-07-20 2011-12-07 武汉爱迪智能工程有限公司 Data sharing service system based on internet of things
CN112463910A (en) * 2020-12-17 2021-03-09 福州物联网开放实验室有限公司 Internet of things multidimensional data fusion system and method
CN113220751A (en) * 2021-06-03 2021-08-06 国网江苏省电力有限公司营销服务中心 Metering system and evaluation method for multi-source data state quantity

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109981772A (en) * 2019-03-22 2019-07-05 西安电子科技大学 A kind of multiple domain data share exchange platform architecture based on block chain
US11616839B2 (en) * 2019-04-09 2023-03-28 Johnson Controls Tyco IP Holdings LLP Intelligent edge computing platform with machine learning capability
KR20220056656A (en) * 2020-10-28 2022-05-06 삼성에스디에스 주식회사 Method and apparatus for providing metadata share service
CN113765713B (en) * 2021-08-27 2024-02-27 中国人民解放军国防大学军事管理学院 Data interaction method based on Internet of things equipment acquisition

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102271156A (en) * 2011-07-20 2011-12-07 武汉爱迪智能工程有限公司 Data sharing service system based on internet of things
CN112463910A (en) * 2020-12-17 2021-03-09 福州物联网开放实验室有限公司 Internet of things multidimensional data fusion system and method
CN113220751A (en) * 2021-06-03 2021-08-06 国网江苏省电力有限公司营销服务中心 Metering system and evaluation method for multi-source data state quantity

Also Published As

Publication number Publication date
CN115145989A (en) 2022-10-04

Similar Documents

Publication Publication Date Title
CN108667807B (en) Protocol self-adaption method and system based on monitoring cloud platform and gateway
CN110531987A (en) Management method, device and computer readable storage medium based on Kubernetes cluster
WO2021013058A1 (en) Exception prompting method, apparatus, system and device for big data product, and medium
WO2021169268A1 (en) Data processing method, apparatus and device, and storage medium
CN108170578B (en) Log collection method and device
CN112052111B (en) Processing method, device and equipment for server abnormity early warning and storage medium
CN102185716B (en) Universal management method and system for communication equipment
CN109522386B (en) Method and system for generating spatial information service across GIS platform
CN110932918B (en) Log data acquisition method and device and storage medium
CN109582547A (en) Electronic device, monitoring data alarm method and storage medium
CN112422450B (en) Computer equipment, and flow control method and device for service request
CN114172978A (en) Multi-protocol equipment access method and related device
CN115145989B (en) Data sharing method and device based on data model of Internet of things
CN114675982A (en) General method and system for acquiring data of service integration system
CN109995782B (en) Information processing method, device, system and computer storage medium
CN116743886A (en) Industrial control equipment data acquisition system based on Internet of things
CN113886481B (en) Database access method and system
CN112799734B (en) Flow management method, image processing method, and corresponding platform and device thereof
CN114090066A (en) User interface card view generation method and device, computer equipment and medium
CN114924783A (en) Interface calling method, device, equipment and storage medium of application program
CN113452582A (en) Data transmission method, equipment, system and medium based on automatic analysis
CN114449055A (en) Method and device for seamless protocol docking between industrial devices and electronic device
CN114124952A (en) Cloud platform access system and method of data acquisition equipment
CN107967655B (en) Data resource model establishing method and device
CN113608900B (en) Method, device, equipment and medium for calling algorithm model

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240131

Address after: 100091 School of military management, No. 3 academy a, hongshankou, Haidian District, Beijing

Patentee after: School of Military Management National Defense University of the People's Liberation Army of China

Country or region after: China

Address before: 100091 School of military management, No. 3 academy a, hongshankou, Haidian District, Beijing

Patentee before: Xia Wenxiang

Country or region before: China