You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a use case we didn't cover much so far, so thanks for pointing out! We definitely need to improve the tool to better use stdin/stdout, e.g., to interplay with other unix tools, so I'll leave this issue open until we properly fix this.
In the meanwhile, a possible workaround is to selectively disable logging when output is directed to stdout. Two steps:
create a logback-off.xml file (name doesn't matter) that configures the logging library logback not to emit log:
when needed, call rdfpro using that configuration file instead of the one shipped in etc/logback.xml. From the command line, this is done by calling rdfpro supplying an environment variable JAVA_OPTS that selects the proper logback configuration file:
A drawback of this solution is that errors, if any, are not printed. To do that one may play with the logback configuration file to send log to stderr rather than stdout.
I can write to stdout using
@write .nt:/dev/stdout
, but there is also other metatada that is printed out as well. For exampleIs there a way to output only the n-triples to stdout (without any other processing metadata), or can I only
@write
to a file on disk?The text was updated successfully, but these errors were encountered: