Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-959

riot: gzip output option

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Trivial
    • Resolution: Implemented
    • Affects Version/s: None
    • Fix Version/s: Jena 3.0.1
    • Component/s: RIOT
    • Labels:
      None

      Description

      The riot command line tool supports incoming file formats like *.ttl.gz, but there is no (obvious) way to also output in compressed formats.

      This can of course also be achieved with piping and gzip, but that is easily platform-specific. Writing *.format.gz with the command line is probably as much within remit of someone using riot on the command line as for reading those.

      So my suggestion is to support extension .gz in the various --output options to enabled outputting via a GzipOutputStream – http://docs.oracle.com/javase/7/docs/api/java/util/zip/GZIPOutputStream.html

      For example:

      stain@biggie-utopic:~/Downloads$ riot --output=nquads.gz chembl_20.0_target_targetcmpt_ls.ttl.gz 
      Not recognized as an RDF language : 'nquads.gz'
      

        Attachments

        1. Jena-959-example.patch
          4 kB
          Andy Seaborne

          Issue Links

            Activity

              People

              • Assignee:
                andy Andy Seaborne
                Reporter:
                stain Stian Soiland-Reyes
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: