pwin / owlready2

GNU Lesser General Public License v3.0
140 stars 23 forks source link

Simple queries not working #3

Open Remorax opened 4 years ago

Remorax commented 4 years ago

Hi,

The search query described here, for finding all is_a relationships do not work, even for the provided example.

I followed all the examples given, loaded the pizza ontology but on trying the search query, I get the following error: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.6/site-packages/owlready2/namespace.py", line 191, in search v2 = [child.storid for child in v.descendants()] AttributeError: 'str' object has no attribute 'descendants'

Can someone please help me out?