BIM data storage method based on graph database
By using a graph database to store component information and relationship information in BIM data, and performing faceted processing, the problems of inaccurate and low-efficiency BIM data storage are solved, efficient query and management are achieved, and the terminal data display capability is improved.
Patent Information
- Application Number
- CN202410737266.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-10
AI Technical Summary
Existing BIM data storage methods have problems such as inaccurate data storage, low efficiency, and inconvenience in long-term storage and query, especially in multi-party collaboration and data management.
A graph database is used to store BIM data. By extracting component information, coordinate information and relationship information, and processing it with a patching algorithm, lightweight data is formed and stored in the component information table, relationship information table and lightweight information table of the graph database to provide The API interface is used for BIM lightweight engine display.
It improves the query speed of BIM data and the terminal data display capability, and realizes efficient query and management on the premise that complete information can be checked.
Smart Images

Figure CN118626682A
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of database storage and BIM technology, and in particular to a BIM data storage method based on a graph database. Background Art
[0002] BIM (building information modeling) technology is based on various relevant information data of construction projects. It simulates the real information of buildings through digital information simulation. Through three-dimensional building information BIM, it realizes functions such as project supervision, property management, equipment management, digital processing, and engineering management.
[0003] However, the existing platform data files in the same industry are generally stored in the form of files. When storing BIM data, there may be inaccurate data storage, which makes it difficult to ensure the efficiency and reliability of BIM data storage. At present, BIM data is often stored in a physical file, which contains BIM information, engineering information, component attribute information, etc. BIM files and other materials are mainly stored by relevant personnel within the project themselves, stored in personal computer hard drives or mobile hard drives, which is not convenient for long-term storage and inconvenient for companies to query and read. This will result in a huge amount of file data, which is inconvenient to view and manage. Summary of the invention
[0004] In view of the above technical problems, the present invention provides a BIM data storage method based on a graph database, so that BIM can improve the speed of querying BIM related information on the premise that complete information is available, and improve the display capability of terminal BIM and other data.
[0005] To achieve the above object, the technical solution adopted by the present invention is:
[0006] A BIM data storage method based on a graph database, comprising:
[0007] Extract the component information, coordinate information and geometric space information in the local memory BIM data and store them in the component information table of the drawing database to obtain the component related information including the component ID;
[0008] Extracting the relationship information in the local memory BIM data and storing it in the relationship information table of the graph database; the relationship information includes the relationship between components and attributes and the relationship between components;
[0009] According to the component-related information and the relationship between the component and the attribute, query and traverse the relevant component attributes and attribute set information in the local memory BIM data, form attribute information with the component ID as the index and store it in the attribute information table of the graph database;
[0010] According to the component-related information and the relationship between components, query and traverse the local memory BIM data, reorganize into BIM structure tree information, form BIM component structure tree information with component ID as index and store it in the component structure tree table of the graph database;
[0011] According to the component related information, a patching algorithm is performed to form BIM lightweight data, and the BIM lightweight data is stored in a lightweight information table of a graph database to complete the storage.
[0012] Among them, the following steps are also included: encapsulating the lightweight information table, component structure information table and attribute information table of the graph database into an API interface for display by the BIM lightweight engine.
[0013] Among them, according to the component related information, the geometric information is processed by a patchwork algorithm to form BIM lightweight data.
[0014] The attribute information table includes a related component attribute information table and an attribute set information table.
[0015] The method for acquiring the BIM data in the local memory is as follows: the server receives the BIM data and stores the received BIM data in the local memory.
[0016] Among them, the BIM data received by the server is generated by the user through the BIM parsing software.
[0017] Compared with the prior art, the technical solution of the present invention has at least the following beneficial technical effects:
[0018] 1. In order to improve the BIM data storage problem, the present invention adopts the storage method of graph database. Due to the large amount of data and complex data structure of BIM data, when using relational database, there is a great demand for multi-table joint query and low query efficiency. Therefore, graph database in non-relational database is selected because it has the advantages of high read and write performance of non-relational database, no need to pre-set the structure of the table so that the data is not coupled and easy to expand, and query language that follows SQL syntax can provide efficient multi-table joint query. Graph database is more suitable for data relationship mining than other non-relational databases.
[0019] 2. In the present invention, a lightweight information table of a BIM lightweight data storage diagram database is formed according to a BIM patching algorithm, and finally digital-analog separation is achieved. The method of the present invention enables BIM to improve the speed of querying BIM-related information on the premise that complete information can be checked, and improves the display capability of terminal BIM and other data.
[0020] 3. In the preferred implementation of the present invention, the lightweight information table, component structure information table and attribute information table of the graph database are encapsulated into an API interface for display by the BIM lightweight engine, which is clearer, more intuitive, more convenient and faster. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0022] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.
[0023] Figure 1 It is a schematic diagram of the interaction between BIM data storage and graph database provided by the present invention.
[0024] Figure 2 It is a flow chart of a method for storing BIM data into a graph database provided by the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0026] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "provided with", "connected", etc. should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, etc. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0028] In order to improve the BIM data storage problem, the present invention adopts the storage method of graph database. In the selection of database, the following analysis is made:
[0029] Databases are divided into relational databases and non-relational databases.
[0030] Among them, for relational databases, BIM reduces complex data structures to simple binary relationships (i.e., two-dimensional table forms). In relational databases, almost all operations on data are based on one or more relational tables, and database management is achieved by classifying, merging, connecting, or selecting these related tables.
[0031] Non-relational databases include key-value storage databases, column-oriented databases, document-oriented databases, and graph databases.
[0032] Specifically, the key-value database is similar to the hash table used in traditional languages. The database can be added, queried, or deleted through the key. Because the key primary key is used for access, high performance and scalability are achieved. The key-value database mainly uses a hash table, which has a specific key and a pointer to specific data. The advantages of Key / valueBIM for IT systems are simplicity, easy deployment, and high concurrency. Typical products: Memcached, Redis, MemcacheDB; column storage databases store data in column families. A column family stores related data that is often queried together. For example, humans often query a person's name and age instead of salary. In this case, name and age will be placed in one column family, and salary will be placed in another column family. Typical products: Cassandra, HBase; Document databases are inspired by Lotus Notes office software, and they are similar to the first key-value database. This type of data BIM is a versioned document. Semi-structured documents are stored in a specific format, such as JSON. Document databases can be seen as an upgraded version of key-value databases, allowing nested keys and values. Document databases are more efficient than key-value databases in terms of query efficiency. Document-oriented databases store data in the form of documents. Each document is a self-contained data unit, a collection of a series of data items. Each data item has a noun and a corresponding value. The value can be a simple data type, such as a string, a number, and a date, or a complex type, such as an ordered list and an associated object. The smallest unit of data storage is a document. The document attributes stored in the same table can be different. Data can be stored in multiple forms such as XML, JSON, or JSONB. Typical products: MongoDB, CouchDB; Graph databases allow data to be stored in the form of graphs. Entities are treated as vertices, and the relationships between entities are treated as edges. For example, if there are three entities, Steve Jobs, Apple, and Next, there will be two "Founded by" edges connecting Apple and Next to Steve Jobs. Typical products: Neo4J;
[0033] Due to the large amount of data and complex data structure of BIM data, when using a relational database, there is a great demand for multi-table joint query and the query efficiency is low. Therefore, the present invention selects a graph database among non-relational databases because it has the advantages of high read and write performance of non-relational databases, no data coupling, and easy expansion, as well as a query language that follows SQL syntax, which can provide efficient multi-table joint query needs.
[0034] On the basis of the above analysis, the present invention provides a BIM data storage method based on a graph database. Since BIM data is often stored in a file format, it is not convenient for multi-party collaboration and long-term storage and viewing. In order to improve the BIM data storage problem, the present invention adopts the storage method of a graph database for BIM data, extracts the component information, coordinate information and geometric space information in the BIM data and stores them in the component information table of the graph database, and extracts the remaining engineering data information, including relationship information and attribute information, first stores the relationship information in the relationship information table of the graph database, and then associates the attribute information and attribute set information with the component according to the component information table and the relationship information table, forming attribute information and BIM component structure tree information indexed by the component ID, and storing them in the attribute information table and the component structure tree table of the graph database respectively, and then forms BIM lightweight data storage in the lightweight information table of the graph database according to the BIM patching algorithm, thereby realizing digital-analog separation, so that BIM can improve the speed of querying BIM related information under the premise that complete information can be checked, and improve the display capability of terminal BIM and other data.
[0035] The BIM data of the present invention includes component data, component attribute data, relationship data, component structure data and lightweight data. The component data includes component ID, component spatial coordinates, component geometric representation, component style and other information; component attributes include component attributes and attribute set information in BIM data; relationship data is information data about the relationship between components and the relationship between components and attributes; component structure data is component tree information with a hierarchical structure formed by program processing based on the relationship between components in the relationship data; lightweight data is lightweight geometric data that can be displayed through WEBGL driver analysis after the geometric information, style information and spatial structure relationship of the component are formed by the patching algorithm. The data processed by the data processing process is structured and stored, that is, saved in the graph database.
[0036] For the storage solution of BIM data in the graph database, BIM data is divided into three categories: component information, attribute information and relationship information for export through BIM analysis. Figure 1 As shown, an embodiment of the present invention provides a schematic diagram of the interaction between BIM information storage and graph database. Figure 2 The figure is a flow chart of the method for storing BIM information into a graph database provided by the present invention, and the specific steps are as follows:
[0037] Step 1: The server receives the BIM data generated by the user through the BIM analysis software, and stores the received BIM data into the local memory.
[0038] Step 2: Scatter and reorganize the BIM data in the local memory, query and traverse all component-related information of the BIM data, extract all component information, coordinate information and geometric information and store them in the component information table of the graph database to obtain the unique component ID.
[0039] Step 3: Query and traverse all relationship information of BIM data in memory, including the relationship between components and attributes and the relationship between components, and store it in the relationship information table of the graph database.
[0040] Step 4: According to the component information stored in step 2 and the relationship information between components and attributes stored in step 3, query and traverse the related component attributes and attribute set information of the BIM data in the memory, and store them in the attribute information table and attribute set information table of the graph database. Among them, all attribute information of the BIM data is traversed, including the attributes of the current component and the attributes of the component type to which the component belongs.
[0041] Step 5: According to the component information stored in step 2 and the relationship information between the components stored in step 3, query and reorganize the BIM structure tree information, and store it in the component structure information table of the graph database.
[0042] Step 6: Based on the component information, coordinate information and geometric information in step 2, lightweight BIM information data is formed by processing the geometric information using a patchwork method, and stored in a lightweight information table in the graph database.
[0043] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0044] It should be noted that the word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention can be implemented by means of hardware comprising several distinct components, and by means of a suitably programmed computer.
[0045] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A BIM data storage method based on graph database, It is characterized in that include: Extract the component information, coordinate information and geometric space information in the local memory BIM data and store them in the component information table of the drawing database to obtain the component related information including the component ID; Extract the relationship information in the local memory BIM data and store it in the relationship information table of the graph database; The relationship information includes the relationship between components and attributes and the relationship between components; According to the component-related information and the relationship between the component and the attribute, query and traverse the relevant component attributes and attribute set information in the local memory BIM data, form attribute information with the component ID as the index and store it in the attribute information table of the graph database; According to the component-related information and the relationship between components, query and traverse the local memory BIM data, reorganize into BIM structure tree information, form BIM component structure tree information with component ID as index and store it in the component structure tree table of the graph database; According to the component related information, a patching algorithm is performed to form BIM lightweight data, and the BIM lightweight data is stored in a lightweight information table of a graph database to complete the storage.
2. The method according to claim 1, It is characterized in that The method also includes the following steps: encapsulating the lightweight information table, component structure information table and attribute information table of the graph database into an API interface for display by the BIM lightweight engine.
3. The method according to claim 1 or 2, It is characterized in that According to the component-related information, the geometric information is processed by a patchwork algorithm to form BIM lightweight data.
4. The method according to claim 1 or 2, It is characterized in that The attribute information table includes a related component attribute information table and an attribute set information table.
5. The method according to claim 1 or 2, It is characterized in that The method of obtaining the local memory BIM data is as follows: the server receives the BIM data and stores the received BIM data into the local memory.
6. The method according to claim 5, It is characterized in that The BIM data received by the server is generated by the user through BIM parsing software.
Citation Information
Cited By
Cloud storage method of electric power engineering BIM component data
CN121030025A
