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

Add links to resources in exported diagram #32

Open
GordianDziwis opened this issue May 2, 2022 · 6 comments
Open

Add links to resources in exported diagram #32

GordianDziwis opened this issue May 2, 2022 · 6 comments

Comments

@GordianDziwis
Copy link

It is possible to export the ontology with draw.io to SVG and HTML. It would be nice if the elements in the exported diagram are linked to their resource. For example, that a click on a box representing a class redirect to the resource.

@mariapoveda
Copy link
Member

Do you mean to include the svg in a HTML file with the description of the resources? Like the HTML generated by Widoco?

@GordianDziwis
Copy link
Author

My specific use case is:

  1. Create an ontology with chowlk.
  2. Export it to ttl with the chowlk converter.
  3. Create a html documentation with pylode.
  4. Export the ontology in draw.io to svg.
  5. Add the svg diagram of the onology to the html documentation generated with pylode.

Now I if the boxes in the diagram have a href reference to the ressource they represent. A click on it would lead to the pylode part in the documentation. Which would be very neat.

@mariapoveda
Copy link
Member

Yes. That is handy (actually used it http://fairreviews.linkeddata.es/def/core/index.html) but that has to be done in draw.io right? As it is draw.io who exports the svg.

@GordianDziwis
Copy link
Author

I suppose you added the links manually, if not disregard the rest.

There is a plugin which adds metadata to an svg export: https://www.diagrams.net/doc/faq/plugins, so it should be possible to write an plugin, which adds an href to each element on svg export.

Another possiblilty would be to post-process the svg and add the links there.

@mariapoveda
Copy link
Member

Then is this a requirement for a new plugin for driagrams.net? I can't see it as part of Chowlk as chowlk exports RDF.

@GordianDziwis
Copy link
Author

Yes, this would be a new plugin for diagrams.net.

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

2 participants