A method, device and equipment for compressing, storing and decompressing crude oil information
By compressing the structure-oriented lumped data, the problems of high storage cost and high transmission pressure of crude oil information are solved, and efficient storage and transmission of data are achieved.
Patent Information
- Application Number
- CN202411710749.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2044-11-27
AI Technical Summary
The storage cost of crude oil information is high and the transmission pressure is high, mainly due to the large amount of crude oil molecular data, which requires a large amount of storage capacity and increased disk demand.
By analyzing the data composition of crude oil molecules characterized by structure-oriented lumped, identifying the field values and consecutive times in the structure-oriented lumped data, and processing the data in the preset order, the compression of crude oil molecular data is achieved. The specific steps include obtaining the structure-oriented lumped data, traversing it line by line and identifying the field values and their consecutive occurrences, combining them into a compressed data subsequence, splicing them into a compressed data sequence, and finally combining them into a compressed data sequence.
Through data compression, the storage cost and transmission pressure of crude oil molecular files are significantly reduced, and the compressed data is obtained through splitting, reconstruction and identification during reading, thus realizing the effective storage and transmission of data.
Smart Images

Figure CN119298917B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of molecular oil refining, and in particular relates to a method, device and equipment for compressing, storing and decompressing crude oil information. Background Art
[0002] Structure-oriented lumping (SOL) is an important representation method in molecular oil refining. The crude oil molecule is represented as a 24-dimensional vector array through the SOL method. The dimension of the array is used to describe the elemental composition of the crude oil molecule.
[0003] When it comes to the storage of crude oil information, the crude oil yield data and the crude oil molecules represented by SOL are usually combined into a 25-dimensional vector array and directly stored in the molecular-level crude oil database. Due to the complexity of crude oil composition, the number of crude oil molecules contained in crude oil samples is very large, and the files describing crude oil information require a large storage capacity to store. A large amount of storage requirements will result in higher disk requirements, thereby increasing construction costs. In addition, when uploading or sending crude oil information files, there will be a large transmission pressure. Summary of the invention
[0004] The present invention provides a method, device and equipment for compressing, storing and decompressing crude oil information, which are used to solve the problems of high storage cost and high transmission pressure of crude oil information.
[0005] In order to solve the above technical problems, a first aspect of this document provides a method for compressing crude oil information, the method comprising:
[0006] Obtaining structure-oriented lumped data of crude oil; in the structure-oriented lumped data, different rows represent different crude oil molecules, and a set of fields in each row represents constituent elements of the corresponding crude oil molecules;
[0007] Traversing the structure-oriented aggregated data row by row according to the first order, and identifying each field value in each row and the number of consecutive occurrences thereof according to the second order;
[0008] Combining each field value and its consecutive occurrence number in each row into multiple compressed data subsequences of the row according to the third order;
[0009] splicing the multiple compressed data subsequences of each row into a compressed data sequence of the row according to the second order;
[0010] The compressed data sequences of each row are combined according to the first order to obtain the compressed data of the structure-oriented lumped data.
[0011] As a further embodiment of this invention, before traversing the structure-guided lumped data row by row in the first order, it also includes:
[0012] The structure-oriented lumped data is transposed.
[0013] As a further embodiment of this invention, before transposing the structure-oriented lumped data, the method further includes:
[0014] Obtaining the boiling point of the crude oil molecule corresponding to the structure-oriented lumped data;
[0015] The rows in the structure-oriented lumped data are sorted according to the boiling points, so that the rows represented by crude oil molecules with similar boiling points in the structure-oriented lumped data are concentrated in the sorting.
[0016] A second aspect of the present invention provides a method for storing crude oil information, the method comprising:
[0017] Obtaining structure-oriented lumped data of crude oil; in the structure-oriented lumped data, different rows represent different crude oil molecules, and a set of fields in each row represents constituent elements of the corresponding crude oil molecules;
[0018] Traversing the structure-oriented aggregated data row by row according to the first order, and identifying each field value in each row and the number of consecutive occurrences thereof according to the second order;
[0019] Combining each field value and its consecutive occurrence number in each row into multiple compressed data subsequences of the row according to the third order;
[0020] splicing the multiple compressed data subsequences of each row into a compressed data sequence of the row according to the second order;
[0021] Combining compressed data sequences of each row according to the first order to obtain compressed data of the structure-oriented lumped data;
[0022] Obtaining yield data corresponding to the crude oil;
[0023] Establishing an association relationship between the yield data and the compressed data of the structure-oriented lumped data;
[0024] The yield data, the compressed data of the structure-oriented lumped data and their association are stored in a database.
[0025] As a further embodiment of this invention, before traversing the structure-guided lumped data row by row in the first order, it also includes:
[0026] The structure-oriented lumped data is transposed.
[0027] As a further embodiment of this invention, before transposing the structure-oriented lumped data, the method further includes:
[0028] Obtaining the boiling point of the crude oil molecule corresponding to the structure-oriented lumped data;
[0029] The rows in the structure-oriented lumped data are sorted according to the boiling points, so that the rows represented by crude oil molecules with similar boiling points in the structure-oriented lumped data are concentrated in the sorting.
[0030] As a further embodiment of the present invention, before establishing the association relationship between the yield data and the compressed data of the structure-oriented lumped data, it also includes:
[0031] According to the ordering of each row of the structure-oriented lumped data, the data ordering of the yield data is adjusted so that the data in the yield data corresponds one-to-one with the crude oil molecules represented by the structure-oriented lumped data.
[0032] A third aspect of the present invention provides a method for decompressing crude oil information, the method comprising:
[0033] Obtaining compressed data of structure-oriented lumped data of crude oil from a database; the compressed data comprises a plurality of rows of compressed data sequences combined in a first order;
[0034] Traversing each line of the compressed data sequence line by line according to the first order, and splitting the field values in each line of the compressed data sequence into multiple data subsequences according to the second order in a non-overlapping pair splitting manner;
[0035] Obtain a plurality of consecutive first field values according to the second field value in the data subsequence; the number of consecutive first field values is equal to the second field value;
[0036] splicing the multiple consecutive first field values to obtain a reconstructed data subsequence;
[0037] splicing the multiple reconstructed data subsequences of each row into a decompressed data sequence of the row according to the second order;
[0038] The decompressed data sequences of each row are combined according to the first order to obtain the decompressed data of the structure-oriented lumped data.
[0039] As a further embodiment of this invention, after obtaining the decompressed data of the structure-oriented lumped data, it further includes:
[0040] Determining whether the fields in each row of the decompressed data represent a single element;
[0041] If the judgment is yes, the decompressed data is transposed.
[0042] A fourth aspect of the present invention provides a crude oil information compression device, the device comprising:
[0043] A first acquisition module is used to acquire structure-oriented lumped data of crude oil; in the structure-oriented lumped data, different rows represent different crude oil molecules, and a set of fields in each row represents constituent elements of the corresponding crude oil molecule;
[0044] A first identification module, configured to traverse the structure-oriented aggregated data row by row according to a first order, and identify each field value in each row and its consecutive occurrence times according to a second order;
[0045] A first combining module, used for combining each field value in each row and its consecutive occurrence times into a plurality of compressed data subsequences of the row according to a third order;
[0046] A first splicing module, used for splicing the multiple compressed data subsequences of each row into a compressed data sequence of the row according to the second order;
[0047] The second combining module is used to combine the compressed data sequences of each row according to the first order to obtain the compressed data of the structure-oriented lumped data.
[0048] A fifth aspect of the present invention provides a storage device for crude oil information, the device comprising:
[0049] The second acquisition module is used to acquire structure-oriented lumped data of crude oil; in the structure-oriented lumped data, different rows represent different crude oil molecules, and the field set in each row represents the constituent elements of the corresponding crude oil molecule;
[0050] A second identification module is used to traverse the structure-oriented lumped data row by row according to the first order, and identify each field value in each row and the number of consecutive occurrences thereof according to the second order;
[0051] A third combining module, used for combining the field values and the consecutive occurrence times in each row into a plurality of compressed data subsequences of the row according to a third order;
[0052] A second splicing module, used for splicing the multiple compressed data subsequences of each row into a compressed data sequence of the row according to the second order;
[0053] a fourth combining module, configured to combine the compressed data sequences of each row according to the first order to obtain compressed data of the structure-oriented lumped data;
[0054] A third acquisition module is used to obtain the yield data corresponding to the crude oil;
[0055] A relationship building module, used for associating the yield data with the compressed data of the structure-oriented lumped data;
[0056] The storage module is used to store the yield data, the compressed data of the structure-oriented lumped data and their association into a database.
[0057] A sixth aspect of the present invention provides a crude oil information decompression device, the device comprising:
[0058] A fourth acquisition module is used to acquire compressed data of the structure-oriented lumped data of crude oil from a database; the compressed data includes a plurality of rows of compressed data sequences combined in a first order;
[0059] A splitting module, used for traversing each line of the compressed data sequence line by line according to a first order, and splitting the field values in each line of the compressed data sequence into multiple data subsequences according to a second order in a non-overlapping pair splitting manner;
[0060] a copy module, configured to obtain a plurality of consecutive first field values according to the second field value in the data subsequence; the number of consecutive first field values being equal to the second field value;
[0061] A third splicing module, used for splicing the multiple consecutive first field values to obtain a reconstructed data subsequence;
[0062] a fourth splicing module, configured to splice the plurality of reconstructed data subsequences of each row into a decompressed data sequence of the row according to the second order;
[0063] A fifth combining module is used to combine the decompressed data sequences of each row according to the first order to obtain the decompressed data of the structure-oriented lumped data.
[0064] The seventh aspect of this document provides a computer device, including a memory, a processor, and a computer program stored in the memory, and when the computer program is executed by the processor, it executes instructions of the method for compressing, storing, and decompressing crude oil information described in any of the aforementioned embodiments.
[0065] An eighth aspect of the present invention provides a computer storage medium having a computer program stored thereon, wherein the computer program
[0066] When the program is executed by a processor of a computer device, instructions of the method for compressing, storing, and decompressing crude oil information described in any of the aforementioned embodiments are executed.
[0067] A ninth aspect of the present invention provides a computer program product, including a computer program, which, when executed by the processor, executes instructions of the method for compressing, storing, and decompressing crude oil information described in any of the aforementioned embodiments.
[0068] The compression, storage, and decompression methods, devices, and equipment for crude oil information provided in this article analyze the data composition of crude oil molecules represented by structure-oriented lumped data, identify the field values and consecutive times in the structure-oriented lumped data, and process the data in a preset order, thereby realizing the compression of crude oil molecule files. By storing the compressed crude oil molecule files and yield data in correspondence, the storage cost of the crude oil molecule files is reduced and the transmission pressure is reduced. When reading, the compressed crude oil molecule data is split, reconstructed, and identified to obtain decompressed data.
[0069] In order to make the above and other purposes, features and advantages of this article more obvious and easy to understand, the following specifically cites preferred embodiments and describes them in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] In order to more clearly illustrate the technical solutions in the embodiments of this article or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of this article. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0071] Figure 1 A flow chart of the compression method according to the embodiment of this invention is shown;
[0072] Figure 2 A flow chart showing the structure-oriented lumped data sorting adjustment in the compression method of the embodiment of this article is shown;
[0073] Figure 3 A flow chart of a storage method according to an embodiment of the present invention is shown;
[0074] Figure 4 A flow chart showing the structure-oriented lumped data sorting adjustment in the storage method of the embodiment of this article is shown;
[0075] Figure 5 A flow chart of the decompression method according to the embodiment of this invention is shown;
[0076] Figure 6 A flow chart of adjusting decompressed data in a decompression method according to an embodiment of the present invention is shown;
[0077] Figure 7 The structural diagram of the compression device of the embodiment of this invention is shown;
[0078] Figure 8 A structural diagram of a storage device according to an embodiment of the present invention is shown;
[0079] Fig. 9 The structure diagram of the decompression device in the embodiment of this article is shown;
[0080] Fig.10 A structural diagram of a computer device according to an embodiment of this invention is shown.
[0081] Description of the accompanying symbols:
[0082] 710, a first acquisition module;
[0083] 720, a first identification module;
[0084] 730, first combination module;
[0085] 740, first splicing module;
[0086] 750, second combination module;
[0087] 810, second acquisition module;
[0088] 820, second identification module;
[0089] 830, third combination module;
[0090] 840, second splicing module;
[0091] 850, fourth combination module;
[0092] 860, third acquisition module;
[0093] 870, Relationship Building Module;
[0094] 880, storage module;
[0095] 910, fourth acquisition module;
[0096] 920, split module;
[0097] 930, copy module;
[0098] 940, third splicing module;
[0099] 950, fourth splicing module;
[0100] 960, fifth combination module;
[0101] 1002. Computer equipment;
[0102] 1004. Processor;
[0103] 1006. Memory;
[0104] 1008. Driving mechanism;
[0105] 1010, input / output module;
[0106] 1012. Input device;
[0107] 1014. Output device;
[0108] 1016. Presentation equipment;
[0109] 1018. Graphical user interface;
[0110] 1020. Network interface;
[0111] 1022. Communication link;
[0112] 1024. Communication bus. DETAILED DESCRIPTION
[0113] The following will be combined with the drawings in the embodiments of this article to clearly and completely describe the technical solutions in the embodiments of this article. Obviously, the described embodiments are only part of the embodiments of this article, not all of the embodiments. Based on the embodiments of this article, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this article.
[0114] It should be noted that the terms "first", "second", etc. in the specification and claims of this article and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of this article described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0115] This specification provides method operation steps as described in the embodiments or flow charts, but more or fewer operation steps may be included based on routine or non-creative work. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent the only execution order. When the system or device product is executed in practice, it can be executed in the order of the method shown in the embodiments or the drawings or in parallel.
[0116] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0117] In one embodiment of the present invention, a method for compressing crude oil information is provided to solve the problem of large amount of information in crude oil structure-oriented aggregated data.
[0118] Specifically, Figure 1 As shown, the compression method of crude oil information includes:
[0119] Step 110, obtaining structure-oriented aggregated data of crude oil;
[0120] Step 120, traversing the structure-oriented aggregated data row by row according to the first order, and identifying each field value in each row and its consecutive occurrence times according to the second order;
[0121] Step 130, combining the field values and their consecutive occurrence times in each row into a plurality of compressed data subsequences of the row according to the third order;
[0122] Step 140, splicing the multiple compressed data subsequences of each row into a compressed data sequence of the row according to the second order;
[0123] Step 150: Combining the compressed data sequences of each row according to the first order to obtain the compressed data of the structure-oriented lumped data.
[0124] This embodiment analyzes the data composition of crude oil molecules represented by structure-oriented lumping, identifies field values and consecutive times in the structure-oriented lumped data, and processes the data in a preset order, thereby achieving compression of the structure-oriented lumped data.
[0125] In some embodiments of the present invention, different rows of structure-oriented lumped data represent different crude oil molecules, and the set of fields in each row represents the constituent elements of the corresponding crude oil molecules; the crude oil molecules are characterized by structure-oriented lumping (SOL), and structure-oriented lumped data with N rows and 24 columns is obtained, where N represents the number of crude oil molecules; the SOL formula obtained by characterizing hydrogen sulfide (H2S) by the SOL method is [0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0], and the elements represented by each column of the structure-oriented lumped data are as follows:
[0126] Column 1: A6-six-carbon aromatic ring, a structural unit that can exist alone;
[0127] Column 2: A4-four-carbon aromatic ring, structural increment;
[0128] Column 3: A2-two-carbon aromatic ring, structural increment;
[0129] Column 4: N6-hexacarbon cycloalkane;
[0130] Column 5: N5-pentacarbocycloalkane;
[0131] Column 6: N4 - four carbon aliphatic ring structure increment;
[0132] Column 7: N3 - three carbon aliphatic ring structure increment;
[0133] Column 8: N2-two carbon aliphatic ring structure increment;
[0134] Column 9: N1 - one carbon aliphatic ring structure increment;
[0135] Column 10: R - the total number of carbon atoms contained in all alkyl structures attached to the ring structure, or the number of carbon atoms in the aliphatic molecule when no ring structure exists;
[0136] Column 11: br-side chain alkyl, linear alkyl or number of branch nodes on olefins;
[0137] Column 12: me - the number of methyl groups directly attached to carbon atoms in the aromatic or aliphatic ring in the alkyl structure;
[0138] Column 13: IH - structural increments related to the introduction of hydrogen elements to describe the saturation of the molecule (except aromatics);
[0139] Column 14: AA-biphenyl bridge structure between any two non-structural incremental rings (A6, N6 or N5);
[0140] Column 15: NS - a sulfur atom located in an aliphatic ring or chain and attached to two carbon atoms;
[0141] Column 16: RS - inserts an S atom between a carbon atom and a hydrogen atom;
[0142] Column 17: AN - Replacement of carbon with a nitrogen group in an aromatic ring, such as pyridine and quinoline;
[0143] Column 18: NN - a nitrogen atom in an aliphatic ring or chain attached to two carbon atoms;
[0144] Column 19: RN - inserts an -NH- group between a carbon atom and a hydrogen atom;
[0145] Column 20: NO - oxygen atom located in an aliphatic ring or chain and attached to two carbon atoms;
[0146] Column 21: RO - insert an O atom between a carbon atom and a hydrogen atom;
[0147] Column 22: Ko- replaces -CH2- or -CH3 to form a ketone or aldehyde group;
[0148] Column 23: Ni- occurs in porphyrin molecules;
[0149] Column 24: V- occurs in porphyrin molecules.
[0150] In some embodiments of this document, the first order may be the order of the rows of the structure-oriented lumped data from front to back or from back to front, the second order may be the order of the columns of the structure-oriented lumped data from front to back or from back to front, and the third order may be the order of field value first and the number of consecutive occurrences of the field value second, or the order of field value second and the number of consecutive occurrences of the field value first, which is not limited in this document.
[0151] In some embodiments of the present invention, the SOL formula "[0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0]" of H2S is compressed and identified from left to right to obtain the field value 0 and its consecutive number of occurrences 12 as compressed data subsequence 1, and the structure of compressed data subsequence 1 is (0,12); continue to identify, obtain the field value 1 and its consecutive number of occurrences 1 as compressed data subsequence 2, and the structure of compressed data subsequence 2 is (1,1); continue to identify, obtain the field value 0 and its consecutive number of occurrences 2 as compressed data subsequence 3, and the structure of compressed data subsequence 3 is (0,2); continue Identify and obtain the field value 1 and its consecutive number of occurrences 1 as the compressed data subsequence 4, and the structure of the compressed data subsequence 4 is (1,1); continue to identify and obtain the field value 0 and its consecutive number of occurrences 8 as the compressed data subsequence 5, and the structure of the compressed data subsequence 4 is (0,8); so far, the compressed data subsequences 1-5 are obtained, and the compressed data subsequences 1-5 are combined from left to right to obtain the SOL formula of the compressed H2S "[0,12,1,1,0,2,1,1,0,8]", then the compression rate of H2S is 41.67%, and the rows of the structure-oriented lumped data are compressed in this way, and then spliced to obtain the compressed data of the structure-oriented lumped data.
[0152] In some embodiments of the present invention, considering that the molecular constituent elements between crude oil molecules are distributed more concentratedly, and the field values of the elements represented by the same column of different crude oil molecules are repeated more, the structure-oriented lumped data are transposed before traversing the structure-oriented lumped data row by row in the first order. After the transposition, the structure-oriented lumped data are compressed in the same way, so that 24 groups of compressed data are obtained, each group represents a different constituent element of the crude oil molecules. The amount of information of the structure-oriented lumped data is further reduced by transposing and then compressing.
[0153] In some embodiments herein, Figure 2 As shown, in the compression method, before transposing the structure-oriented lumped data, the following steps are also included:
[0154] Step 210, obtaining the boiling point of the crude oil molecule corresponding to the structure-oriented lumped data;
[0155] Step 220, sorting the rows in the structure-oriented lumped data according to the boiling points, so that the rows represented by crude oil molecules with similar boiling points in the structure-oriented lumped data are concentrated in the sorting.
[0156] This embodiment analyzes the boiling point information of crude oil molecules. Considering that crude oil molecules with similar boiling points have closer structures, the structure-oriented lumped data are reordered so that the rows represented by crude oil molecules with similar boiling points in the structure-oriented lumped data are concentrated. In this way, the compression method is applied to compress the transposed structure-oriented lumped data, thereby further reducing the amount of information in the structure-oriented lumped data.
[0157] In some embodiments of this invention, the sorting may be performed in ascending or descending order according to the boiling point value, or in combination with other considerations, as long as the rows represented by crude oil molecules with similar boiling points are sorted in a concentrated manner, which is not limited in this invention.
[0158] In one embodiment of the present invention, a method for storing crude oil information is also provided to solve the problems of high storage cost and high transmission pressure of crude oil information.
[0159] Specifically, Figure 3 As shown, the storage method of crude oil information includes:
[0160] Step 310, obtaining structure-oriented aggregated data of crude oil;
[0161] Step 320, traversing the structure-oriented aggregated data row by row according to the first order, and identifying each field value in each row and its consecutive occurrence times according to the second order;
[0162] Step 330, combining the field values and their consecutive occurrence times in each row into a plurality of compressed data subsequences of the row according to the third order;
[0163] Step 340, concatenate the multiple compressed data subsequences of each row into a compressed data sequence of the row according to the second order;
[0164] Step 350: Combining the compressed data sequences of each row according to the first order to obtain compressed data of the structure-oriented lumped data.
[0165] Step 360, obtaining yield data corresponding to the crude oil;
[0166] Step 370, establishing an association relationship between the yield data and the compressed data of the structure-oriented lumped data;
[0167] Step 380: storing the yield data, the compressed data of the structure-oriented lumped data and their association into a database.
[0168] When considering storing crude oil information, this embodiment separates the yield data and the structure-oriented lumped data for storage, so as to facilitate the compression of the crude oil molecular information by applying the compression method. By analyzing the data composition of the crude oil molecules represented by the structure-oriented lumped data, identifying the field values and the number of consecutive times in the structure-oriented lumped data, and processing the data in a preset order, the compression of the structure-oriented lumped data is achieved, and the high storage cost and transmission pressure of the crude oil information are reduced. By establishing an association relationship between the yield data and the compressed data of the structure-oriented lumped data, the yield data, the compressed data of the structure-oriented lumped data and their association relationship are stored in a database, which is convenient for subsequent data reading and analysis.
[0169] In some embodiments of the present invention, different rows of structure-oriented lumped data represent different crude oil molecules, and the set of fields in each row represents the constituent elements of the corresponding crude oil molecules; the crude oil molecules are characterized by structure-oriented lumping (SOL), and structure-oriented lumped data with N rows and 24 columns is obtained, where N represents the number of crude oil molecules; the SOL formula obtained by characterizing hydrogen sulfide (H2S) by the SOL method is [0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0], and the elements represented by each column of the structure-oriented lumped data are as follows:
[0170] Column 1: A6-six-carbon aromatic ring, a structural unit that can exist alone;
[0171] Column 2: A4-four-carbon aromatic ring, structural increment;
[0172] Column 3: A2-two-carbon aromatic ring, structural increment;
[0173] Column 4: N6-hexacarbon cycloalkane;
[0174] Column 5: N5-pentacarbocycloalkane;
[0175] Column 6: N4 - four carbon aliphatic ring structure increment;
[0176] Column 7: N3 - three carbon aliphatic ring structure increment;
[0177] Column 8: N2-two carbon aliphatic ring structure increment;
[0178] Column 9: N1 - one carbon aliphatic ring structure increment;
[0179] Column 10: R - the total number of carbon atoms contained in all alkyl structures attached to the ring structure, or the number of carbon atoms in the aliphatic molecule when no ring structure exists;
[0180] Column 11: br-side chain alkyl, linear alkyl or number of branch nodes on olefins;
[0181] Column 12: me - the number of methyl groups directly attached to carbon atoms in the aromatic or aliphatic ring in the alkyl structure;
[0182] Column 13: IH - structural increments related to the introduction of hydrogen elements to describe the saturation of the molecule (except aromatics);
[0183] Column 14: AA-biphenyl bridge structure between any two non-structural incremental rings (A6, N6 or N5);
[0184] Column 15: NS - a sulfur atom located in an aliphatic ring or chain and attached to two carbon atoms;
[0185] Column 16: RS - inserts an S atom between a carbon atom and a hydrogen atom;
[0186] Column 17: AN - Replacement of carbon with a nitrogen group in an aromatic ring, such as pyridine and quinoline;
[0187] Column 18: NN - a nitrogen atom in an aliphatic ring or chain attached to two carbon atoms;
[0188] Column 19: RN - inserts an -NH- group between a carbon atom and a hydrogen atom;
[0189] Column 20: NO - oxygen atom located in an aliphatic ring or chain and attached to two carbon atoms;
[0190] Column 21: RO - insert an O atom between a carbon atom and a hydrogen atom;
[0191] Column 22: Ko- replaces -CH2- or -CH3 to form a ketone or aldehyde group;
[0192] Column 23: Ni- occurs in porphyrin molecules;
[0193] Column 24: V- occurs in porphyrin molecules.
[0194] In some embodiments of this document, the first order may be the order of the rows of the structure-oriented lumped data from front to back or from back to front, the second order may be the order of the columns of the structure-oriented lumped data from front to back or from back to front, and the third order may be the order of field value first and the number of consecutive occurrences of the field value second, or the order of field value second and the number of consecutive occurrences of the field value first, which is not limited in this document.
[0195] In some embodiments of the present invention, the SOL formula "[0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0]" of H2S is compressed and identified from left to right to obtain the field value 0 and its consecutive number of occurrences 12 as compressed data subsequence 1, and the structure of compressed data subsequence 1 is (0,12); continue to identify, obtain the field value 1 and its consecutive number of occurrences 1 as compressed data subsequence 2, and the structure of compressed data subsequence 2 is (1,1); continue to identify, obtain the field value 0 and its consecutive number of occurrences 2 as compressed data subsequence 3, and the structure of compressed data subsequence 3 is (0,2); continue Identify and obtain the field value 1 and its consecutive number of occurrences 1 as the compressed data subsequence 4, and the structure of the compressed data subsequence 4 is (1,1); continue to identify and obtain the field value 0 and its consecutive number of occurrences 8 as the compressed data subsequence 5, and the structure of the compressed data subsequence 4 is (0,8); so far, the compressed data subsequences 1-5 are obtained, and the compressed data subsequences 1-5 are combined from left to right to obtain the SOL formula of the compressed H2S "[0,12,1,1,0,2,1,1,0,8]", then the compression rate of H2S is 41.67%, and the rows of the structure-oriented lumped data are compressed in this way, and then spliced to obtain the compressed data of the structure-oriented lumped data.
[0196] In some embodiments of the present invention, considering that the molecular constituent elements between crude oil molecules are distributed more concentratedly, and the field values of the elements represented by the same column of different crude oil molecules are repeated more, the structure-oriented lumped data are transposed before traversing the structure-oriented lumped data row by row in the first order. After the transposition, the structure-oriented lumped data are compressed in the same way, so that 24 groups of compressed data are obtained, each group represents a different constituent element of the crude oil molecules. The amount of information of the structure-oriented lumped data is further reduced by transposing and then compressing.
[0197] In some embodiments herein, Figure 4 As shown, in the storage method, before the structure-oriented lumped data is transposed, the following steps are further included:
[0198] Step 410, obtaining the boiling point of the crude oil molecule corresponding to the structure-oriented lumped data;
[0199] Step 420, sorting the rows in the structure-oriented lumped data according to the boiling points, so that the rows represented by crude oil molecules with similar boiling points in the structure-oriented lumped data are concentrated in the sorting.
[0200] This embodiment analyzes the boiling point information of crude oil molecules. Considering that crude oil molecules with similar boiling points have closer structures, the structure-oriented lumped data are reordered so that the rows represented by crude oil molecules with similar boiling points in the structure-oriented lumped data are concentrated. In this way, the compression method is applied to compress the transposed structure-oriented lumped data, thereby further reducing the amount of information in the structure-oriented lumped data.
[0201] In some embodiments of this invention, the sorting may be performed in ascending or descending order according to the boiling point value, or in combination with other considerations, as long as the rows represented by crude oil molecules with similar boiling points are sorted in a concentrated manner, which is not limited in this invention.
[0202] In some embodiments of the present invention, before establishing the association relationship between the yield data and the compressed data of the structure-oriented lumped data, the method further includes:
[0203] According to the ordering of each row of the structure-oriented lumped data, the data ordering of the yield data is adjusted so that the data in the yield data corresponds one-to-one with the crude oil molecules represented by the structure-oriented lumped data.
[0204] This embodiment takes into account that after the structure-oriented lumped data are re-sorted according to boiling point, the crude oil molecules represented by each row have changed. In order to ensure that the yield data can correspond one-to-one with the crude oil molecules represented by the structure-oriented lumped data when reading data from the database, the yield data is also re-sorted according to the new sorting of the structure-oriented lumped data.
[0205] In one embodiment of the present invention, a method for decompressing crude oil information is also provided, which is used to decompress the compressed data after obtaining the crude oil compressed data and read the crude oil information.
[0206] Specifically, Figure 5 As shown, the decompression method of crude oil information includes:
[0207] Step 510, obtaining compressed data of structure-oriented lumped data of crude oil from a database;
[0208] Step 520, traversing each line of the compressed data sequence line by line according to the first order, and splitting the field values in each line of the compressed data sequence into multiple data subsequences according to the second order in a non-overlapping pair splitting manner;
[0209] Step 530, obtaining a plurality of consecutive first field values according to the second field value in the data subsequence; the number of consecutive first field values is equal to the second field value;
[0210] Step 540, concatenating the plurality of consecutive first field values to obtain a reconstructed data subsequence;
[0211] Step 550, splicing the multiple reconstructed data subsequences of each row into a decompressed data sequence of the row according to the second order;
[0212] Step 560: Combine the decompressed data sequences of each row according to the first order to obtain the decompressed data of the structure-oriented lumped data.
[0213] After obtaining the compressed data, this embodiment analyzes the structure and compression process of the compressed data to split, reconstruct and identify the compressed crude oil molecular data to obtain decompressed data that can be used to read the crude oil information.
[0214] In some embodiments of this invention, the compressed data obtained includes a plurality of rows of compressed data sequences combined in a first order; the first order may be an order from front to back or from back to front according to the order of the rows of the structure-oriented lumped data, and the second order may be an order from front to back or from back to front according to the order of the columns of the structure-oriented lumped data, which is not limited in this invention. The first field value represents the compressed value, and the second field value represents the number of consecutive occurrences of the value before compression. The order of the first field value and the second field value is not limited in this invention, but the order of the first field value and the second field value should be consistent in each data subsequence.
[0215] In some embodiments of the present invention, the compressed SOL formula "[0,12,1,1,0,2,1,1,0,8]" of H2S is decompressed.
[0216] Split and reassemble from left to right, in pairs without overlapping. First, split to get data subsequence 1, the structure of data subsequence 1 is (0,12); continue to split, get data subsequence 2, the structure of data subsequence 2 is (1,1); continue to split, get data subsequence 3, the structure of data subsequence 3 is (0,2); continue to split, get data subsequence 4, the structure of data subsequence 4 is (1,1); continue to split, get data subsequence 5, the structure of data subsequence 5 is (0,8); then, reconstruct data subsequences 1-5 respectively. When reconstructing data subsequence 1, replace the first The number "0" is used as the first field value, and the second number "12" is used as the second field value. According to the second field value 12, the first field value 0 is copied to obtain 12 consecutive fields with the value of 0. After splicing them, we get the reconstructed data subsequence 1. The structure of the reconstructed data subsequence 1 is (0,0,0,0,0,0,0,0,0,0,0). In the same way, we get the structure of the reconstructed data subsequence 2 - number 1, the structure of the reconstructed data subsequence 3 (0,0), the structure of the reconstructed data subsequence 4 - number 1, and the structure of the reconstructed data subsequence 5 (0,0,0,0,0,0,0,0). Then the reconstructed data subsequences 1-5 are
[0217] Combining from left to right, we get the SOL formula of compressed H2S “[0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0]”. At this point, the decompressed data of the structure-oriented lumped data is obtained.
[0218] In some embodiments herein, Figure 6 As shown, in the decompression method, after obtaining the decompressed data of the structure-oriented lumped data, it also includes:
[0219] Step 610, determining whether the field in each row of the decompressed data represents a single element;
[0220] Step 620: If the answer is yes, the decompressed data is transposed.
[0221] This embodiment analyzes whether the fields in each row of the decompressed data represent a single element, so as to further determine whether the structure-oriented lumped data is transposed during compression. If transposed, it is necessary to perform another transposition after decompression to restore data that can facilitate reading of crude oil information.
[0222] In some embodiments of the present invention, the decompressed data obtained is shown in Table 1 below. At this time, it is determined whether the field in each row of the decompressed data represents a single element. It can be seen that some rows represent elements "A6", "me", "IH", "AA", and "NS", respectively, and each row represents a single element. At this time, the decompressed data is transposed to obtain Table 2, in which each row represents a different crude oil molecule, and different columns represent each element corresponding to the crude oil molecule; wherein, the first row of Table 1 and the first column of Table 2 represent the serial numbers of different crude oil molecules.
[0223] Table 1
[0224]
[0225] Table 2
[0226]
[0227] Based on the same inventive concept, this article also provides a crude oil information compression device, as described in the following embodiments. Since the principle of solving the problem by the crude oil information compression device is similar to the crude oil information compression method, the implementation of the crude oil information compression device can refer to the crude oil information compression method, and the repeated parts will not be repeated.
[0228] Specifically, Figure 7 As shown, the crude oil information compression device includes:
[0229] The first acquisition module 710 is used to acquire structure-oriented aggregated data of crude oil;
[0230] A first identification module 720, configured to traverse the structure-oriented aggregated data row by row according to a first order, and identify each field value in each row and its consecutive occurrence times according to a second order;
[0231] A first combining module 730, configured to combine the field values and their consecutive occurrence times in each row into a plurality of compressed data subsequences of the row according to a third order;
[0232] A first splicing module 740, configured to splice the multiple compressed data subsequences of each row into a compressed data sequence of the row according to the second order;
[0233] The second combining module 750 is used to combine the compressed data sequences of each row according to the first order to obtain the compressed data of the structure-oriented lumped data.
[0234] This embodiment analyzes the data composition of crude oil molecules represented by structure-oriented lumping, identifies field values and consecutive times in the structure-oriented lumped data, and processes the data in a preset order, thereby achieving compression of the structure-oriented lumped data.
[0235] Based on the same inventive concept, this article also provides a storage device for crude oil information, as described in the following embodiments. Since the principle of solving the problem by the storage device for crude oil information is similar to that of the storage method for crude oil information, the implementation of the storage device for crude oil information can refer to the storage method for crude oil information, and the repeated parts will not be repeated.
[0236] Specifically, Figure 8 As shown, the storage device for crude oil information includes:
[0237] The second acquisition module 810 is used to acquire the structure-oriented aggregated data of crude oil;
[0238] A second identification module 820, configured to traverse the structure-oriented aggregated data row by row according to the first order, and identify each field value in each row and its consecutive occurrence times according to the second order;
[0239] A third combining module 830 is used to combine the field values and their consecutive occurrence times in each row into a plurality of compressed data subsequences of the row according to a third order;
[0240] A second splicing module 840, configured to splice the multiple compressed data subsequences of each row into a compressed data sequence of the row according to the second order;
[0241] The fourth combining module 850 is used to combine the compressed data sequences of each row according to the first order to obtain the compressed data of the structure-oriented lumped data.
[0242] The third acquisition module 860 is used to obtain the yield data corresponding to the crude oil;
[0243] A relationship building module 870, for associating the yield data with the compressed data of the structure-oriented lumped data;
[0244] The storage module 880 is used to store the yield data, the compressed data of the structure-oriented lumped data and their association into a database.
[0245] When considering storing crude oil information, this embodiment separates the yield data and the structure-oriented lumped data for storage, so as to facilitate the compression of the crude oil molecular information by applying the compression method. By analyzing the data composition of the crude oil molecules represented by the structure-oriented lumped data, identifying the field values and the number of consecutive times in the structure-oriented lumped data, and processing the data in a preset order, the compression of the structure-oriented lumped data is achieved, and the high storage cost and transmission pressure of the crude oil information are reduced. By establishing an association relationship between the yield data and the compressed data of the structure-oriented lumped data, the yield data, the compressed data of the structure-oriented lumped data and their association relationship are stored in a database, which is convenient for subsequent data reading and analysis.
[0246] Based on the same inventive concept, this article also provides a crude oil information decompression device, as described in the following embodiments. Since the principle of the crude oil information decompression device to solve the problem is similar to the crude oil information decompression method, the implementation of the crude oil information decompression device can refer to the crude oil information decompression method, and the repeated parts will not be repeated.
[0247] Specifically, Fig. 9 As shown, the crude oil information decompression device includes:
[0248] A fourth acquisition module 910 is used to acquire compressed data of the structure-oriented lumped data of crude oil from a database; the compressed data includes a plurality of rows of compressed data sequences combined in a first order;
[0249] A splitting module 920 is used to traverse each line of the compressed data sequence line by line according to the first order, and split the field values in each line of the compressed data sequence into multiple data subsequences according to the second order in a non-overlapping pair splitting manner;
[0250] A copy module 930, configured to obtain a plurality of consecutive first field values according to the second field value in the data subsequence; the number of consecutive first field values is equal to the second field value;
[0251] A third splicing module 940 is used to splice the multiple consecutive first field values to obtain a reconstructed data subsequence;
[0252] A fourth splicing module 950, configured to splice the plurality of reconstructed data subsequences of each row into a decompressed data sequence of the row according to the second order;
[0253] The fifth combining module 960 is used to combine the decompressed data sequences of each row according to the first order to obtain the decompressed data of the structure-oriented lumped data.
[0254] After obtaining the compressed data, this embodiment analyzes the structure and compression process of the compressed data to split, reconstruct and identify the compressed crude oil molecular data to obtain decompressed data that can be used to read the crude oil information.
[0255] The compression, storage, and decompression methods, devices, and equipment for crude oil information provided in this article analyze the data composition of crude oil molecules represented by structure-oriented lumped data, identify the field values and consecutive times in the structure-oriented lumped data, and process the data in a preset order, thereby realizing the compression of crude oil molecule files. By storing the compressed crude oil molecule files and yield data in correspondence, the storage cost of the crude oil molecule files is reduced and the transmission pressure is reduced. When reading, the compressed crude oil molecule data is split, reconstructed, and identified to obtain decompressed data.
[0256] In order to more clearly illustrate the effect of the technical solution of this paper, a specific experimental data is used to explain it in detail below. Based on multiple sets of molecular level crude oil feed data, actual measurements are conducted, and Table 3 shows the three methods used in this paper.
[0257] Table 3
[0258]
[0259] Table 4 is a comparison of the data size after compression by different methods in this paper, and the unit of file size is bytes.
[0260] Table 4
[0261]
[0262] Table 5 shows the compression ratios of different methods in this paper.
[0263] Table 5
[0264]
[0265] Table 6 shows the time consumption of different methods in this paper for every 100 compressions.
[0266] Table 6
[0267]
[0268] Through experiments, the method provided in this paper can effectively compress the original file size of crude oil information, and the compression effect of method 1, method 2, and method 3 is gradually improved.
[0269] In one embodiment of the present invention, a computer device is also provided for implementing the method described in any of the above embodiments, such as Fig.10 The schematic diagram of the structure of the node of the embodiment of this article is shown. In this embodiment, the structure of the node in the side chain network and the node in the main chain network is described, which may include a relay node, a decision maker node or other functional nodes. The node is referred to as a computer device in this embodiment. The computer device 1002 may include one or more processors 1004, such as one or more central processing units (CPUs), and each processing unit may implement one or more hardware threads. The computer device 1002 may also include any memory 1006, which is used to store any kind of information such as code, settings, data, etc. Non-limiting, for example, the memory 1006 may include any one or more combinations of the following: any type of RAM, any type of ROM, flash memory device, hard disk, optical disk, etc. More generally, any memory can use any technology to store information. Further, any memory can provide volatile or non-volatile retention of information. Further, any memory can represent a fixed or removable component of the computer device 1002. In one case, when the processor 1004 executes an associated instruction stored in any memory or a combination of memories, the computer device 1002 can perform any operation of the associated instruction. The computer device 1002 also includes one or more drive mechanisms 1008 for interacting with any storage, such as a hard disk drive mechanism, an optical disk drive mechanism, etc.
[0270] The computer device 1002 may also include an input / output module 1010 (I / O) for receiving various inputs (via input device 1012) and for providing various outputs (via output device 1014). A specific output mechanism may include a presentation device 1016 and an associated graphical user interface (GUI) 1018. In other embodiments, the input / output module 1010 (I / O), input device 1012, and output device 1014 may not be included, and the computer device 1002 may be used as a computer device in a network. The computer device 1002 may also include one or more network interfaces 1020 for exchanging data with other devices via one or more communication links 1022. One or more communication buses 1024 couple the components described above together.
[0271] The communication link 1022 may be implemented in any manner, for example, through a local area network, a wide area network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. The communication link 1022 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc. governed by any protocol or combination of protocols.
[0272] Corresponds to Figure 1-Figure 6 The method in this article also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are executed.
[0273] The embodiment of the present invention also provides a computer readable instruction, wherein when the processor executes the instruction, the program therein causes the processor to execute the following Figures 1 to 6 The method shown.
[0274] It should be understood that in the various embodiments of this document, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this document.
[0275] It should also be understood that in the embodiments of this article, the term "and / or" is only a description of the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0276] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this article.
[0277] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0278] In the several embodiments provided herein, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or can be electrical, mechanical or other forms of connection.
[0279] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of this article.
[0280] In addition, each functional unit in each embodiment of this invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
[0281] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this article is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of this article. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0282] Specific embodiments are used in this article to illustrate the principles and implementation methods of this article. The description of the above embodiments is only used to help understand the methods and core ideas of this article. At the same time, for general technicians in this field, according to the ideas of this article, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on this article.
Claims
1. A method for compressing crude oil information, characterized in that: include: Obtain structure-oriented aggregated data of crude oil; In the structure-oriented lumped data, different rows represent different crude oil molecules, and the field set in each row represents the constituent elements of the corresponding crude oil molecule; Obtaining the boiling point of the crude oil molecule corresponding to the structure-oriented lumped data; sorting the rows in the structure-oriented lumped data according to the boiling points so that the rows represented by crude oil molecules with similar boiling points in the structure-oriented lumped data are concentrated; Transposing the structure-oriented lumped data; Traversing the structure-oriented aggregated data row by row according to the first order, and identifying each field value in each row and the number of consecutive occurrences thereof according to the second order; Combining each field value and its consecutive occurrence number in each row into multiple compressed data subsequences of the row according to the third order; splicing the multiple compressed data subsequences of each row into a compressed data sequence of the row according to the second order; The compressed data sequences of each row are combined according to the first order to obtain the compressed data of the structure-oriented lumped data.
2. A method for storing crude oil information, characterized in that: include: Obtain structure-oriented aggregated data of crude oil; In the structure-oriented lumped data, different rows represent different crude oil molecules, and the field set in each row represents the constituent elements of the corresponding crude oil molecule; Obtaining the boiling point of the crude oil molecule corresponding to the structure-oriented lumped data; sorting the rows in the structure-oriented lumped data according to the boiling points so that the rows represented by crude oil molecules with similar boiling points in the structure-oriented lumped data are concentrated; Transposing the structure-oriented lumped data; Traversing the structure-oriented aggregated data row by row according to the first order, and identifying each field value in each row and the number of consecutive occurrences thereof according to the second order; Combining each field value and its consecutive occurrence number in each row into multiple compressed data subsequences of the row according to the third order; splicing the multiple compressed data subsequences of each row into a compressed data sequence of the row according to the second order; Combining compressed data sequences of each row according to the first order to obtain compressed data of the structure-oriented lumped data; Obtaining yield data corresponding to the crude oil; Establishing an association relationship between the yield data and the compressed data of the structure-oriented lumped data; The yield data, the compressed data of the structure-oriented lumped data and their association are stored in a database.
3. The storage method according to claim 2, characterized in that: Before establishing the association relationship between the yield data and the compressed data of the structure-oriented lumped data, the method further includes: According to the ordering of each row of the structure-oriented lumped data, the data ordering of the yield data is adjusted so that the data in the yield data corresponds one-to-one with the crude oil molecules represented by the structure-oriented lumped data.
4. A method for decompressing crude oil information, characterized in that: include: Obtaining compressed data of structure-oriented lumped data of crude oil from a database; the compressed data comprises a plurality of rows of compressed data sequences combined in a first order; Traversing each line of the compressed data sequence line by line according to the first order, and splitting the field values in each line of the compressed data sequence into multiple data subsequences according to the second order in a non-overlapping pair splitting manner; Obtain a plurality of consecutive first field values according to the second field value in the data subsequence; the number of consecutive first field values is equal to the second field value; splicing the multiple consecutive first field values to obtain a reconstructed data subsequence; splicing the multiple reconstructed data subsequences of each row into a decompressed data sequence of the row according to the second order; Combining the decompressed data sequences of each row according to the first order to obtain decompressed data of the structure-oriented lumped data; Determining whether the fields in each row of the decompressed data represent a single element; If the judgment is yes, the decompressed data is transposed.
5. A crude oil information compression device, characterized in that: For implementing the compression method according to claim 1, the compression device comprises: A first acquisition module is used to acquire structure-oriented lumped data of crude oil; in the structure-oriented lumped data, different rows represent different crude oil molecules, and a set of fields in each row represents constituent elements of the corresponding crude oil molecule; A first identification module, configured to traverse the structure-oriented aggregated data row by row according to a first order, and identify each field value in each row and its consecutive occurrence times according to a second order; A first combining module, used for combining each field value in each row and its consecutive occurrence times into a plurality of compressed data subsequences of the row according to a third order; A first splicing module, used for splicing the multiple compressed data subsequences of each row into a compressed data sequence of the row according to the second order; The second combining module is used to combine the compressed data sequences of each row according to the first order to obtain the compressed data of the structure-oriented lumped data.
6. A storage device for crude oil information, characterized in that: For implementing the storage method according to claim 2, the storage device comprises: The second acquisition module is used to acquire structure-oriented lumped data of crude oil; in the structure-oriented lumped data, different rows represent different crude oil molecules, and the field set in each row represents the constituent elements of the corresponding crude oil molecule; A second identification module is used to traverse the structure-oriented lumped data row by row according to the first order, and identify each field value in each row and the number of consecutive occurrences thereof according to the second order; A third combining module, used for combining the field values and the consecutive occurrence times in each row into a plurality of compressed data subsequences of the row according to a third order; A second splicing module, used for splicing the multiple compressed data subsequences of each row into a compressed data sequence of the row according to the second order; a fourth combining module, configured to combine the compressed data sequences of each row according to the first order to obtain compressed data of the structure-oriented lumped data; A third acquisition module is used to obtain the yield data corresponding to the crude oil; A relationship building module, used for associating the yield data with the compressed data of the structure-oriented lumped data; The storage module is used to store the yield data, the compressed data of the structure-oriented lumped data and their association into a database.
7. A crude oil information decompression device, characterized in that: Used to implement the decompression method according to claim 4, the decompression device comprises: A fourth acquisition module is used to acquire compressed data of the structure-oriented lumped data of crude oil from a database; the compressed data includes a plurality of rows of compressed data sequences combined in a first order; A splitting module, used for traversing each line of the compressed data sequence line by line according to a first order, and splitting the field values in each line of the compressed data sequence into multiple data subsequences according to a second order in a non-overlapping pair splitting manner; a copy module, configured to obtain a plurality of consecutive first field values according to the second field value in the data subsequence; the number of consecutive first field values being equal to the second field value; A third splicing module, used for splicing the multiple consecutive first field values to obtain a reconstructed data subsequence; a fourth splicing module, configured to splice the plurality of reconstructed data subsequences of each row into a decompressed data sequence of the row according to the second order; A fifth combining module is used to combine the decompressed data sequences of each row according to the first order to obtain the decompressed data of the structure-oriented lumped data.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 4 is implemented.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor of a computer device, the method according to any one of claims 1 to 4 is implemented.
10. A computer program product, comprising a computer program, characterized in that: When the computer program is executed by a processor of a computer device, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Drug data processing method and device, electronic equipment and storage medium
CN115206460A
Information processing program, information processing method, and information processing device
CN115668385A