1. 30 Mar, 2021 2 commits
    • divoplade's avatar
      Do not accept the exponent in the decimal datatype. · 2865e93a
      divoplade authored
      While Guile can easily parse decimal literals with exponents,
      generating the reduced form for decimal literals requires the code to
      check whether the reduced form will still be read back as a
      literal. If the printer is allowed to write exponents for a decimal,
      the type will change to double.
      2865e93a
    • divoplade's avatar
      The turtle printer is terser. · 2492f9e1
      divoplade authored
      The turtle printer now:
      - properly escapes IRIs;
      - group the triples by subject, and then by predicate;
      - can use a set of specified prefixes to shorten the IRIs;
      - uses relative IRIs when they are relative to an internal base;
      - can write down an explicit base;
      - shorten integer, decimal, double and boolean literals;
      - shorten the rdf:type predicate.
      
      Shortcomings:
      - the default list of common prefixes is relatively small, a lot more
        can be added since the unused ones won’t appear;
      - the printer does not try to generate blank node property lists or
        collections.
      2492f9e1
  2. 01 Dec, 2020 2 commits
  3. 08 Oct, 2020 2 commits
    • Julien Lepiller's avatar
      Also use string or port in nquads parser · 3c314173
      Julien Lepiller authored
      3c314173
    • divoplade's avatar
      Make distinct types for files and strings · a7f79b1e
      divoplade authored
      As the documentation suggests, the argument may either be a file or a
      string. If the "file" type is a filename, there is no way to
      distinguish them, except at the exact time of running the function, if
      there happens to be a file with the given name. This is harmful,
      because a malicious document containing the file name of a sensitive
      file could leak the contents of the sensitive file.
      
      If we use a port instead of a file name, it's better because we can't
      get a port by accident.
      a7f79b1e
  4. 06 Oct, 2020 2 commits
  5. 27 May, 2020 3 commits
  6. 12 Apr, 2020 2 commits
  7. 10 Apr, 2020 2 commits
  8. 09 Apr, 2020 6 commits
  9. 08 Apr, 2020 3 commits
  10. 07 Apr, 2020 6 commits
  11. 05 Apr, 2020 10 commits