Movatterモバイル変換


[0]ホーム

URL:


CN113609164A - Railway four-electricity digital engineering model creating and storing method based on NoSQL database - Google Patents

Railway four-electricity digital engineering model creating and storing method based on NoSQL database
Download PDF

Info

Publication number
CN113609164A
CN113609164ACN202110927846.XACN202110927846ACN113609164ACN 113609164 ACN113609164 ACN 113609164ACN 202110927846 ACN202110927846 ACN 202110927846ACN 113609164 ACN113609164 ACN 113609164A
Authority
CN
China
Prior art keywords
model
nosql database
digital engineering
digital
engineering model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110927846.XA
Other languages
Chinese (zh)
Inventor
武文斌
马强
董小兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Railway First Survey and Design Institute Group Ltd
Original Assignee
China Railway First Survey and Design Institute Group Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Railway First Survey and Design Institute Group LtdfiledCriticalChina Railway First Survey and Design Institute Group Ltd
Priority to CN202110927846.XApriorityCriticalpatent/CN113609164A/en
Publication of CN113609164ApublicationCriticalpatent/CN113609164A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明为一种基于NoSQL数据库的铁路四电数字工程模型创建及存储方法,本发明将数字模型与附属信息进行进一步融合,实现铁路四电数字工程在实际工程全生命周期的应用。包括以下步骤:确定NoSQL数据库的逻辑结构,进行集合、文档、字段、键值四级存储方式的确定;定义模型的片段存储大小,确定分割较大的数字工程模型的基本方法和手段;在NoSQL数据库下使用JSON格式将数字工程模型的属性信息进行格式定义,并存入NoSQL数据库中;建立存储引擎索引关系,将存入NoSQL数据库的数字工程模型和数字工程模型的属性信息进行关联处理;实现四电数字工程模型结果的插入、更新、删除、查询性能,最终生成的NoSQL数据库的数字工程模型数据库为所要创建及存储的模型的最终成果。

Figure 202110927846

The invention is a method for creating and storing a digital engineering model of railway four electrics based on NoSQL database. The invention further integrates the digital model and auxiliary information to realize the application of railway four electric digital engineering in the whole life cycle of actual engineering. It includes the following steps: determine the logical structure of the NoSQL database, and determine the four-level storage mode of collection, document, field, and key value; define the fragment storage size of the model, and determine the basic methods and means for dividing larger digital engineering models; in NoSQL The attribute information of the digital engineering model is defined in the JSON format under the database and stored in the NoSQL database; the storage engine index relationship is established to associate the digital engineering model stored in the NoSQL database with the attribute information of the digital engineering model; realize The insert, update, delete and query performance of the results of the four electric digital engineering models, and the digital engineering model database of the NoSQL database finally generated is the final result of the model to be created and stored.

Figure 202110927846

Description

Railway four-electricity digital engineering model creating and storing method based on NoSQL database
The technical field is as follows:
the invention belongs to the technical field of railway four-electric engineering informatization and railway four-electric digital engineering creation and storage, and relates to a railway four-electric digital engineering model creation and storage method based on a NoSQL database.
Background art:
in recent ten years, with the rapid development of digital information technology, the entire industry is actively exploring digital transformation. The BIM technology in the building industry is taken as a core technology of digital transformation, and is a core technology support for promoting the digital transformation and upgrading of enterprises by being fused with other digital technologies. The railway digital engineering model is used as an information carrier, engineering information, management information and resource information of railway engineering in a whole life cycle can be integrated in a unified model, service and information isolation in design, construction and operation and maintenance stages is broken, and integrated and whole-process application is realized.
The creation and storage links of the railway four-electricity digital engineering are important links for digitalizing the physical engineering. Under the framework of a railway digital engineering certification system, a railway four-electric digital engineering creation and storage technical system and application implementation are researched, the high-quality development of railway industry digital engineering services is further promoted, digital information is better integrated into the full life cycle of the railway industry, the universality and reliability of a railway four-electric digital equipment information model and a digital engineering information model are ensured, and further, the railway four-electric digital engineering service is fully verified in the railway four-electric digital engineering application.
The invention content is as follows:
the invention aims to provide a railway four-electricity digital engineering model establishing and storing method based on a NoSQL database.
In order to achieve the purpose, the invention adopts the technical scheme that:
a railway four-electricity digital engineering model establishing and storing method based on a NoSQL database is characterized in that: the method comprises the following steps:
s1, determining a logic structure of a NoSQL database, and determining four-level storage modes of a set, a document, a field and a key value;
s2, defining segment storage size of a railway four-electricity digital engineering model, and determining a basic method and means for segmenting a larger digital engineering model;
s3, carrying out format definition on the attribute information of the digital engineering model by using a JSON format under the NoSQL database, and storing the attribute information into the NoSQL database;
s4, establishing a storage engine index relation, and performing association processing on the digital engineering model stored in the NoSQL database and the attribute information of the digital engineering model;
s5, the insertion, updating, deletion and query performance of the four-electric digital engineering model result is realized, and the finally generated digital engineering model database of the NoSQL database is the final result of the model to be created and stored.
In step S1: determining the logical structure of a NoSQL database, wherein the NoSQL database consists of a set of sets, each set consists of any number of documents, each document consists of a series of custom fields, each field is a main key-value pair, wherein key is the name of the field, and value is the corresponding attribute value.
In step S2: for query quick response, the digital engineering model uses GridFS to segment a large file object into multiple small file segments, chunk, of 256 k/file segments, each of which will be stored as one document of the NoSQL database in a set of file segments.
In step S3: the basic data structure of the railway four-electricity digital engineering model under the NoSQL database is key: value, and is defined as follows:
{Guid:Object,
PGuid:Object,
Attribute:["property","geometry","compose","position",],}
in step S4: mapping the digital engineering model stored in the NoSQL database and the attribute information of the digital engineering model; annotating nodes and relationships with data attributes; the hierarchical relationship is unified in the document XML and JSON data model; the focus of the engineering digital model data model changes with the type of each NoSQL database, and the physical model and the logical data model are associated and mapped.
In step S6: establishing a storage engine index relationship, and establishing a unique index GUID field and a field of an association relation PGUID under the default condition; if the digital engineering model is divided into N segments, assigning the fields of the PGUID of the N segments to be the same unique identifier; a limited number of indexes are established, each index definition needs 8KB of space, and basic operation index relations of Update, Insert, Select, delete and the like are defined and realized.
Compared with the prior art, the invention has the following advantages and effects:
1. the railway four-electricity digital engineering is based on the NoSQL database, the relational characteristic of a complex relational database is removed, direct incidence relation does not exist among data, the expansion is very easy, and the expandable capability is brought on the level of architecture.
2. The invention has simple structure, realizes large data volume and high read-write performance, and particularly shows more obvious performance under the digital engineering of large data volume.
3. The invention establishes and stores a railway four-electrical engineering digital model based on NoSQL database technology, and stores the digital model by Key values (Key-Value). The storage process uses hash tables, each hash table has a specific Key and a pointer to point to specific data, and the Key-Value data model structure has the advantages of simplicity and easiness in deployment for an application system, and the digital engineering model has higher coupling degree with the attached information.
Description of the drawings:
FIG. 1 is a diagram of the definition and creation of railroad four-wire digital engineering and attribute information;
fig. 2 is a fragmented digital analog data diagram of railway four-electric digital engineering.
The specific implementation mode is as follows:
in order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The NoSQL database is a database technology newly developed in the process of dealing with big data problems, and compared with the traditional relational database, the NoSQL database data model is widely used due to the advantages of flexibility, high response speed, strong expandability and the like. In the field of railway four-electricity digital engineering, a digital engineering model and associated underlying structure data are created and stored, and the digital engineering model and the associated underlying structure data are core technologies for carrying out four-electricity digital engineering full-life-cycle application. The invention defines and stores the railway four-electric digital engineering model and related data in the NoSQL database, the NoSQL database can provide all functions required by meeting the requirements of high-performance time series application programs, and can rapidly analyze the model and present time series data to form the technical requirements required by delivering the time series application programs.
The invention comprises the following steps:
s1, determining a logic structure of the NoSQL database, and mainly determining four-level storage modes of a set, a document, a field and a key value;
s2, defining segment storage size of a railway four-electricity digital engineering model, and determining a basic method and means for segmenting a larger digital engineering model;
s3, carrying out format definition on the attribute information of the digital engineering model by using a JSON format under the NoSQL database, and storing the attribute information into the NoSQL database;
s4, establishing a storage engine index relation, and performing association processing on the digital engineering model stored in the NoSQL database and the attribute information of the digital engineering model;
s5, the insertion, updating, deletion and query performance of the four-electric digital engineering model result is realized, and the finally generated digital engineering model database of the NoSQL database is the final result of the model to be created and stored.
The steps are as follows:
in step S1: the logical structure of a NoSQL database is determined, wherein the NoSQL database consists of a group of collections (collections), each collection consists of any number of documents (documents), and each Document consists of a series of custom fields (fields), each Field is a main key-value pair (key-value pair), wherein key is the name of the Field, and value is the corresponding attribute value.
In step S2: to query for fast response, the digital engineering model uses GridFS to segment a large file object into multiple small chunks (file segments), typically 256 k/each, which will be stored as one document (document) of the NoSQL database in a chunk collection.
In step S3: the basic data structure of the railway four-electricity digital engineering model under the NoSQL database is (key: value), and is specifically defined as follows:
{Guid:Object,
PGuid:Object,
Attribute:["property","geometry","compose","position",],}
in step S4: and mapping the digital engineering model stored in the NoSQL database and the attribute information of the digital engineering model. The consistency of the relationships between the four-wire digital engineering digital model and the attribute data is concerned, so that the nodes and the relationships are annotated by using the data attributes, and the hierarchical relationships are unified in the document (XML and JSON) data model. The focus of the engineering digital model data model changes with the type of each NoSQL database and the physical model and logical data model are associated and mapped.
In step S6: establishing a storage engine index relationship, creating a unique index GUID field and a field of an incidence relation PGUID under the default condition in order to improve the query performance of a digital model field, and if the digital engineering model is divided into N segments, assigning the fields of the PGUIDs of the N segments to be the same unique identifier. Because indexes occupy a large amount of memory and also occupy a disk, a limited number of indexes need to be established, and preferably no duplicate indexes need to be established, each index defines the space of 8KB, and mainly defines and realizes the basic operation index relations of Update, Insert, Select, delete and the like.
Example (b):
the method comprises the following steps: and carrying out logic structure definition on the NoSQL database, and establishing and connecting the NoSQL database.
Step two: the segment storage size of the railway four-electricity digital engineering model is defined, and a basic method and a means for segmenting the digital engineering model with larger size are determined. It is specific to create two sets in the current database: the method comprises the steps of collecting fs.files and fs.chunks, wherein the fs.files and the fs.chunks are collected, and the fs.chunks are used for recording basic information such as names, creation time and types of digital engineering models; the latter block stores the binary data of the digital engineering model (and supports encrypting the binary data), and there is a "files _ id" key in "fs.chunks", which corresponds to "Guid" of "fs.files", and there is a key (int type) in "fs.chunks", which indicates the sequence of these blocks. The digital engineering model can be stored through the two sets. The digital analog data fragment after the fragmentation processing of the railway four-electric digital engineering is shown in figure 1.
Step three: and (3) carrying out format definition on the attribute information of the digital engineering model by using a JSON format under a NoSQL database. The definition and creation of the railway four-electric digital engineering and attribute information are shown in fig. 2.
The basic information is defined as follows:
{"Guid":ObjectId("51707CAA0-C83A-4288-94FF-CF3358A0F754"),
"project name" "high speed railway",
"project name" "Signal building communication machine room",
"Major": communication engineering ",
"Creation Date":"2021-5-31"}
the digital engineering entity attribute adopts embedded relation definition as follows
{"Guid":ObjectId("02D1A084-EC28-4909-ACA6-27288968BED1"),
"Entity":"987654321",
Attribute:["property","geometry","compose","position",],}
The logical relationship between the digital engineering entities adopts a reference formula as follows:
{"Guid":ObjectId("23A4478B-AB5C-4541-A832-B0C19BE4D076"),
"LogicalConnection":[
ObjectId("1707CAA0-C83A-4288-94FF-CF3358A0F754"),
ObjectId("1A18C185-B604-4221-BD1A-A8E521CF073A")]}
step four: and establishing an index relation between the digital engineering model and the attribute information of the digital engineering model in the NoSQL database. The implementation method comprises the following steps:
(1) ({ "Entity":1}), an index is created in the name key of the user set, where 1 represents the direction of creating the index and can take the values of 1 and-1.
(2) ({ "Entity":1, "Attribute":1}), a joint index of Entity and Attribute Attribute is created.
Step five: and (3) realizing the performance interface of inserting, updating, deleting and inquiring the four-electric digital engineering model result under the NoSQL database, wherein the finally generated digital engineering model database of the NoSQL database is the final result of the model to be created and stored by the program model.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structural changes made by using the contents of the specification and the drawings of the present invention should be included in the scope of the present invention.

Claims (6)

1. A railway four-electricity digital engineering model establishing and storing method based on a NoSQL database is characterized in that: the method comprises the following steps:
s1, determining a logic structure of a NoSQL database, and determining four-level storage modes of a set, a document, a field and a key value;
s2, defining segment storage size of a railway four-electricity digital engineering model, and determining a basic method and means for segmenting a larger digital engineering model;
s3, carrying out format definition on the attribute information of the digital engineering model by using a JSON format under the NoSQL database, and storing the attribute information into the NoSQL database;
s4, establishing a storage engine index relation, and performing association processing on the digital engineering model stored in the NoSQL database and the attribute information of the digital engineering model;
s5, the insertion, updating, deletion and query performance of the four-electric digital engineering model result is realized, and the finally generated digital engineering model database of the NoSQL database is the final result of the model to be created and stored.
2. The NoSQL database-based railway quadcoptric digital engineering model creation and storage method of claim 1, wherein:
in step S1: determining the logical structure of a NoSQL database, wherein the NoSQL database consists of a set of sets, each set consists of any number of documents, each document consists of a series of custom fields, each field is a main key-value pair, wherein key is the name of the field, and value is the corresponding attribute value.
3. The NoSQL database-based railway quadcoptric digital engineering model creation and storage method of claim 1, wherein:
in step S2: for query quick response, the digital engineering model uses GridFS to segment a large file object into multiple small file segments, chunk, of 256 k/file segments, each of which will be stored as one document of the NoSQL database in a set of file segments.
4. The NoSQL database-based railway quadcoptric digital engineering model creation and storage method of claim 1, wherein:
in step S3: the basic data structure of the railway four-electricity digital engineering model under the NoSQL database is key: value, and is defined as follows:
{Guid:Object,
PGuid:Object,
Attribute:["property","geometry","compose","position",],}
5. the NoSQL database-based railway quadcoptric digital engineering model creation and storage method of claim 1, wherein:
in step S4: mapping the digital engineering model stored in the NoSQL database and the attribute information of the digital engineering model; annotating nodes and relationships with data attributes; the hierarchical relationship is unified in the document XML and JSON data model; the focus of the engineering digital model data model changes with the type of each NoSQL database, and the physical model and the logical data model are associated and mapped.
6. The NoSQL database-based railway quadcoptric digital engineering model creation and storage method of claim 1, wherein:
in step S6: establishing a storage engine index relationship, and establishing a unique index GUID field and a field of an association relation PGUID under the default condition; if the digital engineering model is divided into N segments, assigning the fields of the PGUID of the N segments to be the same unique identifier; a limited number of indexes are established, each index definition needs 8KB of space, and basic operation index relations of Update, Insert, Select, delete and the like are defined and realized.
CN202110927846.XA2021-08-132021-08-13Railway four-electricity digital engineering model creating and storing method based on NoSQL databasePendingCN113609164A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110927846.XACN113609164A (en)2021-08-132021-08-13Railway four-electricity digital engineering model creating and storing method based on NoSQL database

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110927846.XACN113609164A (en)2021-08-132021-08-13Railway four-electricity digital engineering model creating and storing method based on NoSQL database

Publications (1)

Publication NumberPublication Date
CN113609164Atrue CN113609164A (en)2021-11-05

Family

ID=78340596

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110927846.XAPendingCN113609164A (en)2021-08-132021-08-13Railway four-electricity digital engineering model creating and storing method based on NoSQL database

Country Status (1)

CountryLink
CN (1)CN113609164A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109783886A (en)*2018-12-252019-05-21国网浙江省电力有限公司经济技术研究院Emerging system and method for GIM model and IFC model
CN112948427A (en)*2021-04-152021-06-11平安国际智慧城市科技股份有限公司Data query method, device, equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109783886A (en)*2018-12-252019-05-21国网浙江省电力有限公司经济技术研究院Emerging system and method for GIM model and IFC model
CN112948427A (en)*2021-04-152021-06-11平安国际智慧城市科技股份有限公司Data query method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杜文晓: "古建筑BIM的存储与显示", 中国优秀硕士学位论文全文数据库工程科技Ⅱ辑, vol. 2020, no. 2, 15 February 2020 (2020-02-15), pages 038 - 119*

Similar Documents

PublicationPublication DateTitle
CN111259006B (en) A general integrated physical aggregation, organization, release and service method and system for distributed heterogeneous data
CN102110146B (en)Key-value storage-based distributed file system metadata management method
CN104021132B (en)Master/slave data storehouse data consistency verifies backup method and its system
CN102467521B (en)Easily-extensible multi-level classification search method and system
CN104239511B (en) A MongoDB-oriented user space file system implementation method
CN102033924B (en) A kind of data storage method and system
CN105389367B (en)The multilevel distributed storage method of grid graph multi-time Scales based on Mongo databases
CN102799679B (en)Hadoop-based massive spatial data indexing updating system and method
CN111522791B (en)Distributed file repeated data deleting system and method
CN100498781C (en)Method for storing metadata of logic document system by adhesion property
CN111259082B (en) A method to realize full data synchronization in a big data environment
CN105808753A (en)Regional digital resource system
CN102693174B (en)Object broker database constraint-oriented backup method
CN117971991A (en) Data storage method, query method, database and medium based on BIM
CN111831696A (en) Asset Information Storage Method and System Based on Graph Theory
WO2025124207A1 (en)Improved method for automatically creating and updating data synchronization wide table structure
CN115905313A (en)MySQL big table association query system and method
CN113935196A (en)Simulation modeling method
CN111427867B (en)Model persistence method based on hybrid storage
CN116860860B (en)All-engineering data streaming method and equipment based on substation electrical equipment model
CN113609164A (en)Railway four-electricity digital engineering model creating and storing method based on NoSQL database
TWI385543B (en) Data Synchronization System and Method for Establishing Mediation Data in Directory Service Format
CN118035200A (en) Distributed file system metadata management method, device and equipment
CN116340293A (en) A data processing method, device, equipment and readable storage medium
CN115017161A (en)Method, device and application for updating tree data structure by combining virtual DOM

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20211105


[8]ページ先頭

©2009-2025 Movatter.jp