about ReflexiveProperty (replied)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

about ReflexiveProperty (replied)

William
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]
Reply | Threaded
Open this post in threaded view
|

Re: about ReflexiveProperty

Jiba
Administrator
Hello,

You are right, ReflexiveProperties were not taken into account.

I've added support for reflexive properties in individual.INDIRECT_property, in the development version.

Jiba