Recently, I started to study owlready, and faced with much problem. I defined a
PropertyChain as follows (I know I misunderstand it).
class friend(Person >> Person, SymmetricProperty):
pass
class potentialFriend(Person >> Person):
# potentialFriend := friend o friend
equivalent_to = PropertyChain([friend, friend])I tried to get
person.potentialFriend.indirect(), but failed. I read the source codes, since the doc on web is too simple, and found that PropertyChain works like a list, I thought it returned a Property. How do I compliment what I want?
How do you use
PropertyChain? Is there some concrete examples.
potentialFriend can be complimented by another way, but I just want to define a property T that is the chain of properties R and S, ie
T = R o S. How do I define it?
PS: The source codes(.py files) indent with only two whitespaces, :o! Is that OK?
PSS: I have ask the question in
https://stackoverflow.com/questions/49268910/how-do-you-define-propertychain-in-owlready where some recommend me to submit it here.