Classify an OWL Ontology with Protégé

Protégé is a free, open source ontology editor and a knowledge management system. It includes deductive classifiers to validate that models are consistent and to infer new information based on the analysis of an ontology.LINK

So that is what we are going to do. First install Protégé from his webpage

You can increase the java heap of your computer if you are working with big files (I had to do it. Just edit the run.bat file in the directory of installation).

The most easy way to start testing Protégé functionalities is using this sweet tutorial and get hands dirty using ontologies ready for learning like the glorious pizza.owl ;)

The application let us do a direct download from an URL.

It is kind enough to have some bookmarks for learning purposes. We find there de pizza.owl

This is the asserted hierarchy of classes from the ontology.

Now we are going to apply a reasoner to classify the ontology with the intention to find any inconsistency.

Here they are. You can have a look at the problematic classes to figure out was is wrong.

The classification also develop a new hierarchy inferred from the asserted one. Here, per example, you can see how the class InterestingPizza has been populated with all the NamedPizzas that match the description.

Now, for fun, I am going to fix the ontology to avoid that inconsistency. I am going to create a SweetTopping (I have seen IRL like a dessert in some fast food restaurants sic), and then remove the disjoint with pizza topping and the fact the Icecream has FruitTopping (I think 99% of icecream is not made with real fruit :/ )

Now, if the reasoner hasn’t stop, you will find in the inferred hierarchy, the SweetTopping with the Icecream inside consistently configured. Lets have a look at the CheeseyVegetableTopping. I have decided that even having vegetables, I am going to classify like plain cheese topping. In this ontology, the CheeseyVegetableTopping is going to be made with a cheese that already has vegetables on it (like paprika cheese, mmmm, so good). And why not, leave a comment about this idea.

This is the pizza ontology with all the inconsistencies fixed and ready to use by any Pizzaiolo-Informatic.

Thanks to all for your time :)