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

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

Hi all,

I am trying to load an ontology that contains multiple namespaces and insert some rules into it. I called method set_as_rule() then I was given an error:

owlready2.rply.LexingError: (None, 0)

A specific rule I am trying to put in is '_is.TiplocLocation(?c), rw.currentDewPoint(?c, ?d), rw.currentTemp(?c, ?e), greaterThan(?d, ?e) -> rw.hasPotentialLowAdhesion(?c, True)'

I guess it is because the appearance of multiple namespaces in one rule as the tutorial only demonstrates creating rules for one namespace.

Is there anything I can do to solve this? Thank you.