Reply – Re: Data Property of datatype 'float' being created as 'decimal'
Your Name
Subject
Message
or Cancel
In Reply To
Re: Data Property of datatype 'float' being created as 'decimal'
— by Jiba Jiba
Hello,

You're right... I've just look more deeply at XSD types. Actually, Python floats have double precision, and thus they should be aligned with xsd:double. Similarly, Python ints are unlimited, so they should be aligned with xsd:integer.

I'm going to fix that.

Best regards,
Jean-Baptiste Lamy
MCF, LIMICS, Université Paris 13

> Hello again, Mr. Lamy.
>
> The Data Properties I am creating with the syntax below are being shown in
> Protégé as 'xsd:decimal', not 'xsd:float'.
> On the same code I create a lot of other Data Properties, and the other
> datatypes are working fine (int, bool, str).
>
> with onto:
>     class impact_loss_max_ammount(onto.asset >> float): pass
>
>
> <http://owlready.8326.n8.nabble.com/file/n87/screenshot.jpg>
>
> Thanks in advance!
> GB
>
>
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://owlready.8326.n8.nabble.com/Data-Property-of-datatype-float-being-created-as-decimal-tp87.html
> To start a new topic under Owlready, email [hidden email]
> To unsubscribe from Owlready, visit