owlready2 icon indicating copy to clipboard operation
owlready2 copied to clipboard

Creating SWRL rule using imported ontology

Open satyamgupta0 opened this issue 1 year ago • 0 comments

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.

satyamgupta0 avatar Jun 20 '23 06:06 satyamgupta0