Commits

Doug Burke  committed 4a9255c

Final change notes for 0.3.1.1

  • Participants
  • Parent commits 5386fa3

Comments (0)

Files changed (3)

+0.3.1.1:
+
+  - N3 I/O: 
+
+    - strings ending in a double-quote character are now written out
+      correctly.
+
+    - xsd:double values are not written using XSD canonical
+      form/capital E but with using a lower-case exponent.
+
+    - in input, xsd:double literals are converted to XSD canonical
+      form (as stored in 'RDFLabel'), which can make simple textual
+      comparison of literals fail.
+
+  - RDFLabel:
+
+    - the Eq instance now ignores the case of the language tag for
+      literals
+
+    - the Show instance uses the XSD canonical form for xsd:boolean,
+      xsd:integer, xsd:decimal and xsd:double literals. 
+
+  - The ToRDFLable and FromRDFLabel classes replicate
+    existing functionality in Swish.RDF.RDFDatatype; this should
+    be cleaned up.
+
 0.3.1.0:
 
   - NSGraph:

File Swish/RDF/RDFGraph.hs

 --  Used for hashing, so that equivalent labels always return
 --  the same hash value.
 --    
---  It is being updated to use XSD canonical forms where  
---  available.
---  
 showCanon :: RDFLabel -> String
 showCanon (Res sn)           = "<"++getScopedNameURI sn++">"
 showCanon (Lit st (Just nam))
   .
   Major Changes:
   .
-  [Version 0.3.1.1] Bug fixes to N3 handling (string and numeric literals).
+  [Version 0.3.1.1] Bug fixes for N3 format: strings ending in a 
+  double quote character are now written out correctly and
+  @xsd:double@ values are not written using XSD canonical form/capital
+  @E@ but with a lower-case @e@. On input of N3,
+  literals that match @xsd:double@ are converted to XSD canonical form
+  (as stored in 'RDFLabel'), which can make simple textual comparison
+  of literals fail. The 'Eq' instance of 'RDFLabel' now ignores the
+  case of the language tag for literals and the 'Show' instance 
+  uses XSD canonical form for @xsd:boolean@, @xsd:integer@,
+  @xsd:decimal@ and @xsd:double@ literals. 
+  Noted that the 'ToRDFLable' and 'FromRDFLabel' classes replicate
+  existing functionality in the "Swish.RDF.RDFDatatype" module.
   .
   [Version 0.3.1.0] Added the `Swish.RDF.RDFGraph.ToRDFLabel` and
   `Swish.RDF.RDFGraph.FromRDFLabel` classes and the