joshsh / ripple

Semantic Web scripting language
Other
102 stars 9 forks source link

26 - bring numeric data types into agreement with N3/Turtle #26

Closed joshsh closed 13 years ago

joshsh commented 13 years ago
Inconsistencies to be fixed:
1) Ripple does not support Turtle's '+' prefix for numbers, such as in
'+42' (which has the same meaning as '42').  This comes from the XML Schema
specification for xsd:integer, which allows both a leading '+' and leading
zeroes (although the canonical representation does not)
2) In Ripple, an expression like '42.0' represents an xsd:double value,
whereas in Turtle it represents an xsd:decimal value.
3) To represent a double value in Turtle, you need an exponent, e.g.
'42e0'.  This, again, comes directly from the XML Schema specification


Original link: http://code.google.com/p/ripple/issues/detail?id=26