Re: Introspection with owlready2

Posted by Pierre on
URL: http://owlready.306.s1.nabble.com/Introspection-with-owlready2-tp168p170.html

Bonjour Jean-Baptiste,

This was very helpful, and this seems to be doing the trick for the time being :) Thanks a lot for your quite fast answer.

I was also wondering whether there is a way of performing a deep object creation (i.e., if a Class A has attributes that are object themselves, say b of Class B, I would like A.deep_new() to create an instance in which deep_new has also being called on the b attribute). Or should I use introspection to write one for owlready2?

Thanks in advance.

Bye,

Pierre