<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
  <teiHeader>
    <fileDesc>
      <titleStmt>
        <title type="main" level="a">Testing ChatGPT-Aided SPARQL Generation for Semantic Construction Information Retrieval</title>
        <author>
          <persName n="1" ref="https://orcid.org/0000-0002-9845-1138" type="ORCID">
            <forename>Yuan</forename>
            <surname>Zheng</surname>
            <placeName type="affiliation">Aalto University, Finland</placeName>
          </persName>
          <persName n="2" ref="https://orcid.org/0000-0002-2008-5924" type="ORCID">
            <forename>Olli</forename>
            <surname>Seppänen</surname>
            <placeName type="affiliation">Aalto University, Finland</placeName>
          </persName>
          <persName n="3" ref="https://orcid.org/0000-0001-5808-695X" type="ORCID">
            <forename>Sebastian</forename>
            <surname>Seiß</surname>
            <placeName type="affiliation">Bauhaus-University Weimar, Germany</placeName>
          </persName>
          <persName n="4" ref="https://orcid.org/0000-0002-6435-0283" type="ORCID">
            <forename>Jürgen</forename>
            <surname>Melzner</surname>
            <placeName type="affiliation">Bauhaus-University Weimar, Germany</placeName>
          </persName>
        </author>
        <respStmt>
          <resp>This is a section of <title>CONVR 2023 - Proceedings of the 23rd International Conference on  Construction Applications of Virtual Reality </title>(DOI: <idno type="DOI">10.36253/979-12-215-0289-3</idno>) by </resp>
          <name>Pietro Capone, Vito Getuli, Farzad Pour Rahimian, Nashwan Dawood, Alessandro Bruttini, Tommaso Sorbi</name>
        </respStmt>
      </titleStmt>
      <publicationStmt>
        <publisher>Firenze University Press</publisher>
        <pubPlace>Florence</pubPlace>
        <date when="2023">2023</date>
        <idno type="DOI">https://doi.org/10.36253/10.36253/979-12-215-0289-3.75</idno>
        <availability>
          <p>Available for academic research purposes</p>
          <p>Open Access</p>
          <p>Copyright Author(s)</p>
          <licence source="text" target="https://creativecommons.org/licenses/by-nc/4.0/legalcode">
            <p>Content licence CC BY-NC 4.0</p>
          </licence>
          <licence source="metadata" target="https://creativecommons.org/publicdomain/zero/1.0/legalcode">
            <p>Metadata licence CC0 1.0</p>
          </licence>
        </availability>
      </publicationStmt>
      <sourceDesc>
        <p>This is original content, published for academic research purposes</p>
      </sourceDesc>
    </fileDesc>
    <encodingDesc>
      <appInfo>
        <application version="2.2" ident="Booksflow">
          <desc>Digital edition XML powered by Booksflow</desc>
        </application>
      </appInfo>
    </encodingDesc>
    <profileDesc>
      <abstract xml:lang="en">
        <p>Recently there has been a strong interest in using semantic technologies to improve information management in the construction domain. Ontologies provide a formalized domain knowledge representation that provides a structured information model to facilitate information management issues such as formalization and integration of construction workflow information and data and enables further applications such as information retrieval and reasoning. SPARQL Protocol And RDF Query Language (SPARQL) queries are the main approaches to conduct the information retrieval from the Resource Description Framework (RDF) format data. However, there is a barrier for end users to develop the SPARQL queries, as it requires proficient skills to code them. This challenge hinders the practical application of ontology-based approaches on construction sites. As a generative language model, ChatGPT has already illustrated its capability to process and generate human-like text, including the capability to generate the SPARQL for domain-specific tasks. However, there are no specific tests evaluating and assessing the SPARQL-generating capability of ChatGPT within the construction domain. Therefore, this paper focuses on exploring the usage of ChatGPT with a case of importing the Digital Construction Ontologies (DiCon) and generating SPARQL queries for specific construction workflow information retrieval. We evaluate the generated queries with metrics including syntactical correctness, plausible query structure, and coverage of correct answers</p>
      </abstract>
      <textClass>
        <keywords>
          <list>
            <item>Semantic web</item>
            <item>Ontology</item>
            <item>ChatGPT</item>
            <item>SPARQL</item>
            <item>RDF</item>
            <item>Information retrieval</item>
            <item>Construction</item>
          </list>
        </keywords>
      </textClass>
    </profileDesc>
  </teiHeader>
  <text>
    <body>
      <p>It is available online at https://doi.org/10.36253/10.36253/979-12-215-0289-3.75<ref target="https://doi.org/10.36253/10.36253/979-12-215-0289-3.75" /></p>
      <div>
        <listBibl>
          <head>References</head>
          <bibl n="139364">
            <bibl>Akinci, B. (2015). Situational awareness in construction and facility management. Frontiers of Engineering Management, 1(3), 283-289.</bibl>
            <idno type="DOI">10.15302/j-fem-2014037</idno>
          </bibl>
          <bibl n="137376">
            <bibl>Akinyemi, A., Sun, M., &amp;amp; Gray, A. J. (2018). An ontology-based data integration framework for construction information management. Proceedings of The Institution of Civil Engineers-Management, Procurement and Law, 171(3), 111-125.</bibl>
            <idno type="DOI">10.1680/jmapl.17.00052</idno>
          </bibl>
          <bibl n="139528">
            <bibl>Allemang, D., Hendler, J., &amp;amp; Gandon, F. (2020). Semantic Web for the Working Ontologist. New York, NY, USA: ACM.</bibl>
            <idno type="DOI">10.1016/C2010-0-68657-3</idno>
          </bibl>
          <bibl n="137978">
            <bibl>Beetz, J., Pauwels, P., McGlinn, K., Torm&amp;#228;, S. (2021). Linked Data im Bauwesen. In: Borrmann, A., K&amp;#246;nig, M., Koch, C., Beetz, J. (eds) Building Information Modeling. VDI-Buch. Wiesbaden: Springer Vieweg.</bibl>
            <idno type="DOI">10.1007/978-3-658-33361-4_11</idno>
          </bibl>
          <bibl n="138925">
            <bibl>El-Diraby, T. E., &amp;amp; Osman, H. (2011). A domain ontology for construction concepts in urban infrastructure products. Automation in Construction, 20(8), 1120–1132.</bibl>
            <idno type="DOI">10.1016/j.autcon.2011.04.014</idno>
          </bibl>
          <bibl n="138569">
            <bibl>El-Gohary, N. M., &amp;amp; El-Diraby, T. E. (2010). Domain ontology for processes in infrastructure and construction. Journal of Construction Engineering and Management, 136(7), 730–744.</bibl>
            <idno type="DOI">10.1061/(asce)co.1943-7862.0000178</idno>
          </bibl>
          <bibl n="138926">
            <bibl>Hitzler, P., Kr&amp;#246;tzsch, M., Rudolph, S., &amp;amp; Sure-Vetter, Y. (2007). Semantic Web. Grundlagen. Berlin, Heidelberg: Springer Berlin Heidelberg (SpringerLink B&amp;#252;cher).</bibl>
            <idno type="DOI">10.1007/978-3-540-33994-6</idno>
          </bibl>
          <bibl n="138247">
            <bibl>Janowicz, K., Haller, A., Cox, S. J., Le Phuoc, D., &amp;amp; Lefran&amp;#231;ois, M. (2019). SOSA: A lightweight ontology for sensors, observations, samples, and actuators. Journal of Web Semantics, 56, 1-10.</bibl>
            <idno type="DOI">10.1016/j.websem.2018.06.003</idno>
          </bibl>
          <bibl n="137497">Kosovac, B., Froese, T., &amp;amp; Vanier, D. (2000). Integrating heterogeneous data representations in model-based AEC/FM systems. Proceedings of CIT, 2, 556-567. Retrieved July 23, 2023, from https://itc.scix.net/paper/w78-2000-556</bibl>
          <bibl n="138078">Lin, W., Babyn, P., &amp;amp; Zhang, W. (2023). Context-based Ontology Modelling for Database: Enabling ChatGPT for Semantic Database Management. Retrieved July 23, 2023, from arXiv preprint arXiv:2303.07351.</bibl>
          <bibl n="139640">Manola, F., Miller, E., &amp;amp; McBride, B. (2004). RDF primer. W3C recommendation, 10(1-107), 6.</bibl>
          <bibl n="137341">Meyer, L. P., Stadler, C., Frey, J., Radtke, N., Junghanns, K., Meissner, R., ... &amp;amp; Martin, M. (2023). LLM-assisted Knowledge Graph Engineering: Experiments with ChatGPT. Retrieved July 23, 2023, from arXiv preprint arXiv:2307.06917.</bibl>
          <bibl n="139650">Ontotext. (2023). GraphDB. Retrieved July 23, 2023, from https://graphdb.ontotext.com/.</bibl>
          <bibl n="139068">OpenAI. (2023). GPT-4 is OpenAI’s most advanced system, producing safer and more useful responses. Retrieved July 23, 2023, from https://openai.com/gpt-4.</bibl>
          <bibl n="138719">
            <bibl>Pauwels, P., &amp;amp; Terkaj, W. (2016). EXPRESS to OWL for the construction industry: Towards a recommendable and usable ifcOWL ontology. Automation in Construction, 63,100-133.</bibl>
            <idno type="DOI">10.1016/j.autcon.2015.12.003</idno>
          </bibl>
          <bibl n="139272">Rasmussen, M. H., &amp;amp; Lefran&amp;#231;ois, M. (2018). Ontology for property management. Retrieved July 23, 2023, from https://w3c-lbd-cg.github.io/opm/.</bibl>
          <bibl n="137331">Tan, Y., Min, D., Li, Y., Li, W., Hu, N., Chen, Y., &amp;amp; Qi, G. (2023). Evaluation of ChatGPT as a question answering system for answering complex questions. Retrieved July 23, 2023, from arXiv preprint arXiv:2303.07992.arXiv:2307.11449.</bibl>
          <bibl n="139472">Technology Innovation Institute. (2023). Introducing Falcon LLM. Retrieved July 23, 2023, from https://falconllm.tii.ae/.</bibl>
          <bibl n="139152">
            <bibl>Van Dis, E. A., Bollen, J., Zuidema, W., van Rooij, R., &amp;amp; Bockting, C. L. (2023). ChatGPT: five priorities for research. Nature, 614(7947), 224-226.</bibl>
            <idno type="DOI">10.1038/d41586-023-00288-7</idno>
          </bibl>
          <bibl n="137010">White, J., Fu, Q., Hays, S., Sandborn, M., Olea, C., Gilbert, H., Elnashar, A., Spencer-Smith, J., &amp;amp; Schmidt, D. C. (2023). A prompt pattern catalog to enhance prompt engineering with chatgpt. Retrieved July 23, 2023, from arXiv preprint arXiv:2302.11382.</bibl>
          <bibl n="138418">Harris, S., &amp;amp; Seaborne, A. (2013). SPARQL 1.1 Query Language: W3C Recommendation 21 March 2013. W3C Recommendations. Retrieved July 23, 2023, from https://www.w3.org/TR/sparql11-query/.</bibl>
          <bibl n="139243">
            <bibl>Zheng, Y., T&amp;#246;rm&amp;#228;, S., &amp;amp; Sepp&amp;#228;nen, O. (2021). A shared ontology suite for digital construction workflow. Automation in Construction, 132, 1–24.</bibl>
            <idno type="DOI">10.1016/j.autcon.2021.103930</idno>
          </bibl>
        </listBibl>
      </div>
    </body>
  </text>
</TEI>