Hello!
I am confused about the behaviour of the search() query. Here is very simple code:
o = get_ontology("http://test.org/onto.owl")
with o:
class Actor(Thing):
pass
class Locality(Thing):
pass
class isAt(ObjectProperty):
pass
for name in ('actor1', 'actor2'):
loc = o.Locality(name + '_loc')
actor = o.Actor(name, isAt=[loc])
AllDisjoint(o.Actor.instances())
AllDisjoint(o.Locality.instances())if I query with
list(o.isAt.get_relations()), it returns tuples of actor-locality instances, however if I use
o.search(isAt="*") then it returns an empty list, although I would expect a list of actors.
Why is it like that?