I don't know if this is going to solve the problem but it worths a try. Try using hasSubclass(Resourse, false), in order to include non-direct relations also in the result. I don't know if this is gonna work because in the documentation it doesn't mention if the default is 'true' or 'false'. I really hope this helps!
> Date: Tue, 19 Feb 2013 04:31:01 +0000 > Subject: Another newbie problem > From: [email protected] > To: [email protected] > > Hi again, > > I have a ontology model created with "OntModelSpec.OWL_MEM_TRANS_INF". > > Given the original ontology I added some new "subclass" relations > between some classes (using addSubClass and addSuperClass methods). > > Now I have a class A that is a subclass of B and C. > And another class D that is subclass of A. > > (these results are given by hasSubClass method) > > > Given this model I should get the result that D is a subclass of B and > C. But for some reason I'm not getting that result (again using > hasSubClass method) > Does this mean that the model does not fully update the new inferred > relations between classes ? What should I do? > > It is odd, because A is only a subclass (not direct one) of C after > the addition of the new relations, i.e. A subclass C is inferred. > > Any ideas ?! > > Thanks!
