The invention is suitable for the technical field of
data sharing, and particularly relates to a multi-source heterogeneous
data sharing method and
system for a
smart city, and the method comprises the steps: S100: determining the sources of multi-source heterogeneous data in the
smart city, configuring the relationship between the sources, defining standard phrases, integrating the standard phrases and the relationship, and constructing a
standard map, the method comprises the following steps: acquiring a source, positioning an internet-of-things device at the source, constructing a data pipeline, connecting one end of the data pipeline with
the internet-of-things device, connecting the other end of the data pipeline with a
standard map, acquiring a real-
time data stream in the data pipeline, correcting the real-
time data stream by using the
standard map, creating a plurality of blocks in one-to-one correspondence with the source, and storing the plurality of blocks in the data pipeline. And the corrected real-
time data stream is transferred into the data block. According to the method, the multi-source heterogeneous data can be graded by splitting the data pipeline, so that the
data sharing effect is guaranteed, the
data security is greatly enhanced, and the data leakage risk is reduced.