Re: Properly create Enumerations whose values need to be managed as well??

Posted by Jiba on
URL: http://owlready.306.s1.nabble.com/Properly-create-Enumerations-whose-values-need-to-be-managed-as-well-tp2174p2178.html

Hi,

I usually create individuals for enumaration, but I can understand that it may not suit to everyone.

You can create custom datatype with Owlready, but it requires a little coding. There is an example here:

    http://owlready.8326.n8.nabble.com/Assign-missing-datatypes-td1845.html#a1850

You may even use constant integer or string value (not very clean semantically speaking, but fully working for reasoning purpose).


Owlready OneOf([a, b, c,...]) construct can be used for one-of. It works with individuals, but also with datatype values.

Jiba