Skip to main content

Mapping the Web Ontology Language to the OpenAPI Specification

  • Conference paper
  • First Online:
Advances in Conceptual Modeling (ER 2020)

Abstract

Many organizations maintain knowledge graphs that are organized according to ontologies. However, these ontologies are implemented in languages (e.g. OWL) that are difficult to understand by users who are not familiar with knowledge representation techniques. In particular, this affects web developers who want to develop ontology-based applications but may find challenging accessing ontology-based data in knowledge graphs through SPARQL queries. To address this problem, we propose an accessible layer for ontology-based knowledge graphs through REST APIs. We define a mapping specification between the Web Ontology Language (OWL) and the OpenAPI Specification (OAS) to provide ontology-based API definitions in a language well-known to web developers. Our mapping specification identifies key similarities between OWL and OAS and provides implementation guidelines and examples. We also developed a reference mapping implementation that automatically transforms OWL ontologies into OpenAPI specifications in a matter of seconds.

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 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.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

Notes

  1. 1.

    https://github.com/OAI/OpenAPI-Specification.

  2. 2.

    http://spec.openapis.org/oas/v3.0.3.

  3. 3.

    https://w3id.org/OWLToOAS.

  4. 4.

    https://owl-to-oas.readthedocs.io/en/latest/mapping/#data-types_1.

  5. 5.

    https://github.com/KnowledgeCaptureAndDiscovery/OBA/releases/tag/3.4.0.

  6. 6.

    http://tiny.cc/3eyjsz.

  7. 7.

    https://wiki.dbpedia.org/services-resources/ontology.

  8. 8.

    https://code.google.com/archive/p/linked-data-api.

  9. 9.

    https://dev.realestatecore.io/OWL2OAS.

References

  1. Brickley, D., Guha, R.V., McBride, B.: RDF Schema 1.1. W3C recommendation (2014)

    Google Scholar 

  2. Daga, E., Panziera, L., Pedrinaci, C.: A BASILar approach for building web APIs on top of SPARQL endpoints. In: CEUR Workshop Proceedings, vol. 1359, pp. 22–32 (2015)

    Google Scholar 

  3. Garijo, D., Osorio, M.: OBA: An Ontology-Based Framework for Creating REST APIs for Knowledge Graphs, July 2020. https://arxiv.org/abs/2007.09206

  4. Hitzler, P., et al.: OWL web ontology language primer. WC Recommendation 27, 123 (2009)

    Google Scholar 

  5. Knublauch, H., Kontokostas, D.: Shapes constraint language (SHACL). W3C Recommendation (2017)

    Google Scholar 

  6. McGuinness, D.L., et al.: OWL web ontology language overview. W3C Recommendation 10(10), 2004 (2004)

    Google Scholar 

  7. Meroño-Peñuela, A., Hoekstra, R.: grlc makes GitHub taste like linked data APIs. In: Sack, H., Rizzo, G., Steinmetz, N., Mladenić, D., Auer, S., Lange, C. (eds.) ESWC 2016. LNCS, vol. 9989, pp. 342–353. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-47602-5_48

    Chapter  Google Scholar 

  8. Peterson, D., Gao, S., Malhotra, A., Sperberg-McQueen, C.M., Thompson, H.S., Biron, P.: W3C XML schema definition language (XSD) 1.1 part 2: datatypes. W3C Recommendation 5 (2012)

    Google Scholar 

  9. Speicher, S., Arwe, J., Malhotra, A.: Linked data platform 1.0. W3C Recommendation (2015)

    Google Scholar 

  10. Studer, R., Benjamins, V.R., Fensel, D.: Knowledge engineering: principles and methods. Data Knowl. Eng. 25(1–2), 161–197 (1998)

    Article  Google Scholar 

  11. Verborgh, R., et al.: Triple pattern fragments: a low-cost knowledge graph interface for the web. J. Web Semant. 37, 184–206 (2016)

    Article  Google Scholar 

  12. Vigo, M., Bail, S., Jay, C., Stevens, R.: Overcoming the pitfalls of ontology authoring: Strategies and implications for tool design. Int. J. Hum.-Comput. Stud. 72(12), 835–845 (2014)

    Article  Google Scholar 

  13. Wilkinson, M.D., et al.: The FAIR Guiding Principles for scientific data management and stewardship. Sci. Data 3, 1–9 (2016)

    Article  Google Scholar 

  14. Zaveri, A., et al.: smartAPI: towards a more intelligent network of web APIs. In: Blomqvist, E., Maynard, D., Gangemi, A., Hoekstra, R., Hitzler, P., Hartig, O. (eds.) ESWC 2017. LNCS, vol. 10250, pp. 154–169. Springer, Cham (2017). https://doi.org/10.1007/978-3-319-58451-5_11

    Chapter  Google Scholar 

Download references

Acknowledgments

This work has been supported by a Predoctoral grant from the I+D+i program of the Universidad Politécnica de Madrid and the Spanish project DATOS 4.0: RETOS Y SOLUCIONES (TIN2016-78011-C4-4-R).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Paola Espinoza-Arias .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Espinoza-Arias, P., Garijo, D., Corcho, O. (2020). Mapping the Web Ontology Language to the OpenAPI Specification. In: Grossmann, G., Ram, S. (eds) Advances in Conceptual Modeling. ER 2020. Lecture Notes in Computer Science(), vol 12584. Springer, Cham. https://doi.org/10.1007/978-3-030-65847-2_11

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-65847-2_11

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-65846-5

  • Online ISBN: 978-3-030-65847-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics