pwin / owlready2

GNU Lesser General Public License v3.0
137 stars 22 forks source link

Creating SWRL rule using imported ontology #42

Open satyamgupta0 opened 1 year ago

satyamgupta0 commented 1 year ago

Please see this issue,

https://github.com/protegeproject/swrlapi/issues/25

I am facing a similar issue where i have to use an object_property (let's assume hasQuality) of an imported ontology, but when I try to execute rule, People(?p),hasQuality(?p,?q)->Patient(?p) I get the error ValueError: Cannot find entity 'hasQuality'!. Note that People and Patient are in the main owl file, which imports another owl file which has the property hasQuality.

Thank you in advance.