CytoscapeJS in SWISH

Have uploaded a repo with some code bits to render terms by means of CytoscapeJS in SWISH.

Would like to discuss how to evolve the design towards a component based reactive architecture for applications (SPA) in SWISH. I’m sure almost everything needed it’s already provided, but I’m missing the high level view, how to structure a notebook part to play together, handling events and referencing various parts, even if only statically defined.

Now, I understand that SWISH (SWI for SHaring) does not have a pretension to enter the CMS arena, but seems it could be an effective player there…

I have provided a really simple minded script, hope it works out-of-the-box. :slight_smile:
Kind of a blueprint of what’s needed to add further JS libraries (I’d like to have Leaflet in the box also).

One rough point is the import of .swinb scripts. It’s easy to download them, but - please forgive my naivety - to publish them it’s a rather convolute task. I opted to copy them into the examples folders, and append some links in examples/prolog_tutorials.swinb.


SWISH is what people make of it. I’m not saying it should support everything, but it already can be configured in several ways, supporting quite different user groups. Notably if it runs with obligatory authentication and disabled sandboxing it can do a lot. As public service we have to deal with security which makes some cool stuff hard or impossible.

This looks really cool! Working on some other stuff, but I surely check this out.

1 Like

Similar to Carlo, I’d like to announce the publication of a SWISH plugin to render SVG shapes using SVG.js. It is principally meant to allow for some (basic) interaction with the SVG. I included support for pan-zoom and tooltips as an example. It is a is a bit more heavy on the JS side, and I am not entirely sure this is the way to go to integrate JS in swish (i.e. I am happy for suggestions on how this can be improved)

Find it here, along with install instructions: