Read class restriction or axiom via OWL API 5


In this tutorial we demonstrate how to read a restriction or axiom from a OWLClass using the OWL API 5 and the visitor pattern. The example maven project is available on Github. We use the OWL API version 5.1.4 and a small example ontology. 1. Prerequisites Install Maven to build the project (explained here) Java 1.8 ( OWL API uses streams etc. ) Some understanding of OWL and ontologies in general 2. The example ontology The ontology is only for demonstration purposes. It is about a vehicle (truck) that has some…

Read More