-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fast diagramming with cromulent and mermaid? #20
Comments
I had thought of that but the cut and pasting of things to get the diagram to generate would be pretty painful... but what about ... I could imagine a web page with two panes. In one pane, you type in the cromulent code and every time you enter a new line it sends that code to a little web service that runs the code, generates the JSON-LD and mermaid, returns that to the other pane to render. I could have a go at the backend if someone better with HTML and javascript than I could make the front end look better than a dog's breakfast? |
Yes this 👍 An MVP could be a two pane VSCode session: in one, a Python + crom script creating a static |
That's pretty! I have a little prompt-toolkit session which:
... and a separate Flask app pushing the generated Mermaid graph HTML (with an ugly self-refresh meta tag) I haven't fixed the width issue. Simply inheriting the magic from |
@edwardanderson I pushed my code into a branch Give it a try? |
I've read your code (but not upskilled my Here's almost exactly the same thing (super similar implementation too), but on the terminal with some basic working code completion and syntax highlighting: I also have some problems deriving from continually running |
Hi, Firstly this looks very cool and I will have to have a go :-) Also I just wanted to say I have improved the system I was using to generate mermaid based diagrams automatically which I thought may well be related to this discussion. Which might be easier for others to use? Based again on the modelling example done last week, if you start with a file of simple triples like: https://github.com/jpadfield/cidoc-crm.examples/blob/master/models/tests/test-triples.csv The system will automatically create the complete model for you: https://jpadfield.github.io/cidoc-crm.examples/models/mermaid_test.html As shown before it is possible to have additional colours and shapes but this would need more than just the simple triples. (https://jpadfield.github.io/cidoc-crm.examples/models/mermaid_object.html) Has been done for CIDOC but a LInked.Art colour scheme could also be created. The repository automatically rebuilds the models when ever you commit a new version of your csv files. |
We were discussing the tooling people might like to use for live-diagramming exemplars on our last call (2020-06-24). I was wondering if an option for simultaneous diagram and data generation might be able to use @azaroth42's crom-to-mermaidjs extension code which renders the class hierarchy diagrams on the website?
I imagine that a nimble Cromulent user could generate house-styled diagrams and Linked Art JSON at the same time... fairly conveniently... by live coding some Python.
It might be that drawing the network charts in OmniGraffle (or other) is the simpler and easier option.
But I could look into it if it feels like tooling which would benefit us?
The text was updated successfully, but these errors were encountered: