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

Enable using the mermaid visualization from client-side app #16

Open
vemonet opened this issue Oct 10, 2024 · 1 comment
Open

Enable using the mermaid visualization from client-side app #16

vemonet opened this issue Oct 10, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@vemonet
Copy link
Member

vemonet commented Oct 10, 2024

It would be nice to be able to get the mermaid diagram string for any SPARQL query from client-side apps (e.g the sparql-editor, or have a VSCode extension for that)

So that we can easily visualize any SPARQL query without the need to install java locally

I would see a few ways to solve this:

  • Deploy a small web server with a endpoint that takes a SPARQL query string and returns the mermaid string. Fastest to implement, but requires to deploy the service somewhere and requires client to have internet access
  • Reimplement the mermaid generation function in JavaScript using sparqljs parser. Might take some time to implement, will need to be improved/maintained in parallel to the java lib, but would make it really easy to use on client
  • Find a way to compile the mermaid generation function to WebAssembly (e.g. with https://github.com/konsoletyper/teavm). Might be a bit tricky to implement, and will probably be quite big in size for client-side app
@vemonet vemonet added the enhancement New feature or request label Oct 10, 2024
@vemonet
Copy link
Member Author

vemonet commented Oct 11, 2024

After discussions it might be interesting to not go for mermaid, and look into a visualization system that would also allow to edit the nodes. Maybe look into gephi-lite/sigma.js

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

No branches or pull requests

1 participant