OBA: An Ontology-Based Framework for Creating REST APIs for Knowledge Graphs

Daniel Garijo, Maximiliano Osorio
7/17/2020
cs.AI

Official code: KnowledgeCaptureAndDiscovery/OBA (45 stars, HTML, Apache-2.0, last commit 2026-03-01).

Abstract

In recent years, Semantic Web technologies have been increasingly adopted by researchers, industry and public institutions to describe and link data on the Web, create web annotations and consume large knowledge graphs like Wikidata and DBPedia. However, there is still a knowledge gap between ontology engineers, who design, populate and create knowledge graphs; and web developers, who need to understand, access and query these knowledge graphs but are not familiar with ontologies, RDF or SPARQL.

Show full abstract

In this paper we describe the Ontology-Based APIs framework (OBA), our approach to automatically create REST APIs from ontologies while following RESTful API best practices. Given an ontology (or ontology network) OBA uses standard technologies familiar to web developers (OpenAPI Specification, JSON) and combines them with W3C standards (OWL, JSON-LD frames and SPARQL) to create maintainable APIs with documentation, units tests, automated validation of resources and clients (in Python, Javascript, etc.) for non Semantic Web experts to access the contents of a target knowledge graph. We showcase OBA with three examples that illustrate the capabilities of the framework for different ontologies.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Ontology based APIs

4511HTML, JavaMay 3, 20199 months agoApache-2.0

Similar Papers

Cite this paper

@article{garijo2020oba,
  title  = {OBA: An Ontology-Based Framework for Creating REST APIs for Knowledge Graphs},
  author = {Daniel Garijo and Maximiliano Osorio},
  year   = {2020},
  eprint = {2007.09206},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2007.09206}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2007.09206.svg)](https://codeofpaper.com/paper/2007.09206)

Discussion