Re: owlready2.rply.LexingError: (None, 0) while setting a rule

Posted by Jiba on
URL: http://owlready.306.s1.nabble.com/owlready2-rply-LexingError-None-0-while-setting-a-rule-tp1263p1264.html

Hi,

If there are several namespaces, you cannot indicate them with dot (e.g. currentDewPoint instead of rw.currentDewPoint). Then, set_as_rules accepts a second parameters, which is a list of Owlready namepaces (or ontologies). For example:

Imp().set_as_rule("TiplocLocation(?c), currentDewPoint(?c, ?d)...", [_is, rw])

Jiba