digitalbazaar/pyld

number with 0 fractional part should parse to an xsd:integer

pchampin opened this issue · 0 comments

The following JSON-LD

{ "ex:value": 42.0 }

should result to the following triple

[] <ex:value> "42"^^xsd:integer.

but PyLD produces this instead:

[] <ex:value> "42e0"^^xsd:double.