Skip to main content

A Model-Based Chatbot Generation Approach to Converse with Open Data Sources

  • Conference paper
  • First Online:
Web Engineering (ICWE 2021)

Abstract

The Open Data movement promotes the free distribution of data. More and more companies and governmental organizations are making their data available online following the Open Data philosophy, resulting in a growing market of technologies and services to help publish and consume data. One of the emergent ways to publish such data is via Web APIs, which offer a powerful means to reuse this data and integrate it with other services. Socrata, CKAN or OData are examples of popular specifications for publishing data via Web APIs. Nevertheless, querying and integrating these Web APIs is time-consuming and requires technical skills that limit the benefits of Open Data movement for the regular citizen. In other contexts, chatbot applications are being increasingly adopted as a direct communication channel between companies and end-users. We believe the same could be true for Open Data as a way to bridge the gap between citizens and Open Data sources. This paper describes an approach to automatically derive full-fledged chatbots from API-based Open Data sources. Our process relies on a model-based intermediate representation (via UML class diagrams and profiles) to facilitate the customization of the chatbot to be generated.

Work supported by the Spanish government (TIN2016-75944-R project).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

Notes

  1. 1.

    https://dev.socrata.com/.

  2. 2.

    https://ckan.org/.

  3. 3.

    https://www.odata.org/.

  4. 4.

    https://www.openapis.org/.

  5. 5.

    https://data.cityofchicago.org.

  6. 6.

    http://governobert.gencat.cat/en/dades_obertes/index.html.

  7. 7.

    https://developer.deutschebahn.com/store.

  8. 8.

    Full model available at http://hdl.handle.net/20.500.12004/1/C/ICWE/2021/232.

  9. 9.

    http://hdl.handle.net/20.500.12004/1/C/ICWE/2021/411.

  10. 10.

    https://analisi.transparenciacatalunya.cat/api/views/metadata/v1/tasf-thgu.json.

  11. 11.

    https://analisi.transparenciacatalunya.cat/api/views.json?id=tasf-thgu.

  12. 12.

    Note that this scales well as we do not actually create completely separate intents for each possible combination but use intent templates that can be instantiated at run-time over the list of elements in the model.

  13. 13.

    https://github.com/opendata-for-all/open-data-chatbot-generator.

References

  1. Alghamdi, A., Owda, M.S., Crockett, K.A.: Natural language interface to relational database (NLI-RDB) through object relational mapping (ORM). In: Workshop on Computational Intelligence. Advances in Intelligent Systems and Computing, vol. 513, pp. 449–464 (2016)

    Google Scholar 

  2. Bizer, C., Heath, T., Berners-Lee, T.: Linked data: The story so far. In: Semantic Services, Interoperability and Web Applications: Emerging Concepts, pp. 205–227. IGI Global (2011)

    Google Scholar 

  3. Cao, H., Falleri, J.-R., Blanc, X.: Automated generation of REST API specification from plain HTML documentation. In: Maximilien, M., Vallecillo, A., Wang, J., Oriol, M. (eds.) ICSOC 2017. LNCS, vol. 10601, pp. 453–461. Springer, Cham (2017). https://doi.org/10.1007/978-3-319-69035-3_32

    Chapter  Google Scholar 

  4. Castaldo, N., Daniel, F., Matera, M., Zaccaria, V.: Conversational data exploration. In: international conference on Web Engineering, pp. 490–497 (2019)

    Google Scholar 

  5. Chittò, P., Baez, M., Daniel, F., Benatallah, B.: Automatic generation of chatbots for conversational web browsing. In: Dobbie, G., Frank, U., Kappel, G., Liddle, S.W., Mayr, H.C. (eds.) ER 2020. LNCS, vol. 12400, pp. 239–249. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-62522-1_17

    Chapter  Google Scholar 

  6. Cremaschi, M., De Paoli, F.: Toward automatic semantic API descriptions to support services composition. In: De Paoli, F., Schulte, S., Broch Johnsen, E. (eds.) ESOCC 2017. LNCS, vol. 10465, pp. 159–167. Springer, Cham (2017). https://doi.org/10.1007/978-3-319-67262-5_12

    Chapter  Google Scholar 

  7. Daniel, G., Cabot, J., Deruelle, L., Derras, M.: Xatkit: a multimodal low-code chatbot development framework. IEEE Access 8, 15332–15346 (2020)

    Article  Google Scholar 

  8. Ed-Douibi, H., Cánovas Izquierdo, J., Bordeleau, F., Cabot, J.: WAPIml: towards a modeling infrastructure for web APIs. In: International Conference on Model Driven Engineering Languages and Systems Companion, pp. 748–752 (2019)

    Google Scholar 

  9. Ed-douibi, H., Cánovas Izquierdo, J.L., Cabot, J.: Example-driven web API specification discovery. In: Anjorin, A., Espinoza, H. (eds.) ECMFA 2017. LNCS, vol. 10376, pp. 267–284. Springer, Cham (2017). https://doi.org/10.1007/978-3-319-61482-3_16

    Chapter  Google Scholar 

  10. Ed-douibi, H., Cánovas Izquierdo, J.L., Cabot, J.: APIComposer: data-driven composition of REST APIs. In: Kritikos, K., Plebani, P., de Paoli, F. (eds.) ESOCC 2018. LNCS, vol. 11116, pp. 161–169. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-99819-0_12

    Chapter  Google Scholar 

  11. Ed-Douibi, H., Daniel, G., Cabot, J.: OpenAPI bot: a chatbot to help you understand REST APIs. In: Bielikova, M., Mikkonen, T., Pautasso, C. (eds.) ICWE 2020. LNCS, vol. 12128, pp. 538–542. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-50578-3_40

    Chapter  Google Scholar 

  12. González-Mora, C., Garrigós, I., Jacobo Zubcoff, J., Mazón, J.: Model-based generation of web application programming interfaces to access open data (In Prepress). J. Web Eng. 19(7–8), 194–217 (2020)

    Google Scholar 

  13. Kerlyl, A., Hall, P., Bull, S.: Bringing chatbots into education: towards natural language negotiation of open learner models. In: International Conference on Applications and Innovations in Intelligent Systems, pp. 179–192 (2006)

    Google Scholar 

  14. Keyner, S., Savenkov, V., Vakulenko, S.: Open data chatbot. In: Satellite Events of The Semantic Web, pp. 111–115 (2019)

    Google Scholar 

  15. Musyaffa, F.A., Halilaj, L., Siebes, R., Orlandi, F., Auer, S.: Minimally invasive semantification of light weight service descriptions. In: International Conference on Web Services, pp. 672–677 (2016)

    Google Scholar 

  16. Neumaier, S., Savenkov, V., Vakulenko, S.: Talking open data. In: Satellite Events of The Semantic Web, pp. 132–136 (2017)

    Google Scholar 

  17. Pereira, J., Díaz, Ó.: Chatbot dimensions that matter: lessons from the trenches. In: International Conference on Web Engineering, pp. 129–135 (2018)

    Google Scholar 

  18. Pérez-Soler, S., Daniel, G., Cabot, J., Guerra, E., de Lara, J.: Towards automating the synthesis of chatbots for conversational model query. In: Nurcan, S., Reinhartz-Berger, I., Soffer, P., Zdravkovic, J. (eds.) BPMDS/EMMSAD -2020. LNBIP, vol. 387, pp. 257–265. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-49418-6_17

    Chapter  Google Scholar 

  19. Porreca, S., Leotta, F., Mecella, M., Vassos, S., Catarci, T.: Accessing government open data through chatbots. In: International Workshop on Current Trends in Web Engineering, pp. 156–165 (2017)

    Google Scholar 

  20. Sindhgatta, R., Barros, A., Nili, A.: Modeling conversational agents for service systems. In: On the Move to Meaningful Internet Systems, pp. 552–560 (2019)

    Google Scholar 

  21. Vaziri, M., Mandel, L., Shinnar, A., Siméon, J., Hirzel, M.: Generating chat bots from web API specifications. In: ACM SIGPLAN Onward!, pp. 44–57 (2017)

    Google Scholar 

  22. Xu, A., Liu, Z., Guo, Y., Sinha, V., Akkiraju, R.: A new chatbot for customer service on social media. In: Conference on Human Factors in Computing Systems, pp. 3506–3510 (2017)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Javier Luis Cánovas Izquierdo .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Ed-douibi, H., Cánovas Izquierdo, J.L., Daniel, G., Cabot, J. (2021). A Model-Based Chatbot Generation Approach to Converse with Open Data Sources. In: Brambilla, M., Chbeir, R., Frasincar, F., Manolescu, I. (eds) Web Engineering. ICWE 2021. Lecture Notes in Computer Science(), vol 12706. Springer, Cham. https://doi.org/10.1007/978-3-030-74296-6_33

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-74296-6_33

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-74295-9

  • Online ISBN: 978-3-030-74296-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics