Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input from stdin #13

Open
johanwk opened this issue Oct 7, 2022 · 5 comments
Open

Input from stdin #13

johanwk opened this issue Oct 7, 2022 · 5 comments

Comments

@johanwk
Copy link

johanwk commented Oct 7, 2022

It would be convenient to be able to pipe a file to rdfpuml instead of referring to a file.

(This occurred to me while setting up for using rdfpuml in Emacs with org-babel, as it would be easier to send a Turtle source block to rdfpuml with a :stdin header, avoiding the need to write a temporary file.)

@VladimirAlexiev
Copy link
Owner

@johanwk In your current setup, how important is this?
It would also have to pipe the output to STDOUT: and then how would you capture this to pass to plantuml?

@justin2004
Copy link

on linux how about

cat somefile | someapp /dev/stdin

@johanwk
Copy link
Author

johanwk commented Mar 29, 2024

Actually, I think it's not very important (anymore)!

I somehow figured out how to make use of org-mode's standard way of using temporary directories, while working on how to call ROBOT. There's no feature in ROBOT for stdin/stdout. But when we use temporary directories, the input and output files can be kept out of they way. I want to improve the rdfpuml-blockbabel code to do the same as for ROBOT.

@johanwk
Copy link
Author

johanwk commented Mar 29, 2024

@justin2004, thank you so much for joining our project!

@johanwk
Copy link
Author

johanwk commented Apr 2, 2024

@johanwk In your current setup, how important is this? It would also have to pipe the output to STDOUT: and then how would you capture this to pass to plantuml?

PlantUML has a -pipe option, see PlantUML Command line

cat somefile.puml | java -jar plantuml.jar -pipe > somefile.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants