An Approach of Automatic SPARQL Generation for BIM Data Extraction
Abstract
:1. Introduction
2. Related Work
2.1. Data Query Approaches Based on Different Data Models
2.2. Semantic BIM Data Extraction
3. Main Research Approach
3.1. Research Approach and Definitions
3.2. Implementation of the Proposed Approach
- Establish the BIM knowledge base. The IFC to RDF tool [48] is used to convert the IFC schema into a semantic BIM model and store the RDF BIM data in the Stardog RDF database.
- Create the Tbox and Abox based on the BIM knowledge base. Query keywords provided in a query tabulation are matched with concepts or instances in the BIM knowledge base, and the terms that are most similar to query keywords are used for the following processing.
- 3.
- Acquire all paths related to the query keywords. We adopted the Stardog path query function that can explore all unidirectional relationships of a query keyword and express the results in data path(s). According to the query keywords, all paths containing the query keywords in the BIM instance model are found and stored in csv files, including all paths that begin with keywords or end with keywords. A path file includes all paths related with a query keyword. In the Stardog RDF database, the “Run to File” function can store path information in a csv file.
- 4.
- Extract the structure of the SPARQL query. To generate effective query results and the corresponding SPARQL query, the provided query keywords should have certain connected relationships in a given BIM model. That means that all keywords should be covered in a sub-graph of the BIM model. In other words, some paths that are gained in Step 3 should have some common node(s). So, the searching the common node(s) in path files is a key step in extracting the structure of the SPARQL query.
- When there are only two path csv files (meaning that there are only two query keywords: one target and one query condition), the search task is simple; each node is iteratively indexed from one path file and checked as to whether it exists in the other path file. Once a common node is checked, this common node and the two sub-paths from the common node to the corresponding keywords are recorded. The common node is viewed as a top node to connect the two sub-paths, and then a path connecting the two query keywords is gained. When all common nodes and connected paths are sought out, the shortest path(s) connected two query keywords can be ascertained and stored in a new csv file, named the shortest-path file. After that, the structure of a SPARQL query in the BIM model can be obtained based on the structure and connected relationships of nodes in the shortest path.
- When multiple query keywords are provided and multiple path files are generated, the search task should keep to the following search rules and steps:
- The target keyword(s) will be the important keyword(s) and its(/their) path file(s) will be viewed as the important search target(s). A target keyword is viewed as a core keyword when it has relationships with several other query keywords in the query tabulation. The path file(s) of the core keyword(s) will be viewed as main target file(s). The path files of related query keywords will be viewed as relevant-path files.
- Utilizing the same search processing method as in the case of only two path files, the nodes in every relevant-path file should be matched with nodes in the main target file, and then the search results are stored in a shortest-path file. After processing all relevant-path files, multiple shortest-path files can be obtained. This is considered the first iteration.
- For dealing with these shortest-path files, we similarly search the common node(s) between two shortest-path files and merge the two paths through the common node(s) into a new path in which the common node(s) should be only recorded once. After that, new paths are stored in a new shortest-path file for the next iteration. In a new iteration, the new shortest-path file and a shortest-path file (generated in the first iteration) are processed and merged into a newer shortest-path file for the next iteration. When all shortest-path files are merged into one file, the iterations are finished. The shortest path in the final file that connects all query keywords is the final result. The structure and connected relationships of nodes in the shortest path is the structure of the desired SPARQL query. It is noted that there can be more than one such shortest path in the final file; however, the structure of the shortest path is generally the same.
- 5.
- Generate the SPARQL query. Once the structure of the SPARQL query is acquired, the SPARQL query is created. Every two connected nodes and their relationship property in the shortest path are converted into a query filter condition in the WHERE clause of SPARQL. If the nodes of the path may be some given keywords or classes, these values can be kept in the WHERE clause of SPARQL. The other endpoint nodes and all intermediate nodes are replaced with SPARQL variables, such as ?a, ?b, or ?c. In the shortest path, the same node uses a uniform variable name and different nodes use different variable names. The variable that replaces the target keyword is used in the SELECT clause. If a target keyword is mapped with a class in the ifcOWL schema, the target variable (in the SELECT clause) chooses the instance variable or a value variable that is directly linked with this class in the shortest path. Then, the SPARQL query is generated.
4. Case Studies
- Intel processor Xeon(R) E-2176M CPU 2.7 GHz, SSD 1024 GB, and 32 GB RAM memory;
- Microsoft 64-bit Windows 10 Operating System;
- Stardog triple store and API version 7;
- A wrapper library called pystardog (a Python virtualenv).
4.1. Case Study One: A Duplex Apartment Case
4.2. Case Study Two: A Single House in Norway
5. Conclusions
Author Contributions
Funding
Acknowledgments
Conflicts of Interest
References
- Santos, R.; Costa, A.A.; Silvestre, J.D.; Pyl, L. Informetric analysis and review of literature on the role of BIM in sustainable construction. Autom. Constr. 2019, 103, 221–234. [Google Scholar] [CrossRef]
- Soust-Verdaguer, B.; Llatas, C.; García-Martínez, A. Critical review of bim-based LCA method to buildings. Energy Build. 2017, 136, 110–120. [Google Scholar] [CrossRef]
- Chong, H.Y.; Lee, C.-Y.; Wang, X. A mixed review of the adoption of Building Information Modelling (BIM) for sustainability. J. Clean. Prod. 2017, 142, 4114–4126. [Google Scholar] [CrossRef] [Green Version]
- Lu, Q.; Xie, X.; Heaton, J.; Parlikad, A.K.; Schooling, J. From BIM towards digital twin: Strategy and future development for smart asset management. In Service Oriented, Holonic and Multi-Agent Manufacturing Systems for Industry of the Future; Springer: Cham, Switzerland, 2020; pp. 392–404. [Google Scholar]
- Janjua, S.Y.; Sarker, P.K.; Biswas, W.K. A Review of Residential Buildings’ Sustainability Performance Using a Life Cycle Assessment Approach. J. Sustain. Res. 2019, 1, 190006. [Google Scholar]
- Seghier, T.E.; Ahmad, M.H.; Wah, L.Y.; Samuel, W.O. Integration Models of Building Information Modelling and Green Building Rating Systems: A Review. Adv. Sci. Lett. 2018, 24, 4121–4125. [Google Scholar] [CrossRef]
- Kehily, D.; Underwood, J. Embedding life cycle costing in 5D BIM. J. Inf. Technol. Constr. 2017, 22, 145–167. [Google Scholar]
- Marzouk, M.; Azab, S.; Metawie, M. BIM-based approach for optimizing life cycle costs of sustainable buildings. J. Clean. Prod. 2018, 188, 217–226. [Google Scholar] [CrossRef]
- Mihić, M.; Vukomanović, M.; Završki, I. Review of previous applications of innovative information technologies in construction health and safety. Organ. Technol. Manag. Constr. Int. J. 2019, 11, 1952–1967. [Google Scholar] [CrossRef] [Green Version]
- Plebankiewicz, E.; Juszczyk, M.; Kozik, R. Trends, Costs, and Benefits of Green Certification of Office Buildings: A Polish Perspective. Sustainability 2019, 11, 2359. [Google Scholar] [CrossRef] [Green Version]
- Sandberg, M.; Mukkavaara, J.; Shadram, F.; Sandberg, M. Multidisciplinary Optimization of Life-Cycle Energy and Cost Using a BIM-Based Master Model. Sustainability 2019, 11, 286. [Google Scholar] [CrossRef] [Green Version]
- Nwodo, M.N.; Anumba, C.J.; Asadi, S. BIM-Based Life Cycle Assessment and Costing of Buildings: Current Trends and Opportunities. In Proceedings of the ASCE International Workshop on Computing in Civil Engineering (IWCCE), Seattle, WA, USA, 25–27 June 2017; Lin, K.Y., El Gohary, N., Tang, P., Eds.; University of Washington: Seattle, WA, USA, 2017; pp. 51–59. [Google Scholar]
- ISO. ISO 16739:2013 Industry Foundation Class (IFC) for Data Sharing in the Construction and Facility Management Industries. Available online: https://www.iso.org/standard/51622.html (accessed on 8 September 2020).
- ISO. ISO 16739-1:2018 Industry Foundation Classes (IFC) for Data Sharing in the Construction and Facility Management Industries—Part 1: Data schema. Available online: https://www.iso.org/standard/70303.html (accessed on 8 September 2020).
- Zhang, L.; El-Gohary, N.M. Automated IFC-based building information modelling and extraction for supporting value analysis of buildings. Int. J. Constr. Manag. 2020, 20, 269–288. [Google Scholar] [CrossRef]
- Isailović, D.; Stojanovic, V.; Trapp, M.; Richter, R.; Hajdin, R.; Döllner, J. Bridge damage: Detection, IFC-based semantic enrichment and visualization. Autom. Constr. 2020, 112, 103088. [Google Scholar] [CrossRef]
- Gui, N.; Wang, C.; Qiu, Z.; Gui, W.; Deconinck, G. IFC-Based Partial Data Model Retrieval for Distributed Collaborative Design. J. Comput. Civ. Eng. 2019, 33, 04019016. [Google Scholar] [CrossRef]
- Pauwels, P.; Van Deursen, D.; Verstraeten, R.; De Roo, J.; De Meyer, R.; Van De Walle, R.; Van Campenhout, J. A semantic rule checking environment for building performance checking. Autom. Constr. 2011, 20, 506–518. [Google Scholar] [CrossRef]
- Zhang, C.; Beetz, J.; De Vries, B. BimSPARQL: Domain-specific functional SPARQL extensions for querying RDF building data. Semantic Web 2018, 9, 829–855. [Google Scholar] [CrossRef] [Green Version]
- Zhong, B.; Wu, H.; Li, H.; Sepasgozar, S.; Luo, H.; He, L. A scientometric analysis and critical review of construction related ontology research. Autom. Constr. 2019, 101, 17–31. [Google Scholar] [CrossRef]
- Nacer, H.; Aissani, D. Semantic web services: Standards, applications, challenges and solutions. J. Netw. Comput. Appl. 2014, 44, 134–151. [Google Scholar] [CrossRef]
- Pauwels, P.; Terkaj, W. EXPRESS to OWL for construction industry: Towards a recommendable and usable ifcOWL ontology. Autom. Constr. 2016, 63, 100–133. [Google Scholar] [CrossRef]
- Xu, Z.; Wang, X.; Zhou, W.; Yuan, J. Study on the Evaluation Method of Green Construction Based on Ontology and BIM. Adv. Civ. Eng. 2019, 2019, 5650463. [Google Scholar] [CrossRef]
- Pauwels, P.; Zhang, S.; Lee, Y.-C. Semantic web technologies in AEC industry: A literature overview. Autom. Constr. 2017, 73, 145–165. [Google Scholar] [CrossRef]
- De Farias, T.M.; Roxin, A.; Nicolle, C. A rule-based methodology to extract building model views. Autom. Constr. 2018, 92, 214–229. [Google Scholar] [CrossRef]
- Mazairac, L.W.; Beetz, J.J. BIMQL—An open query language for building information models. Adv. Eng. Inform. 2013, 27, 444–456. [Google Scholar] [CrossRef]
- Krijnen, T.; Beetz, J. A SPARQL query engine for binary-formatted IFC building models. Autom. Constr. 2018, 95, 46–63. [Google Scholar] [CrossRef]
- Daum, S.; Borrmann, A. Processing of Topological BIM Queries using Boundary Representation Based Methods. Adv. Eng. Inform. 2014, 28, 272–286. [Google Scholar] [CrossRef] [Green Version]
- Ismail, A.; Nahar, A.; Scherer, R. Application of graph databases and graph theory concepts for advanced analysing of BIM models based on IFC standard. In Proceedings of the 24th International Workshop on Intelligent Computing in Engineering, Nottingham, UK, 10–12 July 2017. [Google Scholar]
- Nepal, M.; Staub-French, S.; Pottinger, R.; Webster, A. Querying a building information model for construction-specific spatial information. Adv. Eng. Inform. 2012, 26, 904–923. [Google Scholar] [CrossRef] [Green Version]
- Schevers, H.; Drogemuller, R. Converting the Industry Foundation Classes to the Web Ontology Language. In Proceedings of the 2005 1st International Conference on Semantics, Knowledge and Grid, Beijing, China, 27–29 November 2005. [Google Scholar]
- Beetz, J.J.; Van Leeuwen, J.J.; De Vries, B.B. IfcOWL: A case of transforming EXPRESS schemas into ontologies. Artif. Intell. Eng. Des. Anal. Manuf. 2008, 23, 89–101. [Google Scholar] [CrossRef]
- Terkaj, W.; Sojic, A. Ontology-based representation of IFC EXPRESS rules: An enhancement of the ifcOWL ontology. Autom. Constr. 2015, 57, 188–201. [Google Scholar] [CrossRef]
- Boje, C.; Guerriero, A.; Kubicki, S.; Rezgui, Y. Towards a semantic Construction Digital Twin: Directions for future research. Autom. Constr. 2020, 114, 103179. [Google Scholar] [CrossRef]
- Nepal, M.; Staub-French, S.; Pottinger, R.; Zhang, J. Ontology-Based Feature Modeling for Construction Information Extraction from a Building Information Model. J. Comput. Civ. Eng. 2013, 27, 555–569. [Google Scholar] [CrossRef] [Green Version]
- Zhang, L.; Issa, R.R.A. Ontology-Based Partial Building Information Model Extraction. J. Comput. Civ. Eng. 2013, 27, 576–584. [Google Scholar] [CrossRef] [Green Version]
- Niknam, M.; Karshenas, S. A shared ontology approach to semantic representation of BIM data. Autom. Constr. 2017, 80, 22–36. [Google Scholar] [CrossRef] [Green Version]
- Beetz, J.; De Vries, B.; Van Leeuwen, J. RDF-based distributed functional part specifications for the facilitation of service-based architectures. In Proceedings of the 24th W78 Conference, Maribor, Slovenia, 27–29 June 2007. [Google Scholar]
- Liu, H.; Lu, M.; Al-Hussein, M. Ontology-based semantic approach for construction-oriented quantity take-off from BIM models in the light-frame building industry. Adv. Eng. Inform. 2016, 30, 190–207. [Google Scholar] [CrossRef]
- Krijnen, T.; Van Berlo, L. Methodologies for requirement checking on building models. In Proceedings of the DDSS2016 13th International Conference on Design & Decision Support Systems in Architecture and Urban Planning, Eindhoven, The Netherlands, 27–28 June 2016. [Google Scholar]
- Bouzidi, K.R.; Fies, B.; Faron-Zucker, C.; Zarli, A.; Le Thanh, N. Semantic Web Approach to Ease Regulation Compliance Checking in Construction Industry. Future Internet 2012, 4, 830–8511. [Google Scholar] [CrossRef] [Green Version]
- Zhong, B.; Gan, C.; Luo, H.; Xing, X. Ontology-based framework for building environmental monitoring and compliance checking under BIM environment. Build. Environ. 2018, 141, 127–142. [Google Scholar] [CrossRef]
- Fahad, M.; Bus, N.; Fies, B. Semantic BIM reasoner for the verification of IFC Models. In Ework and Ebusiness in Architecture, Engineering and Construction; Karlshoj, J., Scherer, R., Eds.; CRC Press: Boca Raton, FL, USA, 2018; pp. 361–368. [Google Scholar]
- The RDF Working Group. Resource Description Framework (RDF). 2014. Available online: https://www.w3.org/RDF/ (accessed on 8 September 2020).
- Group, T.W.C.S.W. SPARQL 1.1 Overview W3C Recommendation 21 March 2013. 2013. Available online: https://www.w3.org/TR/2013/REC-sparql11-query-20130321/ (accessed on 8 September 2020).
- Haarslev, V.; Pai, H.-I.; Shiri, N. Uncertainty Reasoning for Ontologies with General TBoxes in Description Logic. In Uncertainty Reasoning for the Semantic Web I: URSW 2006, URSW 2007, URSW 2005. Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2008; Volume 5327. [Google Scholar]
- Stardog Union. Stardog 7: The Manual—Documentation Page. 2020. Available online: https://www.stardog.com/docs/ (accessed on 7 June 2020).
- Pauwels, P. IFC to RDF Tool. 2020. Available online: https://github.com/pipauwel/IFCtoRDF (accessed on 8 September 2020).
- DuplexModel-IFC-2011-05-05. Available online: http://smartlab1.elis.ugent.be:8889/IFC-repo/http.openifcmodel.cs.auckland.ac.nz/030811DuplexModel-IFC-2011-05-05/ (accessed on 8 December 2020).
- Solibri, Solibri Model Viewer. Available online: http://www.solibri.com/products/solibri-model-viewer/ (accessed on 10 May 2020).
(a) | |
Target: | Window |
Condition: | Level 2 |
Condition: | |
(b) | |
Target: | Wall; Wall.GlobalUniqueID |
Condition: | wall.Plan E2 |
Condition: | wall. External |
Condition: | wall.TRUE |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Guo, D.; Onstein, E.; Rosa, A.D.L. An Approach of Automatic SPARQL Generation for BIM Data Extraction. Appl. Sci. 2020, 10, 8794. https://doi.org/10.3390/app10248794
Guo D, Onstein E, Rosa ADL. An Approach of Automatic SPARQL Generation for BIM Data Extraction. Applied Sciences. 2020; 10(24):8794. https://doi.org/10.3390/app10248794
Chicago/Turabian StyleGuo, Dongming, Erling Onstein, and Angela Daniela La Rosa. 2020. "An Approach of Automatic SPARQL Generation for BIM Data Extraction" Applied Sciences 10, no. 24: 8794. https://doi.org/10.3390/app10248794
APA StyleGuo, D., Onstein, E., & Rosa, A. D. L. (2020). An Approach of Automatic SPARQL Generation for BIM Data Extraction. Applied Sciences, 10(24), 8794. https://doi.org/10.3390/app10248794