.getSubClassAxiomsForSubClass(margheritaPizza)) {
OWLClassExpression superCls = ax.getSuperClass();
// Ask our superclass to accept a visit from the RestrictionVisitor
// - if it is an existential restiction then our restriction visitor
// will answer it - if not our visitor will ignore it
superCls.accept(restrictionVisitor);
}
// Our RestrictionVisitor has now collected all of the properties that
// have been restricted in existential restrictions - print them out.
// System.out.println("Restricted properties for " + margheritaPizza
// + ": " + restrictionVisitor.getRestrictedProperties().size());