Hello together,
I'm trying to automatically assign values to instances using a datatype property, which actually works, but I can't get the desired datatype to be assigned, namely "float", but it always automatically creates a "decimal". Is there a solution for this.
Thanks in advance
My Code:
OP3 = OP('OP3') #OP3 is an individual of class OP
OP3.has_pressure.append(107000.0) #has_pressure is a Datatype property with Range 'float'
##############################
Output in rdf/xml file:
OP rdf:about="#OP3">
<rdf:type rdf:resource="
http://www.w3.org/2002/07/owl#NamedIndividual"/> <has_pressure rdf:datatype="
http://www.w3.org/2001/XMLSchema#decimal">107000.0</has_pressure>
</OP>>