Using the method in my last post I can successfully create an instance of Laptop by declaring the class Object as a subclass of the overall Thing class. This is fine however when I save and look at the ontology in Protege it places Laptop as a direct subclass of both Object and ElectronicObject, but I only want it to be a direct subclass of ElectronicObject.
Does this mean I would have to iteratively recreate the whole class hierarchy in Python to achieve this?
Re: Create individuals without specifying the class
I discovered the same problem yesterday and I fixed it in the development version. It is caused by the fact of redefining the class : in this case, Owlready "continue" and extend the previous definition, possibly adding Thing in the superclasses if the new definition has Thing as a parent class.