Administrator
|
Hi,
Thank you for your compliments :)
To use dataproperties in constraints, you must use a ConstrainedDatatype, as follows:
onto.has_calorie_count.some(ConstrainedDatatype(int, min_exclusive = 400))
Owlready also has a simplified syntax (equivalent to the above):
onto.has_calorie_count > 400
Best regards,
Jiba
|