Inconsistent values for enumerations

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Inconsistent values for enumerations

jlbellier
Hello,

I am working with OwlReady2 version 0.34.
Some of my data properties are enumerations with integer values.

For example : {1,3,4,5,6,7}

When I analyze the list of values for this enumeration, I use the following instruction :
enum_list = list(onto_data_prop.range[0].instances), where :

onto_data_prop is the data property read from the ontology, range is of type 'OneOf'.

my values are then : onto_data_prop.range=[OneOf([1, 3, 4, 6, 7])]
and enum_list = [1, 3, 4, 6, 7]

I tried several list of values, and it looks like the value 5 is always omitted.

When I use string values (like {'Windows 8.1','Windows Server 2008','Windows 10'}), I can retrieve all the corresponding values with OwlReady2.

Do you have any track to give me ? I have juste upgraded OwlReady2 (I used version 0.24 before) because I thought it was a bug in my version.

Thank you in advance for your help.

Best regards,
Jean-Luc.


Reply | Threaded
Open this post in threaded view
|

Re: Inconsistent values for enumerations

Jiba
Administrator
Hi,

Thank you for noticing this problem. Indeed, there is a bug on the number 5 in RDF list (including OneOf), 5 being the interval Store-ID value used for rdf:nil.

I fixed the bug in the development version of Owlready, on Bitbucket.

Jiba