|
This post was updated on .
Hi~
I had asserted love is a ReflexiveProperty, i.e. x loves x, but why did I get [society.cc] only, from c.love (or c.INDIRECT_love)?
Can you fix it?
class love(Cat >> Cat, ReflexiveProperty):
pass
c = Cat('c')
cc = Cat('cc')
c.love.append(cc)
close_world(society)
# sync_reasoner(debug=1) # raise OwlReadyInconsistentOntologyError again
print(c.love) # [society.cc]
|