Re: Reasoning with data properties

Posted by Jiba on
URL: http://owlready.306.s1.nabble.com/Reasoning-with-data-properties-tp600p602.html

Hello,

I've investigated the problem; it is caused by the fact that your ontology is using xsd:float. On the contrary, Owlready use xsd:decimal for representing Python's float, and not xsd:float (because xsd:integer can be used in place of decimal, but not in place of float).

Therefore, you need to use the following in your ontology :

    LabValue1 and (isOfValue some decimal[> "4.0"^^decimal])

instead of :

    LabValue1 and (isOfValue some float[> 4.0f])

Best regards,
Jiba