You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
xsd:double serialization is non-canonical and inconsistent across output formats #1445
Three different lexical forms today: SPARQL-JSON/XML render Rust Display ("1000000"), native CSV/TSV renders ryu ("1000000.0"), N-Triples/N-Quads export renders {:E} ("1E6" — missing the mandatory mantissa dot). The XSD canonical form is "1.0E6".
Fix: one shared canonical_xsd_double helper routed through sparql.rs, sparql_xml.rs, delimited.rs, LiteralValue::lexical(), and export.rs:1236/:1465; JSON-LD numeric output stays a native JSON number (deliberate). User-visible output change — changelog note for downstream string-matchers; R2RML/Iceberg lexical() consumers flagged. Roadmap PR-L2.
Found and verified by the W3C SPARQL burn-down audit (PR #1437; docs/audit/burn-down/ROADMAP.md §5 on branch test/sparql-testsuite-full-coverage).
Activity
fix(format): emit canonical xsd:double lexical form in RDF output (fl…
fix(query): STR() on a double returns the canonical XSD lexical form