[
https://issues.apache.org/jira/browse/JENA-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14901117#comment-14901117
]
Andy Seaborne edited comment on JENA-1032 at 9/21/15 6:18 PM:
--------------------------------------------------------------
Current names:
{{\--output=FMT}} Output in the given format, streaming if possible. Synonyms:
{{\--out}}
{{\--formatted=FMT}} Output, using pretty printing (consumes memory).
Synonyms: {{\--fmt}}, {{\--pretty}}.
{{\--stream=FMT}} Output, using a streaming format. No synonyms.
What suggestions are there for an alternative to {{\--output}}? While it is
not clear how much use of these flags is actually made (they are relatively
new), a feature of {{\--output}} is that it is streamed (scales if possible)
yet works on any format when small.
Or is there a better name than {{\--to-file}}? {{\--to}}?
was (Author: andy.seaborne):
Current names:
{{--output=FMT}} Output in the given format, streaming if possible. Synonyms:
{{--out}}
{{--formatted=FMT}} Output, using pretty printing (consumes memory). Synonyms:
{{-\-fmt}}, {{--pretty}}.
{{--stream=FMT}} Output, using a streaming format
What suggestions are there for an alternative to {{--output}}?
Or better name for {{--to-file}} (not all named things are files)?
> riot --to-file parameter
> ------------------------
>
> Key: JENA-1032
> URL: https://issues.apache.org/jira/browse/JENA-1032
> Project: Apache Jena
> Issue Type: Improvement
> Components: RIOT
> Affects Versions: Jena 3.0.0
> Reporter: Stian Soiland-Reyes
> Priority: Minor
> Labels: file, output
>
> 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.
> {code}
> riot file.ttl > file.nt
> {code}
> 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:
> {code}
> riot --output jsonld --to-file /tmp/output.jsonld /tmp/input.ttl
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)