Generates the SPARQL representation of a numeric value.
Emits a bare numeric literal, the most compact typed form: an integer renders as an xsd:integer (for example
42), a finite non-integer as an xsd:decimal where representable without an exponent (for example 4.2) and as
an xsd:double otherwise (for example 1e-7). A non-finite value has no native SPARQL syntax and renders as an
explicitly typed xsd:double literal, using the lexical forms INF, -INF and NaN.
Generates the SPARQL representation of a numeric value.
Emits a bare numeric literal, the most compact typed form: an integer renders as an
xsd:integer(for example42), a finite non-integer as anxsd:decimalwhere representable without an exponent (for example4.2) and as anxsd:doubleotherwise (for example1e-7). A non-finite value has no native SPARQL syntax and renders as an explicitly typedxsd:doubleliteral, using the lexical formsINF,-INFandNaN.