When creating the set of aggregates to return, make sure that the non-inferred and inferred types are not duplicated. Also make sure that if rdfs:Class is inferred, to ingore it since this means that owl:Class is part of the non inferred types.