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

riot --to-file parameter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Jena 3.0.0
    • None
    • RIOT

    Description

      The riot command line does not have an option to specify the output file to write to, forcing users to use shell redirections, e.g.

      riot file.ttl > file.nt
      

      This comes up as an issue for the Docker image https://hub.docker.com/r/stain/jena/ - as you can't (easily) do > file.txt as arguments to docker run to do redirections within the Docker container.

      Lacking an output file parameter also makes it harder to call riot from other programming languages, e.g. called from a Python script.

      The problem is that the --output parameter (and --out) is already used to specify the output FORMAT rather than the output FILE. Perhaps --to-file ?

      Suggested use:

      riot --output jsonld --to-file /tmp/output.jsonld /tmp/input.ttl
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            stain Stian Soiland-Reyes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: